:root {
  --bg: #070D1A;
  --panel: #0E1A30;
  --line: #16294A;
  --grid: #24406E;
  --ink: #F5F7FA;
  --muted: #9FB0C8;
  --orange: #FF6A2A;
  --mint: #2BE3A7;
  --yellow: #FFD166;
  --red: #FF4D6D;
  --rail-w: 88px;
  --maxw: 1440px;
  --gutter: clamp(18px, 3.4vw, 48px);
  --shadow-hard: 6px 6px 0 #020812;
  --shadow-hard-lg: 9px 9px 0 #020812;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-left: var(--rail-w);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(36, 64, 110, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 64, 110, .12) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

::selection {
  background: var(--orange);
  color: var(--bg);
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: calc(var(--rail-w) + 12px);
  z-index: 600;
  padding: 12px 18px;
  background: var(--orange);
  color: var(--bg);
  font-weight: 900;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 #020812;
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}

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

.site-header {
  position: relative;
  z-index: 150;
}

.brand-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 220;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 0 18px;
  background: linear-gradient(180deg, rgba(14, 26, 48, .97), rgba(7, 13, 26, .97));
  border-right: 2px solid var(--line);
}

.rail-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--orange);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 4px 4px 0 #020812;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}

.rail-mark:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #020812;
}

.rail-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--grid);
}

.rail-initials {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.14em;
  text-align: center;
}

.rail-version {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--mint);
  box-shadow: 0 0 0 2px rgba(43, 227, 167, .18), 0 0 12px rgba(43, 227, 167, .7);
}

.rail-progress {
  position: relative;
  flex: 1;
  width: 2px;
  min-height: 80px;
  margin: 8px 0;
  background: var(--grid);
  overflow: hidden;
}

.rail-progress-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--orange), var(--mint));
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
  transition: transform .12s linear;
}

.rail-top {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--grid);
  background: var(--panel);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 4px 4px 0 #020812;
  transition: transform .15s var(--ease), border-color .15s var(--ease);
}

.rail-top:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  color: var(--orange);
}

.header-shell {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  border-bottom: 1px solid var(--grid);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.status-item:first-child {
  color: var(--ink);
}

.status-lamp {
  width: 6px;
  height: 6px;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.status-link {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.status-link:hover {
  color: var(--yellow);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 22px 26px;
  border-bottom: 2px solid var(--line);
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  min-width: max-content;
  text-decoration: none;
}

.brand-wordmark {
  color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.06em;
}

.brand-tagline {
  margin-top: 8px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 2px 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .15s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
}

.nav-link:hover::after {
  transform: scaleX(.45);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link[aria-current="page"]::after {
  right: auto;
  width: 24px;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 4px 4px 0 #020812;
  position: relative;
  z-index: 320;
}

.nav-toggle-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: background .15s var(--ease);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .15s var(--ease), top .15s var(--ease);
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.shell {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(46px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.display-title {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}

.lede {
  max-width: 46ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.75;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 2px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-lg);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #020812;
}

.btn--primary {
  background: var(--orange);
  color: var(--bg);
  border-color: var(--orange);
}

.btn--primary:hover {
  color: var(--bg);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--grid);
}

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

.breadcrumbs {
  padding-top: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--grid);
}

.breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb-link:hover {
  color: var(--orange);
  border-color: currentColor;
}

.content {
  width: min(760px, 100%);
}

.prose {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
}

.prose p {
  max-width: 46em;
  margin: 0 0 1.2em;
}

.prose h2,
.prose h3 {
  margin: 1.6em 0 .55em;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.prose h3 {
  font-size: 1.15rem;
  color: var(--mint);
}

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

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

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

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

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

.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-hard);
  padding: clamp(20px, 3vw, 32px);
}

.data-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(145deg, rgba(14, 26, 48, .98), rgba(7, 13, 26, .98));
  border: 2px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.data-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--mint));
}

.stat-number {
  display: block;
  color: var(--mint);
  font-family: var(--mono);
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tag--orange {
  color: var(--orange);
}

.tag--mint {
  color: var(--mint);
}

.tag--yellow {
  color: var(--yellow);
}

.tag--red {
  color: var(--red);
}

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch;
  min-height: clamp(520px, 68vh, 760px);
  border-bottom: 2px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 84px) clamp(24px, 4vw, 64px);
  background: linear-gradient(135deg, rgba(22, 41, 74, .55), transparent 60%);
}

.hero-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-left: 2px solid var(--line);
  background-color: var(--panel);
  background-image:
    linear-gradient(rgba(36, 64, 110, .26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 64, 110, .26) 1px, transparent 1px);
  background-size: 32px 32px;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.dashboard-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(7, 13, 26, .82);
  border: 2px solid var(--grid);
  box-shadow: var(--shadow-hard);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--grid);
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 26px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -7px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--orange);
}

.timeline-time {
  display: block;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  padding: 8px 12px;
  border: 1px solid var(--grid);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}

.filter-tab:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.filter-tab[aria-pressed="true"] {
  color: var(--bg);
  background: var(--orange);
  border-color: var(--orange);
}

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-hard);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.data-table th {
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  background: #0A1527;
  color: var(--mint);
  font-size: 10px;
  letter-spacing: .1em;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.data-table tbody tr:hover {
  background: rgba(43, 227, 167, .06);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.chapter-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
}

.chapter-link {
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--grid);
  color: var(--muted);
  text-decoration: none;
}

