:root {
  --ink-900: #0B1220;
  --ink-800: #131C2E;
  --ink-700: #1E2A40;
  --paper-100: #F4EFE6;
  --paper-300: #CFC5B4;
  --cyan-400: #37E6D0;
  --teal-600: #12A99B;
  --green-300: #6FE3B0;
  --orange-500: #FF6B2C;
  --amber-400: #FFB03A;
  --text-hi: #EDF2F7;
  --text-lo: #9AA8BD;
  --rail-width: 96px;
  --content-max: 1220px;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --scroll-progress: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink-900);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail-width);
  color: var(--text-hi);
  background:
    radial-gradient(1100px 760px at 5% -5%, rgba(55, 230, 208, 0.07), transparent 55%),
    radial-gradient(900px 600px at 108% 20%, rgba(255, 107, 44, 0.055), transparent 54%),
    linear-gradient(180deg, #0B1220 0%, #0B1220 64%, #0a101b 100%);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--cyan-400);
  color: var(--ink-900);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-width) + 12px);
  z-index: 220;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--cyan-400);
  border-radius: 2px 16px 2px 16px;
  background: var(--paper-100);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: var(--rail-width);
  border-right: 1px solid var(--ink-700);
  background:
    linear-gradient(180deg, rgba(55, 230, 208, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(19, 28, 46, 0.96), rgba(11, 18, 32, 0.99));
  color: var(--text-hi);
}

.rail-progress {
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: 100%;
  background: rgba(30, 42, 64, 0.75);
  overflow: hidden;
  pointer-events: none;
}

.rail-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--orange-500), var(--cyan-400));
  transform: scaleY(var(--scroll-progress));
  transform-origin: top center;
}

.rail-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.rail-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px 14px;
  border-bottom: 1px solid var(--ink-700);
}

.rail-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--text-hi);
  text-decoration: none;
}

.rail-brand__mark {
  writing-mode: vertical-rl;
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  font-stretch: 87.5%;
  letter-spacing: 0.06em;
}

.rail-brand__sub {
  writing-mode: vertical-rl;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.28em;
  color: var(--cyan-400);
}

.rail-bar__meta {
  display: none;
}

.nav-toggle {
  display: none;
}

.rail-drawer {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 16px 10px 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-700) transparent;
}

.rail-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rail-heading__index {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--orange-500);
}

.rail-heading__label {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.24em;
  color: var(--text-lo);
}

.rail-ticks {
  position: relative;
  width: 20px;
  height: 64px;
  margin: 0 auto;
}

.rail-ticks__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, var(--ink-700), rgba(55, 230, 208, 0.55), var(--ink-700));
  transform: translateX(-50%);
}

.rail-ticks__line::before,
.rail-ticks__line::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 9px;
  height: 1px;
  background: var(--ink-700);
  transform: translateX(-50%);
}

.rail-ticks__line::before {
  top: 18px;
}

.rail-ticks__line::after {
  bottom: 18px;
}

.rail-ticks__node {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(55, 230, 208, 0.12), 0 0 18px rgba(55, 230, 208, 0.55);
  transform: translateX(-50%);
}

.rail-ticks__label {
  position: absolute;
  bottom: -12px;
  left: 50%;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.15em;
  color: var(--cyan-400);
  transform: translateX(-50%);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: rail-index;
}

.rail-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 8px 5px 8px 8px;
  border-left: 2px solid transparent;
  color: var(--text-lo);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.rail-nav__link::before {
  counter-increment: rail-index;
  content: counter(rail-index, decimal-leading-zero);
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--ink-700);
  transition: color 180ms var(--ease-out);
}

.rail-nav__link:hover {
  border-left-color: rgba(55, 230, 208, 0.55);
  background: rgba(30, 42, 64, 0.55);
  color: var(--text-hi);
}

.rail-nav__link:hover::before {
  color: var(--cyan-400);
}

.rail-nav__link[aria-current="page"] {
  border-left-color: var(--cyan-400);
  background: linear-gradient(90deg, rgba(55, 230, 208, 0.13), rgba(55, 230, 208, 0));
  color: var(--text-hi);
}

.rail-nav__link[aria-current="page"]::before {
  color: var(--orange-500);
}

.rail-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px 16px 2px 16px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  border-color: var(--orange-500);
  background: var(--orange-500);
  color: var(--ink-900);
  box-shadow: 0 8px 28px rgba(255, 107, 44, 0.2);
}

.btn--primary:hover {
  background: #ff7d48;
  border-color: #ff7d48;
}

