:root {
  color-scheme: dark;
  --ink: #080b0e;
  --ink-soft: #11161b;
  --panel: #151b20;
  --paper: #f1f0eb;
  --paper-muted: #b9bec1;
  --line: rgba(255, 255, 255, 0.16);
  --cyan: #26c8ff;
  --amber: #f4ad3f;
  --violet: #ad7cff;
  --coral: #ff5b55;
  --green: #62d29b;
  --header-height: 68px;
  --body-font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --display-font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body-font);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.14;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 4px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 14, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 15px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 76% 100%, 0 100%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #d6d8d7;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 24px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 17px;
  height: 2px;
  background: var(--coral);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: white;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 84svh;
  max-height: 920px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #070a0d;
}

.hero-media,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: contain;
  object-position: center;
  filter: none;
}

.hero-shade {
  display: none;
}

.hero-grid {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 84px));
  margin: 0 0 112px 42px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.dossier-copy h1 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 900;
  line-height: 1.02;
  word-break: keep-all;
}

.hero h1 {
  max-width: 760px;
  font-size: 78px;
}

.hero-summary {
  max-width: 610px;
  margin: 24px 0 0;
  color: #d6d9da;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,0.34);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--coral);
  background: var(--coral);
  color: #090c0f;
}

.button-ghost {
  background: rgba(8, 11, 14, 0.42);
}

.hero-status {
  position: absolute;
  z-index: 3;
  inset: auto 0 0 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-left: 42px;
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 14, 0.78);
}

.hero-status div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
  border-right: 1px solid var(--line);
}

.hero-status span {
  color: #8e969a;
  font-size: 10px;
  font-weight: 800;
}

.hero-status strong {
  font-family: var(--display-font);
  font-size: 24px;
}

.section {
  position: relative;
  padding: 104px 42px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  column-gap: 64px;
  align-items: end;
  max-width: 1420px;
  margin: 0 auto 46px;
}

.section-heading .kicker {
  grid-column: 1 / -1;
}

.section-heading h2 {
  font-size: 58px;
  color: #090c0f;
}

.section-heading > p:last-child {
  margin: 0;
  color: #596167;
  font-size: 16px;
  line-height: 1.65;
}

.team-section,
.console-section {
  color: #090c0f;
  background: var(--paper);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1420px;
  margin: 0 auto;
}

.agent-card {
  --agent-accent: var(--cyan);
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: white;
  background: #10151a;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 2px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 300ms ease, opacity 300ms ease;
}

.agent-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.agent-card:nth-child(2) { transition-delay: 70ms; }
.agent-card:nth-child(3) { transition-delay: 140ms; }
.agent-card:nth-child(4) { transition-delay: 210ms; }
.agent-amber { --agent-accent: var(--amber); }
.agent-violet { --agent-accent: var(--violet); }
.agent-coral { --agent-accent: var(--coral); }

.agent-card img,
.agent-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.agent-card img {
  object-fit: cover;
  object-position: center top;
  transition: transform 450ms ease, filter 450ms ease;
}

.agent-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.12);
}

.agent-card-shade {
  background: linear-gradient(0deg, rgba(5,8,11,0.98) 0%, rgba(5,8,11,0.6) 34%, transparent 66%);
}

.agent-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--agent-accent);
  font-family: var(--display-font);
  font-size: 24px;
}

.agent-card-copy {
  position: absolute;
  z-index: 2;
  inset: auto 24px 24px;
}

.agent-card-copy p {
  margin: 0 0 8px;
  color: var(--agent-accent);
  font-size: 11px;
  font-weight: 900;
}

.agent-card-copy h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 32px;
  font-weight: 900;
}

.agent-card-copy > span {
  min-height: 44px;
  display: block;
  margin: 12px 0 18px;
  color: #bfc5c8;
  font-size: 13px;
  line-height: 1.55;
}

