:root {
  color-scheme: dark;
  --bg: #030508;
  --bg-deep: #010204;
  --surface: rgba(7, 11, 17, 0.74);
  --surface-solid: #070b11;
  --ink: #f1f4f5;
  --muted: #989fa9;
  --dim: #656d78;
  --line: rgba(207, 222, 240, 0.16);
  --line-strong: rgba(219, 232, 245, 0.32);
  --cyan: #2dd8ff;
  --violet: #8f74ff;
  --magenta: #dc52d5;
  --amber: #ffad1f;
  --max: 1440px;
  --gutter: clamp(24px, 4vw, 66px);
  --sans: Inter, "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  font-synthesis: none;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--bg); }
body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 22%, rgba(76, 52, 146, 0.08), transparent 32%),
    radial-gradient(circle at 28% 12%, rgba(35, 148, 178, 0.07), transparent 29%),
    linear-gradient(180deg, #030508, #010204 62%, #04060a);
}
body::after {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(187, 208, 229, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(187, 208, 229, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { padding: 0; border: 0; cursor: pointer; }
svg { display: block; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(2, 4, 7, 0.86);
  backdrop-filter: blur(20px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.brand span { color: var(--muted); margin: 0 0.04em; }
.site-header > .brand::after {
  width: 1px;
  height: 28px;
  margin-left: 28px;
  background: var(--line);
  content: "";
}

.site-header nav { display: flex; align-items: stretch; gap: clamp(24px, 3vw, 48px); }
.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c7cbd2;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.site-header nav a:not(.nav-action)::after {
  position: absolute;
  right: 50%;
  bottom: -14px;
  left: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  content: "";
  transition: right 180ms ease, left 180ms ease;
}
.site-header nav a:hover::after,
.site-header nav a:focus-visible::after { right: 0; left: 0; }
.site-header nav .nav-action {
  min-width: 158px;
  justify-content: center;
  border: 1px solid var(--line-strong);
  transition: border-color 180ms ease, background 180ms ease;
}
.site-header nav .nav-action:hover { border-color: rgba(45, 216, 255, 0.55); background: rgba(45, 216, 255, 0.045); }

.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(470px, 0.9fr) minmax(620px, 1.2fr);
  gap: clamp(36px, 3.4vw, 54px);
  align-items: center;
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  min-height: min(728px, calc(100svh - 72px));
  margin: 0 auto;
  padding: 54px 0;
  overflow: hidden;
}
.hero::after,
.section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 216, 255, 0.64) 42%, rgba(151, 105, 255, 0.8) 53%, transparent);
  box-shadow: 0 0 12px rgba(81, 171, 255, 0.24);
  content: "";
}

.hero-copy { position: relative; z-index: 2; }
h1, h2, p { margin-top: 0; }
h1 {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--ink);
  font-size: clamp(58px, 5.2vw, 84px);
  font-weight: 480;
  letter-spacing: -0.057em;
  line-height: 0.98;
}
.hero-copy > p {
  max-width: 570px;
  margin-bottom: 42px;
  color: #c7cbd0;
  font-size: clamp(19px, 1.55vw, 26px);
  line-height: 1.52;
}
.hero-actions { display: grid; width: min(100%, 430px); gap: 18px; }
.command {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(4, 7, 11, 0.65);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.015em;
  text-align: left;
  transition: transform 130ms ease, border-color 180ms ease, background 180ms ease;
}
.command::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}
.command svg { width: 24px; margin-right: 24px; fill: none; stroke: currentColor; stroke-linecap: square; stroke-width: 1.4; }
.command.primary { border-color: rgba(45, 216, 255, 0.8); }
.command.primary svg { color: var(--cyan); }
.command:hover { transform: translateY(-2px); border-color: rgba(187, 199, 215, 0.58); background: rgba(12, 18, 28, 0.76); }
.command:hover::after { opacity: 1; }
.command:active,
.command.haptic-hit { transform: translateY(1px) scale(0.993); }

.hero-aperture {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 37.5%;
  width: 26%;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 18%, 72% 50%, 100% 83%, 0 100%, 42% 50%);
  border-right: 1px solid rgba(143, 116, 255, 0.52);
  border-left: 1px solid rgba(45, 216, 255, 0.52);
  background:
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(45, 216, 255, 0.08) 12px 13px),
    linear-gradient(90deg, transparent, rgba(35, 158, 255, 0.13) 42%, rgba(121, 80, 231, 0.16) 74%, transparent);
  opacity: 0.78;
  filter: drop-shadow(0 0 12px rgba(77, 184, 255, 0.2));
  animation: aperture-breathe 18s ease-in-out infinite alternate;
}
.hero-aperture::before,
.hero-aperture::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), #e4efff 52%, var(--violet), transparent);
  content: "";
  box-shadow: 0 0 10px rgba(45, 216, 255, 0.46);
}
.hero-aperture::before { top: 18%; transform: rotate(7deg); }
.hero-aperture::after { bottom: 17%; transform: rotate(-7deg); }