.btn--secondary {
  border-color: var(--cyan-400);
  background: var(--cyan-400);
  color: var(--ink-900);
}

.btn--secondary:hover {
  background: #67f2e2;
  border-color: #67f2e2;
}

.btn--ghost {
  border-color: var(--ink-700);
  background: rgba(19, 28, 46, 0.5);
  color: var(--text-hi);
}

.btn--ghost:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.rail-actions__primary,
.rail-actions__secondary {
  width: 100%;
  padding: 11px 5px;
  font-size: 10px;
  line-height: 1.4;
}

.rail-search-trigger {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-height: 52px;
  padding: 10px 7px;
  border: 1px solid var(--ink-700);
  border-radius: 2px 14px 2px 14px;
  background: rgba(19, 28, 46, 0.78);
  color: var(--text-hi);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}

.rail-search-trigger:hover {
  border-color: var(--cyan-400);
  background: rgba(30, 42, 64, 0.9);
}

.rail-search-trigger__label {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.rail-search-trigger__hint {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text-lo);
}

.rail-footnote {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text-lo);
  text-align: center;
}

.search-panel {
  position: fixed;
  top: 24px;
  left: calc(var(--rail-width) + 18px);
  z-index: 140;
  width: min(500px, calc(100vw - var(--rail-width) - 36px));
  padding: 24px;
  border: 1px solid var(--ink-700);
  border-radius: 2px 32px 8px 32px;
  background:
    linear-gradient(145deg, rgba(55, 230, 208, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(19, 28, 46, 0.99), rgba(11, 18, 32, 0.99));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.search-panel[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
}

.search-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.search-panel__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--cyan-400);
}

.search-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--ink-700);
  border-radius: 999px;
  background: transparent;
  color: var(--text-lo);
  font-size: 11px;
  cursor: pointer;
}

.search-panel__close:hover {
  border-color: var(--orange-500);
  color: var(--orange-500);
}

.search-panel__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-lo);
}

.search-panel__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--ink-700);
  border-radius: 2px 14px 2px 14px;
  background: rgba(11, 18, 32, 0.8);
  color: var(--text-hi);
  font-size: 15px;
  line-height: 1.4;
}

.search-panel__input::placeholder {
  color: #728096;
}

.search-panel__input:focus {
  border-color: var(--cyan-400);
  outline: none;
  box-shadow: 0 0 0 3px rgba(55, 230, 208, 0.12);
}

.search-panel__hint {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-lo);
}

.search-results {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  list-style: none;
}

.search-result {
  border-bottom: 1px solid var(--ink-700);
}

.search-result__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 10px 4px;
  color: var(--text-hi);
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms var(--ease-out), padding 160ms var(--ease-out);
}

.search-result__link:hover {
  padding-left: 8px;
  color: var(--cyan-400);
}

.search-result__meta {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--text-lo);
  text-align: right;
}

.search-empty {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed var(--ink-700);
  border-radius: 2px 14px 2px 14px;
  color: var(--amber-400);
  font-size: 12px;
  line-height: 1.65;
}

.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 140px);
  border-top: 1px solid var(--ink-700);
  background:
    radial-gradient(700px 380px at 82% 0%, rgba(255, 107, 44, 0.07), transparent 60%),
    radial-gradient(600px 340px at 10% 10%, rgba(55, 230, 208, 0.055), transparent 60%),
    linear-gradient(180deg, rgba(19, 28, 46, 0.96), rgba(9, 15, 27, 0.99));
  color: var(--text-hi);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: min(54vw, 720px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-400), var(--orange-500), transparent);
  opacity: 0.72;
}

.footer-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(var(--content-max), calc(100% - 48px));
  height: 68px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ink-700);
}

.footer-rail__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-700) 18%, var(--ink-700) 82%, transparent);
}

.footer-rail__index {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--text-lo);
}

.footer-inner {
  position: relative;
  width: min(var(--content-max), calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 34px;
}

.footer-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(38px, 6vw, 72px) 0 clamp(30px, 4vw, 48px);
}

.footer-masthead__brand {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-hi);
  text-decoration: none;
}

.footer-brand__mark {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.92;
  font-weight: 900;
  font-stretch: 87.5%;
  letter-spacing: -0.06em;
  color: var(--paper-100);
}

.footer-brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--cyan-400);
}

.footer-summary {
  max-width: 30em;
  margin-top: 20px;
  color: var(--text-lo);
  font-size: 15px;
  line-height: 1.8;
}

.footer-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  padding: 14px 16px;
  border: 1px solid var(--ink-700);
  border-radius: 2px 18px 2px 18px;
  background: rgba(11, 18, 32, 0.52);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--text-lo);
}