.agent-card-copy a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.22);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.agent-card-copy a b {
  color: var(--agent-accent);
  font-size: 20px;
}

.flow-section {
  overflow: hidden;
  background: #0d1216;
}

.flow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 90px 90px;
}

.section-heading-light h2 {
  color: var(--paper);
}

.source-band {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  max-width: 1420px;
  margin: 0 auto 26px;
  border: 1px solid var(--line);
}

.source-band span {
  padding: 14px 8px;
  border-right: 1px solid var(--line);
  color: #aeb5b8;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.source-band span:last-child {
  border-right: 0;
}

.flow-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1420px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-line li {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-right: 1px solid var(--line);
  opacity: 1;
  transform: translateX(0);
  transition: opacity 450ms ease, transform 450ms ease, background 250ms ease;
}

.flow-line li.in-view {
  opacity: 1;
  transform: translateX(0);
}

.flow-line li:last-child { border-right: 0; }
.flow-line li:hover { background: rgba(255,255,255,0.035); }
.flow-line li[data-accent="cyan"] b { color: var(--cyan); }
.flow-line li[data-accent="amber"] b { color: var(--amber); }
.flow-line li[data-accent="violet"] b { color: var(--violet); }
.flow-line li[data-accent="coral"] b { color: var(--coral); }

.flow-line b {
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 900;
}

.flow-line span {
  color: #aeb5b8;
  font-size: 13px;
  line-height: 1.55;
}

.boundary-statement {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  max-width: 1420px;
  margin: 26px auto 0;
  padding: 22px 26px;
  color: #090c0f;
  background: var(--coral);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.boundary-statement p,
.boundary-statement strong {
  margin: 0;
}

.boundary-statement p {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 900;
}

.boundary-statement strong {
  font-size: 14px;
}

.mission-console {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  max-width: 1420px;
  margin: 0 auto;
  border: 1px solid #c4c5c0;
  background: #e7e6df;
}

.scan-section {
  color: #f1f2ef;
  background: #0c1115;
}

.scan-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1420px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.scan-metrics article {
  min-height: 230px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scan-metrics span,
.scan-metrics p,
.scan-priorities em {
  color: #9ea6aa;
}

.scan-metrics span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.scan-metrics strong {
  display: block;
  margin: 24px 0 18px;
  color: var(--cyan);
  font-family: var(--display-font);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
}

.scan-metrics p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.scan-priorities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1420px;
  margin: 28px auto 0;
  border: 1px solid var(--line);
}

.scan-priorities div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px 12px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.scan-priorities div:last-child { border-right: 0; }
.scan-priorities b { color: var(--coral); font-size: 13px; }
.scan-priorities span { font-weight: 800; line-height: 1.45; }
.scan-priorities em { grid-column: 2; font-size: 12px; font-style: normal; line-height: 1.5; }

.console-controls,
.console-output {
  padding: 34px;
}

.console-controls {
  border-right: 1px solid #c4c5c0;
}

fieldset {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: #596167;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #aeb1ae;
}

.segment button {
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-right: 1px solid #aeb1ae;
  color: #333a3e;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.segment button:last-child { border-right: 0; }
.segment button.active { color: white; background: #11161b; }

.video-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333a3e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.video-toggle input {
  position: absolute;
  opacity: 0;
}

.video-toggle span {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid #858b8c;
  background: #d6d5ce;
}

.video-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #596167;
  transition: left 160ms ease, background 160ms ease;
}

.video-toggle input:checked + span::after {
  left: 23px;
  background: var(--coral);
}

.console-output {
  min-height: 390px;
  color: white;
  background: #11161b;
}

.console-label {
  margin: 0 0 10px;
  color: #8e969a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

#mission-state {
  display: block;
  color: var(--green);
  font-family: var(--display-font);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.08;
}

#mission-state.state-blocked,
#mission-state.state-hold { color: var(--coral); }
#mission-state.state-amber { color: var(--amber); }
#mission-state.state-check { color: var(--cyan); }

#mission-reason {
  max-width: 620px;
  margin: 18px 0 30px;
  color: #bec3c5;
  font-size: 15px;
  line-height: 1.6;
}

.route-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-display span {
  white-space: nowrap;
  color: #d9dcdd;
  font-size: 10px;
  font-weight: 900;
}

.route-display i {
  width: 100%;
  height: 1px;
  background: #475057;
}

.next-action {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  margin: 26px 0 0;
}

.next-action span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
}

