@font-face { font-family: "Plex Condensed"; src: url("fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("fonts/ibm-plex-sans-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --blood: #a50e34;
  --blood-deep: #7d0a27;
  --ink: #10222e;
  --ink-2: #16303f;
  --ink-soft: #3d4c55;
  --ink-line: #3a5060;
  --rule: #c9d0d3;
  --cold: #eef1f1;
  --ice: #9fc4d4;
  --plasma: #f6dc9a;
  --white: #ffffff;
  --condensed: "Plex Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --bar: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--condensed); text-wrap: balance; }
h2 { font-size: clamp(2.75rem, 6.4vw, 5.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.012em; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.code { font-family: var(--mono); font-weight: 500; }
.fine { font-size: 0.875rem; line-height: 1.45; color: var(--ink-soft); max-width: 62em; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 60; padding: 10px 16px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding-inline: 24px; border: 2px solid transparent; background: none; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 180ms, color 180ms, transform 180ms var(--ease-out); }
.button:active { transform: scale(0.97); }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.button-light { background: var(--white); color: var(--blood); }
.button-light:hover { background: var(--plasma); color: var(--ink); }
.button-outline { border-color: var(--white); color: var(--white); }
.button-outline:hover { background: var(--white); color: var(--blood); }
.button-ink { background: var(--ink); color: var(--white); }
.button-ink:hover:not(:disabled) { background: var(--blood); }
.text-button { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background-color 240ms; }
.site-header.is-scrolled { background: var(--ink); }
.site-header-inner { display: flex; align-items: center; gap: 28px; height: var(--bar); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand-name { font-family: var(--condensed); font-size: 1.625rem; font-weight: 700; }
.brand-rest { font-weight: 500; font-size: 0.9375rem; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) left calc(100% - 8px) / 0 2px no-repeat; transition: background-size 220ms var(--ease-out); }
.site-nav a:hover { background-size: 100% 2px; }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px; border: 2px solid var(--white); font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 180ms, color 180ms; }
.header-cta:hover { background: var(--white); color: var(--ink); }

/* Hero */
.cells { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; background: var(--blood); color: var(--white); }
.hero-inner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(24px, 3vw, 40px); padding-top: calc(var(--bar) + 24px); padding-bottom: clamp(28px, 4vw, 56px); }
h1 { font-size: clamp(4.25rem, 13vw, 14rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.02em; }
.mask { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.mask-line { display: block; }
.js .mask-line { transform: translateY(112%); transition: transform 1100ms var(--ease-out); }
.js .mask + .mask .mask-line { transition-delay: 120ms; }
.is-loaded .mask-line { transform: none !important; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.hero-lede { max-width: 32em; font-size: clamp(1.1875rem, 1.7vw, 1.5rem); line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.motion-toggle { min-height: 44px; padding: 0 4px; border: 0; background: none; font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Journey */
.journey { background: var(--ink); color: var(--white); }
.journey-intro { display: flex; flex-direction: column; gap: 20px; padding-block: clamp(96px, 14vw, 180px) clamp(40px, 6vw, 80px); }
.journey-intro h2 { max-width: 12em; }
.journey-intro p { max-width: 36em; font-size: clamp(1.125rem, 1.5vw, 1.375rem); }
.journey-grid { display: grid; grid-template-columns: minmax(300px, 3fr) minmax(0, 7fr); max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); column-gap: clamp(24px, 3vw, 48px); }
.beats { grid-column: 1; grid-row: 1; }
.stage { grid-column: 2; grid-row: 1; position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; gap: 16px; padding-top: calc(var(--bar) + 20px); padding-bottom: 28px; }
.stage-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, 1fr); gap: 24px; }
.scene { width: 100%; height: 100%; min-height: 0; overflow: visible; }
.s-layer { opacity: 0; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene-note { font-family: var(--sans); font-size: 20px; font-weight: 500; fill: #e9eef0; }
.scene-big { font-family: var(--condensed); font-size: 36px; font-weight: 700; fill: #f6dc9a; }
.lb-small { font-family: var(--sans); font-size: 18px; font-weight: 600; fill: #10222e; }
.lb-group { font-family: var(--condensed); font-size: 64px; font-weight: 700; fill: #a50e34; }
.lb-mono { font-family: var(--mono); font-size: 15px; font-weight: 500; fill: #10222e; }
.lb-status { font-family: var(--sans); font-size: 17px; font-weight: 600; fill: #a50e34; }
.sat-text { font-family: var(--condensed); font-size: 32px; font-weight: 700; fill: #10222e; }
.tube-text { font-family: var(--sans); font-size: 16px; font-weight: 500; fill: #e9eef0; }
.band-text { font-family: var(--mono); font-size: 25px; font-weight: 500; fill: #10222e; }
.pin-dot { fill: none; stroke: #f6dc9a; stroke-width: 3; }
.pin-dot.on { fill: #f6dc9a; }

.rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rail li { display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; font-weight: 500; color: #a9b8c2; transition: color 200ms; }
.rail li.is-current, .rail li.is-done { color: var(--white); }
.rail i { display: block; height: 5px; background: var(--ink-line); position: relative; overflow: hidden; }
.rail i::after { content: ""; position: absolute; inset: 0; background: #e0234f; transform: scaleX(var(--p, 0)); transform-origin: left; }

.feed { min-height: 0; display: flex; flex-direction: column; background: var(--ink-2); padding: 16px 18px; }
.feed-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--white); font-family: var(--condensed); font-size: 1.25rem; font-weight: 600; }
.feed-count { font-family: var(--sans); font-size: 0.875rem; font-weight: 500; align-self: center; font-variant-numeric: tabular-nums; }
.feed-list { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 56px); mask-image: linear-gradient(to bottom, transparent, #000 56px); }
.feed-item { display: none; padding-block: 10px; border-top: 1px solid var(--ink-line); font-size: 0.9375rem; line-height: 1.35; }
.feed-item.on { display: block; animation: feed-in 360ms var(--ease-out); }
.feed-item b { display: block; font-weight: 600; }
.feed-item span { color: #c3cfd6; font-size: 0.8125rem; }
@keyframes feed-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.beat { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 48px; }
.beat-inner { display: flex; flex-direction: column; gap: 12px; }
.beat h3 { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 700; line-height: 1.05; }
.beat p { font-size: 1.0625rem; }
.beat-stop { color: var(--plasma); }
.beat-stop strong { font-weight: 600; }
.js .beat-inner { opacity: 0.28; transition: opacity 280ms; }
.js .beat.is-current .beat-inner { opacity: 1; }

/* Scanner game */
.scanner-section { padding-block: clamp(72px, 10vw, 140px); }
.scanner-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.scanner-head p { max-width: 40em; font-size: 1.1875rem; }
.scanner-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.bags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bag { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 178px; padding: 14px; background: var(--white); border: 2px solid var(--ink); border-radius: 0; font-size: 0.875rem; line-height: 1.3; text-align: left; cursor: pointer; transition: transform 220ms var(--ease-out), background-color 180ms, color 180ms, box-shadow 220ms var(--ease-out); }
.bag:hover { transform: translateY(-4px); box-shadow: 0 6px 0 var(--ink); }
.bag:active { transform: translateY(0); box-shadow: none; }
.bag:focus-visible { outline-color: var(--blood); }
.bag.is-scanning { background: var(--ink); color: var(--white); }
.bag[data-result="refused"] { background: #f7e9ed; border-color: var(--blood); color: var(--ink); }
.bag[data-result="cleared"] { background: var(--plasma); color: var(--ink); }
.bag-group { font-family: var(--condensed); font-size: 3rem; font-weight: 700; line-height: 1; }
.bag-din { font-size: 0.75rem; margin-bottom: 6px; }
.bag-tag { margin-top: auto; padding-top: 6px; font-weight: 600; }
.bag-tag:empty { display: none; }
.bag[data-result="refused"] .bag-tag { color: var(--blood); }
.bag-ghost { position: fixed; z-index: 40; pointer-events: none; margin: 0; }

.device { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--ink); color: var(--white); transition: background-color 260ms; }
.device[data-state="refused"] { background: var(--blood-deep); }
.device[data-state="cleared"] { background: var(--plasma); color: var(--ink); }
.device[data-state="refused"].shake { animation: shake 420ms; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.device-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 10px; border-bottom: 2px solid currentColor; font-size: 0.875rem; font-weight: 500; }
.device-score { font-variant-numeric: tabular-nums; }
.device-beam { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--plasma); box-shadow: 0 0 26px 8px rgba(246, 220, 154, 0.5); opacity: 0; }
.device[data-state="scanning"] .device-beam { opacity: 1; animation: device-sweep 900ms ease-in-out infinite alternate; }
@keyframes device-sweep { from { transform: translateY(0); } to { transform: translateY(380px); } }
.checks { display: flex; flex-direction: column; gap: 4px; }
.checks li { display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: 0.9375rem; opacity: 0.55; transition: opacity 160ms; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; }
.checks li.pass, .checks li.fail { opacity: 1; }
.checks li.pass::before { background: currentColor; box-shadow: inset 0 0 0 3px var(--ink); }
.device[data-state="cleared"] .checks li.pass::before { box-shadow: inset 0 0 0 3px var(--plasma); }
.device[data-state="refused"] .checks li.pass::before { box-shadow: inset 0 0 0 3px var(--blood-deep); }
.checks li.fail { font-weight: 600; }
.checks li.fail::before { width: 18px; height: 18px; border: 0; border-radius: 0; background: linear-gradient(45deg, transparent 42%, currentColor 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, currentColor 42% 58%, transparent 58%); }
.verdict { display: flex; flex-direction: column; gap: 4px; margin-top: auto; min-height: 112px; }
.verdict-title { font-family: var(--condensed); font-size: 2.25rem; font-weight: 700; line-height: 1.05; }
.verdict-message { font-family: var(--mono); font-size: 0.9375rem; font-weight: 500; line-height: 1.4; }
.verdict-why { font-size: 0.9375rem; line-height: 1.4; }
.scanner-fine { margin-top: 16px; }

/* Playground */
.playground { background: var(--cold); padding-block: clamp(72px, 10vw, 140px); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-block: clamp(24px, 3vw, 40px) 0; border-bottom: 2px solid var(--ink); }
.tab { position: relative; min-height: 56px; padding: 0; border: 0; background: none; font-family: var(--condensed); font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: color 160ms; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 6px; background: var(--blood); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding-top: clamp(28px, 3.5vw, 48px); align-items: start; }
.panel[hidden] { display: none; }
.panel-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.panel-copy h3 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 700; line-height: 1.08; }
.panel-copy p { min-height: 3em; }

.cold-visual { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cold-chart-wrap { position: relative; background: var(--ink); color: var(--white); padding: 16px; transition: background-color 300ms; }
.cold-visual.is-alarm .cold-chart-wrap { background: var(--blood-deep); }
.cold-readout { position: absolute; top: 14px; right: 18px; font-family: var(--condensed); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cold-chart { display: block; width: 100%; height: clamp(170px, 20vw, 240px); }
.cold-band { fill: var(--ice); opacity: 0.16; }
.cold-limit { stroke: var(--ice); stroke-width: 1; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.cold-line { stroke: var(--plasma); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.units { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.unit { display: flex; align-items: center; justify-content: center; height: 46px; background: var(--white); border: 2px solid var(--ink); font-family: var(--condensed); font-size: 1.125rem; font-weight: 700; transition: background-color 200ms, color 200ms, transform 240ms var(--ease-out); }
.unit.held { background: var(--blood); border-color: var(--blood); color: var(--white); transform: scale(0.92); }
.alert-line { min-height: 1.5em; font-size: 0.875rem; line-height: 1.4; color: var(--blood); }

.chain-status { font-weight: 600; min-height: 3em; }
.chain-status.is-broken { color: var(--blood); }
.chain-list { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 2px solid var(--ink); }
.chain-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 12px 16px; border-top: 1px solid var(--rule); transition: background-color 220ms; }
.chain-row:first-child { border-top: 0; }
.chain-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chain-who { font-size: 0.8125rem; color: var(--ink-soft); }
.chain-text { font-weight: 500; }
.chain-row-edit { background: #fff6d6; }
.chain-input { width: 100%; min-height: 40px; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; font-weight: 500; }
.chain-input:focus-visible { outline-color: var(--blood); outline-offset: 1px; }
.chain-hash { font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.chain-row.is-broken { background: #f7e9ed; }
.chain-row.is-broken .chain-hash { color: var(--blood); text-decoration: line-through; }

.camp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; font-weight: 600; cursor: pointer; }
.switch-track { position: relative; width: 56px; height: 30px; background: #6b7a84; transition: background-color 200ms; }
.switch-thumb { position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; background: var(--white); transition: transform 240ms var(--ease-out); }
.switch[aria-checked="true"] .switch-track { background: var(--blood); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(26px); }
.camp-visual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 110px) minmax(0, 1fr); gap: 0; align-items: stretch; min-width: 0; }
.camp-box { min-width: 0; min-height: 340px; padding: 16px; background: var(--white); border: 2px solid var(--ink); display: flex; flex-direction: column; gap: 4px; }
.camp-box h4 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.camp-sub { font-size: 0.875rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.camp-stack { display: flex; flex-direction: column; gap: 4px; }
.camp-stack li { padding: 5px 8px; background: var(--cold); font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; animation: feed-in 300ms var(--ease-out); overflow-wrap: anywhere; }
.camp-link { position: relative; display: flex; align-items: center; justify-content: center; }
.camp-link-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed #6b7a84; transition: border-color 200ms; }
.camp-visual[data-online="true"] .camp-link-line { border-top-style: solid; border-color: var(--blood); }
.camp-link-text { position: relative; padding: 2px 4px; background: var(--cold); font-size: 0.75rem; font-weight: 600; text-align: center; line-height: 1.2; }
.camp-packet { position: fixed; z-index: 40; width: 16px; height: 16px; border-radius: 50%; background: var(--blood); pointer-events: none; }

/* Inspected */
.inspected { background: var(--ink); color: var(--white); padding-block: clamp(72px, 10vw, 140px); }
.inspected .fine { color: #c3cfd6; }
.inspected-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.inspected-head p { max-width: 42em; font-size: 1.1875rem; }
.rehearsal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 40px); margin-bottom: 16px; }
.rehearsal > div { display: flex; flex-direction: column; gap: 6px; }
.big { order: -1; font-family: var(--condensed); font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 700; line-height: 1; color: var(--plasma); font-variant-numeric: tabular-nums; }
.rehearsal dt { font-size: 1rem; line-height: 1.35; }
.details-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
details { border-top: 2px solid var(--white); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-family: var(--condensed); font-size: 1.5rem; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 18px; height: 18px; background: linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat, linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat; transition: transform 280ms var(--ease-out); }
details[open] summary::after { transform: rotate(135deg); }
.ruled li { padding-block: 10px; border-top: 1px solid var(--ink-line); font-size: 1rem; line-height: 1.4; }
.ruled { padding-bottom: 20px; animation: feed-in 340ms var(--ease-out); }
.connects { margin-top: clamp(40px, 5vw, 64px); }
.connects h3 { padding-bottom: 8px; border-bottom: 2px solid currentColor; }
.connects dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 4px 24px; padding-block: 12px; border-bottom: 1px solid var(--ink-line); }
.connects dt { font-weight: 600; }
.connects dd { max-width: 48em; }

/* Road */
.road-section { padding-block: clamp(72px, 10vw, 140px); }
.road-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.road-head p { max-width: 38em; font-size: 1.1875rem; }
.road-track { position: relative; --dot: 22px; }
/* Ends at the seventh dot, not at the edge of the seventh column. */
.road-line { position: absolute; left: 0; right: calc((100% - 6 * 18px) / 7 - var(--dot)); top: calc(var(--dot) / 2 - 2px); height: 4px; background: var(--rule); }
.road-line i { display: block; height: 100%; background: var(--blood); transform: scaleX(var(--road, 0)); transform-origin: left; }
.road { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; counter-reset: road; }
.road li { counter-increment: road; padding-top: calc(var(--dot) + 14px); position: relative; }
.road li::before { content: ""; position: absolute; left: 0; top: 0; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--white); border: 4px solid var(--rule); transition: background-color 240ms, border-color 240ms, transform 320ms var(--ease-out); }
.road li.is-on::before { background: var(--blood); border-color: var(--blood); transform: scale(1.15); }
.road h3 { font-size: 1.375rem; margin-bottom: 6px; }
.road h3::before { content: counter(road) " "; color: var(--blood); }
.road p { font-size: 0.9375rem; line-height: 1.4; }

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--blood); color: var(--white); }
.contact-inner { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: end; padding-block: clamp(80px, 11vw, 160px) clamp(32px, 4vw, 56px); }
.contact-inner h2 { font-size: clamp(3.25rem, 8.4vw, 8.5rem); line-height: 0.95; margin-bottom: 20px; }
.contact-inner p { font-size: 1.1875rem; max-width: 34em; }
.contact-card { background: var(--white); color: var(--ink); padding: 8px 24px; }
.contact-card > div { padding-block: 12px; }
.contact-card > div + div { border-top: 1px solid var(--rule); }
.contact-card dt { font-size: 0.875rem; color: var(--ink-soft); }
.contact-card dd { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-card a { display: inline-block; padding-block: 5px; text-underline-offset: 3px; }
.contact-card a:hover { color: var(--blood); }
.contact-card .contact-address { margin-top: 4px; font-size: 1rem; font-weight: 400; line-height: 1.4; }
.contact-card address { font-style: normal; }
.site-footer { position: relative; padding-bottom: 32px; font-size: 0.875rem; }

/* Reveal: headings rise once as they arrive */
.reveals-on .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.reveals-on .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .stage-body { grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr); }
}

@media (max-width: 960px) {
  .journey-grid { display: block; padding-inline: 0; }
  .stage { z-index: 2; top: var(--bar); height: calc(58vh - 20px); height: calc(58svh - 20px); padding: 10px var(--gutter) 8px; gap: 6px; background: var(--ink); }
  .stage-body { display: flex; flex-direction: column; gap: 6px; }
  .scene { flex: 1; min-height: 0; }
  .rail span { display: none; }
  .feed { flex: none; padding: 0; background: none; }
  .feed-head { display: none; }
  .feed-list { display: block; height: 2.9em; -webkit-mask-image: none; mask-image: none; }
  .feed-item { border: 0; padding-block: 0; font-size: 0.875rem; }
  .feed-item.on { display: none; }
  .feed-item.on.is-last { display: block; }
  .beats { padding-inline: var(--gutter); }
  .beat { min-height: 62vh; min-height: 62svh; padding-block: 28px; }
  .panel, .scanner-grid, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .road { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .road-line { left: calc(var(--dot) / 2 - 2px); right: auto; top: 0; bottom: 3em; width: 4px; height: auto; }
  .road-line i { width: 100%; transform: scaleY(var(--road, 0)); transform-origin: top; }
  .road li { padding-top: 0; padding-left: calc(var(--dot) + 18px); }
  .panel-copy p, .chain-status { min-height: 0; }
}

@media (max-width: 680px) {
  :root { --bar: 64px; }
  h1 { font-size: 17.5vw; }
  .bags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rehearsal, .details-group { grid-template-columns: minmax(0, 1fr); }
  .rehearsal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connects dl > div { grid-template-columns: minmax(0, 1fr); }
  .units { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .camp-visual { grid-template-columns: minmax(0, 1fr); }
  .camp-box { min-height: 150px; }
  .camp-link { height: 56px; }
  .camp-link-line { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 3px dashed #6b7a84; }
  .camp-visual[data-online="true"] .camp-link-line { border-left-style: solid; border-color: var(--blood); }
  .chain-row { grid-template-columns: minmax(0, 1fr); }
  .brand-rest { display: none; }
  .header-cta { font-size: 0.875rem; padding-inline: 12px; }
  .hero-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .device[data-state="scanning"] .device-beam { opacity: 0; }
}
