/* Engraphis local visual-direction specimens. Not part of the published surface. */

:root {
  --spec-mono: "Azeret Mono", Consolas, monospace;
  --spec-black: #0b0d0c;
  --spec-white: #f2f3ed;
  --focus: #1545ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

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

button,
code {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

.spec-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  font: 600 0.72rem/1 var(--spec-mono);
  transform: translateY(-150%);
}

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

/* ---------------- Comparison hub ---------------- */

.specimen-hub {
  min-height: 100vh;
  color: #11130f;
  background: #d6d7d0;
  font-family: var(--spec-mono);
}

.specimen-hub::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(17, 19, 15, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 15, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hub-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 62px;
  padding: 0 28px;
  border-bottom: 1px solid #11130f;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.hub-header > span {
  justify-self: end;
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 700;
}

.hub-brand img {
  width: 22px;
  height: 22px;
}

.hub-header p {
  margin: 0;
}

.specimen-hub main {
  width: min(1600px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) 0 100px;
}

.hub-intro {
  display: grid;
  grid-template-columns: 0.55fr 1.25fr 0.8fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 64px;
}

.hub-index {
  align-self: start;
  margin: 9px 0 0;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.hub-intro h1 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(3.5rem, 7.2vw, 8rem);
  font-weight: 400;
  line-height: 0.83;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hub-intro > p:last-child {
  max-width: 52ch;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.7;
}

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

.spec-card {
  min-width: 0;
  border: 1px solid #11130f;
  background: #ecece6;
}

.spec-card-preview {
  position: relative;
  display: block;
  height: min(33vw, 500px);
  min-height: 390px;
  overflow: hidden;
  border-bottom: 1px solid #11130f;
  transition: clip-path 260ms ease-out;
}

.spec-card-preview:hover {
  clip-path: inset(8px);
}

.mini-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 7px 9px;
  border: 1px solid currentColor;
  font: 600 0.63rem/1 var(--spec-mono);
}

.spec-card-copy {
  min-height: 228px;
  padding: 24px;
}

.spec-card-copy p {
  margin: 0 0 18px;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.spec-card-copy h2 {
  margin: 0 0 14px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.spec-card-copy > span {
  display: block;
  min-height: 68px;
  font-size: 0.76rem;
  line-height: 1.55;
}

.spec-card-copy > a {
  display: inline-flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-e01 .spec-card-preview {
  color: #f4f1ff;
  background: #120d2e;
}

.mini-e01-title {
  position: absolute;
  top: 25%;
  left: 8%;
  z-index: 2;
  font: 600 clamp(2.1rem, 3.7vw, 4.6rem)/0.9 "Arial Black", sans-serif;
  letter-spacing: -0.04em;
}

.mini-e01-title b {
  color: #d8ff4f;
}

.mini-e01-orbit,
.mini-e01-node {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.mini-e01-orbit {
  right: -20%;
  border: 1px dashed rgba(154, 244, 255, 0.55);
}

.orbit-a {
  top: 7%;
  width: 82%;
  aspect-ratio: 1;
}

.orbit-b {
  top: 22%;
  width: 58%;
  aspect-ratio: 1;
  border-color: rgba(255, 92, 138, 0.65);
}

.mini-e01-node {
  z-index: 1;
  width: 12px;
  height: 12px;
  background: #d8ff4f;
  box-shadow: 0 0 24px #d8ff4f;
}

.node-a { top: 20%; right: 21%; }
.node-b { top: 46%; right: 12%; background: #ff5c8a; box-shadow: 0 0 24px #ff5c8a; }
.node-c { top: 65%; right: 34%; background: #9af4ff; box-shadow: 0 0 24px #9af4ff; }

.mini-install {
  position: absolute;
  right: 6%;
  bottom: 7%;
  left: 6%;
  z-index: 2;
  padding: 14px;
  border: 1px solid #d8ff4f;
  color: #d8ff4f;
  background: rgba(12, 8, 33, 0.92);
  font-size: 0.58rem;
}

.card-e02 .spec-card-preview {
  color: #11130f;
  background: #eef0e8;
}

.card-e02 .spec-card-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(17, 19, 15, 0.2) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(17, 19, 15, 0.2) 50%, transparent 50.2%);
  background-size: 48px 48px;
}

.mini-e02-title {
  position: absolute;
  top: 20%;
  left: 7%;
  z-index: 2;
  color: #0b31ff;
  font: 400 clamp(2.7rem, 5vw, 6rem)/0.76 "Archivo Black", Impact, sans-serif;
  letter-spacing: -0.05em;
}

.mini-reel {
  position: absolute;
  z-index: 2;
  width: 24%;
  aspect-ratio: 1;
  border: 10px solid #11130f;
  border-radius: 50%;
  background: #ff4b1b;
}

.mini-reel::before,
.mini-reel::after {
  content: "";
  position: absolute;
  inset: 28%;
  border: 5px solid #11130f;
  border-radius: 50%;
  background: #eef0e8;
}

.mini-reel::after {
  inset: 44%;
  border: 0;
  background: #11130f;
}

.reel-a { top: 15%; right: 9%; }
.reel-b { top: 52%; right: 27%; width: 18%; }

.mini-tape {
  position: absolute;
  right: -5%;
  bottom: 23%;
  width: 65%;
  height: 4px;
  background: #11130f;
  transform: rotate(-19deg);
  transform-origin: right center;
}

.mini-e02-stamp {
  position: absolute;
  right: 5%;
  bottom: 6%;
  padding: 9px;
  border: 3px solid #ff4b1b;
  color: #ff4b1b;
  font-size: 0.58rem;
  font-weight: 700;
  transform: rotate(-6deg);
}

.card-e03 .spec-card-preview {
  padding: 60px 7% 7%;
  color: #f5f2e8;
  background: #121412;
}

.mini-board-title {
  display: block;
  margin-bottom: 18px;
  color: #ffbe22;
  font: 500 clamp(1.5rem, 2.8vw, 3.2rem)/1 "Teko", sans-serif;
  letter-spacing: 0.04em;
}

.mini-flap {
  display: grid;
  grid-template-columns: 14% 1fr 18%;
  gap: 5px;
  margin: 4px 0;
  padding: 12px 10px;
  background: #070807;
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.12);
  font-size: clamp(0.42rem, 0.65vw, 0.68rem);
  font-style: normal;
}

.mini-flap i,
.mini-flap b,
.mini-flap em {
  overflow: hidden;
  font-style: normal;
  white-space: nowrap;
}

.mini-flap em {
  color: #ffbe22;
  text-align: right;
}

.mini-platform {
  position: absolute;
  right: 7%;
  bottom: 8%;
  left: 7%;
  padding: 12px;
  color: #121412;
  background: #ffbe22;
  font-size: 0.6rem;
  font-weight: 700;
}

.hub-note {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  margin-top: 18px;
  border: 1px solid #11130f;
}

.hub-note > * {
  padding: 16px 20px;
  border-right: 1px solid #11130f;
  font-size: 0.64rem;
}

.hub-note > *:last-child {
  border-right: 0;
}

/* ---------------- Shared specimen navigation ---------------- */

.specimen-page {
  min-height: 100vh;
}

.spec-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 60px;
  padding: 0 22px;
  font: 600 0.64rem/1 var(--spec-mono);
  text-transform: uppercase;
}

.spec-nav-light {
  color: #11130f;
  border-bottom: 1px solid #11130f;
  background: rgba(238, 240, 232, 0.94);
}

.spec-nav-dark {
  color: #f5f2e8;
  border-bottom: 1px solid #444941;
  background: rgba(18, 20, 18, 0.95);
}

.spec-nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
}

.spec-nav-brand img {
  width: 20px;
  height: 20px;
}

.spec-tabs {
  display: flex;
}

.spec-tabs a {
  min-width: 58px;
  padding: 11px 13px;
  border: 1px solid currentColor;
  text-align: center;
}

.spec-tabs a + a {
  margin-left: -1px;
}

.spec-tabs a[aria-current="page"] {
  color: #fff;
  background: #1545ff;
}

.spec-nav-dark .spec-tabs a[aria-current="page"] {
  color: #11130f;
  background: #ffbe22;
}

.spec-compare {
  justify-self: end;
  padding-bottom: 4px;
  border-bottom: 1px solid;
}

.spec-footer {
  display: flex;
  justify-content: space-between;
  padding: 28px;
  font: 500 0.65rem/1.4 var(--spec-mono);
  text-transform: uppercase;
}

.spec-footer-light {
  color: #11130f;
  border-top: 1px solid #11130f;
  background: #eef0e8;
}

.spec-footer-dark {
  color: #f5f2e8;
  border-top: 1px solid #444941;
  background: #121412;
}

/* ---------------- E-02 Flight Ledger ---------------- */

.specimen-e02 {
  --ledger-paper: #eef0e8;
  --ledger-ink: #11130f;
  --ledger-blue: #0b31ff;
  --ledger-orange: #ff4b1b;
  --ledger-acid: #efff00;
  color: var(--ledger-ink);
  background: var(--ledger-paper);
  font-family: var(--spec-mono);
}

.ledger-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(540px, 1.18fr);
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  padding: 96px 36px 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--ledger-ink);
  background:
    linear-gradient(rgba(17, 19, 15, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 15, 0.12) 1px, transparent 1px),
    var(--ledger-paper);
  background-size: 48px 48px;
}