.protocol-frame,
.trace-panel,
.validation-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(4, 7, 11, 0.76);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}
.protocol-frame::before,
.trace-panel::before,
.validation-frame::before,
.boundary-visual::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(203, 222, 244, 0.08);
  content: "";
  pointer-events: none;
}
.protocol-frame { min-width: 0; }
.stage-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 20px 18px 13px;
  border-bottom: 1px solid var(--line);
}
.stage-tabs button {
  position: relative;
  min-width: 0;
  min-height: 50px;
  background: transparent;
  color: #b9bec5;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.stage-tabs button::before {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--line-strong);
  content: "";
}
.stage-tabs button::after {
  position: absolute;
  bottom: -4px;
  left: calc(50% - 4px);
  width: 7px;
  height: 7px;
  border: 1px solid #929aa4;
  border-radius: 50%;
  background: var(--bg-deep);
  content: "";
}
.stage-tabs button[aria-selected="true"] { color: var(--cyan); }
.stage-tabs button[aria-selected="true"]::after {
  width: 12px;
  height: 12px;
  bottom: -7px;
  left: calc(50% - 7px);
  border-color: var(--cyan);
  box-shadow: 0 0 0 5px rgba(45, 216, 255, 0.12), 0 0 16px rgba(45, 216, 255, 0.46);
}