.footer-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-300);
  box-shadow: 0 0 0 4px rgba(111, 227, 176, 0.1);
}

.footer-status__label {
  color: var(--text-hi);
}

.footer-status__year {
  margin-left: auto;
  color: var(--amber-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 46px);
  padding: clamp(28px, 4vw, 46px) 0;
  border-top: 1px solid var(--ink-700);
  border-bottom: 1px solid var(--ink-700);
}

.footer-column {
  min-width: 0;
}

.footer-column--contact {
  padding-left: 22px;
  border-left: 1px solid var(--ink-700);
}

.footer-column__title {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan-400);
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
  list-style: none;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-hi);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  background-image: linear-gradient(var(--cyan-400), var(--cyan-400));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color 160ms var(--ease-out), background-size 180ms var(--ease-out);
}

.footer-link:hover {
  color: var(--cyan-400);
  background-size: 100% 1px;
}

.footer-contact-line {
  margin-top: 13px;
  color: var(--text-lo);
  font-size: 11px;
  line-height: 1.65;
}

.footer-contact-value {
  color: var(--text-hi);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  word-break: break-word;
}

.footer-base {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  color: var(--text-lo);
  font-size: 11px;
  line-height: 1.7;
}

.footer-note {
  max-width: 42em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-align: right;
}

.footer-legal__icp,
.footer-legal__copy {
  white-space: nowrap;
}

.site-main {
  display: block;
  min-height: 60vh;
}

.content-shell {
  width: min(var(--content-max), calc(100% - clamp(32px, 6vw, 80px)));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 112px);
}

.section--tight {
  padding-block: clamp(28px, 4vw, 56px);
}

.section--paper {
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  border-radius: 36px 8px 44px 8px;
  background: var(--paper-100);
  color: #152033;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.section--paper .eyebrow {
  color: #087d73;
}

.section--paper .lede,
.section--paper .body-copy {
  color: #435166;
}

.section--paper .section-title,
.section--paper strong {
  color: #111b2b;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--cyan-400);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.display-title {
  max-width: 12em;
  font-family: var(--font-sans);
  font-size: clamp(54px, 10vw, 128px);
  line-height: 0.95;
  font-weight: 900;
  font-stretch: 87.5%;
  letter-spacing: -0.055em;
  color: var(--text-hi);
}

.section-title {
  max-width: 14em;
  font-family: var(--font-sans);
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.02;
  font-weight: 900;
  font-stretch: 90%;
  letter-spacing: -0.035em;
  color: var(--text-hi);
}

.lede {
  max-width: 35em;
  color: var(--text-lo);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
}

.body-copy {
  max-width: 38em;
  color: var(--text-lo);
  font-size: 17px;
  line-height: 1.85;
}

.body-copy strong {
  color: var(--text-hi);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

.grid--split {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
}

.grid--12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--ink-700);
  border-radius: 2px 28px 2px 28px;
  background: rgba(19, 28, 46, 0.9);
  color: var(--text-hi);
}

.panel--ink {
  background:
    linear-gradient(145deg, rgba(55, 230, 208, 0.055), transparent 45%),
    rgba(19, 28, 46, 0.86);
  backdrop-filter: blur(8px);
}

.panel--paper {
  border-color: var(--paper-300);
  background: var(--paper-100);
  color: #152033;
}

.panel--paper .eyebrow {
  color: #087d73;
}

.panel--paper .body-copy,
.panel--paper .lede {
  color: #435166;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--ink-700);
  border-radius: 2px 24px 2px 24px;
  background:
    linear-gradient(145deg, rgba(55, 230, 208, 0.055), transparent 38%),
    linear-gradient(180deg, rgba(19, 28, 46, 0.98), rgba(19, 28, 46, 0.76));
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.card:hover {
  border-color: rgba(55, 230, 208, 0.48);
  transform: translateY(-2px);
}

.card--skew {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.card--skew::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 42px;
  height: 1px;
  background: var(--orange-500);
  transform: rotate(-45deg);
  transform-origin: right center;
}

.number-index {
  font-family: var(--font-mono);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: var(--orange-500);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag--amber {
  background: rgba(255, 176, 58, 0.1);
  color: var(--amber-400);
}

.tag--cyan {
  background: rgba(55, 230, 208, 0.1);
  color: var(--cyan-400);
}

.tag--green {
  background: linear-gradient(90deg, rgba(18, 169, 155, 0.18), rgba(111, 227, 176, 0.1));
  color: var(--green-300);
}

.tag--orange {
  background: rgba(255, 107, 44, 0.1);
  color: var(--orange-500);
}

.version-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-left: 8px;
  border-left: 1px solid var(--ink-700);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(96px, 130px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 30px);
  padding: 22px 0 22px 28px;
  border-bottom: 1px solid var(--ink-700);
}

.timeline-item__node {
  position: absolute;
  top: 31px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(255, 176, 58, 0.1);
}

.timeline-item__date {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--cyan-400);
}