.ledger-hero::before {
  content: "";
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 49%;
  width: 1px;
  background: var(--ledger-ink);
}

.ledger-meta {
  position: absolute;
  top: 76px;
  right: 28px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 0.57rem;
}

.ledger-title-block {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: 32px 2vw 90px 1vw;
}

.ledger-title-block > p:first-child {
  width: fit-content;
  margin: 0 0 30px;
  padding: 8px 10px;
  color: var(--ledger-paper);
  background: var(--ledger-ink);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.ledger-title-block h1 {
  margin: 0;
  color: var(--ledger-blue);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(5.2rem, 10vw, 10.5rem);
  font-weight: 400;
  line-height: 0.71;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.ledger-title-block h1 span {
  display: block;
}

.ledger-title-block h1 span:nth-child(2) {
  color: var(--ledger-ink);
  transform: translateX(12%);
}

.ledger-title-block h1 span:nth-child(3) {
  color: var(--ledger-orange);
}

.ledger-deck {
  max-width: 50ch;
  margin: 38px 0 0;
  font-size: clamp(0.78rem, 1.05vw, 0.95rem);
  line-height: 1.65;
}

.tape-machine {
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-height: 610px;
  margin-top: 20px;
  overflow: hidden;
}

.tape-machine::before {
  content: "BITEMPORAL RECORD / A";
  position: absolute;
  top: 44%;
  left: 47%;
  z-index: 4;
  padding: 7px 9px;
  color: var(--ledger-paper);
  background: var(--ledger-blue);
  font-size: 0.56rem;
  transform: rotate(-7deg);
}

.tape-rail {
  position: absolute;
  top: 13%;
  right: 5%;
  left: 5%;
  height: 8px;
  background: var(--ledger-ink);
}

.tape-rail::before,
.tape-rail::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 24px;
  height: 24px;
  border: 7px solid var(--ledger-ink);
  border-radius: 50%;
  background: var(--ledger-paper);
}

.tape-rail::before { left: -4px; }
.tape-rail::after { right: -4px; }

.tape-reel {
  position: absolute;
  z-index: 2;
  width: clamp(170px, 18vw, 290px);
  aspect-ratio: 1;
  border: clamp(12px, 1.4vw, 22px) solid var(--ledger-ink);
  border-radius: 50%;
  background: var(--ledger-orange);
  animation: tape-spin 18s linear infinite;
}

.tape-reel i,
.tape-reel b {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.tape-reel i {
  inset: 27%;
  border: 13px solid var(--ledger-ink);
  background: var(--ledger-paper);
}

.tape-reel b {
  inset: 44%;
  background: var(--ledger-ink);
}

.tape-reel::before,
.tape-reel::after {
  content: "";
  position: absolute;
  top: calc(50% - 6px);
  left: 12%;
  width: 76%;
  height: 12px;
  background: var(--ledger-ink);
}

.tape-reel::after {
  transform: rotate(90deg);
}

.tape-reel-a {
  top: 16%;
  left: 7%;
}

.tape-reel-b {
  right: 8%;
  bottom: 8%;
  width: clamp(130px, 14vw, 220px);
  animation-direction: reverse;
  animation-duration: 12s;
}

.tape-path {
  position: absolute;
  inset: 7% 2% 4%;
  z-index: 1;
  width: 96%;
  height: 89%;
  overflow: visible;
}

.tape-path path {
  fill: none;
  stroke-linecap: round;
}

.tape-shadow {
  stroke: var(--ledger-ink);
  stroke-width: 17;
}

.tape-live {
  stroke: var(--ledger-acid);
  stroke-width: 5;
  stroke-dasharray: 12 18;
  animation: tape-flow 1.8s linear infinite;
}

.tape-state {
  position: absolute;
  z-index: 5;
  width: 178px;
  padding: 12px;
  border: 1px solid var(--ledger-ink);
  background: var(--ledger-paper);
  box-shadow: 7px 7px 0 var(--ledger-ink);
}

.tape-state span {
  font-size: 0.54rem;
  text-transform: uppercase;
}

.tape-state p {
  margin: 9px 0 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.9rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.state-previous {
  top: 16%;
  right: 6%;
}

.state-current {
  right: 25%;
  bottom: 18%;
  color: var(--ledger-paper);
  border-color: var(--ledger-blue);
  background: var(--ledger-blue);
  box-shadow: 7px 7px 0 var(--ledger-orange);
}

.tape-punches {
  position: absolute;
  right: 8%;
  bottom: 3%;
  left: 6%;
  height: 18px;
  background: radial-gradient(circle, var(--ledger-ink) 3px, transparent 4px) 0 0 / 22px 18px;
}

.ledger-install {
  position: relative;
  z-index: 6;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.55fr 1.3fr 0.55fr;
  min-height: 92px;
  border: 3px solid var(--ledger-ink);
  background: var(--ledger-acid);
  box-shadow: 12px 12px 0 var(--ledger-blue);
}

.ledger-install > * {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-right: 1px solid var(--ledger-ink);
}

.ledger-install > *:last-child {
  border-right: 0;
}

.ledger-install > div {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.ledger-install code {
  font-size: clamp(0.74rem, 1.25vw, 1.1rem);
  font-weight: 700;
}

.ledger-install a {
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ledger-scroll {
  position: absolute;
  right: 38px;
  bottom: 152px;
  z-index: 5;
  padding-bottom: 5px;
  border-bottom: 1px solid;
  font-size: 0.59rem;
  text-transform: uppercase;
}

.ledger-continuity {
  padding: clamp(90px, 11vw, 160px) 4vw;
  border-bottom: 1px solid var(--ledger-ink);
}

.ledger-section-head {
  display: grid;
  grid-template-columns: 0.45fr 1fr 0.65fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 70px;
}

.ledger-section-head > span,
.foldout-copy > span,
.ledger-evidence-copy > span {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ledger-section-head h2,
.foldout-copy h2,
.ledger-evidence-copy h2,
.ledger-close h2 {
  max-width: 16ch;
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(2.8rem, 5.3vw, 5.8rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.ledger-section-head > p,
.foldout-copy > p,
.ledger-evidence-copy > p {
  max-width: 55ch;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
}

.ledger-strip {
  border-top: 4px solid var(--ledger-ink);
}

.ledger-strip article {
  display: grid;
  grid-template-columns: 0.5fr 0.8fr 1.5fr 0.6fr;
  gap: 30px;
  align-items: center;
  min-height: 116px;
  border-bottom: 1px solid var(--ledger-ink);
}

.ledger-strip article:nth-child(2) {
  color: var(--ledger-paper);
  background: var(--ledger-blue);
}

.ledger-strip strong {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.1rem, 2vw, 2rem);
  font-weight: 400;
  text-transform: uppercase;
}

.ledger-strip p {
  max-width: 58ch;
  font-size: 0.76rem;
  line-height: 1.55;
}

.ledger-strip code,
.strip-time {
  font-size: 0.6rem;
  text-transform: uppercase;
}

.scope-foldout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 790px;
  border-bottom: 1px solid var(--ledger-ink);
  background: var(--ledger-blue);
}

.foldout-copy {
  padding: clamp(70px, 8vw, 130px) 5vw;
  color: var(--ledger-paper);
}

.foldout-copy h2 {
  margin: 24px 0 30px;
}

.foldout-controls {
  display: flex;
  flex-wrap: wrap;
  margin-top: 46px;
}

.foldout-controls button {
  min-height: 46px;
  padding: 0 16px;
  color: var(--ledger-paper);
  border: 1px solid var(--ledger-paper);
  background: transparent;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.foldout-controls button + button {
  margin-left: -1px;
}

.foldout-controls button.active {
  color: var(--ledger-ink);
  background: var(--ledger-acid);
}

.foldout-stage {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  perspective: 1200px;
  background:
    linear-gradient(rgba(238, 240, 232, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 240, 232, 0.14) 1px, transparent 1px);
  background-size: 54px 54px;
}

.fold-panel {
  position: absolute;
  top: 18%;
  left: 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 62%;
  aspect-ratio: 1.28;
  padding: 28px;
  border: 2px solid var(--ledger-ink);
  color: var(--ledger-ink);
  background: var(--ledger-paper);
  box-shadow: 18px 18px 0 var(--ledger-ink);
  transform-origin: left center;
  transition: transform 650ms cubic-bezier(0.2, 0.85, 0.2, 1), filter 400ms ease;
}

.fold-panel span {
  font-size: 0.62rem;
  text-transform: uppercase;
}

.fold-panel b {
  max-width: 12ch;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.6rem, 3vw, 3.5rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.fold-session {
  transform: translate(0, 0) rotateY(22deg);
}

.fold-repo {
  color: var(--ledger-paper);
  background: var(--ledger-orange);
  transform: translate(13%, 12%) rotateY(8deg);
}

.fold-workspace {
  background: var(--ledger-acid);
  transform: translate(26%, 24%) rotateY(-8deg);
}

.foldout-stage[data-active-scope="session"] .fold-session,
.foldout-stage[data-active-scope="repo"] .fold-repo,
.foldout-stage[data-active-scope="workspace"] .fold-workspace {
  z-index: 4;
  filter: none;
  transform: translate(18%, 18%) rotateY(0deg) scale(1.06);
}

.foldout-stage > p {
  position: absolute;
  right: 5%;
  bottom: 6%;
  left: 7%;
  z-index: 8;
  margin: 0;
  padding: 16px;
  color: var(--ledger-ink);
  background: var(--ledger-paper);
  font-size: 0.7rem;
}

.ledger-evidence {
  display: grid;
  grid-template-columns: 0.3fr 0.75fr 1.25fr;
  gap: 46px;
  padding: clamp(90px, 10vw, 150px) 4vw;
  border-bottom: 1px solid var(--ledger-ink);
}

.evidence-stamp {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.evidence-stamp span {
  padding: 9px 12px;
  border: 3px solid var(--ledger-orange);
  color: var(--ledger-orange);
  font-size: 0.61rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.evidence-stamp span:nth-child(2) {
  border-color: var(--ledger-blue);
  color: var(--ledger-blue);
  transform: rotate(3deg);
}

.ledger-evidence-copy h2 {
  margin: 24px 0 28px;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
}

.ledger-actions {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ledger-actions a {
  padding-bottom: 5px;
  border-bottom: 1px solid;
}

.ledger-screen {
  align-self: center;
  margin: 0;
  border: 2px solid var(--ledger-ink);
  background: var(--ledger-ink);
  box-shadow: 14px 14px 0 var(--ledger-orange);
  transform: rotate(1.5deg);
}

.ledger-screen img {
  width: 100%;
  height: auto;
}

.ledger-screen figcaption {
  padding: 10px 12px;
  color: var(--ledger-paper);
  font-size: 0.57rem;
  text-transform: uppercase;
}

.ledger-close {
  min-height: 660px;
  padding: clamp(90px, 10vw, 150px) 6vw;
  color: var(--ledger-paper);
  background: var(--ledger-ink);
}

.ledger-close > p {
  margin: 0 0 28px;
  color: var(--ledger-acid);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.ledger-close h2 {
  max-width: 15ch;
  color: var(--ledger-paper);
}

.ledger-close > code {
  display: block;
  width: fit-content;
  margin: 48px 0 34px;
  padding: 18px 20px;
  color: var(--ledger-ink);
  background: var(--ledger-acid);
  font-size: clamp(0.8rem, 1.4vw, 1.2rem);
}

.ledger-close > div {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ledger-primary {
  padding: 16px 20px;
  color: var(--ledger-paper);
  background: var(--ledger-blue);
}

@keyframes tape-spin {
  to { transform: rotate(360deg); }
}

@keyframes tape-flow {
  to { stroke-dashoffset: -30; }
}

/* ---------------- E-03 Recall Concourse ---------------- */

.specimen-e03 {
  --station-black: #121412;
  --station-deep: #070807;
  --station-steel: #444941;
  --station-white: #f5f2e8;
  --station-amber: #ffbe22;
  --station-red: #ff3947;
  --station-mint: #6affbd;
  color: var(--station-white);
  background: var(--station-black);
  font-family: var(--spec-mono);
}

.concourse-hero {
  position: relative;
  min-height: 100svh;
  padding: 94px 4vw 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 64px 100%,
    var(--station-black);
}

.concourse-sign {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
  padding: 13px 16px;
  color: var(--station-black);
  background: var(--station-amber);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.concourse-sign b {
  font-weight: 500;
}

.concourse-sign time,
.concourse-sign .concourse-clock {
  color: inherit;
  font-family: "Teko", "Arial Narrow", sans-serif;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 0.7;
  text-transform: uppercase;
}

.concourse-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 18px;
}

.concourse-board {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: clamp(18px, 2.1vw, 30px);
  border: 1px solid var(--station-steel);
  background:
    linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.035) 45%, transparent 60%),
    #242824;
  box-shadow: 16px 20px 45px rgba(0, 0, 0, 0.45);
}

.board-head {
  display: grid;
  grid-template-columns: 0.55fr 2.5fr 0.75fr 0.55fr;
  gap: 6px;
  padding: 0 14px 8px;
  color: #a9ada4;
  font-size: 0.57rem;
  text-transform: uppercase;
}

.board-message {
  display: grid;
  gap: 4px;
  margin: 0 0 clamp(14px, 1.6vw, 22px);
  font-family: "Teko", "Arial Narrow", sans-serif;
  font-size: clamp(2.175rem, 3.3vw, 3.9375rem);
  font-weight: 500;
  line-height: 0.75;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.board-message span {
  display: block;
  padding: 0.09em 0.12em 0.04em;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 49%, rgba(0, 0, 0, 0.65) 50%, rgba(255, 255, 255, 0.02) 51%),
    var(--station-deep);
  box-shadow: inset 0 1px #333831, inset 0 -1px #000;
}

.board-message span:nth-child(2) {
  width: 88%;
  margin-left: 6%;
  color: var(--station-amber);
}

.board-message span:nth-child(3) {
  width: 91%;
  margin-left: auto;
}

.concourse-intro {
  max-width: 66ch;
  margin: 0 0 24px;
  color: #c9ccc3;
  font-size: clamp(0.65rem, 0.82vw, 0.78rem);
  line-height: 1.65;
}

.board-rows {
  border-top: 1px solid var(--station-steel);
}

.flap-row {
  display: grid;
  width: 100%;
  grid-template-columns: 0.55fr 2.5fr 0.75fr 0.55fr;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid var(--station-steel);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease-out;
}

.flap-row > * {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 45px;
  padding: 8px 14px;
  overflow: hidden;
  color: var(--station-white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 48%, rgba(0, 0, 0, 0.7) 50%, rgba(255, 255, 255, 0.025) 52%),
    var(--station-deep);
  box-shadow: inset 0 1px #2e322d, inset 0 -1px #000;
  font-style: normal;
  white-space: nowrap;
}

.flap-row strong {
  font-size: clamp(0.68rem, 1.05vw, 1rem);
  letter-spacing: 0.04em;
}

.flap-row > span,
.flap-row > em,
.flap-row > b {
  font-size: clamp(0.56rem, 0.78vw, 0.75rem);
  font-weight: 600;
}

.flap-row > em {
  color: var(--station-mint);
}

.flap-row > b {
  justify-content: flex-end;
  color: var(--station-amber);
}

.flap-row .state-retained {
  color: var(--station-red);
}

.flap-row .state-local {
  color: var(--station-amber);
}

.flap-row.is-flipping > * {
  animation: flap-flicker 100ms steps(2) 3;
}

.flap-row:hover,
.flap-row:focus-visible,
.flap-row.is-selected {
  transform: translateX(6px);
}

.flap-row:hover > *,
.flap-row:focus-visible > *,
.flap-row.is-selected > * {
  box-shadow: inset 0 1px #5c6258, inset 0 -1px #000, 0 0 0 1px rgba(255, 190, 34, 0.34);
}

.flap-row.is-selected > strong,
.flap-row.is-selected > b {
  color: var(--station-amber);
}

.platform-install {
  display: grid;
  grid-template-columns: 0.8fr 1.65fr 0.55fr;
  align-items: stretch;
  margin-top: 22px;
  color: var(--station-black);
  background: var(--station-amber);
}

.platform-install > * {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 18px;
  border-right: 1px solid var(--station-black);
}

.platform-install > *:last-child {
  border-right: 0;
}

.platform-install span,
.platform-install a {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.platform-install code {
  font-size: clamp(0.72rem, 1.2vw, 1.08rem);
  font-weight: 700;
}

.platform-install a {
  justify-content: space-between;
}

.concourse-field-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--station-steel);
  background:
    radial-gradient(circle at 52% 48%, rgba(255, 190, 34, 0.11), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--station-deep);
  background-size: auto, 42px 42px, 42px 42px, auto;
  box-shadow: 16px 20px 45px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}

.concourse-field-panel::before,
.concourse-field-panel::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 190, 34, 0.3);
  border-radius: 50%;
}

.concourse-field-panel::before {
  top: 19%;
  left: 15%;
  width: 64%;
  aspect-ratio: 1;
}

.concourse-field-panel::after {
  top: 31%;
  left: 28%;
  width: 38%;
  aspect-ratio: 1;
  border-color: rgba(106, 255, 189, 0.28);
}

.concourse-field-panel .hero-graph {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.field-panel-head {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #b7bbb2;
  font-size: 0.5rem;
  text-transform: uppercase;
}

.field-panel-head > * {
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 8, 7, 0.88);
}

.field-panel-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--station-mint);
}

.field-panel-head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--station-mint);
  box-shadow: 3px 4px 12px rgba(106, 255, 189, 0.52);
  animation: junction-live-pulse 1.8s ease-in-out infinite;
}

.field-panel-head b {
  color: #a9ada4;
  font-weight: 500;
}

.field-stations {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.field-station {
  position: absolute;
  display: grid;
  grid-template-columns: 30px 1fr;
  min-width: 104px;
  min-height: 38px;
  padding: 0;
  color: var(--station-white);
  border: 1px solid var(--station-steel);
  background: rgba(7, 8, 7, 0.92);
  box-shadow: 7px 8px 18px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  font: 700 0.52rem/1 var(--spec-mono);
  text-align: left;
  text-transform: uppercase;
  transition: border-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}

.field-station i {
  display: grid;
  place-items: center;
  min-height: 38px;
  color: var(--station-black);
  background: var(--station-white);
  font: 500 1.2rem/1 "Teko", sans-serif;
  font-style: normal;
}

.field-station span {
  display: flex;
  align-items: center;
  padding: 6px 8px;
}

.field-station:hover,
.field-station:focus-visible {
  color: var(--station-amber);
  border-color: var(--station-amber);
  transform: translateY(-3px);
}

.field-station.is-active {
  color: var(--station-black);
  border-color: var(--station-amber);
  background: var(--station-amber);
  transform: translateY(-3px);
}

.field-station.is-active i {
  background: var(--station-mint);
}

.station-query { top: 18%; left: 8%; }
.station-scope { top: 36%; left: 51%; }
.station-fact { top: 54%; left: 19%; }
.station-history { top: 68%; right: 7%; }
.station-answer { top: 22%; right: 7%; }

.station-history i {
  color: var(--station-white);
  background: var(--station-red);
}

.field-readout {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 6;
  display: grid;
  grid-template-columns: 0.7fr 1.1fr;
  border: 1px solid var(--station-steel);
  background: rgba(7, 8, 7, 0.94);
}

.field-readout > * {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--station-steel);
}

.field-readout > *:nth-child(even) {
  border-right: 0;
}

.field-readout span,
.field-readout code {
  color: #9da198;
  font-size: 0.48rem;
  text-transform: uppercase;
}

.field-readout strong {
  color: var(--station-amber);
  font-family: "Teko", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 0.9;
  text-transform: uppercase;
}

.field-readout p {
  color: #c9ccc3;
  font-size: 0.56rem;
  line-height: 1.5;
}

.field-readout code {
  color: var(--station-mint);
}

.concourse-foot {
  display: grid;
  grid-template-columns: 0.7fr 0.8fr 0.85fr 1fr;
  margin-top: 18px;
  border: 1px solid var(--station-steel);
}

.concourse-foot > * {
  padding: 13px 16px;
  border-right: 1px solid var(--station-steel);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.concourse-foot > *:last-child {
  border-right: 0;
  color: var(--station-amber);
  text-align: right;
}

.change-board > header,
.fare-board > header {
  display: grid;
  grid-template-columns: 0.48fr 1.52fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 64px;
}

.change-board > header > span,
.concourse-evidence > div > span,
.fare-board > header > span {
  font-size: 0.61rem;
  font-weight: 700;
  text-transform: uppercase;
}

.change-board h2,
.concourse-evidence h2,
.fare-board h2 {
  max-width: 21ch;
  margin: 0;
  font-family: "Teko", "Arial Narrow", sans-serif;
  font-size: clamp(1.8375rem, 3.675vw, 3.9375rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.change-board h2,
.fare-board h2 {
  color: var(--station-black);
}

.memory-junction {
  min-height: calc(100svh - 60px);
  padding: clamp(72px, 6.5vw, 96px) 3vw 60px;
  scroll-margin-top: 60px;
  overflow: hidden;
  color: var(--station-white);
  border-top: 1px solid var(--station-steel);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 64px 100%,
    var(--station-black);
}

.junction-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 54px);
  width: min(1780px, 100%);
  margin: 0 auto;
}

.junction-head {
  align-self: start;
  padding: 18px 0 0;
}

.junction-head > span {
  display: block;
  max-width: 30ch;
  color: var(--station-amber);
  font-size: 0.61rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.junction-head h2 {
  max-width: 11ch;
  margin: 24px 0 0;
  font-family: "Teko", "Arial Narrow", sans-serif;
  font-size: clamp(1.995rem, 2.94vw, 3.255rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.junction-head p {
  max-width: 47ch;
  margin: 24px 0 0;
  color: #c9ccc3;
  font-size: 0.75rem;
  line-height: 1.7;
}

.junction-instructions {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--station-steel);
}

.junction-instructions span {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid var(--station-steel);
  color: #dfe1da;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.junction-instructions b {
  color: var(--station-amber);
  font-weight: 700;
}

.junction-system-count {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border: 1px solid var(--station-steel);
}

.junction-system-count span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--station-steel);
  color: #969b92;
  font-size: 0.47rem;
  text-transform: uppercase;
}

.junction-system-count span:last-child {
  border-right: 0;
}

.junction-system-count b {
  color: var(--station-white);
  font-family: "Teko", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.junction-shell {
  align-self: start;
  min-width: 0;
  border: 1px solid var(--station-steel);
  background: #202420;
  box-shadow: 22px 28px 60px rgba(0, 0, 0, 0.42);
}

.junction-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 62px;
  border-bottom: 1px solid var(--station-steel);
  background: var(--station-deep);
}

.junction-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
}

.junction-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9ccc3;
  font-size: 0.56rem;
  text-transform: uppercase;
}

.junction-legend i {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.junction-legend .legend-active {
  color: var(--station-amber);
  background: var(--station-amber);
}

.junction-legend .legend-history {
  color: var(--station-red);
}

.junction-legend .legend-signal {
  color: var(--station-mint);
}

.route-replay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 220px;
  min-height: 62px;
  padding: 0 18px;
  color: var(--station-black);
  border: 0;
  background: var(--station-amber);
  cursor: pointer;
  font: 700 0.6rem/1 var(--spec-mono);
  text-transform: uppercase;
}

.route-replay:hover {
  background: var(--station-mint);
}

.junction-stage {
  position: relative;
  height: clamp(470px, 62svh, 690px);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 72% 42%, rgba(255, 190, 34, 0.08), transparent 25%),
    var(--station-black);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.junction-stage.is-panning {
  cursor: grabbing;
}

.junction-stage::before,
.junction-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 190, 34, 0.24);
  border-radius: 50%;
}

.junction-stage::before {
  top: 7%;
  right: 17%;
  width: 31%;
  aspect-ratio: 1;
}

.junction-stage::after {
  right: 24%;
  bottom: 8%;
  width: 18%;
  aspect-ratio: 1;
  border-color: rgba(106, 255, 189, 0.2);
}

.junction-stage-hud {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 12;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  pointer-events: none;
}

.junction-stage-hud > span {
  width: fit-content;
  padding: 8px 10px;
  color: #b7bbb2;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 8, 7, 0.86);
  font-size: 0.5rem;
  text-transform: uppercase;
}

.junction-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--station-mint) !important;
}