.next-action b {
  color: #f0f1ef;
  font-size: 13px;
  line-height: 1.55;
}

.site-footer {
  min-height: 170px;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 36px;
  padding: 42px;
  border-top: 1px solid var(--line);
  background: #080b0e;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer p {
  color: #899196;
  font-size: 12px;
}

.site-footer > a {
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

/* Agent dossiers */
.dossier-body {
  --agent-accent: var(--cyan);
}

.dossier-body.agent-amber-page { --agent-accent: var(--amber); }
.dossier-body.agent-violet-page { --agent-accent: var(--violet); }
.dossier-body.agent-coral-page { --agent-accent: var(--coral); }

.dossier-hero {
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(430px, 0.95fr) minmax(0, 1.05fr);
  padding-top: var(--header-height);
  border-bottom: 1px solid var(--line);
}

.dossier-portrait {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.dossier-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.dossier-portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(0deg, rgba(8,11,14,0.9), transparent);
}

.dossier-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 7vw;
  background: #0d1216;
}

.dossier-index {
  color: var(--agent-accent);
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 900;
}

.dossier-copy h1 {
  margin-top: 18px;
  font-size: 68px;
}

.dossier-role {
  margin: 12px 0 0;
  color: var(--agent-accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.dossier-lead {
  max-width: 660px;
  margin: 30px 0;
  color: #c3c8ca;
  font-size: 19px;
  line-height: 1.65;
}

.dossier-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dossier-meta div {
  min-height: 88px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.dossier-meta div:last-child { border-right: 0; }
.dossier-meta span { display: block; color: #737d82; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.dossier-meta strong { display: block; margin-top: 10px; color: #eef0ef; font-size: 13px; }

.dossier-section {
  padding: 94px 42px;
  color: #090c0f;
  background: var(--paper);
}

.dossier-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 70px;
  max-width: 1260px;
  margin: 0 auto;
}

.dossier-aside {
  position: sticky;
  top: 104px;
  align-self: start;
}

.dossier-aside p {
  margin: 0 0 12px;
  color: var(--agent-accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dossier-aside h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.18;
}

.dossier-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid #c8c8c1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

.dossier-block.in-view { opacity: 1; transform: translateY(0); }

.dossier-block > span {
  color: #737b7f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dossier-block h3 {
  margin: 0 0 12px;
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 900;
}

.dossier-block p,
.dossier-block li {
  color: #4c5559;
  font-size: 15px;
  line-height: 1.7;
}

.dossier-block p { margin: 0; }
.dossier-block ul { margin: 0; padding-left: 18px; }

.handoff-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1260px;
  margin: 50px auto 0;
  border: 1px solid #c8c8c1;
}

.handoff-strip span {
  position: relative;
  padding: 18px 12px;
  border-right: 1px solid #c8c8c1;
  color: #656e72;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.handoff-strip span:last-child { border-right: 0; }
.handoff-strip .current { color: #090c0f; background: var(--agent-accent); }

.agent-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.agent-nav a {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 30px;
  border-right: 1px solid var(--line);
  background: #0d1216;
}

.agent-nav a:last-child { border-right: 0; }
.agent-nav span { color: #727b80; font-size: 10px; font-weight: 900; }
.agent-nav strong { margin-top: 8px; font-size: 15px; text-transform: uppercase; }
.agent-nav a:hover strong { color: var(--coral); }

@media (max-width: 1120px) {
  .hero h1 { font-size: 66px; }
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-card { min-height: 680px; }
  .flow-line { grid-template-columns: repeat(2, 1fr); }
  .flow-line li:nth-child(2n) { border-right: 0; }
  .flow-line li:last-child { grid-column: 1 / -1; }
  .scan-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dossier-hero { grid-template-columns: minmax(380px, 0.85fr) 1fr; }
  .dossier-copy h1 { font-size: 56px; }
}

@media (max-width: 820px) {
  :root { --header-height: 60px; }
  .site-header { padding: 0 20px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: var(--header-height) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #0b0f12;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .hero { min-height: 760px; max-height: none; padding-top: var(--header-height); }
  .hero-media {
    inset: var(--header-height) 0 auto;
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: center top;
  }
  .hero-grid { display: none; }
  .hero-copy { width: calc(100% - 40px); margin: 0 20px 116px; }
  .hero h1 { font-size: 48px; }
  .hero-summary { font-size: 15px; }
  .hero-status { margin-left: 0; min-height: 68px; }
  .hero-status div { padding: 0 12px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
  .hero-status strong { font-size: 17px; }
  .section { padding: 76px 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  .section-heading h2 { font-size: 42px; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-card { min-height: 680px; }
  .source-band { grid-template-columns: repeat(4, 1fr); }
  .source-band span:nth-child(4n) { border-right: 0; }
  .source-band span:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .flow-line { grid-template-columns: 1fr; }
  .flow-line li,
  .flow-line li:nth-child(2n) { min-height: 130px; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-line li:last-child { grid-column: auto; border-bottom: 0; }
  .boundary-statement { grid-template-columns: 1fr; gap: 10px; }
  .scan-metrics,
  .scan-priorities { grid-template-columns: 1fr; }
  .scan-priorities div { border-right: 0; border-bottom: 1px solid var(--line); }
  .scan-priorities div:last-child { border-bottom: 0; }
  .mission-console { grid-template-columns: 1fr; }
  .console-controls { border-right: 0; border-bottom: 1px solid #c4c5c0; }
  .console-controls, .console-output { padding: 26px 20px; }
  #mission-state { font-size: 38px; }
  .route-display { overflow-x: auto; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; padding: 38px 20px; }
  .dossier-hero { grid-template-columns: 1fr; }
  .dossier-portrait { min-height: 67svh; border-right: 0; border-bottom: 1px solid var(--line); }
  .dossier-copy { padding: 52px 20px 66px; }
  .dossier-copy h1 { font-size: 48px; }
  .dossier-lead { font-size: 16px; }
  .dossier-section { padding: 70px 20px; }
  .dossier-layout { grid-template-columns: 1fr; gap: 36px; }
  .dossier-aside { position: static; }
  .dossier-block { grid-template-columns: 1fr; gap: 10px; }
  .handoff-strip { grid-template-columns: 1fr; }
  .handoff-strip span { border-right: 0; border-bottom: 1px solid #c8c8c1; }
  .handoff-strip span:last-child { border-bottom: 0; }
  .agent-nav { grid-template-columns: repeat(2, 1fr); }
  .agent-nav a:nth-child(2n) { border-right: 0; }
  .agent-nav a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero h1 { font-size: 40px; }
  .hero-status span { font-size: 8px; }
  .hero-status strong { font-size: 14px; }
  .section-heading h2 { font-size: 36px; }
  .agent-card { min-height: 610px; }
  .segment { grid-template-columns: 1fr; }
  .segment button { border-right: 0; border-bottom: 1px solid #aeb1ae; }
  .segment button:last-child { border-bottom: 0; }
  .dossier-meta { grid-template-columns: 1fr; }
  .dossier-meta div { min-height: 68px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dossier-meta div:last-child { border-bottom: 0; }
  .agent-nav { grid-template-columns: 1fr; }
  .agent-nav a { border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-nav a:last-child { border-bottom: 0; }
}

@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; }
}