.protocol-canvas { padding: 16px 22px 0; }
.protocol-diagram { width: 100%; max-height: 430px; }
.ingress-lines { fill: var(--bg); stroke: #8995a2; stroke-opacity: 0.7; stroke-width: 1; }
.envelope-planes { fill: rgba(35, 74, 112, 0.04); stroke: url(#flow-gradient); stroke-opacity: 0.65; stroke-width: 1; }
.flow-line { fill: none; stroke: url(#flow-gradient); stroke-width: 2; filter: url(#flow-glow); }
.flow-dash { fill: none; stroke: url(#flow-gradient); stroke-dasharray: 4 10; stroke-width: 1.4; animation: flow-forward 7s linear infinite; }
.flow-node { fill: rgba(45, 216, 255, 0.1); stroke: var(--cyan); stroke-width: 2; filter: url(#flow-glow); }
.flow-core { fill: #d9f9ff; }
.flow-arrow { fill: none; stroke: var(--magenta); stroke-width: 1.5; }
.flow-diamond { fill: var(--violet); }

.state-readout {
  display: grid;
  grid-template-columns: 72px 1fr minmax(140px, 0.55fr);
  min-height: 88px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.state-readout > * { height: 100%; }
.state-beacon {
  position: relative;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}
.state-beacon::before { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(255, 173, 31, 0.52); content: ""; }
.state-readout > div:not(.signal-wave) { display: flex; flex-direction: column; justify-content: center; padding: 0 22px; }
.state-readout strong { color: var(--cyan); font-family: var(--mono); font-size: 15px; font-weight: 500; }
.state-readout small { margin-top: 6px; color: #d6d8dc; font-family: var(--mono); font-size: 13px; }
.signal-wave { display: flex; align-items: center; justify-content: center; gap: 6px; border-left: 1px solid var(--line); }
.signal-wave i,
.validation-signal span { width: 1px; height: var(--wave-height, 12px); background: linear-gradient(var(--cyan), var(--violet)); box-shadow: 0 0 8px rgba(45, 216, 255, 0.28); }
.signal-wave i:nth-child(2n) { --wave-height: 26px; }
.signal-wave i:nth-child(3n) { --wave-height: 9px; }
.signal-wave i:nth-child(5n) { --wave-height: 34px; }

.section {
  position: relative;
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: clamp(82px, 7vw, 108px) 0;
}
@supports (content-visibility: auto) {
  .evidence { content-visibility: auto; contain-intrinsic-size: auto 620px; }
  .boundaries { content-visibility: auto; contain-intrinsic-size: auto 610px; }
  .final-cta { content-visibility: auto; contain-intrinsic-size: auto 360px; }
}
.sequence { padding: 44px 0 36px; }
.sequence h2 { margin-bottom: 34px; }
.evidence { padding-top: 54px; }
h2 {
  margin-bottom: clamp(48px, 5vw, 76px);
  color: var(--ink);
  font-size: clamp(40px, 3.6vw, 58px);
  font-weight: 430;
  letter-spacing: -0.047em;
  line-height: 1.03;
}

.sequence-layout,
.evidence-layout,
.boundaries { display: grid; grid-template-columns: minmax(0, 1fr) minmax(470px, 1.08fr); gap: clamp(34px, 5vw, 78px); }
.sequence-list,
.file-ledger,
.boundary-ledger { padding: 0; margin: 0; list-style: none; }
.sequence-list { border-top: 1px solid var(--line); }
.sequence-list li { border-bottom: 1px solid var(--line); }
.sequence-list button {
  position: relative;
  display: grid;
  grid-template-columns: 55px 112px 1fr;
  width: 100%;
  min-height: 60px;
  align-items: center;
  padding: 0 18px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: color 160ms ease, background 160ms ease;
}
.sequence-list button::before { position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; border: 1px solid #8f98a4; border-radius: 50%; background: var(--bg); content: ""; transform: translateY(-50%); }
.sequence-list button span,
.sequence-list button strong,
.sequence-list button small { font-family: var(--mono); font-size: 13px; font-weight: 400; }
.sequence-list button strong { color: #d8dce1; text-transform: uppercase; }
.sequence-list button small::before { margin-right: 18px; content: "—"; }
.sequence-list button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.sequence-list button[aria-current="step"] {
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(45, 216, 255, 0.06), rgba(126, 94, 255, 0.045), transparent);
  box-shadow: inset 0 1px var(--cyan), inset 0 -1px rgba(143, 116, 255, 0.72);
}
.sequence-list button[aria-current="step"] strong { color: var(--cyan); }
.sequence-list button[aria-current="step"]::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 7px rgba(45, 216, 255, 0.1), 0 0 16px rgba(45, 216, 255, 0.58); }

.trace-panel { min-height: 360px; padding: 28px 32px 22px; }
.trace-lines { position: relative; z-index: 2; margin: 0; font-family: var(--mono); font-size: clamp(14px, 1.3vw, 18px); }
.trace-lines div { display: flex; gap: 14px; margin-bottom: 8px; }
.trace-lines dt { color: var(--cyan); }
.trace-lines dd { margin: 0; color: #e2e5e9; }
.trace-geometry { position: absolute; right: 3%; bottom: 3%; width: 82%; height: 76%; }
.trace-grid { fill: none; stroke: #c1d1e3; stroke-opacity: 0.06; stroke-width: 1; }
.trace-planes { fill: rgba(24, 63, 104, 0.035); stroke: url(#flow-gradient); stroke-opacity: 0.68; stroke-width: 1; }
.trace-flow { fill: none; stroke: url(#flow-gradient); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(45, 216, 255, 0.5)); }
.trace-node { fill: rgba(45, 216, 255, 0.14); stroke: var(--cyan); stroke-width: 2; }

.evidence h2 { max-width: 980px; }
.file-ledger { counter-reset: files; border-top: 1px solid var(--line); }
.file-ledger li {
  counter-increment: files;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(160px, 0.55fr);
  min-height: 62px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}
.file-ledger li::before { color: var(--dim); content: counter(files); }
.file-ledger code { overflow: hidden; color: #e2e5e8; font: inherit; text-overflow: ellipsis; white-space: nowrap; }
.file-ledger span { color: var(--muted); }
.file-ledger span::before { margin-right: 14px; content: "—"; }
.validation-frame { min-height: 300px; padding: 30px 34px; }
.validation-frame p { display: flex; align-items: baseline; justify-content: space-between; gap: 26px; margin-bottom: 72px; font-family: var(--mono); }
.validation-frame p strong { padding: 8px 11px; border: 1px solid var(--line-strong); color: var(--cyan); font-size: 14px; font-weight: 500; }
.validation-frame p span { color: #c5c9cf; font-size: 12px; }
.validation-signal { display: flex; height: 70px; align-items: center; gap: clamp(8px, 1vw, 16px); }
.validation-signal span { flex: 1; height: 12px; opacity: 0.8; }
.validation-signal span:nth-child(2n) { height: 34px; }
.validation-signal span:nth-child(3n) { height: 18px; }
.validation-signal span:nth-child(5n) { height: 54px; }
.validation-frame > small { display: flex; align-items: center; gap: 12px; margin-top: 36px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.validation-frame > small i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(255, 173, 31, 0.45); }

.boundaries { align-items: center; padding: 16px 0 28px; }
.boundaries-copy h2 { margin-bottom: 26px; }
.boundaries-copy > p { max-width: 650px; margin-bottom: 52px; color: #c8ccd2; font-family: var(--mono); font-size: clamp(15px, 1.35vw, 20px); line-height: 1.55; }
.boundary-ledger { border-top: 1px solid var(--line); }
.boundary-ledger li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; min-height: 72px; align-items: center; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.boundary-ledger i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 173, 31, 0.08), 0 0 12px rgba(255, 173, 31, 0.42); }
.boundary-ledger strong { color: #d9dde2; font-size: 13px; font-weight: 450; letter-spacing: 0.02em; text-transform: uppercase; }
.boundary-ledger span { color: var(--muted); font-size: 12px; }

.boundary-visual { position: relative; aspect-ratio: 1.32; min-height: 480px; border: 1px solid var(--line-strong); background: rgba(4, 7, 11, 0.64); }
.boundary-visual > strong { position: absolute; top: 50%; left: 50%; color: var(--ink); font-family: var(--mono); font-size: clamp(16px, 1.65vw, 24px); font-weight: 450; letter-spacing: 0.18em; text-transform: uppercase; transform: translate(-50%, -50%); white-space: nowrap; }
.orbit { position: absolute; top: 50%; left: 50%; width: auto; aspect-ratio: 1; border: 1px solid; border-radius: 50%; transform: translate(-50%, -50%); }
.orbit::after { position: absolute; inset: -1px; border-radius: inherit; border-top: 1px solid var(--cyan); border-right: 1px solid var(--violet); content: ""; opacity: 0.72; animation: orbit-signal 24s linear infinite; }
.orbit span { position: absolute; top: 8px; left: 50%; color: #bfc5cc; font-family: var(--mono); font-size: 11px; transform: translateX(-50%); }
.orbit-one { height: 86%; border-color: rgba(45, 216, 255, 0.34); }
.orbit-two { height: 70%; border-color: rgba(88, 164, 255, 0.34); }
.orbit-three { height: 54%; border-color: rgba(143, 116, 255, 0.38); }
.orbit-four { height: 38%; border-color: rgba(220, 82, 213, 0.34); }
.orbit-two::after { animation-direction: reverse; animation-duration: 31s; }
.orbit-three::after { animation-duration: 27s; }
.orbit-four::after { animation-direction: reverse; animation-duration: 19s; }

.final-cta { padding-top: 48px; text-align: center; }
.final-cta h2 { margin-bottom: 22px; }
.final-cta > p { margin-bottom: 46px; color: #c0c5cc; font-family: var(--mono); font-size: 14px; }
.cta-links { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 860px; margin: 0 auto; gap: 32px; }
.cta-links a { display: flex; min-height: 56px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--cyan); color: #dfe3e7; font-family: var(--mono); font-size: 14px; transition: color 160ms ease, background 160ms ease; }
.cta-links a:nth-child(2) { border-color: var(--violet); }
.cta-links a:nth-child(3) { border-color: var(--magenta); }
.cta-links a:hover { color: var(--cyan); background: rgba(45, 216, 255, 0.035); }
.cta-links span { font-size: 24px; font-weight: 200; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  padding: 24px max(var(--gutter), calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
}
footer > div { text-align: right; }
footer nav { display: flex; justify-content: flex-end; gap: 42px; margin-bottom: 13px; color: #bec3ca; font-family: var(--mono); font-size: 12px; }
footer nav a:hover { color: var(--cyan); }
footer p { margin: 0; color: var(--dim); font-family: var(--mono); font-size: 11px; }

@keyframes aperture-breathe { 0%, 100% { opacity: 0.56; filter: brightness(0.86); } 45% { opacity: 0.8; filter: brightness(1.08); } 49% { opacity: 0.66; } 53% { opacity: 0.83; } }
@keyframes flow-forward { to { stroke-dashoffset: -84; } }
@keyframes orbit-signal { to { transform: rotate(360deg); } }
@keyframes haptic-response { 0% { box-shadow: 0 0 0 0 rgba(45, 216, 255, 0.2); } 40% { box-shadow: 0 0 0 7px rgba(45, 216, 255, 0.06); } 100% { box-shadow: 0 0 0 12px rgba(45, 216, 255, 0); } }
.haptic-hit { animation: haptic-response 340ms cubic-bezier(.2,.82,.2,1) both; }

.has-js .hero-aperture,
.has-js .flow-dash,
.has-js .orbit::after { animation-play-state: paused; }
.has-js[data-page-visible="true"] .hero[data-motion-visible="true"] .hero-aperture,
.has-js[data-page-visible="true"] .protocol-frame[data-motion-visible="true"] .flow-dash,
.has-js[data-page-visible="true"] .boundary-visual[data-motion-visible="true"] .orbit::after { animation-play-state: running; }

@media (max-width: 1060px) {
  .hero { grid-template-columns: minmax(300px, 0.75fr) minmax(480px, 1.25fr); gap: 36px; min-height: calc(100svh - 72px); }
  .hero-aperture { left: 31%; }
  .sequence-layout, .evidence-layout, .boundaries { grid-template-columns: 1fr; }
  .trace-panel { min-height: 520px; }
  .boundary-visual { width: min(100%, 680px); margin: 0 auto; }
}

@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .site-header { min-height: 68px; }
  .site-header > .brand::after { display: none; }
  .menu-toggle { display: grid; width: 48px; height: 48px; place-content: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--bg); }
  .menu-toggle i { display: block; width: 22px; height: 1px; background: #d6dbe0; transition: transform 160ms ease, opacity 160ms ease; }
  .menu-toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 4, 7, 0.98);
  }
  .site-header nav[data-open="true"] { display: grid; gap: 4px; }
  .site-header nav a { min-height: 48px; border-bottom: 1px solid var(--line); }
  .site-header nav a:not(.nav-action)::after { display: none; }
  .site-header nav .nav-action { margin-top: 10px; }

  .hero {
    display: block;
    width: calc(100% - (var(--gutter) * 2));
    min-height: 0;
    padding: 104px 0 82px;
  }
  .hero-copy { min-height: 600px; }
  h1 { max-width: 600px; margin-bottom: 36px; font-size: clamp(52px, 15vw, 78px); line-height: 1.02; }
  .hero-copy > p { max-width: 590px; font-size: clamp(18px, 5vw, 24px); }
  .hero-actions { width: 100%; }
  .command { min-height: 58px; }
  .hero-aperture { top: 0; bottom: auto; left: 43%; width: 78%; height: 720px; clip-path: polygon(0 0, 100% 14%, 68% 50%, 100% 86%, 0 100%, 53% 50%); opacity: 0.58; }
  .protocol-frame { margin-top: 28px; }
  .stage-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .stage-tabs::-webkit-scrollbar { display: none; }
  .stage-tabs button { flex: 0 0 94px; }
  .protocol-canvas { padding: 6px 10px 0; }
  .state-readout { grid-template-columns: 58px 1fr; }
  .signal-wave { display: none; }
  .state-readout strong { font-size: 13px; }

  .section { width: calc(100% - (var(--gutter) * 2)); padding: 92px 0; }
  h2 { font-size: clamp(42px, 12vw, 62px); }
  .sequence-layout, .evidence-layout, .boundaries { display: grid; grid-template-columns: 1fr; gap: 44px; }
  .sequence-list button { grid-template-columns: 42px 92px 1fr; min-height: 78px; padding: 0 8px; }
  .sequence-list button span, .sequence-list button strong, .sequence-list button small { font-size: 11px; }
  .sequence-list button small::before { margin-right: 8px; }
  .trace-panel { min-height: 390px; padding: 24px 22px; }
  .trace-geometry { width: 96%; height: 72%; }
  .evidence-layout { gap: 36px; }
  .file-ledger li { grid-template-columns: 22px minmax(0, 1fr); padding: 12px 0; }
  .file-ledger span { grid-column: 2; margin-top: 5px; }
  .validation-frame { padding: 24px 20px; }
  .validation-frame p { display: block; margin-bottom: 46px; }
  .validation-frame p strong { display: block; font-size: 12px; }
  .validation-frame p span { display: block; margin-top: 13px; }
  .boundary-ledger li { grid-template-columns: 20px 1fr; padding: 13px 0; }
  .boundary-ledger span { grid-column: 2; margin-top: 4px; }
  .boundary-visual { min-height: 0; aspect-ratio: 1; }
  .cta-links { grid-template-columns: 1fr; gap: 14px; }
  footer { display: block; padding-top: 34px; padding-bottom: 34px; }
  footer > div { margin-top: 24px; text-align: left; }
  footer nav { justify-content: flex-start; gap: 26px; }
}

@media (max-width: 420px) {
  .brand { font-size: 15px; }
  .hero-copy { min-height: 600px; }
  h1 { font-size: 54px; }
  .sequence-list button { grid-template-columns: 36px 80px 1fr; }
  .sequence-list button small { line-height: 1.35; }
  .protocol-frame { margin-right: -10px; margin-left: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media print {
  .site-header { position: static; }
  .menu-toggle, .hero-aperture { display: none; }
  body::before, body::after { display: none; }
}