.junction-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--station-mint);
  box-shadow: 3px 4px 12px rgba(106, 255, 189, 0.52);
  animation: junction-live-pulse 1.8s ease-in-out infinite;
}

.junction-zoom {
  display: flex;
  justify-self: end;
  pointer-events: auto;
}

.junction-zoom button {
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--station-white);
  border: 1px solid var(--station-steel);
  background: rgba(7, 8, 7, 0.92);
  cursor: pointer;
  font: 700 0.58rem/1 var(--spec-mono);
  text-transform: uppercase;
}

.junction-zoom button + button {
  margin-left: -1px;
}

.junction-zoom button:hover {
  z-index: 2;
  color: var(--station-black);
  border-color: var(--station-amber);
  background: var(--station-amber);
}

.junction-world {
  position: absolute;
  inset: -7%;
  z-index: 2;
  transform-origin: center;
  will-change: transform;
}

.junction-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.junction-node {
  position: absolute;
  z-index: 4;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: 1fr 1fr;
  width: clamp(106px, 11vw, 154px);
  min-height: 62px;
  padding: 0;
  overflow: visible;
  color: var(--station-white);
  border: 1px solid var(--station-steel);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 49%, rgba(0, 0, 0, 0.7) 50%, rgba(255, 255, 255, 0.025) 51%),
    var(--station-deep);
  box-shadow: 8px 10px 22px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  touch-action: none;
  text-align: left;
  transform: translate(-50%, -50%);
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out, color 160ms ease-out;
  user-select: none;
}