.timeline-item__body {
  min-width: 0;
  color: var(--text-lo);
  font-size: 15px;
  line-height: 1.8;
}

.timeline-item__body strong {
  color: var(--text-hi);
}

.status-panel {
  display: grid;
  gap: 0;
  padding: 16px 18px;
  border: 1px solid var(--ink-700);
  border-radius: 0 24px 0 24px;
  background: rgba(11, 18, 32, 0.62);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--ink-700);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-lo);
}

.status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(55, 230, 208, 0.1), 0 0 14px rgba(55, 230, 208, 0.42);
}

.status-label {
  color: var(--text-hi);
}

.config-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-lo);
  font-size: 13px;
  line-height: 1.7;
}

.config-table th,
.config-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink-700);
  text-align: left;
  vertical-align: top;
}

.config-table th {
  color: var(--text-hi);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.config-table td:last-child {
  color: var(--green-300);
  font-family: var(--font-mono);
  font-size: 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--ink-700);
  border-bottom: 1px solid var(--ink-700);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ink-700);
  border-radius: 999px;
  background: transparent;
  color: var(--text-lo);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: color 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.chip:hover,
.chip[aria-pressed="true"] {
  border-color: var(--cyan-400);
  background: var(--cyan-400);
  color: var(--ink-900);
}

.accordion {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink-700);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 56px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--ink-700);
  background: transparent;
  color: var(--text-hi);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.accordion__trigger::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--orange-500);
}

.accordion__trigger[aria-expanded="true"]::after {
  content: "−";
}

.accordion__panel {
  padding: 16px 0 22px;
  border-bottom: 1px solid var(--ink-700);
  color: var(--text-lo);
  font-size: 15px;
  line-height: 1.85;
}

.breadcrumbs {
  padding-top: 22px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--text-lo);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--ink-700);
}

.breadcrumbs__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-lo);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--cyan-400);
}

.media-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--ink-700);
  border-radius: 4px 36px 4px 36px;
  background:
    radial-gradient(circle at 72% 28%, rgba(55, 230, 208, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(55, 230, 208, 0.08), transparent 40%),
    repeating-linear-gradient(90deg, rgba(30, 42, 64, 0.24) 0 1px, transparent 1px 44px),
    linear-gradient(150deg, #111a2b, #0a101c);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(55, 230, 208, 0.14);
  border-radius: 2px 24px 2px 24px;
  transform: skewX(-6deg);
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(11, 18, 32, 0.82));
  pointer-events: none;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--portrait {
  aspect-ratio: 4 / 5;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(16px, 3vw, 28px);
  color: var(--text-hi);
}

.media-frame__caption {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--cyan-400);
  text-transform: uppercase;
}

.reveal {
  --reveal-delay: 0ms;
}

html.js-motion .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay);
}