.chapter-link:hover {
  color: var(--ink);
}

.chapter-link[aria-current="true"] {
  color: var(--mint);
  border-color: var(--mint);
}

.section-index {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(14, 26, 48, .7);
}

.index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}

.index-link:hover {
  color: var(--ink);
  background: rgba(255, 106, 42, .08);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 2px solid var(--line);
  background-color: var(--panel);
  background-image:
    linear-gradient(rgba(36, 64, 110, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 64, 110, .18) 1px, transparent 1px);
  background-size: 28px 28px;
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 55%, rgba(255, 106, 42, .1));
}

.media-frame--slant {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.media-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.copy-button {
  padding: 4px 8px;
  border: 1px solid var(--grid);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}

.copy-button.is-copied {
  border-color: var(--mint);
  color: var(--mint);
}

.copy-status {
  min-height: 1.4em;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
}

.site-footer {
  position: relative;
  z-index: 10;
  border-top: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 26, 48, .72), var(--bg) 42%);
}

.footer-shell {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1.7fr) minmax(250px, .9fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(48px, 7vw, 88px) 0 44px;
}

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

.footer-wordmark {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.07em;
  text-decoration: none;
}

.footer-wordmark:hover {
  color: var(--orange);
}

.footer-signature {
  margin: 16px 0 0;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.footer-closing {
  max-width: 32ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
  padding-left: clamp(18px, 3vw, 32px);
  border-left: 1px solid var(--grid);
}

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

.footer-col-title {
  margin: 0 0 12px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

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

.footer-link {
  display: inline-block;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}

.footer-link:hover {
  color: var(--ink);
  border-color: var(--orange);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: clamp(18px, 3vw, 32px);
  border-left: 1px solid var(--grid);
}

.contact-line {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.contact-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
}

.contact-value {
  overflow-wrap: anywhere;
}

.contact-note {
  margin: 6px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}

.legal-link {
  border-bottom: 1px solid var(--grid);
  color: var(--muted);
  text-decoration: none;
}

.legal-link:hover {
  color: var(--orange);
  border-color: currentColor;
}

.footer-note {
  margin: 0;
  text-align: right;
}

@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.4fr);
  }

  .footer-contact {
    grid-column: 1 / -1;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 1080px) {
  .nav-list {
    gap: 10px;
  }

  .nav-link {
    font-size: 13px;
  }

  .brand-wordmark {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
  }
}

@media (max-width: 900px) {
  :root {
    --rail-w: 0px;
  }

  body {
    padding-left: 0;
    padding-bottom: 64px;
    background-size: 32px 32px;
  }

  .skip-link {
    left: 12px;
  }

  .brand-rail {
    inset: auto 0 0 0;
    width: auto;
    height: 64px;
    flex-direction: row;
    gap: 12px;
    padding: 8px 14px;
    border-top: 2px solid var(--line);
    border-right: 0;
    z-index: 260;
  }

  .rail-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  .rail-glyph {
    width: 30px;
    height: 30px;
  }

  .rail-initials {
    font-size: 13px;
  }

  .rail-version {
    flex-direction: row;
    gap: 6px;
    font-size: 10px;
  }

  .rail-progress {
    flex: 1;
    width: auto;
    height: 3px;
    min-height: 0;
    margin: 0 10px;
  }

  .rail-progress-fill {
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
  }

  .rail-top {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }

  .header-shell {
    padding-inline: 18px;
  }

  .status-strip {
    gap: 8px;
    font-size: 10px;
  }

  .status-strip .status-item:nth-child(2) {
    display: none;
  }

  .header-main {
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-block: 16px 18px;
  }

  .brand-wordmark {
    font-size: clamp(2rem, 8.4vw, 3rem);
  }

  .brand-tagline {
    margin-top: 5px;
    font-size: 9px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 300;
    width: min(86vw, 380px);
    padding: clamp(78px, 16vh, 120px) 24px 84px;
    background: var(--panel);
    border-left: 2px solid var(--line);
    box-shadow: -10px 0 0 #020812;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .22s var(--ease), visibility .22s;
  }

  .primary-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--grid);
  }

  .nav-item {
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    display: block;
    padding: 18px 0;
    font-size: clamp(1.35rem, 5vw, 1.9rem);
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--muted);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    color: var(--orange);
  }

  .split-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
    border-top: 2px solid var(--line);
    border-left: 0;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  }

  .grid-12 {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-5,
  .span-7,
  .span-8 {
    grid-column: auto;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .footer-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-contact {
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .footer-meta {
    align-items: flex-start;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .status-strip {
    justify-content: flex-start;
  }

  .status-link {
    margin-left: auto;
  }

  .status-item {
    white-space: normal;
  }

  .header-main {
    gap: 10px;
  }

  .brand-lockup {
    max-width: calc(100% - 74px);
  }

  .nav-toggle {
    padding: 9px 10px;
  }

  .nav-toggle-label {
    display: none;
  }

  .footer-index {
    grid-template-columns: 1fr;
  }

  .footer-wordmark {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }

  .btn-group {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .footer-meta {
    font-size: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .rail-progress-fill {
    transition: none;
  }
}