.junction-node i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 100%;
  min-height: 62px;
  color: var(--station-black);
  background: var(--station-white);
  font: 600 1.55rem/1 "Teko", sans-serif;
  font-style: normal;
}

.junction-node span {
  align-self: end;
  padding: 8px 8px 2px;
  overflow: hidden;
  font-size: clamp(0.5rem, 0.65vw, 0.66rem);
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.junction-node small {
  padding: 2px 8px 8px;
  color: #9da198;
  font-size: 0.48rem;
  text-transform: uppercase;
}

.junction-node:hover,
.junction-node:focus-visible {
  z-index: 7;
  color: var(--station-amber);
  border-color: var(--station-amber);
  box-shadow: 10px 13px 28px rgba(0, 0, 0, 0.46);
}

.junction-node.is-active {
  z-index: 6;
  color: var(--station-black);
  border-color: var(--station-amber);
  background: var(--station-amber);
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.42);
}

.junction-node.is-dragging {
  z-index: 10;
  cursor: grabbing;
  box-shadow: 16px 20px 34px rgba(0, 0, 0, 0.58);
  transition: none;
}

.junction-node.is-active i {
  color: var(--station-black);
  background: var(--station-mint);
}

.junction-node.is-active small {
  color: #2e312d;
}

.node-history {
  border-color: rgba(255, 57, 71, 0.72);
}