html.js-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-column--contact {
    padding-left: 0;
    border-left: 0;
  }

  .grid--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 860px) {
  body {
    padding-left: 0;
    padding-top: 64px;
  }

  .skip-link {
    top: 8px;
    left: 12px;
  }

  .site-header {
    inset: 0 0 auto 0;
    width: 100%;
    height: 64px;
    border-right: 0;
    border-bottom: 1px solid var(--ink-700);
    background: rgba(11, 18, 32, 0.94);
    backdrop-filter: blur(14px);
  }

  .rail-progress {
    top: auto;
    right: 0;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
  }

  .rail-progress__bar {
    width: 100%;
    height: 100%;
    transform: scaleX(var(--scroll-progress));
    transform-origin: left center;
    background: linear-gradient(90deg, var(--orange-500), var(--cyan-400));
  }

  .rail-shell {
    display: block;
    height: 64px;
  }

  .rail-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 64px;
    padding: 0 16px;
    border-bottom: 0;
  }

  .rail-brand {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .rail-brand__mark {
    writing-mode: horizontal-tb;
    font-size: 20px;
    letter-spacing: -0.03em;
  }

  .rail-brand__sub {
    writing-mode: horizontal-tb;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .rail-bar__meta {
    display: inline-flex;
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    color: var(--text-lo);
    white-space: nowrap;
  }

  .nav-toggle {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 56px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ink-700);
    border-radius: 2px 12px 2px 12px;
    background: rgba(19, 28, 46, 0.72);
    color: var(--text-hi);
    cursor: pointer;
  }

  .nav-toggle__line {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--cyan-400);
    transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
  }

  .nav-toggle__text {
    font-family: var(--font-mono);
    font-size: 8px;
    line-height: 1;
    letter-spacing: 0.12em;
    color: var(--text-lo);
  }

  .site-header[data-open="true"] .nav-toggle__line:first-child {
    transform: translateY(2.5px) rotate(45deg);
  }

  .site-header[data-open="true"] .nav-toggle__line:nth-child(2) {
    transform: translateY(-2.5px) rotate(-45deg);
  }

  .site-header[data-open="true"]::after {
    content: "";
    position: fixed;
    inset: 64px 0 0;
    z-index: 1;
    background: rgba(2, 7, 15, 0.68);
    backdrop-filter: blur(2px);
  }

  .rail-drawer {
    position: fixed;
    top: 64px;
    left: 0;
    z-index: 2;
    width: min(88vw, 380px);
    height: calc(100dvh - 64px);
    gap: 22px;
    padding: 24px;
    overflow-y: auto;
    border-right: 1px solid var(--ink-700);
    background:
      linear-gradient(145deg, rgba(55, 230, 208, 0.055), transparent 36%),
      linear-gradient(180deg, rgba(19, 28, 46, 0.99), rgba(11, 18, 32, 0.99));
    box-shadow: 24px 0 80px rgba(0, 0, 0, 0.5);
    transform: translateX(-105%);
    transition: transform 260ms var(--ease-out);
  }

  .site-header[data-open="true"] .rail-drawer {
    transform: translateX(0);
  }

  .rail-heading {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
  }

  .rail-heading__label {
    writing-mode: horizontal-tb;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .rail-ticks {
    display: none;
  }

  .rail-nav {
    gap: 0;
    width: 100%;
  }

  .rail-nav__link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 13px 8px;
    border-left: 0;
    border-bottom: 1px solid var(--ink-700);
    font-size: 15px;
  }

  .rail-nav__link::before {
    width: 26px;
    margin-bottom: 0;
    font-size: 10px;
  }

  .rail-nav__link[aria-current="page"] {
    border-left: 0;
    background: linear-gradient(90deg, rgba(55, 230, 208, 0.13), rgba(55, 230, 208, 0));
  }

  .rail-actions {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .rail-actions__primary,
  .rail-actions__secondary {
    flex: 1 1 140px;
    width: auto;
    min-height: 48px;
    padding: 13px 10px;
    font-size: 12px;
  }

  .rail-search-trigger {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 12px 14px;
  }

  .rail-search-trigger__label {
    font-size: 12px;
  }

  .rail-search-trigger__hint {
    font-size: 9px;
    text-align: right;
  }

  .rail-footnote {
    text-align: left;
  }

  .search-panel {
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 96px);
    padding: 20px;
    overflow-y: auto;
  }

  .footer-rail,
  .footer-inner {
    width: min(var(--content-max), calc(100% - 32px));
  }

  .footer-masthead {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .footer-status {
    width: 100%;
    max-width: 360px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
  }

  .footer-column--contact {
    grid-column: span 2;
    padding-top: 18px;
    border-top: 1px solid var(--ink-700);
  }

  .footer-base {
    flex-direction: column;
    gap: 14px;
  }

  .footer-legal {
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
  }

  .grid--12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 6;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-left: 24px;
  }

  .timeline-item__node {
    top: 29px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .display-title {
    font-size: clamp(46px, 16vw, 84px);
  }

  .section-title {
    font-size: clamp(28px, 10vw, 44px);
  }

  .content-shell {
    width: calc(100% - 32px);
  }

  .section {
    padding-block: 48px;
  }

  .section--paper {
    padding-inline: 18px;
    border-radius: 24px 4px 30px 4px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-column--contact {
    grid-column: auto;
  }

  .footer-brand__mark {
    font-size: clamp(42px, 14vw, 64px);
  }

  .footer-status__year {
    margin-left: 0;
  }

  .grid--12 {
    grid-template-columns: minmax(0, 1fr);
  }

  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 1;
  }

  .search-panel__head {
    align-items: flex-start;
  }

  .search-result__link {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .search-result__meta {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.js-motion .reveal {
    opacity: 1;
    transform: none;
  }

  .rail-progress__bar {
    transition: none;
  }
}