.node-history i {
  color: var(--station-white);
  background: var(--station-red);
}

.node-lexical i,
.node-importance i {
  background: var(--station-mint);
}

.node-query { top: 48%; left: 13%; }
.node-scope { top: 18%; left: 22%; }
.node-fact { top: 42%; left: 36%; }
.node-history { top: 78%; left: 31%; }
.node-graph { top: 17%; left: 54%; }
.node-lexical { top: 77%; left: 54%; }
.node-rank { top: 46%; left: 70%; }
.node-importance { top: 79%; left: 76%; }
.node-answer { top: 22%; left: 88%; }

.junction-node.node-answer {
  width: clamp(132px, 14vw, 190px);
}

.junction-readout {
  display: grid;
  grid-template-columns: 0.75fr 1.6fr 0.65fr 0.4fr;
  min-height: 98px;
  color: var(--station-white);
  border-top: 1px solid var(--station-steel);
  background: var(--station-deep);
}

.junction-readout > * {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--station-steel);
}

.junction-readout > *:last-child {
  border-right: 0;
}

.junction-readout > div {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.junction-readout span,
.junction-readout code,
.junction-readout b {
  font-size: 0.56rem;
  text-transform: uppercase;
}

.junction-readout strong {
  font-family: "Teko", sans-serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 0.9;
  text-transform: uppercase;
}

.junction-readout p {
  max-width: 64ch;
  color: #c9ccc3;
  font-size: 0.7rem;
  line-height: 1.55;
}

.junction-readout code {
  color: var(--station-mint);
}

.junction-readout > b {
  justify-content: center;
  color: var(--station-black);
  background: var(--station-amber);
}

@keyframes junction-live-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.84); }
  50% { opacity: 1; transform: scale(1.2); }
}

.change-board {
  padding: clamp(78px, 8.5vw, 128px) 5vw;
  border-top: 10px solid var(--station-red);
  background: var(--station-amber);
}

.change-rows {
  border-top: 5px solid var(--station-black);
}

.change-rows > div {
  display: grid;
  grid-template-columns: 0.35fr 0.5fr 2fr 0.55fr;
  align-items: center;
  min-height: 110px;
  border-bottom: 1px solid var(--station-black);
}

.change-rows > div > * {
  padding: 0 20px;
  font-style: normal;
}

.change-rows time,
.change-rows span,
.change-rows em {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.change-rows strong {
  font-family: "Teko", sans-serif;
  font-size: clamp(1.5rem, 3vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.change-current {
  color: var(--station-white);
  background: var(--station-black);
}

.change-current em {
  color: var(--station-mint);
}

.concourse-evidence {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5vw;
  align-items: center;
  padding: clamp(82px, 9vw, 136px) 5vw;
  background: var(--station-black);
}

.concourse-evidence figure {
  --scan-x: 50%;
  --scan-y: 50%;
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--station-steel);
  background: var(--station-deep);
  box-shadow: 16px 18px 0 #292d29;
  cursor: crosshair;
}

.concourse-evidence picture {
  display: block;
}

.concourse-evidence img {
  width: 100%;
  height: auto;
  aspect-ratio: 1944 / 809;
  object-fit: contain;
}

.concourse-evidence figure::after {
  content: "";
  position: absolute;
  inset: 0 0 36px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent calc(var(--scan-x) - 1px), rgba(106, 255, 189, 0.72) var(--scan-x), transparent calc(var(--scan-x) + 1px)),
    linear-gradient(transparent calc(var(--scan-y) - 1px), rgba(106, 255, 189, 0.72) var(--scan-y), transparent calc(var(--scan-y) + 1px)),
    radial-gradient(circle 82px at var(--scan-x) var(--scan-y), transparent 0 70%, rgba(7, 8, 7, 0.42) 72%, rgba(7, 8, 7, 0.78) 100%);
  transition: opacity 180ms ease-out;
}

.concourse-evidence figure.is-scanning::after {
  opacity: 1;
}

.concourse-evidence figcaption {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  color: #b8bbb3;
  background: var(--station-deep);
  font-size: 0.57rem;
  text-transform: uppercase;
}

.concourse-evidence figcaption b {
  color: var(--station-mint);
  font-weight: 500;
}

.concourse-evidence h2 {
  margin: 22px 0;
  color: var(--station-white);
  font-size: clamp(2.25rem, 3.975vw, 4.35rem);
}

.concourse-evidence p {
  max-width: 52ch;
  color: #c9ccc3;
  font-size: 0.8rem;
  line-height: 1.7;
}

.concourse-evidence a {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding: 17px 18px;
  color: var(--station-black);
  background: var(--station-amber);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fare-board {
  padding: clamp(78px, 8.5vw, 128px) 5vw;
  color: var(--station-black);
  background: var(--station-white);
}

.fare-rows {
  border: 1px solid var(--station-black);
}

.fare-rows > div {
  display: grid;
  grid-template-columns: 0.4fr 1.7fr 0.6fr 0.45fr;
  min-height: 92px;
  border-bottom: 1px solid var(--station-black);
}

.fare-rows > div:last-child {
  border-bottom: 0;
}

.fare-rows > div > * {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-right: 1px solid var(--station-black);
  font-style: normal;
}

.fare-rows > div > *:last-child {
  border-right: 0;
}

.fare-rows span,
.fare-rows em,
.fare-rows a {
  font-size: 0.61rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fare-rows strong {
  font-family: "Teko", sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

.fare-primary {
  color: var(--station-black);
  background: var(--station-amber);
}

.home-concourse .site-header {
  color: var(--station-white);
  border-bottom-color: var(--station-steel);
  background: rgba(12, 15, 12, 0.96);
}

.home-concourse .nav {
  max-width: none;
}

.home-concourse .nav-brand small {
  color: #a9ada4;
}

.home-concourse .nav-links a,
.home-concourse .nav-social a {
  color: #d8dbd3;
}

.home-concourse .nav-links a:hover,
.home-concourse .nav-social a:hover {
  color: var(--station-amber);
}

.home-concourse .btn-primary {
  color: var(--station-black);
  border-color: var(--station-amber);
  background: var(--station-amber);
}

.home-concourse .btn-primary:hover {
  color: var(--station-black);
  background: var(--station-mint);
}

.home-concourse .concourse-foot > span {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.home-concourse .concourse-foot strong {
  color: var(--station-amber);
  font-family: "Teko", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 0.8;
}

.service-information {
  padding: clamp(78px, 8.5vw, 128px) 5vw;
  color: var(--station-white);
  border-top: 1px solid var(--station-steel);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 64px 100%,
    var(--station-black);
}

.service-information > header {
  display: grid;
  grid-template-columns: 0.48fr 1.52fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}

.service-information > header > span {
  color: var(--station-amber);
  font-size: 0.61rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-information h2 {
  max-width: 11ch;
  margin: 0;
  color: var(--station-white);
  font-family: "Teko", "Arial Narrow", sans-serif;
  font-size: clamp(1.8375rem, 3.675vw, 3.9375rem);
  font-weight: 500;
  line-height: 0.85;
  text-transform: uppercase;
}

.service-questions {
  border-top: 1px solid var(--station-steel);
}

.service-questions details {
  border-bottom: 1px solid var(--station-steel);
}

.service-questions summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: "Teko", sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.7rem);
  line-height: 1;
  list-style: none;
  text-transform: uppercase;
  transition: color 160ms ease-out, background 160ms ease-out;
}

.service-questions summary::-webkit-details-marker {
  display: none;
}

.service-questions summary span {
  color: var(--station-amber);
  font: 700 0.55rem/1 var(--spec-mono);
}

.service-questions summary:hover,
.service-questions summary:focus-visible,
.service-questions details[open] summary {
  color: var(--station-black);
  background: var(--station-amber);
}

.service-questions details[open] summary span {
  color: var(--station-black);
}

.service-questions p {
  max-width: 72ch;
  margin: 0;
  padding: 20px;
  color: #c9ccc3;
  font-size: 0.78rem;
  line-height: 1.7;
}

.last-service {
  padding: clamp(72px, 8vw, 120px) 5vw;
  color: var(--station-black);
  background: var(--station-amber);
}

.last-service > span {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.last-service h2 {
  max-width: 14ch;
  margin: 28px 0 42px;
  color: var(--station-black);
  font-family: "Teko", "Arial Narrow", sans-serif;
  font-size: clamp(2.1rem, 3.675vw, 3.15rem);
  font-weight: 500;
  line-height: 0.78;
  text-transform: uppercase;
}

.last-service > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--station-black);
}

.last-service a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 18px 20px;
  border-right: 1px solid var(--station-black);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.last-service a:last-child {
  border-right: 0;
}

.last-service a:hover,
.last-service a:focus-visible {
  color: var(--station-white);
  background: var(--station-black);
}

.home-concourse .site-footer {
  color: var(--station-white);
  border-top-color: var(--station-steel);
  background: var(--station-deep);
}

.home-concourse .site-footer p,
.home-concourse .site-footer a,
.home-concourse .footer-bottom {
  color: #b8bbb3;
}

.home-concourse .site-footer a:hover {
  color: var(--station-amber);
}

.home-concourse .site-footer h3,
.home-concourse .footer-brand {
  color: var(--station-white);
}

@keyframes flap-flicker {
  0% { filter: brightness(0.45); transform: scaleY(0.94); }
  100% { filter: brightness(1.1); transform: scaleY(1); }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .hub-intro {
    grid-template-columns: 1fr 2fr;
  }

  .hub-intro > p:last-child {
    grid-column: 2;
  }

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

  .spec-card {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
  }

  .spec-card-preview {
    height: 520px;
    border-right: 1px solid #11130f;
    border-bottom: 0;
  }

  .spec-card-copy {
    min-height: auto;
    align-self: end;
  }

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

  .ledger-title-block h1 {
    font-size: clamp(4.4rem, 10vw, 8rem);
  }

  .ledger-evidence {
    grid-template-columns: 0.35fr 0.65fr;
  }

  .ledger-screen {
    grid-column: 1 / -1;
    width: min(820px, 85%);
    justify-self: end;
  }

  .junction-readout {
    grid-template-columns: 0.8fr 1.4fr 0.6fr;
  }

  .junction-readout > b {
    grid-column: 1 / -1;
    min-height: 42px;
    border-top: 1px solid var(--station-steel);
  }
}

@media (max-width: 900px) {
  .concourse-stage,
  .junction-layout {
    display: block;
  }

  .concourse-stage .board-message {
    font-size: clamp(2.25rem, 5.25vw, 3.45rem);
  }

  .concourse-stage .board-message span:nth-child(2),
  .concourse-stage .board-message span:nth-child(3) {
    width: 100%;
    margin-left: 0;
  }

  .concourse-field-panel {
    min-height: 600px;
    margin-top: 18px;
  }

  .junction-head {
    margin-bottom: 42px;
    padding-top: 0;
  }

  .junction-head h2 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 6.3vw, 3.78rem);
  }
}

@media (max-width: 760px) {
  .home-concourse .nav.open .nav-menu {
    color: var(--station-white);
    border-bottom-color: var(--station-steel);
    background: var(--station-deep);
  }

  .home-concourse .nav-toggle {
    color: var(--station-white);
    border-color: var(--station-steel);
  }

  .hub-header {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .hub-header p {
    display: none;
  }

  .specimen-hub main {
    width: calc(100% - 28px);
    padding-top: 58px;
  }

  .hub-intro {
    display: block;
    margin-bottom: 36px;
  }

  .hub-intro h1 {
    margin: 22px 0 28px;
    font-size: clamp(3.2rem, 16vw, 5.4rem);
  }

  .spec-card {
    display: block;
  }

  .spec-card-preview {
    height: 440px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #11130f;
  }

  .hub-note {
    grid-template-columns: 1fr 1fr;
  }

  .hub-note > * {
    border-bottom: 1px solid #11130f;
  }

  .hub-note > *:nth-child(even) {
    border-right: 0;
  }

  .spec-nav {
    grid-template-columns: 1fr auto;
    min-height: 62px;
    padding: 0 12px;
  }

  .spec-nav-brand span,
  .spec-compare {
    display: none;
  }

  .spec-tabs {
    justify-self: end;
  }

  .spec-tabs a {
    min-width: 48px;
    padding: 10px 8px;
  }

  .ledger-hero {
    display: block;
    min-height: auto;
    padding: 94px 18px 34px;
  }

  .ledger-hero::before {
    display: none;
  }

  .ledger-meta {
    top: 76px;
    right: 18px;
    left: 18px;
  }

  .ledger-meta span:nth-child(1),
  .ledger-meta span:nth-child(3) {
    display: none;
  }

  .ledger-title-block {
    padding: 76px 0 20px;
  }

  .ledger-title-block h1 {
    font-size: clamp(4rem, 23vw, 7rem);
  }

  .ledger-title-block h1 span:nth-child(2) {
    transform: translateX(5%);
  }

  .tape-machine {
    min-height: 470px;
  }

  .tape-reel {
    width: 170px;
  }

  .tape-reel-b {
    width: 120px;
  }

  .tape-state {
    width: 142px;
  }

  .state-previous {
    top: 7%;
    right: 0;
  }

  .state-current {
    right: 10%;
    bottom: 14%;
  }

  .ledger-install {
    display: block;
    box-shadow: 7px 7px 0 var(--ledger-blue);
  }

  .ledger-install > * {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--ledger-ink);
  }

  .ledger-install > *:last-child {
    border-bottom: 0;
  }

  .ledger-scroll {
    display: none;
  }

  .ledger-section-head,
  .change-board > header,
  .fare-board > header,
  .service-information > header {
    display: block;
    margin-bottom: 52px;
  }

  .ledger-section-head h2,
  .change-board h2,
  .fare-board h2,
  .service-information h2 {
    margin: 22px 0 28px;
  }

  .ledger-strip article {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 12px 20px;
    padding: 22px 0;
  }

  .ledger-strip p {
    margin: 0;
  }

  .scope-foldout {
    display: block;
  }

  .foldout-stage {
    min-height: 590px;
  }

  .fold-panel {
    top: 14%;
    left: 5%;
    width: 72%;
  }

  .ledger-evidence {
    display: block;
  }

  .evidence-stamp {
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 48px;
  }

  .ledger-evidence-copy {
    margin-bottom: 52px;
  }

  .ledger-screen {
    width: 94%;
    margin-left: 0;
  }

  .ledger-close > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .concourse-hero {
    padding: 82px 12px 24px;
  }

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

  .concourse-sign b {
    display: none;
  }

  .concourse-sign span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .concourse-board {
    padding: 12px;
  }

  .concourse-stage {
    display: block;
  }

  .concourse-stage .board-message {
    font-size: clamp(1.5rem, 6.75vw, 2.4375rem);
    line-height: 0.76;
  }

  .board-message span {
    max-width: 100%;
    white-space: nowrap;
  }

  .board-message span:nth-child(2),
  .board-message span:nth-child(3) {
    width: 100%;
    margin-left: 0;
  }

  .concourse-intro {
    margin-bottom: 18px;
    font-size: 0.68rem;
  }

  .board-head,
  .flap-row {
    grid-template-columns: minmax(44px, 0.55fr) minmax(0, 2.2fr) minmax(54px, 0.8fr);
  }

  .board-head span:last-child,
  .flap-row > b {
    display: none;
  }

  .flap-row > * {
    padding: 7px 8px;
    overflow: visible;
    line-height: 1.2;
    white-space: normal;
  }

  .flap-row strong {
    overflow-wrap: anywhere;
  }

  .flap-row > em {
    justify-content: flex-end;
    text-align: right;
  }

  .platform-install {
    display: block;
  }

  .platform-install > * {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid var(--station-black);
  }

  .platform-install > *:last-child {
    border-bottom: 0;
  }

  .concourse-field-panel {
    min-height: 560px;
    margin-top: 12px;
  }

  .field-panel-head b {
    display: none;
  }

  .field-station {
    min-width: 96px;
    min-height: 44px;
  }

  .field-station i {
    min-height: 44px;
  }

  .station-query { top: 20%; left: 5%; }
  .station-answer { top: 20%; right: 5%; }
  .station-scope { top: 39%; left: 48%; }
  .station-fact { top: 56%; left: 8%; }
  .station-history { top: 65%; right: 5%; }

  .field-readout {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .concourse-foot {
    grid-template-columns: 1fr 1fr;
  }

  .concourse-foot > * {
    border-bottom: 1px solid var(--station-steel);
  }

  .concourse-foot > *:nth-child(even) {
    border-right: 0;
  }

  .memory-junction {
    min-height: 0;
    padding: 82px 12px 70px;
  }

  .junction-layout {
    display: block;
  }

  .junction-head {
    margin-bottom: 36px;
    padding-top: 0;
  }

  .junction-head h2 {
    margin: 22px 0 0;
    font-size: clamp(1.70625rem, 7.35vw, 2.52rem);
  }

  .junction-head p {
    margin-top: 24px;
  }

  .junction-instructions {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 26px;
  }

  .junction-instructions span {
    display: flex;
    min-height: 68px;
    padding: 9px;
    border-right: 1px solid var(--station-steel);
    font-size: 0.48rem;
    line-height: 1.45;
  }

  .junction-instructions span:last-child {
    border-right: 0;
  }

  .junction-instructions b {
    display: block;
    margin-right: 4px;
  }

  .junction-system-count {
    display: none;
  }

  .junction-toolbar {
    display: block;
  }

  .junction-legend {
    gap: 12px 18px;
    min-height: 60px;
  }

  .route-replay {
    width: 100%;
    min-width: 0;
    border-top: 1px solid var(--station-black);
  }

  .junction-stage {
    height: 780px;
    min-height: 780px;
  }

  .junction-world {
    inset: -3%;
  }

  .junction-stage-hud {
    grid-template-columns: auto 1fr;
  }

  .junction-stage-hud > span:nth-child(2) {
    display: none;
  }

  .junction-zoom {
    grid-column: 2;
    grid-row: 1;
  }

  .junction-zoom button {
    min-width: 44px;
    min-height: 44px;
  }

  .junction-stage::before {
    top: 14%;
    right: -8%;
    width: 62%;
  }

  .junction-stage::after {
    right: 56%;
    bottom: 13%;
    width: 38%;
  }

  .junction-node {
    width: min(138px, 39vw);
  }

  .junction-node span {
    font-size: 0.5rem;
  }

  .junction-node.node-answer {
    width: min(138px, 39vw);
  }

  .node-query { top: 15%; left: 20%; }
  .node-scope { top: 15%; left: 75%; }
  .node-fact { top: 35%; left: 20%; }
  .node-history { top: 35%; left: 75%; }
  .node-graph { top: 55%; left: 20%; }
  .node-lexical { top: 55%; left: 75%; }
  .node-rank { top: 75%; left: 20%; }
  .node-importance { top: 75%; left: 75%; }
  .node-answer { top: 92%; left: 50%; }

  .junction-readout {
    grid-template-columns: 1fr 1fr;
  }

  .junction-readout > div,
  .junction-readout > p {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--station-steel);
  }

  .junction-readout > code,
  .junction-readout > b {
    min-height: 52px;
  }

  .junction-readout > b {
    grid-column: auto;
    border-top: 0;
  }

  .change-rows > div {
    grid-template-columns: 0.35fr 1.65fr;
    gap: 14px;
    padding: 18px 0;
  }

  .change-rows > div > * {
    padding: 0 12px;
  }

  .change-rows span,
  .change-rows em {
    grid-column: 2;
  }

  .concourse-evidence {
    display: flex;
    flex-direction: column-reverse;
    gap: 58px;
  }

  .fare-rows > div {
    grid-template-columns: 0.4fr 1.6fr;
  }

  .fare-rows > div > * {
    min-height: 58px;
    padding: 12px;
  }

  .fare-rows em,
  .fare-rows a {
    border-top: 1px solid var(--station-black);
  }

  .service-questions summary {
    min-height: 68px;
    padding: 16px 12px;
    font-size: clamp(1.45rem, 7vw, 2.1rem);
  }

  .last-service h2 {
    margin-bottom: 32px;
    font-size: clamp(1.89rem, 8.4vw, 2.9925rem);
  }

  .last-service > div {
    display: block;
  }

  .last-service a {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid var(--station-black);
  }

  .last-service a:last-child {
    border-bottom: 0;
  }

  .spec-footer {
    gap: 20px;
    padding: 22px 16px;
  }
}

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

  .tape-reel,
  .tape-live,
  .field-panel-head i,
  .junction-live i,
  .flap-row.is-flipping > * {
    animation: none;
  }

  .fold-panel {
    transition: none;
  }
}
