:root {
  color-scheme: dark;
  --ink: #f5f2e8;
  --muted: #a9a79f;
  --dim: #85847d;
  --black: #08090a;
  --panel: rgba(13, 15, 17, 0.82);
  --panel-solid: #111315;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  --orange: #ff9d24;
  --orange-pale: #ffd49a;
  --cyan: #73e5ff;
  --tour-accent: #73e5ff;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --condensed: "Arial Narrow", "Avenir Next Condensed", var(--sans);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; background: var(--black); }
html { overflow: hidden; }
body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

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

.corridor-app { min-height: 100svh; }
.corridor-stage {
  position: relative;
  height: 100dvh;
  min-height: 32rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(34, 45, 50, 0.82), transparent 35%),
    linear-gradient(180deg, #15191c 0%, #090a0c 70%);
}
.corridor-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.38)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 45%, rgba(0, 0, 0, 0.2));
  mix-blend-mode: multiply;
}

#corridor {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: grab;
  touch-action: none;
}
#corridor:active { cursor: grabbing; }
#corridor:focus-visible { outline: 2px solid var(--orange); outline-offset: -7px; }

.topbar {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) max(1.15rem, env(safe-area-inset-right)) 0 max(1.15rem, env(safe-area-inset-left));
  pointer-events: none;
}
.wordmark,
.topbar-actions { pointer-events: auto; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}
.wordmark-mark {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 157, 36, 0.62);
  color: var(--black);
  background: var(--orange);
  box-shadow: 0 0 1.8rem rgba(255, 157, 36, 0.16);
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0;
}
.wordmark:hover, .wordmark:focus-visible { color: var(--orange-pale); outline: none; }
.topbar-actions { display: flex; align-items: center; gap: 0.5rem; }

.hud-button,
.auto-button,
.drive-control,
.primary-button,
.text-button,
.directory-bio {
  min-height: 44px;
  border: 0;
  cursor: pointer;
}
.hud-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(11, 13, 15, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.button-count { color: var(--orange); font-size: 0.56rem; letter-spacing: 0.11em; }
.hud-button:hover, .hud-button:focus-visible {
  border-color: var(--orange);
  color: var(--orange-pale);
  outline: none;
}

.intro-panel {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: max(1.25rem, calc(env(safe-area-inset-left) + 0.25rem));
  width: min(33rem, calc(100% - 2.5rem));
  padding: clamp(1.2rem, 3vw, 2rem);
  transform: translateY(-48%);
  border-left: 3px solid var(--orange);
  background: linear-gradient(90deg, rgba(8, 9, 10, 0.94), rgba(8, 9, 10, 0.76) 72%, transparent);
  filter: drop-shadow(0 1.5rem 4rem rgba(0, 0, 0, 0.42));
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.78, 0.2, 1), visibility 320ms ease;
}
.is-driving .intro-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-1.5rem, -48%);
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-size: 0.59rem;
  font-weight: 880;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}
.intro-panel h2,
.dialog-header h2,
.detail-copy h2,
.bio-copy h2,
.webgl-fallback h2,
.noscript-fallback h2 {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-transform: uppercase;
}
.intro-panel h2 { max-width: 10ch; font-size: clamp(3rem, 7vw, 6.8rem); }
.intro-panel > p:not(.eyebrow, .intro-hint) {
  max-width: 31rem;
  margin: 1.15rem 0 1.35rem;
  color: #c7c5bd;
  font-size: clamp(0.9rem, 1.55vw, 1.08rem);
  line-height: 1.65;
}
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; }
.primary-button,
.primary-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--orange);
  color: #16110a;
  background: var(--orange);
  box-shadow: 0 0.8rem 2.5rem rgba(255, 157, 36, 0.14);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}
.primary-button:hover, .primary-button:focus-visible,
.primary-link:hover, .primary-link:focus-visible {
  border-color: #ffd49a;
  background: #ffd49a;
  outline: none;
  transform: translateY(-1px);
}
.text-button {
  padding: 0.72rem 0.85rem;
  color: var(--ink);
  background: transparent;
  font-size: 0.67rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.text-button:hover, .text-button:focus-visible { color: var(--orange); outline: none; }
.intro-hint {
  margin: 1rem 0 0;
  color: var(--dim);
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.mobile-hint { display: none; }

.route-hud {
  position: absolute;
  z-index: 6;
  left: max(1.25rem, env(safe-area-inset-left));
  bottom: max(3.7rem, calc(env(safe-area-inset-bottom) + 3rem));
  width: min(18rem, calc(50vw - 1.5rem));
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 240ms ease, transform 240ms ease;
}
.is-driving .route-hud { opacity: 1; transform: translateY(0); }
.route-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  color: rgba(245, 242, 232, 0.72);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.route-track { height: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.18); }
.route-track span { display: block; width: 0; height: 100%; background: var(--orange); box-shadow: 0 0 1rem rgba(255, 157, 36, 0.72); }
.chapter-cue {
  position: absolute;
  bottom: calc(100% + 0.62rem);
  left: 7.75rem;
  width: min(24rem, calc(100vw - 10.5rem));
  padding: 0.78rem 0.9rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--chapter-accent, var(--orange)) 58%, transparent);
  border-left: 3px solid var(--chapter-accent, var(--orange));
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--chapter-accent, var(--orange)) 12%, transparent), transparent 72%),
    rgba(7, 10, 12, 0.92);
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.55rem);
  transition: opacity 220ms ease, transform 260ms ease, visibility 220ms ease;
  visibility: hidden;
}
.route-hud.has-chapter-cue .chapter-cue { opacity: 1; transform: translateY(0); visibility: visible; }
.chapter-cue span,
.chapter-cue small { display: block; color: var(--chapter-accent, var(--orange)); font-size: 0.5rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.chapter-cue strong { display: block; margin-top: 0.32rem; font-size: 0.82rem; line-height: 1.36; }
.chapter-cue small { margin-top: 0.38rem; color: rgba(245, 242, 232, 0.56); font-size: 0.46rem; letter-spacing: 0.08em; }
.has-open-dialog .chapter-cue,
.is-guided-tour .chapter-cue { opacity: 0; transform: translateY(0.4rem); visibility: hidden; }

.project-radar {
  position: absolute;
  z-index: 6;
  left: max(1.25rem, env(safe-area-inset-left));
  bottom: max(6rem, calc(env(safe-area-inset-bottom) + 5.2rem));
  width: 7rem;
  padding: 0.5rem;
  border: 1px solid rgba(115, 229, 255, 0.34);
  color: var(--ink);
  background: rgba(7, 12, 15, 0.84);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 1rem 2.5rem rgba(0, 0, 0, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.45rem);
  transition: opacity 240ms ease, transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.is-driving .project-radar { opacity: 1; transform: translateY(0); }
.is-auto-driving .project-radar { border-color: rgba(115, 229, 255, 0.7); box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 1.4rem rgba(115, 229, 255, 0.18); }
.is-route-complete .project-radar { border-color: rgba(255, 157, 36, 0.8); box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 1.8rem rgba(255, 157, 36, 0.22); }
.radar-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.radar-header span { color: var(--cyan); font-size: 0.45rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.radar-header strong { color: var(--orange-pale); font-size: 0.52rem; letter-spacing: 0.06em; }
.radar-scope {
  position: relative;
  height: 5.3rem;
  overflow: hidden;
  border: 1px solid rgba(115, 229, 255, 0.2);
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 0.92rem, rgba(115, 229, 255, 0.08) 0.96rem 1rem),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(115, 229, 255, 0.14) 50%, transparent calc(50% + 1px)),
    rgba(3, 11, 14, 0.82);
}
.radar-scope::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: -24%;
  right: 0;
  left: 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(115, 229, 255, 0.18));
  animation: radar-sweep 3.8s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.is-driving .radar-scope::after { animation-play-state: running; }
.has-open-dialog .radar-scope::after { animation-play-state: paused; }
.radar-spine { position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(245, 242, 232, 0.2); }
.radar-view-cone {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 2.5rem;
  height: 2.9rem;
  background: linear-gradient(180deg, rgba(115, 229, 255, 0), rgba(115, 229, 255, 0.22));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.72;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
}
.radar-rover {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 0.72rem;
  height: 0.88rem;
  background: var(--orange);
  box-shadow: 0 0 0.8rem rgba(255, 157, 36, 0.72);
  clip-path: polygon(50% 0, 100% 100%, 50% 74%, 0 100%);
  transform: translate(-50%, -50%);
}
.radar-stop {
  position: absolute;
  z-index: 2;
  width: 0.46rem;
  height: 0.46rem;
  border: 1px solid var(--radar-accent);
  border-radius: 50%;
  background: rgba(4, 10, 12, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: top 180ms linear, opacity 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.radar-stop.is-in-range { opacity: 0.46; }
.radar-stop.is-in-range.is-seen { background: var(--radar-accent); box-shadow: 0 0 0.7rem var(--radar-accent); opacity: 0.94; }
.radar-stop.is-in-range.is-passed:not(.is-current) { opacity: 0.22; }
.radar-stop.is-current { outline: 1px solid #ffffff; outline-offset: 2px; opacity: 1; }
.radar-stop.is-newly-seen { animation: radar-discovery 680ms ease-out 1; }
.radar-stop.is-tour-target {
  border-radius: 0;
  background: var(--radar-accent);
  box-shadow: 0 0 0.9rem var(--radar-accent);
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg) scale(1.18);
  animation: tour-target-pulse 1.3s ease-in-out infinite;
}
.is-signal-run .radar-stop.is-signal-route {
  opacity: 0.9;
  border-color: var(--tour-accent);
  box-shadow: 0 0 0 1px var(--tour-accent), 0 0 0.75rem color-mix(in srgb, var(--tour-accent) 54%, transparent);
}
.is-signal-run .radar-stop.is-tour-target {
  border-color: var(--tour-accent);
  background: var(--tour-accent);
  box-shadow: 0 0 1rem var(--tour-accent);
}

@keyframes radar-sweep { to { transform: translateY(520%); } }
@keyframes radar-discovery {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
  100% { box-shadow: 0 0 0 1.1rem rgba(255, 255, 255, 0); }
}
@keyframes tour-target-pulse {
  50% { box-shadow: 0 0 1.15rem var(--radar-accent); transform: translate(-50%, -50%) rotate(45deg) scale(1.48); }
}

.near-stop {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: max(7rem, calc(env(safe-area-inset-bottom) + 6.2rem));
  width: min(36rem, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.82rem 1rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 157, 36, 0.5);
  color: var(--ink);
  background: rgba(10, 11, 13, 0.88);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.38), inset 3px 0 var(--orange);
  backdrop-filter: blur(14px);
  text-align: left;
}
.near-stop-copy { min-width: 0; display: grid; gap: 0.15rem; }
.near-stop-kicker,
.near-stop-action { color: var(--orange); font-size: 0.49rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.near-stop strong { overflow: hidden; font-size: 0.88rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.near-stop-action { color: var(--muted); }
.near-stop-actions { display: flex; align-items: center; gap: 0.4rem; }
.near-action-short { display: none; }
.near-stop-actions button {
  min-height: 44px;
  padding: 0.65rem 0.78rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.near-stop-dock { border-color: var(--orange) !important; color: #181108 !important; background: var(--orange) !important; }
.near-stop-garage { border-color: #f6c453 !important; color: #1b1507 !important; background: #f6c453 !important; }
.near-stop-actions button:hover,
.near-stop-actions button:focus-visible { border-color: var(--orange); color: var(--orange-pale); outline: none; }
.near-stop-dock:hover,
.near-stop-dock:focus-visible { color: #181108 !important; box-shadow: 0 0 0 2px #08090a, 0 0 0 4px var(--orange); }
.near-stop-garage:hover,
.near-stop-garage:focus-visible { color: #1b1507 !important; box-shadow: 0 0 0 2px #08090a, 0 0 0 4px #f6c453; }

.display-dock {
  --dock-accent: var(--cyan);
  position: absolute;
  z-index: 11;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  width: min(50rem, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--dock-accent) 66%, transparent);
  border-left: 4px solid var(--dock-accent);
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--dock-accent) 9%, transparent), transparent 62%),
    rgba(7, 10, 12, 0.94);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.48), 0 0 2rem color-mix(in srgb, var(--dock-accent) 10%, transparent);
  backdrop-filter: blur(16px);
}
.display-dock-header { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.display-dock-kicker,
.display-dock-readout span,
.display-dock-view-area > span { color: var(--dock-accent); font-size: 0.48rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.display-dock-header h2 { margin: 0.18rem 0 0; font-family: var(--condensed); font-size: clamp(1.45rem, 3vw, 2.2rem); letter-spacing: -0.04em; line-height: 0.94; text-transform: uppercase; }
.display-dock-header h2:focus-visible { outline: 2px solid var(--dock-accent); outline-offset: 4px; }
.display-dock-readout { flex: 0 0 auto; display: grid; justify-items: end; gap: 0.22rem; text-align: right; }
.display-dock-readout span { color: rgba(245, 242, 232, 0.58); letter-spacing: 0.08em; }
.display-dock-readout strong { overflow: hidden; max-width: 23rem; color: var(--dock-accent); font-size: 0.68rem; letter-spacing: 0.08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.display-dock-description { grid-column: 1; max-width: 46rem; margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
.project-reel-nav {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: 0.3rem;
}
.project-reel-nav[hidden] { display: none; }
.display-dock-reel { grid-column: 1; width: min(24rem, 100%); }
.project-reel-nav button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}
.project-reel-nav button:hover,
.project-reel-nav button:focus-visible { border-color: var(--dock-accent); color: var(--dock-accent); outline: none; box-shadow: 0 0 0 2px #08090a, 0 0 0 4px var(--dock-accent); }
.project-reel-nav p { min-width: 0; margin: 0; display: grid; align-content: center; gap: 0.16rem; padding: 0.35rem 0.55rem; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.2); }
.project-reel-nav p span { color: var(--dock-accent); font-size: 0.46rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.project-reel-nav p strong { overflow: hidden; color: var(--ink); font-size: 0.66rem; letter-spacing: 0.04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.display-dock-controls { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: end; gap: 0.5rem; }
.display-dock-view-area { min-width: 8.8rem; display: grid; gap: 0.26rem; }
.display-dock-view-area select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 2rem 0 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, var(--dock-accent) 50%) calc(100% - 0.85rem) calc(50% - 2px) / 5px 5px no-repeat,
    linear-gradient(135deg, var(--dock-accent) 50%, transparent 50%) calc(100% - 0.55rem) calc(50% - 2px) / 5px 5px no-repeat,
    #0c1114;
  font-size: 0.66rem;
  font-weight: 800;
}
.display-dock-zoom { display: grid; grid-template-columns: repeat(3, auto); gap: 0.3rem; }
.display-dock-controls button,
.display-dock-actions button {
  min-height: 44px;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.display-dock-controls button[aria-disabled="true"] { color: rgba(245, 242, 232, 0.36); cursor: not-allowed; }
.display-dock-view-area select[aria-disabled="true"] { border-color: rgba(245, 242, 232, 0.15); color: rgba(245, 242, 232, 0.42); cursor: not-allowed; opacity: 0.68; }
.display-dock-controls button:hover:not([aria-disabled="true"]),
.display-dock-controls button:focus-visible,
.display-dock-actions button:hover,
.display-dock-actions button:focus-visible,
.display-dock-view-area select:focus-visible { border-color: var(--dock-accent); outline: none; box-shadow: 0 0 0 2px #08090a, 0 0 0 4px var(--dock-accent); }
.display-dock-actions { grid-column: 1; display: flex; align-items: center; gap: 0.4rem; }
.display-dock-actions button:first-child { border-color: var(--dock-accent); color: #071015; background: var(--dock-accent); }
.display-dock-shortcuts { grid-column: 2; align-self: center; margin: 0; color: var(--dim); font-size: 0.5rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1.4; text-align: right; text-transform: uppercase; }
.dock-control-symbol { display: none; }

.corridor-stage.is-display-docked::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.56), transparent 15%, transparent 85%, rgba(0, 0, 0, 0.56)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 30%, rgba(0, 0, 0, 0.38));
  mix-blend-mode: normal;
}
.is-display-docked .route-hud,
.is-display-docked .project-radar,
.is-display-docked .stop-markers,
.is-display-docked .drive-deck,
.is-display-docked .near-stop,
.is-display-docked .end-console,
.is-display-docked .tour-panel { opacity: 0; pointer-events: none; }

.garage-deck {
  --garage-accent: #f6c453;
  position: absolute;
  z-index: 11;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  width: min(50rem, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--garage-accent) 68%, transparent);
  border-left: 4px solid var(--garage-accent);
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--garage-accent) 10%, transparent), transparent 62%),
    rgba(7, 9, 12, 0.95);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5), 0 0 2.2rem color-mix(in srgb, var(--garage-accent) 12%, transparent);
  backdrop-filter: blur(16px);
}
.garage-header { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.garage-header > div:first-child { min-width: 0; }
.garage-kicker,
.garage-readout span { color: var(--garage-accent); font-size: 0.48rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.garage-kicker { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.garage-header h2 { margin: 0.18rem 0 0; font-family: var(--condensed); font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -0.04em; line-height: 0.94; text-transform: uppercase; }
.garage-header h2:focus-visible { outline: 2px solid var(--garage-accent); outline-offset: 0; }
.garage-readout { flex: 0 0 auto; display: grid; justify-items: end; gap: 0.22rem; text-align: right; }
.garage-readout span { color: rgba(245, 242, 232, 0.58); letter-spacing: 0.08em; }
.garage-readout strong { color: var(--garage-accent); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.garage-description { grid-column: 1; max-width: 46rem; margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
.garage-navigation { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: auto minmax(7.8rem, auto) auto; align-items: end; gap: 0.3rem; }
.garage-navigation button,
.garage-actions button {
  min-height: 44px;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.garage-navigation button:hover,
.garage-navigation button:focus-visible,
.garage-actions button:hover,
.garage-actions button:focus-visible { border-color: var(--garage-accent); outline: none; box-shadow: 0 0 0 2px #08090a, 0 0 0 4px var(--garage-accent); }
.garage-navigation button[aria-pressed="true"] { border-color: var(--garage-accent); color: #1b1507; background: var(--garage-accent); }
.garage-navigation button:disabled { color: rgba(245, 242, 232, 0.34); cursor: not-allowed; opacity: 0.62; }
.garage-actions { grid-column: 1; display: flex; align-items: center; gap: 0.4rem; }
.garage-actions button:first-child { border-color: var(--garage-accent); color: #1b1507; background: var(--garage-accent); }
.garage-shortcuts { grid-column: 2; align-self: center; margin: 0; color: var(--dim); font-size: 0.5rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1.4; text-align: right; text-transform: uppercase; }
.garage-control-symbol { display: none; }

.corridor-stage.is-garage-active::after {
  background:
    radial-gradient(circle at 50% 48%, transparent 28%, rgba(0, 0, 0, 0.46) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 35%, rgba(0, 0, 0, 0.36));
  mix-blend-mode: normal;
}
.is-garage-active .route-hud,
.is-garage-active .project-radar,
.is-garage-active .stop-markers,
.is-garage-active .drive-deck,
.is-garage-active .near-stop,
.is-garage-active .end-console,
.is-garage-active .tour-panel,
.is-garage-active .drive-instructions { opacity: 0; visibility: hidden; pointer-events: none; }

.end-console {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: max(7rem, calc(env(safe-area-inset-bottom) + 6.2rem));
  width: min(22rem, calc(100% - 2rem));
  display: grid;
  gap: 0.15rem;
  padding: 0.82rem 1rem;
  transform: translateX(-50%);
  border: 1px solid rgba(115, 229, 255, 0.58);
  color: var(--ink);
  background: rgba(6, 14, 17, 0.92);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.38), inset 3px 0 var(--cyan), 0 0 2rem rgba(115, 229, 255, 0.08);
  backdrop-filter: blur(14px);
  cursor: pointer;
  text-align: left;
}
.end-console:hover, .end-console:focus-visible { border-color: var(--cyan); outline: none; }
.end-console-kicker,
.end-console-action { color: var(--cyan); font-size: 0.49rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.end-console strong { font-size: 0.88rem; line-height: 1.3; }
.end-console-action { color: var(--muted); }

.tour-panel {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: max(7rem, calc(env(safe-area-inset-bottom) + 6.2rem));
  width: min(30rem, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.82rem 0.9rem;
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--tour-accent) 64%, transparent);
  color: var(--ink);
  background: rgba(7, 12, 15, 0.92);
  box-shadow: inset 3px 0 var(--tour-accent), 0 1.5rem 4rem rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}
.tour-panel-copy { min-width: 0; display: grid; gap: 0.12rem; }
.tour-step { color: var(--tour-accent); font-size: 0.48rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.tour-panel-copy strong { overflow: hidden; font-size: 0.92rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.tour-message { color: var(--muted); font-size: 0.61rem; line-height: 1.4; }
.tour-panel-actions { display: flex; align-items: center; gap: 0.35rem; }
.tour-panel .primary-button,
.tour-panel .text-button { min-height: 44px; white-space: nowrap; }
.tour-panel .text-button { padding-inline: 0.65rem; }
.tour-inspect-button { padding: 0.62rem 0.8rem; }
.auto-button.is-tour-active { border-color: var(--tour-accent); color: var(--tour-accent); }
.auto-button.is-tour-active .auto-light { border-radius: 0; background: var(--tour-accent); box-shadow: 0 0 0.9rem var(--tour-accent); transform: rotate(45deg); }
.is-signal-run .route-track span { background: var(--tour-accent); box-shadow: 0 0 1rem color-mix(in srgb, var(--tour-accent) 72%, transparent); }

.stop-markers { position: absolute; z-index: 5; inset: 0; overflow: hidden; pointer-events: none; }
.stop-marker {
  position: absolute;
  min-width: 8.4rem;
  max-width: 12rem;
  display: grid;
  gap: 0.2rem;
  padding: 0.62rem 0.7rem;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--stop-accent) 55%, transparent);
  color: var(--ink);
  background: rgba(8, 10, 11, 0.78);
  box-shadow: inset 3px 0 var(--stop-accent), 0 0.8rem 2.2rem rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(7px);
  cursor: pointer;
  text-align: left;
  transition: opacity 140ms ease, border-color 140ms ease;
}
.stop-marker.is-visible { opacity: 1; pointer-events: auto; }
.stop-marker:hover, .stop-marker:focus-visible { border-color: var(--stop-accent); outline: none; }
.stop-marker span { color: var(--stop-accent); font-size: 0.46rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.stop-marker strong { font-size: 0.7rem; line-height: 1.25; }

.drive-deck {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.is-driving .drive-deck { opacity: 1; pointer-events: auto; }
.steer-controls,
.speed-controls { display: flex; gap: 0.35rem; }
.drive-control,
.auto-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(10, 12, 14, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  user-select: none;
  -webkit-user-select: none;
}
.drive-control {
  min-width: 48px;
  padding: 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.drive-control:hover, .drive-control:focus-visible,
.drive-control.is-active { border-color: var(--orange); color: var(--orange-pale); background: rgba(61, 40, 16, 0.84); outline: none; }
.drive-forward { color: var(--black); background: var(--orange); border-color: var(--orange); }
.drive-forward:hover, .drive-forward:focus-visible, .drive-forward.is-active { color: var(--black); background: var(--orange-pale); }
.auto-button {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0 0.8rem;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auto-light { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: #686963; }
.auto-mobile { display: none; }
.auto-button[aria-pressed="true"] { border-color: rgba(115, 229, 255, 0.55); color: var(--cyan); }
.auto-button[aria-pressed="true"] .auto-light { background: var(--cyan); box-shadow: 0 0 0.8rem var(--cyan); }
.auto-button:disabled { cursor: not-allowed; opacity: 0.58; }

.drive-instructions {
  position: absolute;
  z-index: 6;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(245, 242, 232, 0.5);
  font-size: 0.5rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 240ms ease;
}
.is-driving .drive-instructions { opacity: 1; }

.webgl-fallback {
  position: absolute;
  z-index: 14;
  inset: 50% auto auto 50%;
  width: min(32rem, calc(100% - 2.5rem));
  padding: 1.5rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--orange);
  background: rgba(10, 11, 13, 0.95);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.58);
}
.webgl-fallback h2 { font-size: clamp(2.3rem, 8vw, 4.7rem); }
.webgl-fallback > p:not(.eyebrow) { margin: 1rem 0 1.25rem; color: var(--muted); line-height: 1.6; }
.is-webgl-fallback #corridor { opacity: 0.12; pointer-events: none; }
.is-webgl-fallback .intro-panel,
.is-webgl-fallback .drive-deck,
.is-webgl-fallback .route-hud,
.is-webgl-fallback .project-radar,
.is-webgl-fallback .end-console,
.is-webgl-fallback .stop-markers,
.is-webgl-fallback .drive-instructions { display: none; }

.portfolio-dialog {
  width: min(64rem, calc(100% - 2rem));
  max-width: 64rem;
  max-height: min(46rem, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: #0c0e10;
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.78);
}
.portfolio-dialog::backdrop { background: rgba(3, 4, 5, 0.78); backdrop-filter: blur(7px); }
.dialog-shell { position: relative; min-height: 100%; }
.dialog-close {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(9, 10, 11, 0.74);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.dialog-close:hover, .dialog-close:focus-visible { border-color: var(--orange); color: var(--orange); outline: none; }

.detail-shell { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr); min-height: min(38rem, calc(100dvh - 2rem)); }
.detail-shell.is-crosscheck-mode { grid-template-columns: 1fr; }
.detail-shell.is-crosscheck-mode .detail-copy { display: none; }
.detail-visual {
  position: relative;
  min-height: 24rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--detail-accent, var(--orange)) 28%, #090a0b), #090a0b 62%),
    #090a0b;
}
.detail-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: linear-gradient(135deg, black, transparent 72%);
}
.detail-mode-switch {
  position: absolute;
  z-index: 6;
  top: 1rem;
  left: 1rem;
  display: flex;
  padding: 0.2rem;
  border: 1px solid rgba(115, 229, 255, 0.28);
  background: rgba(5, 12, 15, 0.86);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}
.detail-mode-button {
  min-height: 44px;
  padding: 0.6rem 0.78rem;
  border: 0;
  color: #aebdc0;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.detail-mode-button[aria-pressed="true"] { color: #061014; background: var(--cyan); }
.detail-mode-button:hover { color: #e2faff; outline: 1px solid var(--cyan); outline-offset: -1px; }
.detail-mode-button:focus-visible { position: relative; z-index: 1; color: #e2faff; outline: 2px solid #fff; outline-offset: 2px; }
.detail-mode-button[aria-pressed="true"]:hover,
.detail-mode-button[aria-pressed="true"]:focus-visible { color: #061014; }
.detail-display {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  touch-action: pan-y;
}
.detail-display img {
  position: absolute;
  top: 4.7rem;
  right: 7%;
  bottom: 7%;
  left: 7%;
  width: 86%;
  height: calc(93% - 4.7rem);
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #080b0e;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.44);
}
.detail-visual.has-reel { min-height: 27rem; }
.detail-display.has-reel img { bottom: 7rem; height: calc(93% - 11.7rem); }
.detail-reel-controls {
  position: absolute;
  z-index: 5;
  right: 7%;
  bottom: 1rem;
  left: 7%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 0.35rem;
  color: var(--ink);
}
.detail-reel-controls[hidden] { display: none; }
.detail-reel-controls button {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--detail-accent, var(--cyan)) 64%, transparent);
  color: var(--ink);
  background: rgba(5, 11, 14, 0.94);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 950;
}
.detail-reel-controls button:hover,
.detail-reel-controls button:focus-visible { color: #061014; background: var(--detail-accent, var(--cyan)); outline: 2px solid #fff; outline-offset: 2px; }
.detail-reel-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 0.14rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 11, 14, 0.94);
  backdrop-filter: blur(12px);
}
.detail-reel-copy span { color: var(--detail-accent, var(--cyan)); font-size: 0.46rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.detail-reel-copy strong { overflow: hidden; font-size: 0.72rem; letter-spacing: 0.05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.detail-reel-copy p { overflow: hidden; margin: 0; color: var(--muted); font-size: 0.58rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.detail-display.has-image-error::after {
  content: "Display unavailable · choose another state";
  position: relative;
  z-index: 2;
  max-width: 70%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
  background: rgba(5, 11, 14, 0.9);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.detail-monogram { position: relative; z-index: 1; color: var(--detail-accent, var(--orange)); font-family: var(--condensed); font-size: clamp(7rem, 18vw, 13rem); font-weight: 950; letter-spacing: -0.1em; line-height: 0.75; opacity: 0.82; }
.detail-blueprint {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto minmax(7rem, 1fr) auto auto;
  align-content: stretch;
  gap: 0.8rem;
  padding: 4.9rem clamp(1.2rem, 3.2vw, 2.2rem) 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--detail-accent, var(--cyan)) 20%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(5, 20, 25, 0.96), rgba(4, 10, 13, 0.98));
}
.detail-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(115, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(115, 229, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 229, 255, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem, 4rem 4rem, 1rem 1rem, 1rem 1rem;
}
.detail-blueprint > :not(.blueprint-scanner) { position: relative; z-index: 2; }
.blueprint-scanner {
  position: absolute;
  z-index: 1;
  top: -4rem;
  right: 0;
  left: 0;
  height: 5rem;
  pointer-events: none;
  opacity: 0.7;
  background: linear-gradient(180deg, transparent, rgba(115, 229, 255, 0.04) 54%, rgba(115, 229, 255, 0.72) 56%, transparent 60%);
  filter: drop-shadow(0 0 0.75rem rgba(115, 229, 255, 0.4));
}
.detail-visual.is-blueprint .blueprint-scanner { animation: blueprint-scan 5.5s linear infinite; }
.detail-visual.is-blueprint.has-no-site-display .detail-blueprint { padding-top: clamp(1.3rem, 3vw, 2rem); }
@keyframes blueprint-scan {
  from { transform: translateY(0); }
  to { transform: translateY(42rem); }
}
.blueprint-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; min-width: 0; }
.blueprint-heading p,
.blueprint-readout p { margin: 0; color: var(--cyan); font-size: 0.62rem; font-weight: 950; letter-spacing: 0.16em; text-transform: uppercase; }
.blueprint-heading strong { overflow: hidden; color: rgba(235, 252, 255, 0.76); font-size: 0.78rem; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.blueprint-layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.38rem; }
.blueprint-layer {
  min-height: 46px;
  padding: 0.56rem 0.45rem;
  border: 1px solid rgba(115, 229, 255, 0.24);
  color: #aebdc0;
  background: rgba(5, 13, 16, 0.68);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.blueprint-layer[aria-pressed="true"] { border-color: var(--detail-accent, var(--cyan)); color: #f0fdff; background: color-mix(in srgb, var(--detail-accent, var(--cyan)) 15%, rgba(5, 13, 16, 0.88)); }
.blueprint-layer:hover { border-color: var(--cyan); color: #f0fdff; outline: none; }
.blueprint-layer:focus-visible { position: relative; z-index: 1; border-color: #fff; color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.blueprint-readout {
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.9rem, 2.5vw, 1.35rem);
  border: 1px solid rgba(115, 229, 255, 0.28);
  border-left: 3px solid var(--detail-accent, var(--cyan));
  background: rgba(4, 12, 15, 0.78);
}
.blueprint-readout strong { display: block; max-width: 33rem; margin-top: 0.55rem; color: #f1f5ef; font-size: clamp(1rem, 2.1vw, 1.35rem); line-height: 1.35; }
.blueprint-signal { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.8rem; align-items: start; padding-top: 0.7rem; border-top: 1px solid rgba(115, 229, 255, 0.2); }
.blueprint-signal span { color: var(--cyan); font-size: 0.6rem; font-weight: 950; letter-spacing: 0.12em; text-transform: uppercase; }
.blueprint-signal strong { color: #c5d4d5; font-size: 0.72rem; line-height: 1.45; }
.blueprint-capabilities { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.blueprint-capabilities li { padding: 0.38rem 0.5rem; border: 1px solid color-mix(in srgb, var(--detail-accent, var(--cyan)) 46%, transparent); color: var(--detail-accent, var(--cyan)); background: rgba(5, 12, 15, 0.72); font-size: 0.56rem; font-weight: 900; letter-spacing: 0.09em; line-height: 1.2; text-transform: uppercase; }
.detail-visual.is-crosscheck { min-height: 44rem; display: block; overflow: hidden; background: #080d0f; }
.detail-visual.is-crosscheck .detail-number { display: none; }
.detail-crosscheck {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 44rem;
  padding: 5.4rem clamp(1rem, 3vw, 2rem) 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 7%, rgba(201, 242, 105, 0.12), transparent 28%),
    radial-gradient(circle at 85% 16%, rgba(115, 229, 255, 0.1), transparent 30%),
    linear-gradient(rgba(115, 229, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 229, 255, 0.035) 1px, transparent 1px),
    #080d0f;
  background-size: auto, auto, 2rem 2rem, 2rem 2rem, auto;
}
.detail-crosscheck > :not(.crosscheck-scan-rail) { position: relative; z-index: 2; }
.crosscheck-scan-rail {
  position: absolute;
  z-index: 1;
  top: 8.8rem;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
  opacity: 0.58;
  background: linear-gradient(90deg, transparent, rgba(201, 242, 105, 0.94) 28%, rgba(115, 229, 255, 0.94) 72%, transparent);
  box-shadow: 0 0 1.2rem rgba(115, 229, 255, 0.34);
  animation: crosscheck-sweep 7.5s ease-in-out infinite;
}
@keyframes crosscheck-sweep {
  0%, 8% { transform: translateY(0); opacity: 0; }
  18% { opacity: 0.58; }
  72% { transform: translateY(54rem); opacity: 0.42; }
  80%, 100% { transform: translateY(54rem); opacity: 0; }
}
.crosscheck-header { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(16rem, 1.1fr); align-items: end; gap: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(115, 229, 255, 0.18); }
.crosscheck-header p { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.55; }
.crosscheck-header > div > p { color: #c9f269; font-size: 0.5rem; font-weight: 950; letter-spacing: 0.15em; text-transform: uppercase; }
.crosscheck-header h2 { margin: 0.35rem 0 0; font-family: var(--condensed); font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -0.055em; line-height: 0.88; text-transform: uppercase; }
.crosscheck-header h2:focus { outline: none; }
.crosscheck-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 0.6rem; margin-top: 0.9rem; }
.crosscheck-controls label { min-width: 0; }
.crosscheck-controls label > span { display: block; margin-bottom: 0.35rem; color: #c9f269; font-size: 0.5rem; font-weight: 950; letter-spacing: 0.13em; text-transform: uppercase; }
.crosscheck-controls select {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0.62rem 2rem 0.62rem 0.72rem;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(115, 229, 255, 0.32);
  border-radius: 0;
  color: var(--ink);
  background-color: #0c1417;
  background-image:
    linear-gradient(45deg, transparent 50%, #c9f269 50%),
    linear-gradient(135deg, #c9f269 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) 50%,
    calc(100% - 0.72rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.32rem 0.32rem, 0.32rem 0.32rem;
  font: 800 0.7rem/1.3 var(--sans);
}
.crosscheck-controls select:hover { border-color: var(--cyan); }
.crosscheck-controls select:focus-visible { border-color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.crosscheck-swap {
  min-height: 48px;
  padding: 0.62rem 0.78rem;
  border: 1px solid rgba(201, 242, 105, 0.5);
  color: #eaffb9;
  background: rgba(201, 242, 105, 0.08);
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.crosscheck-swap:hover,
.crosscheck-swap:focus-visible { border-color: #fff; color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.crosscheck-summary { margin: 0.8rem 0 0; padding: 0.72rem 0.82rem; border-left: 3px solid #c9f269; color: #e7eee9; background: rgba(201, 242, 105, 0.055); font-size: 0.78rem; font-weight: 800; line-height: 1.5; }
.crosscheck-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 0.8rem; }
.crosscheck-project { min-width: 0; display: grid; grid-template-columns: minmax(7rem, 0.62fr) minmax(0, 1fr); gap: 0.75rem; padding: 0.72rem; border: 1px solid color-mix(in srgb, var(--crosscheck-accent) 46%, rgba(255, 255, 255, 0.12)); background: color-mix(in srgb, var(--crosscheck-accent) 6%, rgba(5, 11, 13, 0.94)); }
.crosscheck-project-media { position: relative; min-width: 0; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15); background: #070a0c; }
.crosscheck-project-media img { width: 100%; height: 100%; object-fit: contain; }
.crosscheck-project-media span { color: var(--crosscheck-accent); font-family: var(--condensed); font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 950; letter-spacing: -0.08em; line-height: 0.8; opacity: 0.82; }
.crosscheck-project-copy { min-width: 0; align-self: center; }
.crosscheck-project-copy > span { display: block; color: var(--crosscheck-accent); font-size: 0.46rem; font-weight: 950; letter-spacing: 0.11em; line-height: 1.35; text-transform: uppercase; }
.crosscheck-project-copy h3 { margin: 0.35rem 0 0; overflow-wrap: anywhere; font-family: var(--condensed); font-size: clamp(1.45rem, 3vw, 2.3rem); letter-spacing: -0.035em; line-height: 0.95; text-transform: uppercase; }
.crosscheck-project-copy p { margin: 0.45rem 0 0; color: #c4cdca; font-size: 0.62rem; font-weight: 800; line-height: 1.4; }
.crosscheck-project-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
.crosscheck-project-actions button { min-height: 46px; padding: 0.55rem 0.6rem; border: 1px solid rgba(255, 255, 255, 0.18); color: var(--ink); background: transparent; cursor: pointer; font-size: 0.56rem; font-weight: 950; letter-spacing: 0.06em; text-transform: uppercase; }
.crosscheck-project-actions button:first-child { border-color: color-mix(in srgb, var(--crosscheck-accent) 65%, transparent); background: color-mix(in srgb, var(--crosscheck-accent) 10%, transparent); }
.crosscheck-project-actions button:hover,
.crosscheck-project-actions button:focus-visible { border-color: #fff; color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.crosscheck-project-actions button:disabled { border-color: rgba(255, 255, 255, 0.14); color: var(--dim); background: transparent; cursor: default; opacity: 0.5; outline: none; }
.crosscheck-route-note { margin: 0.55rem 0 0; color: var(--dim); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.035em; line-height: 1.45; }
.crosscheck-shared { display: grid; grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 1fr); gap: 0.75rem; margin-top: 0.8rem; padding: 0.8rem; border: 1px solid rgba(201, 242, 105, 0.3); background: rgba(201, 242, 105, 0.045); }
.crosscheck-shared > div > span { color: #c9f269; font-size: 0.47rem; font-weight: 950; letter-spacing: 0.13em; text-transform: uppercase; }
.crosscheck-shared h3 { margin: 0.28rem 0 0; font-family: var(--condensed); font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.crosscheck-shared ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.42rem; margin: 0; padding: 0; list-style: none; }
.crosscheck-shared li { padding: 0.55rem 0.6rem; border-left: 2px solid var(--signal-accent, #c9f269); background: rgba(255, 255, 255, 0.035); }
.crosscheck-shared li strong { display: block; color: var(--signal-accent, #c9f269); font-size: 0.62rem; }
.crosscheck-shared li span { display: block; margin-top: 0.22rem; color: var(--muted); font-size: 0.55rem; line-height: 1.4; }
.crosscheck-shared li.crosscheck-none { grid-column: 1 / -1; border-left-color: var(--dim); color: var(--muted); font-size: 0.62rem; line-height: 1.5; }
.crosscheck-facts { display: grid; gap: 0.55rem; margin-top: 0.65rem; }
.crosscheck-facts > section { display: grid; grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 1fr); gap: 0.75rem; padding: 0.7rem 0.8rem; border: 1px solid rgba(115, 229, 255, 0.16); background: rgba(255, 255, 255, 0.018); }
.crosscheck-facts h3 { margin: 0; color: var(--cyan); font-size: 0.59rem; font-weight: 950; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; }
.crosscheck-fact-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.crosscheck-fact-values article { min-width: 0; padding-left: 0.62rem; border-left: 2px solid var(--fact-accent, rgba(255, 255, 255, 0.2)); }
.crosscheck-fact-values article > span { display: block; color: var(--fact-accent, var(--muted)); font-size: 0.48rem; font-weight: 950; letter-spacing: 0.09em; overflow-wrap: anywhere; text-transform: uppercase; }
.crosscheck-fact-values p { margin: 0.35rem 0 0; color: #cbd2cf; font-size: 0.64rem; line-height: 1.5; }
.crosscheck-fact-values ul { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.crosscheck-fact-values li { padding: 0.3rem 0.42rem; border: 1px solid color-mix(in srgb, var(--fact-accent, var(--cyan)) 45%, transparent); color: var(--fact-accent, var(--cyan)); font-size: 0.5rem; font-weight: 900; line-height: 1.2; text-transform: uppercase; }
.detail-number { position: absolute; z-index: 5; right: 1.3rem; bottom: 1rem; color: rgba(255, 255, 255, 0.18); font-family: var(--condensed); font-size: 4rem; font-weight: 900; pointer-events: none; }
.detail-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.status-pill {
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: 0.38rem 0.56rem;
  border: 1px solid color-mix(in srgb, var(--detail-accent, var(--orange)) 56%, transparent);
  color: var(--detail-accent, var(--orange));
  font-size: 0.51rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.detail-copy h2 { max-width: 12ch; overflow-wrap: break-word; font-size: clamp(2.8rem, 6vw, 5.6rem); }
.detail-copy h2:focus { outline: none; }
.detail-copy > p:not(.eyebrow, .status-pill) { margin: 1.25rem 0 1.6rem; color: #bbb9b2; font-size: 0.95rem; line-height: 1.7; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.tour-continue-button { min-height: 46px; border: 1px solid rgba(115, 229, 255, 0.52); color: var(--cyan); }
.tour-continue-button:hover, .tour-continue-button:focus-visible { border-color: var(--cyan); color: #d8f8ff; }

.directory-shell { padding: clamp(1.35rem, 4vw, 2.5rem); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0 4rem 1.35rem 0; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: clamp(3rem, 8vw, 6rem); }
.directory-intro { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.directory-intro > p { max-width: 34rem; margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.directory-progress { min-width: 9rem; padding: 0.65rem 0.8rem; border-left: 2px solid var(--orange); background: rgba(255, 255, 255, 0.035); }
.directory-progress span,
.directory-progress small { display: block; color: var(--dim); font-size: 0.46rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.directory-progress strong { display: block; margin: 0.22rem 0; color: var(--orange-pale); font-size: 0.78rem; }
.directory-progress small { font-size: 0.42rem; letter-spacing: 0.05em; text-transform: none; }
.directory-bio { padding: 0; color: var(--orange); background: transparent; font-size: 0.68rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.directory-bio:hover, .directory-bio:focus-visible { color: var(--orange-pale); outline: none; }
.tour-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(115, 229, 255, 0.3);
  background: linear-gradient(90deg, rgba(115, 229, 255, 0.08), rgba(255, 157, 36, 0.035));
}
.tour-launcher > div { min-width: 0; }
.tour-launcher span { display: block; color: var(--cyan); font-size: 0.48rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.tour-launcher strong { display: block; margin-top: 0.18rem; font-size: 0.88rem; }
.tour-launcher p { margin: 0.28rem 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
.tour-launcher .primary-button { flex: 0 0 auto; }
.tour-launcher .primary-button:disabled { border-color: var(--line); color: var(--dim); background: rgba(255, 255, 255, 0.05); box-shadow: none; cursor: default; }
.matrix-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 0.65rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(193, 155, 255, 0.32);
  background:
    linear-gradient(90deg, rgba(193, 155, 255, 0.09), rgba(115, 229, 255, 0.045)),
    #0d1114;
}
.matrix-launcher-copy { min-width: 0; }
.matrix-launcher-copy > span { display: block; color: #d1b9ff; font-size: 0.48rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.matrix-launcher-copy > strong { display: block; margin-top: 0.18rem; font-size: 0.88rem; }
.matrix-launcher-copy > p { margin: 0.28rem 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
.matrix-launcher-action { flex: 0 0 auto; display: flex; align-items: center; gap: 0.75rem; }
.matrix-launcher-action > strong { color: #d8f8ff; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.crosscheck-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 0.65rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(201, 242, 105, 0.32);
  background: linear-gradient(90deg, rgba(201, 242, 105, 0.085), rgba(115, 229, 255, 0.04)), #0d1114;
}
.crosscheck-launcher-copy { min-width: 0; }
.crosscheck-launcher-copy > span { display: block; color: #c9f269; font-size: 0.48rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.crosscheck-launcher-copy > strong { display: block; margin-top: 0.18rem; font-size: 0.88rem; }
.crosscheck-launcher-copy > p { margin: 0.28rem 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
.crosscheck-launcher-action { flex: 0 0 auto; display: flex; align-items: center; gap: 0.75rem; }
.crosscheck-launcher-action > strong { color: #eaffb9; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.crosscheck-open-button { min-height: 46px; padding: 0.72rem 0.9rem; border: 1px solid #c9f269; color: #f4ffda; background: rgba(201, 242, 105, 0.1); cursor: pointer; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.crosscheck-open-button:hover,
.crosscheck-open-button:focus-visible { border-color: #fff; color: #fff; background: rgba(201, 242, 105, 0.17); outline: 2px solid #fff; outline-offset: 2px; }
.signal-open-button {
  min-height: 46px;
  padding: 0.72rem 0.9rem;
  border: 1px solid #c19bff;
  color: #f4ecff;
  background: rgba(193, 155, 255, 0.12);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.signal-open-button:hover, .signal-open-button:focus-visible { border-color: #fff; color: #fff; background: rgba(193, 155, 255, 0.2); outline: none; }
.directory-group { padding: 1.4rem 0 0; }
.directory-chapter-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 0.35rem 0.65rem; margin-bottom: 0.7rem; }
.directory-chapter-heading > span { color: var(--orange); font-size: 0.48rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.directory-group h3 { margin: 0; color: var(--ink); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.17em; text-transform: uppercase; }
.directory-chapter-heading p { grid-column: 1 / -1; max-width: 42rem; margin: 0; color: var(--muted); font-size: 0.66rem; line-height: 1.5; }
.directory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.directory-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.62rem;
  border: 1px solid var(--line);
  background: #111315;
}
.directory-item.is-seen { border-color: color-mix(in srgb, var(--item-accent) 46%, var(--line)); background: color-mix(in srgb, var(--item-accent) 7%, #111315); }
.directory-item.is-seen .directory-item-number { box-shadow: 0 0 1rem color-mix(in srgb, var(--item-accent) 32%, transparent); }
.directory-item-number { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; color: #090a0b; background: var(--item-accent); font-size: 0.59rem; font-weight: 950; }
.directory-item-copy { min-width: 0; }
.directory-item-copy strong { display: block; overflow: hidden; font-size: 0.73rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.directory-item-copy span { display: block; margin-top: 0.18rem; color: var(--item-accent); font-size: 0.45rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.directory-item-actions { display: flex; gap: 0.3rem; }
.directory-item button,
.directory-item a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.directory-item button:hover, .directory-item button:focus-visible,
.directory-item a:hover, .directory-item a:focus-visible { border-color: var(--item-accent); color: var(--item-accent); outline: none; }
.directory-item button:disabled { border-color: var(--line); color: var(--dim); cursor: not-allowed; opacity: 0.5; }
.directory-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.directory-footer p { margin: 0; color: var(--dim); font-size: 0.65rem; }
.directory-footer div { display: flex; flex-wrap: wrap; gap: 1rem; }
.directory-footer a,
.text-link { color: var(--ink); font-size: 0.65rem; font-weight: 800; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 0.25rem; }
.directory-footer a:hover, .directory-footer a:focus-visible,
.text-link:hover, .text-link:focus-visible { color: var(--orange); outline: none; }
.reset-seen-button { min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; text-decoration: underline; }
.reset-seen-button:disabled { color: var(--dim); cursor: default; opacity: 0.48; text-decoration: none; }

.route-receipt-open {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.72rem;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(255, 157, 36, 0.46);
  color: var(--ink);
  background: rgba(255, 157, 36, 0.08);
  cursor: pointer;
  text-align: left;
}
.route-receipt-open > span {
  display: block;
  color: var(--orange);
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.route-receipt-open > strong {
  display: block;
  margin: 0;
  color: var(--orange-pale);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-align: right;
}
.route-receipt-open:hover,
.route-receipt-open:focus-visible { border-color: var(--orange); color: #fff; background: rgba(255, 157, 36, 0.14); outline: 2px solid #fff; outline-offset: 2px; }

.receipt-shell {
  min-height: min(42rem, calc(100dvh - 2rem));
  padding: clamp(1.35rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 88% 4%, rgba(255, 157, 36, 0.14), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #0d0f11;
  background-size: auto, 2rem 2rem, 2rem 2rem, auto;
}
.receipt-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding: 0 4rem 1.25rem 0;
  border-bottom: 1px solid rgba(255, 157, 36, 0.25);
}
.receipt-header h2 { margin: 0; font-family: var(--condensed); font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 850; letter-spacing: -0.055em; line-height: 0.88; text-transform: uppercase; }
.receipt-header h2:focus { outline: none; }
.receipt-header > div:first-child > p:last-child { max-width: 39rem; margin: 0.9rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.receipt-total { min-width: 12rem; padding: 0.75rem 0.9rem; border-left: 2px solid var(--orange); background: rgba(255, 157, 36, 0.06); }
.receipt-total span,
.receipt-total small { display: block; color: var(--dim); font-size: 0.46rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.receipt-total strong { display: block; margin: 0.25rem 0; color: var(--orange-pale); font-size: 0.78rem; }
.receipt-total small { font-size: 0.43rem; letter-spacing: 0.04em; text-transform: none; }

.receipt-ticket {
  position: relative;
  margin-top: 1rem;
  padding: clamp(1.2rem, 3.2vw, 2.25rem);
  overflow: hidden;
  color: #17191b;
  background:
    linear-gradient(rgba(16, 18, 20, 0.04) 1px, transparent 1px),
    #f3eddf;
  background-size: 100% 1.75rem, auto;
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.32);
}
.receipt-ticket::before,
.receipt-ticket::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 0.48rem;
  pointer-events: none;
  background: radial-gradient(circle at 0.48rem 0, #0d0f11 0.25rem, transparent 0.27rem) 0 0 / 0.96rem 0.48rem repeat-x;
}
.receipt-ticket::before { top: 0; }
.receipt-ticket::after { bottom: 0; transform: rotate(180deg); }
.receipt-brandline { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.65rem; border-bottom: 2px solid #17191b; color: #51504b; font-size: 0.52rem; font-weight: 950; letter-spacing: 0.14em; text-transform: uppercase; }
.receipt-ticket-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.receipt-ticket-heading > div > span { color: #9a5a05; font-size: 0.5rem; font-weight: 950; letter-spacing: 0.14em; text-transform: uppercase; }
.receipt-ticket h3 { margin: 0.22rem 0 0; font-family: var(--condensed); font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 0.9; text-transform: uppercase; }
.receipt-complete-stamp { flex: 0 0 auto; max-width: 9rem; padding: 0.55rem 0.65rem; border: 2px solid #8b390e; color: #8b390e; font-size: 0.56rem; font-weight: 950; letter-spacing: 0.1em; line-height: 1.35; text-align: center; text-transform: uppercase; transform: rotate(2deg); }
.receipt-byline { margin: 0.8rem 0 0; color: #4d4c47; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em; }
.receipt-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 1.15rem 0 0; }
.receipt-metrics > div { padding: 0.78rem; border: 1px solid rgba(23, 25, 27, 0.28); background: rgba(255, 255, 255, 0.34); }
.receipt-metrics dt { color: #62605a; font-size: 0.48rem; font-weight: 950; letter-spacing: 0.1em; text-transform: uppercase; }
.receipt-metrics dd { margin: 0.35rem 0 0; font-family: var(--condensed); font-size: 1.45rem; font-weight: 900; line-height: 1; }
.receipt-readout { margin-top: 0.75rem; padding: 0.85rem 0.95rem; border-left: 4px solid #df7a10; background: rgba(223, 122, 16, 0.08); }
.receipt-readout span { display: block; color: #9a5a05; font-size: 0.5rem; font-weight: 950; letter-spacing: 0.12em; text-transform: uppercase; }
.receipt-readout strong { display: block; max-width: 48rem; margin-top: 0.32rem; font-size: 0.83rem; line-height: 1.45; }
.receipt-sections { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr); gap: 0.8rem; margin-top: 0.8rem; }
.receipt-chapter-section,
.receipt-signal-section { min-width: 0; padding: 0.9rem; border: 1px solid rgba(23, 25, 27, 0.24); background: rgba(255, 255, 255, 0.24); }
.receipt-section-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; align-items: start; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(23, 25, 27, 0.22); }
.receipt-section-heading > span { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; color: #f3eddf; background: #17191b; font-size: 0.55rem; font-weight: 950; }
.receipt-section-heading h4 { margin: 0; font-size: 0.72rem; font-weight: 950; letter-spacing: 0.11em; text-transform: uppercase; }
.receipt-section-heading p { margin: 0.18rem 0 0; color: #65635d; font-size: 0.58rem; line-height: 1.4; }
.receipt-chapters { display: grid; gap: 0.55rem; margin-top: 0.65rem; }
.receipt-chapter { padding: 0.72rem; border-left: 4px solid var(--chapter-accent); background: rgba(23, 25, 27, 0.055); }
.receipt-chapter-header { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.receipt-chapter-header h5 { margin: 0; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.receipt-chapter-header span { color: #65635d; font-size: 0.52rem; font-weight: 850; white-space: nowrap; }
.receipt-chapter > p { margin: 0.38rem 0 0; color: #56544f; font-size: 0.59rem; line-height: 1.45; }
.receipt-project-list { display: grid; gap: 0.42rem; margin: 0.55rem 0 0; padding: 0; list-style: none; }
.receipt-project { padding: 0.58rem; border: 1px solid rgba(23, 25, 27, 0.2); background: rgba(255, 255, 255, 0.42); }
.receipt-project-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 0.7rem; }
.receipt-project-heading strong { min-width: 0; font-size: 0.68rem; line-height: 1.3; }
.receipt-project-heading span { flex: 0 0 auto; color: #68655f; font-size: 0.47rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.receipt-project-signal { margin: 0.3rem 0 0; color: #4c4a45; font-size: 0.56rem; line-height: 1.45; }
.receipt-project-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.6rem; margin-top: 0.42rem; }
.receipt-project-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.receipt-project-tags li { padding: 0.24rem 0.32rem; border: 1px solid rgba(23, 25, 27, 0.26); color: #45433f; font-size: 0.43rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.receipt-project-link { flex: 0 0 auto; min-height: 32px; display: inline-flex; align-items: center; color: #713a00; font-size: 0.5rem; font-weight: 950; text-underline-offset: 0.18rem; }
.receipt-project-link:hover,
.receipt-project-link:focus-visible { color: #a34f00; outline: 2px solid #17191b; outline-offset: 2px; }
.receipt-signals { display: grid; gap: 0.42rem; margin: 0.65rem 0 0; padding: 0; list-style: none; }
.receipt-signal { padding: 0.62rem; border-left: 3px solid #92908a; background: rgba(23, 25, 27, 0.055); }
.receipt-signal.is-active { border-left-color: var(--signal-accent); background: color-mix(in srgb, var(--signal-accent) 10%, rgba(23, 25, 27, 0.04)); }
.receipt-signal.is-traced { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal-accent) 55%, transparent); }
.receipt-signal strong { display: block; font-size: 0.64rem; }
.receipt-signal span { display: block; margin-top: 0.2rem; color: #65635d; font-size: 0.5rem; font-weight: 850; line-height: 1.35; }
.receipt-source-note { margin: 0.9rem 0 0; padding-top: 0.75rem; border-top: 1px dashed rgba(23, 25, 27, 0.35); color: #56544f; font-size: 0.58rem; line-height: 1.5; }
.receipt-url { margin: 0.7rem 0 0; color: #17191b; font-size: 0.56rem; font-weight: 950; letter-spacing: 0.12em; text-transform: uppercase; }
.receipt-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.65rem 1rem; align-items: center; padding-top: 1rem; }
.receipt-zero-state { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.72rem 0.8rem; border: 1px solid rgba(115, 229, 255, 0.22); background: rgba(115, 229, 255, 0.045); }
.receipt-zero-state p { margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
.receipt-zero-state .primary-button { flex: 0 0 auto; }
.receipt-export-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.receipt-export-actions button {
  min-height: 46px;
  padding: 0.68rem 0.82rem;
  border: 1px solid rgba(255, 157, 36, 0.55);
  color: var(--orange-pale);
  background: rgba(255, 157, 36, 0.08);
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.receipt-export-actions button:hover,
.receipt-export-actions button:focus-visible { border-color: var(--orange); color: #fff; background: rgba(255, 157, 36, 0.14); outline: 2px solid #fff; outline-offset: 2px; }
.receipt-map-button { min-height: 46px; justify-self: end; border: 1px solid var(--line); }
.receipt-map-button:hover,
.receipt-map-button:focus-visible { border-color: var(--cyan); color: var(--cyan); outline: 2px solid #fff; outline-offset: 2px; }
.receipt-action-status { grid-column: 1 / -1; min-height: 1.2rem; margin: 0; color: var(--cyan); font-size: 0.62rem; line-height: 1.4; }
.receipt-manual-copy { grid-column: 1 / -1; width: 100%; min-height: 9rem; padding: 0.75rem; border: 1px solid var(--cyan); color: var(--ink); background: #0a0d0f; font: 0.72rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.receipt-manual-copy:focus { outline: 2px solid #fff; outline-offset: 2px; }

.signal-shell {
  min-height: min(42rem, calc(100dvh - 2rem));
  padding: clamp(1.35rem, 4vw, 2.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(193, 155, 255, 0.13), transparent 30%),
    linear-gradient(rgba(115, 229, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 229, 255, 0.035) 1px, transparent 1px),
    #0b1013;
  background-size: auto, 2rem 2rem, 2rem 2rem, auto;
}
.signal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding: 0 4rem 1.4rem 0;
  border-bottom: 1px solid rgba(115, 229, 255, 0.18);
}
.signal-header h2 { margin: 0; font-family: var(--condensed); font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 850; letter-spacing: -0.055em; line-height: 0.88; text-transform: uppercase; }
.signal-header > div:first-child > p:last-child { max-width: 38rem; margin: 0.9rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.signal-total { min-width: 11rem; padding: 0.75rem 0.9rem; border-left: 2px solid #c19bff; background: rgba(193, 155, 255, 0.06); }
.signal-total span,
.signal-total small { display: block; color: var(--dim); font-size: 0.46rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.signal-total strong { display: block; margin: 0.25rem 0; color: #f0e8ff; font-size: 0.78rem; }
.signal-total small { font-size: 0.43rem; letter-spacing: 0.04em; text-transform: none; }
.signal-workspace { display: grid; grid-template-columns: minmax(17rem, 0.82fr) minmax(0, 1.18fr); gap: 1rem; padding: 1rem 0; }
.signal-node-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 0.55rem; }
.signal-node {
  position: relative;
  min-height: 7.4rem;
  display: grid;
  align-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--signal-line, rgba(255, 255, 255, 0.15));
  color: var(--ink);
  background: rgba(10, 14, 17, 0.88);
  cursor: pointer;
  text-align: left;
}
.signal-node::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--signal-accent);
  opacity: 0.35;
}
.signal-node > span { position: relative; z-index: 1; }
.signal-node-index { color: var(--signal-accent); font-size: 0.5rem; font-weight: 950; letter-spacing: 0.14em; }
.signal-node-label { display: block; font-size: 0.8rem; font-weight: 900; line-height: 1.25; }
.signal-node-progress { color: var(--dim); font-size: 0.5rem; font-weight: 850; letter-spacing: 0.06em; line-height: 1.35; text-transform: uppercase; }
.signal-node.is-unlocked {
  border-color: color-mix(in srgb, var(--signal-accent) 56%, transparent);
  background: color-mix(in srgb, var(--signal-accent) 8%, rgba(10, 14, 17, 0.94));
  box-shadow: inset 0 0 1.8rem color-mix(in srgb, var(--signal-accent) 7%, transparent);
}
.signal-node.is-unlocked::before { opacity: 1; box-shadow: 0 0 1rem var(--signal-accent); }
.signal-node.is-unlocked .signal-node-progress { color: var(--signal-accent); }
.signal-node.is-traced { background: color-mix(in srgb, var(--signal-accent) 14%, rgba(10, 14, 17, 0.96)); }
.signal-node.is-traced .signal-node-index::after { content: " · traced"; color: #f5f2e8; }
.signal-node[aria-pressed="true"] { border-color: #fff; box-shadow: inset 0 0 0 1px #fff, 0 0 1.5rem color-mix(in srgb, var(--signal-accent) 18%, transparent); }
.signal-node:hover, .signal-node:focus-visible { border-color: var(--signal-accent); outline: none; }
.signal-node:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.signal-proof { min-width: 0; padding: 1.15rem; border: 1px solid rgba(115, 229, 255, 0.24); background: rgba(5, 12, 15, 0.82); }
.signal-proof-kicker { margin: 0; color: var(--cyan); font-size: 0.5rem; font-weight: 950; letter-spacing: 0.14em; text-transform: uppercase; }
.signal-proof h3 { margin: 0.4rem 0 0; color: var(--selected-signal, var(--cyan)); font-family: var(--condensed); font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.035em; line-height: 0.95; text-transform: uppercase; }
.signal-proof > p:not(.signal-proof-kicker) { max-width: 35rem; margin: 0.65rem 0 0; color: #c5d1d2; font-size: 0.78rem; line-height: 1.55; }
.signal-proof-meta { margin-top: 0.8rem; padding: 0.5rem 0; border-top: 1px solid rgba(115, 229, 255, 0.16); border-bottom: 1px solid rgba(115, 229, 255, 0.16); color: var(--selected-signal, var(--cyan)); font-size: 0.54rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.signal-run-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0.65rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--selected-signal, var(--cyan)) 36%, transparent);
  background: color-mix(in srgb, var(--selected-signal, var(--cyan)) 7%, rgba(255, 255, 255, 0.02));
}
.signal-run-control > div { min-width: 0; }
.signal-run-control span { display: block; color: var(--selected-signal, var(--cyan)); font-size: 0.46rem; font-weight: 950; letter-spacing: 0.13em; text-transform: uppercase; }
.signal-run-control strong { display: block; margin-top: 0.2rem; color: #c5d1d2; font-size: 0.59rem; line-height: 1.35; }
.signal-run-button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0.68rem 0.82rem;
  border: 1px solid var(--selected-signal, var(--cyan));
  color: #fff;
  background: color-mix(in srgb, var(--selected-signal, var(--cyan)) 15%, rgba(5, 12, 15, 0.92));
  cursor: pointer;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.signal-run-button:hover, .signal-run-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.signal-run-button:disabled { border-color: rgba(255, 255, 255, 0.2); color: var(--dim); background: rgba(255, 255, 255, 0.035); cursor: default; outline: none; }
.signal-projects { display: grid; gap: 0.45rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.signal-project {
  min-height: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}
.signal-project.is-seen { border-color: color-mix(in srgb, var(--project-accent) 48%, transparent); }
.signal-project-copy { min-width: 0; }
.signal-project-copy strong { display: block; overflow: hidden; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.signal-project-copy span { display: block; margin-top: 0.2rem; color: var(--dim); font-size: 0.48rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.signal-project.is-seen .signal-project-copy span { color: var(--project-accent); }
.signal-project-actions { display: flex; gap: 0.3rem; }
.signal-project-actions button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.signal-project-actions button:hover, .signal-project-actions button:focus-visible { border-color: var(--project-accent); color: var(--project-accent); outline: none; }
.signal-project-actions button:disabled { color: var(--dim); cursor: default; opacity: 0.42; }
.signal-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; border-top: 1px solid rgba(115, 229, 255, 0.18); }
.signal-footer p { margin: 0; color: var(--dim); font-size: 0.62rem; line-height: 1.45; }

.bio-shell { display: grid; grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr); min-height: min(42rem, calc(100dvh - 2rem)); }
.bio-aside {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
  overflow: hidden;
  color: #171008;
  background: var(--orange);
}
.bio-aside::before,
.bio-aside::after { content: ""; position: absolute; border: 1px solid rgba(20, 12, 4, 0.2); transform: rotate(45deg); }
.bio-aside::before { width: 20rem; height: 20rem; top: -8rem; right: -8rem; }
.bio-aside::after { width: 12rem; height: 12rem; bottom: -5rem; left: -5rem; }
.bio-initial { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); font-family: var(--condensed); font-size: clamp(12rem, 28vw, 22rem); font-weight: 950; letter-spacing: -0.12em; line-height: 0.7; opacity: 0.87; }
.bio-aside > span:last-child { position: relative; z-index: 1; max-width: 18rem; font-size: 0.65rem; font-weight: 900; letter-spacing: 0.11em; line-height: 1.4; text-transform: uppercase; }
.bio-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4.5rem); }
.bio-copy h2 { font-size: clamp(3rem, 7vw, 6.5rem); }
.bio-lead { margin: 1.5rem 0 0.75rem; color: var(--ink); font-size: 1.02rem; line-height: 1.65; }
.bio-copy > p:not(.eyebrow, .bio-lead) { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.7; }
.bio-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin: 1.6rem 0; }
.bio-stats div { padding: 0.85rem; border-top: 2px solid var(--orange); background: rgba(255, 255, 255, 0.035); }
.bio-stats dt { margin-bottom: 0.4rem; color: var(--ink); font-size: 0.64rem; font-weight: 900; text-transform: uppercase; }
.bio-stats dd { margin: 0; color: var(--muted); font-size: 0.58rem; line-height: 1.45; }
.bio-links { display: flex; align-items: center; gap: 1rem; }

.noscript-fallback {
  position: fixed;
  z-index: 30;
  inset: 0;
  padding: clamp(1.5rem, 6vw, 5rem);
  overflow: auto;
  color: var(--ink);
  background: #0a0b0d;
}
.noscript-fallback > p:first-child { color: var(--orange); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.noscript-fallback h2 { max-width: 12ch; font-size: clamp(3rem, 10vw, 8rem); }
.noscript-fallback > p:not(:first-child) { max-width: 42rem; color: var(--muted); line-height: 1.7; }
.noscript-fallback ul { max-width: 48rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; padding: 0; list-style: none; }
.noscript-fallback li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem; border: 1px solid var(--line); }
.noscript-fallback a { color: var(--ink); font-weight: 800; }
.noscript-fallback span { color: var(--orange); font-size: 0.7rem; }

@media (max-width: 900px), (max-height: 520px) {
  .corridor-stage { min-height: 0; }
  .corridor-stage::after { mix-blend-mode: normal; opacity: 0.62; }
  .topbar { min-height: 4.2rem; }
  .wordmark { min-height: 44px; font-size: 0.6rem; letter-spacing: 0.11em; }
  .wordmark-mark { width: 1.85rem; height: 1.85rem; }
  .button-count { display: none; }
  .intro-panel {
    top: max(4.9rem, calc(env(safe-area-inset-top) + 4rem));
    right: max(1rem, env(safe-area-inset-right));
    bottom: auto;
    left: max(1rem, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 10.25rem);
    padding: 0.9rem 1rem 0.95rem;
    overflow: auto;
    transform: none;
    background: rgba(8, 9, 10, 0.9);
    backdrop-filter: none;
  }
  .is-driving .intro-panel { transform: translateY(1rem); }
  .intro-panel h2 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .intro-panel > p:not(.eyebrow, .intro-hint) { margin: 0.68rem 0 0.75rem; font-size: 0.82rem; line-height: 1.45; }
  .intro-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.4rem; }
  .intro-actions .primary-button,
  .intro-actions .text-button { min-width: 0; padding-inline: 0.45rem; font-size: 0.58rem; white-space: nowrap; }
  .intro-hint { margin-top: 0.62rem; font-size: 0.55rem; }
  .desktop-hint { display: none; }
  .mobile-hint { display: inline; }
  .route-hud { left: max(1rem, env(safe-area-inset-left)); bottom: max(5.45rem, calc(env(safe-area-inset-bottom) + 4.75rem)); width: calc(100% - 2rem); }
  .chapter-cue { left: 0; width: min(100%, 26rem); padding: 0.72rem 0.78rem 0.68rem; }
  .chapter-cue strong { font-size: 0.76rem; }
  .project-radar {
    top: max(0.55rem, calc(env(safe-area-inset-top) + 0.25rem));
    bottom: auto;
    left: 50%;
    width: 4.25rem;
    padding: 0.3rem;
    transform: translate(-50%, -0.35rem);
  }
  .is-driving .project-radar { transform: translateX(-50%); }
  .corridor-stage.has-chapter-cue .project-radar { opacity: 0; transform: translate(-50%, -0.35rem); }
  .radar-header { justify-content: center; margin-bottom: 0.18rem; }
  .radar-header span { display: none; }
  .radar-header strong { font-size: 0.46rem; }
  .radar-scope { height: 3.15rem; }
  .radar-view-cone { width: 1.6rem; height: 1.85rem; }
  .radar-rover { width: 0.5rem; height: 0.62rem; }
  .radar-stop { width: 0.34rem; height: 0.34rem; }
  .route-meta { font-size: 0.62rem; }
  .drive-deck {
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.7rem, env(safe-area-inset-bottom));
    width: auto;
    display: grid;
    grid-template-columns: auto 50px auto;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transform: none;
  }
  .auto-button { position: static; width: 50px; min-width: 50px; height: 50px; padding: 0; flex-direction: column; justify-content: center; gap: 0.22rem; transform: none; }
  .auto-label { display: none; }
  .auto-mobile { display: block; font-size: 0.47rem; line-height: 1; letter-spacing: 0.07em; }
  .auto-light { width: 0.55rem; height: 0.55rem; }
  .drive-control { min-width: 50px; min-height: 50px; padding: 0 0.52rem; }
  .drive-instructions { display: none; }
  .near-stop,
  .end-console { bottom: max(8.1rem, calc(env(safe-area-inset-bottom) + 7.35rem)); }
  .near-stop-kicker,
  .near-stop-action,
  .end-console-kicker,
  .end-console-action { font-size: 0.58rem; }
  .stop-marker { min-width: 6.7rem; min-height: 44px; max-width: 8.5rem; padding: 0.45rem 0.5rem; backdrop-filter: none; }
  .stop-marker span { font-size: 0.55rem; }
  .stop-marker strong { font-size: 0.72rem; }
  .tour-panel {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(8.1rem, calc(env(safe-area-inset-bottom) + 7.35rem));
    left: max(1rem, env(safe-area-inset-left));
    width: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.72rem 0.78rem;
    transform: none;
    backdrop-filter: none;
  }
  .tour-panel-actions { gap: 0.25rem; }
  .tour-panel .primary-button,
  .tour-panel .text-button { padding-inline: 0.55rem; font-size: 0.56rem; }
  .portfolio-dialog {
    width: calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right) - 1rem);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 1rem);
    margin: max(0.5rem, env(safe-area-inset-top)) auto max(0.5rem, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .portfolio-dialog::backdrop { backdrop-filter: none; }
  .dialog-close { top: 0.7rem; right: 0.7rem; }
  .receipt-dialog {
    width: calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-width: none;
    max-height: calc(100dvh - max(0.5rem, env(safe-area-inset-top)));
    margin: max(0.5rem, env(safe-area-inset-top)) auto 0;
    border-bottom: 0;
  }
  .receipt-shell { padding: 1.15rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
  .receipt-header { gap: 1rem; padding: 0 3.5rem 1rem 0; }
  .receipt-header > div:first-child > p:last-child { font-size: 0.75rem; }
  .detail-shell,
  .bio-shell { grid-template-columns: 1fr; }
  .detail-visual { min-height: 18rem; }
  .detail-visual.has-reel { min-height: 31rem; }
  .detail-visual.is-blueprint { min-height: 32rem; }
  .detail-visual.is-crosscheck { min-height: 0; }
  .detail-mode-switch { top: 0.7rem; left: 0.7rem; backdrop-filter: none; }
  .detail-mode-button { padding-inline: 0.58rem; font-size: 0.62rem; }
  .detail-display img { top: 4.5rem; bottom: 8%; height: calc(92% - 4.5rem); }
  .detail-display.has-reel img { bottom: 7rem; height: calc(100% - 11.5rem); }
  .detail-reel-controls { right: 0.7rem; bottom: 0.7rem; left: 0.7rem; }
  .detail-reel-copy { backdrop-filter: none; }
  .detail-blueprint { gap: 0.65rem; padding: 4.65rem 1rem 3.8rem; }
  .detail-crosscheck { min-height: 0; padding: 4.65rem 1rem 1rem; }
  .crosscheck-project-actions button { min-height: 48px; }
  .blueprint-heading strong { max-width: 58%; }
  .blueprint-layer { min-height: 48px; padding-inline: 0.3rem; }
  .blueprint-readout { padding: 0.9rem; }
  .blueprint-readout strong { font-size: 1rem; }
  .blueprint-signal { grid-template-columns: 6.25rem minmax(0, 1fr); gap: 0.55rem; }
  .detail-visual.is-blueprint .detail-number { display: none; }
  .detail-copy { padding: 1.5rem; }
  .detail-copy h2 { max-width: 100%; font-size: clamp(2.6rem, 14vw, 4.7rem); }
  .bio-aside { min-height: 12rem; }
  .bio-copy { padding: 1.5rem; }
  .bio-copy h2 { font-size: clamp(2.8rem, 14vw, 4.8rem); }
  .bio-stats { grid-template-columns: 1fr; }
  .directory-list { grid-template-columns: 1fr; }
  .directory-item { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 4.4rem; }
  .directory-item-copy strong { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .directory-item-copy span { font-size: 0.52rem; }
  .directory-item button,
  .directory-item a { width: 44px; height: 44px; }
  .directory-intro { align-items: flex-start; flex-direction: column; }
  .directory-progress { width: 100%; }
  .tour-launcher { align-items: stretch; flex-direction: column; gap: 0.7rem; }
  .tour-launcher .primary-button { width: 100%; }
  .matrix-launcher { align-items: stretch; flex-direction: column; gap: 0.7rem; }
  .matrix-launcher-action { width: 100%; align-items: stretch; flex-direction: column; gap: 0.5rem; }
  .crosscheck-launcher { align-items: stretch; flex-direction: column; gap: 0.7rem; }
  .crosscheck-launcher-action { width: 100%; align-items: stretch; flex-direction: column; gap: 0.5rem; }
  .signal-open-button { width: 100%; }
  .crosscheck-open-button { width: 100%; min-height: 48px; }
  .route-receipt-open { min-height: 48px; }
  .signal-shell { overflow: visible; }
  .signal-header { grid-template-columns: 1fr; gap: 0.9rem; padding: 0 3.4rem 1rem 0; }
  .signal-header > div:first-child > p:last-child { font-size: 0.75rem; }
  .signal-total { width: 100%; }
  .signal-workspace { grid-template-columns: 1fr; }
  .signal-node { min-height: 6.6rem; }
  .signal-proof { padding: 0.9rem; }
  .signal-run-control { align-items: stretch; flex-direction: column; }
  .signal-run-button { width: 100%; }
  .signal-footer { align-items: flex-start; flex-direction: column; }
  .signal-footer .text-button { min-height: 44px; padding-inline: 0; }
  .directory-footer { align-items: flex-start; flex-direction: column; }
  .directory-footer a,
  .text-link { min-height: 44px; display: inline-flex; align-items: center; }
  .hud-button,
  .near-stop,
  .end-console,
  .drive-control,
  .auto-button { backdrop-filter: none; }
  .noscript-fallback ul { grid-template-columns: 1fr; }
}

@media (max-width: 900px) and (max-height: 680px), (max-height: 520px) {
  .intro-panel { top: max(4.35rem, calc(env(safe-area-inset-top) + 3.55rem)); max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 9.2rem); }
  .intro-panel .eyebrow { margin-bottom: 0.48rem; }
  .intro-panel h2 { font-size: clamp(2.25rem, 12vw, 3.25rem); }
  .intro-panel > p:not(.eyebrow, .intro-hint) { margin: 0.5rem 0 0.58rem; font-size: 0.76rem; }
  .intro-hint { margin-top: 0.45rem; }
}

@media (max-width: 600px) {
  .blueprint-heading strong { display: none; }
  .detail-mode-switch { top: 3.7rem; right: 0.7rem; left: 0.7rem; }
  .detail-mode-button { flex: 1 1 0; min-width: 0; padding-inline: 0.3rem; font-size: 0.58rem; line-height: 1.2; }
  .detail-visual.has-mode-switch .detail-display img { top: 7.4rem; height: calc(92% - 7.4rem); }
  .detail-visual.has-mode-switch .detail-display.has-reel img { bottom: 7rem; height: calc(100% - 14.4rem); }
  .detail-visual.has-mode-switch .detail-blueprint,
  .detail-visual.has-mode-switch .detail-crosscheck { padding-top: 7.55rem; }
  .detail-visual.is-blueprint.has-no-site-display:not(.has-mode-switch) .detail-blueprint { padding-top: 3.6rem; }
  .signal-project { grid-template-columns: 1fr; }
  .signal-project-actions { width: 100%; }
  .signal-project-actions button { flex: 1 1 0; }
  .receipt-header { grid-template-columns: 1fr; gap: 0.75rem; }
  .receipt-header h2 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .receipt-total { width: 100%; min-width: 0; }
  .receipt-ticket { padding: 1.2rem 1rem; }
  .receipt-ticket-heading { display: grid; }
  .receipt-complete-stamp { justify-self: start; max-width: none; transform: none; }
  .receipt-metrics { grid-template-columns: 1fr; }
  .receipt-metrics > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .receipt-metrics dd { margin: 0; font-size: 1.2rem; }
  .receipt-sections { grid-template-columns: 1fr; }
  .receipt-project-heading,
  .receipt-project-meta { align-items: flex-start; flex-direction: column; }
  .receipt-project-link { min-height: 44px; }
  .receipt-footer { grid-template-columns: 1fr; }
  .receipt-zero-state { align-items: stretch; flex-direction: column; }
  .receipt-zero-state .primary-button { width: 100%; }
  .receipt-export-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receipt-export-actions button { min-width: 0; min-height: 48px; padding-inline: 0.48rem; white-space: normal; }
  .receipt-export-actions #route-receipt-share { grid-column: 1 / -1; grid-row: 1; }
  .receipt-map-button { width: 100%; min-height: 48px; justify-self: stretch; justify-content: center; }
  .receipt-action-status,
  .receipt-manual-copy { grid-column: 1; }
  .crosscheck-header { grid-template-columns: 1fr; gap: 0.65rem; }
  .crosscheck-header h2 { font-size: clamp(2.35rem, 13vw, 3.55rem); }
  .crosscheck-controls { grid-template-columns: 1fr; }
  .crosscheck-swap { width: 100%; }
  .crosscheck-projects { grid-template-columns: 1fr; }
  .crosscheck-project { grid-template-columns: minmax(6.6rem, 0.58fr) minmax(0, 1fr); }
  .crosscheck-shared,
  .crosscheck-facts > section { grid-template-columns: 1fr; gap: 0.55rem; }
  .crosscheck-shared ul,
  .crosscheck-fact-values { grid-template-columns: 1fr; }
}

@media (max-height: 520px) {
  .project-radar { top: max(0.42rem, calc(env(safe-area-inset-top) + 0.18rem)); width: 3.8rem; }
  .radar-scope { height: 2.72rem; }
  .near-stop,
  .end-console {
    top: max(4.45rem, calc(env(safe-area-inset-top) + 3.7rem));
    right: auto;
    bottom: auto;
    left: max(0.75rem, env(safe-area-inset-left));
    width: min(10.5rem, calc(30vw - env(safe-area-inset-left)));
    padding: 0.55rem 0.7rem;
    transform: none;
  }
  .near-stop-kicker,
  .near-stop-action,
  .end-console-kicker,
  .end-console-action { display: none; }
  .near-stop strong,
  .end-console strong { font-size: 0.72rem; }
  .route-hud {
    left: max(0.75rem, env(safe-area-inset-left));
    width: min(10.5rem, calc(30vw - env(safe-area-inset-left)));
  }
  .chapter-cue { bottom: calc(100% + 0.4rem); width: min(22rem, 62vw); padding: 0.55rem 0.65rem; }
  .chapter-cue strong { margin-top: 0.24rem; font-size: 0.68rem; line-height: 1.28; }
  .chapter-cue small { display: none; }
}

@media (max-height: 520px) and (min-width: 600px) {
  .project-radar {
    top: max(7.75rem, calc(env(safe-area-inset-top) + 7.5rem));
    left: max(0.75rem, env(safe-area-inset-left));
    transform: none;
  }
  .is-driving .project-radar { transform: none; }
}

@media (max-height: 520px) {
  .is-guided-tour .project-radar { opacity: 0; }
  .tour-panel {
    top: max(4.45rem, calc(env(safe-area-inset-top) + 3.7rem));
    right: auto;
    bottom: auto;
    left: max(0.75rem, env(safe-area-inset-left));
    width: clamp(8.75rem, 42vw, 11.5rem);
    display: block;
    padding: 0.55rem 0.62rem;
    transform: none;
  }
  .tour-target-left .tour-panel {
    right: max(0.75rem, env(safe-area-inset-right));
    left: auto;
  }
  .tour-message { display: none; }
  .tour-panel-actions { display: grid; grid-template-columns: 1fr; margin-top: 0.42rem; }
  .tour-panel .primary-button,
  .tour-panel .text-button { width: 100%; min-width: 0; padding-inline: 0.35rem; }
}

@media (max-height: 520px) and (max-width: 479px) {
  .tour-panel-actions { display: grid; grid-template-columns: 1fr; }
  .tour-panel .primary-button,
  .tour-panel .text-button { width: 100%; }
}

@media (max-width: 600px) and (min-height: 521px), (max-width: 420px) {
  .project-radar { top: max(4.6rem, calc(env(safe-area-inset-top) + 4.25rem)); }
}

@media (max-height: 650px) and (min-width: 761px) {
  .intro-panel { width: min(29rem, calc(100% - 2.5rem)); padding: 1rem 1.25rem; }
  .intro-panel h2 { font-size: clamp(2.8rem, 8.5vh, 4.6rem); }
  .intro-panel > p:not(.eyebrow, .intro-hint) { margin: 0.75rem 0 0.8rem; font-size: 0.82rem; }
  .intro-hint { display: none; }
}

@media (max-height: 520px) and (min-width: 700px) {
  .detail-shell { grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr); }
  .detail-visual,
  .detail-visual.is-blueprint { min-height: calc(100dvh - 2rem); }
  .detail-visual.is-crosscheck { min-height: 0; }
  .detail-blueprint { grid-template-rows: repeat(5, auto); align-content: start; gap: 0.36rem; padding: 4.3rem 1rem 0.8rem; }
  .blueprint-heading strong { max-width: 55%; }
  .blueprint-layer { min-height: 44px; }
  .blueprint-readout { min-height: 0; padding: 0.55rem 0.7rem; }
  .blueprint-readout strong { margin-top: 0.35rem; font-size: 0.85rem; line-height: 1.25; }
  .blueprint-signal { grid-template-columns: 5.6rem minmax(0, 1fr); padding-top: 0.45rem; }
  .blueprint-signal strong { font-size: 0.62rem; line-height: 1.3; }
  .blueprint-capabilities li { padding: 0.28rem 0.4rem; }
  .detail-copy { padding: 1.25rem; }
  .detail-copy h2 { font-size: clamp(2.1rem, 6.7vw, 3.8rem); }
  .detail-copy > p:not(.eyebrow, .status-pill) { margin: 0.75rem 0 0.9rem; line-height: 1.45; }
  .detail-crosscheck { padding: 4.25rem 0.9rem 0.9rem; }
  .crosscheck-header { grid-template-columns: minmax(0, 0.85fr) minmax(15rem, 1.15fr); gap: 0.8rem; padding-bottom: 0.65rem; }
  .crosscheck-header h2 { font-size: clamp(2.1rem, 5vw, 3rem); }
  .crosscheck-controls { margin-top: 0.6rem; }
  .crosscheck-project { grid-template-columns: minmax(7rem, 0.48fr) minmax(0, 1fr); }
  .signal-shell { padding: 0.9rem 1rem; }
  .signal-header { grid-template-columns: minmax(0, 1fr) 11.5rem; gap: 1rem; padding: 0 3.4rem 0.7rem 0; }
  .signal-header .eyebrow { margin-bottom: 0.4rem; }
  .signal-header h2 { font-size: clamp(2.2rem, 6vw, 3.25rem); }
  .signal-header > div:first-child > p:last-child { margin-top: 0.45rem; font-size: 0.67rem; line-height: 1.4; }
  .signal-total { min-width: 0; padding: 0.55rem 0.65rem; }
  .signal-workspace { grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr); gap: 0.6rem; padding: 0.6rem 0; }
  .signal-node-grid { gap: 0.38rem; }
  .signal-node { min-height: 5.1rem; gap: 0.35rem; padding: 0.55rem 0.62rem; }
  .signal-node-label { font-size: 0.72rem; }
  .signal-node-progress { font-size: 0.44rem; }
  .signal-proof { max-height: calc(100dvh - 8.2rem); padding: 0.72rem; overflow: auto; overscroll-behavior: contain; }
  .signal-proof h3 { margin-top: 0.25rem; font-size: clamp(1.75rem, 4vw, 2.4rem); }
  .signal-proof > p:not(.signal-proof-kicker) { margin-top: 0.35rem; font-size: 0.67rem; line-height: 1.4; }
  .signal-proof-meta { margin-top: 0.45rem; padding: 0.35rem 0; }
  .signal-run-control { align-items: center; flex-direction: row; margin-top: 0.4rem; padding: 0.4rem 0.5rem; }
  .signal-run-control strong { margin-top: 0.12rem; font-size: 0.53rem; }
  .signal-run-button { width: auto; min-height: 44px; padding: 0.5rem 0.62rem; }
  .signal-projects { gap: 0.3rem; margin-top: 0.5rem; }
  .signal-project { min-height: 3.35rem; padding: 0.4rem 0.5rem; }
  .signal-footer { padding-top: 0.55rem; }
  .receipt-shell { padding-top: 0.85rem; }
  .receipt-header { gap: 1rem; padding: 0 3.4rem 0.65rem 0; }
  .receipt-header .eyebrow { margin-bottom: 0.35rem; }
  .receipt-header h2 { font-size: clamp(2.1rem, 5.8vw, 3.2rem); }
  .receipt-header > div:first-child > p:last-child { margin-top: 0.35rem; font-size: 0.66rem; line-height: 1.35; }
  .receipt-total { min-width: 11rem; padding: 0.5rem 0.65rem; }
  .receipt-ticket { margin-top: 0.6rem; padding: 1rem; }
  .receipt-ticket h3 { font-size: clamp(2rem, 5vw, 3rem); }
  .receipt-byline { margin-top: 0.45rem; }
  .receipt-metrics { margin-top: 0.65rem; }
  .receipt-metrics > div { padding: 0.5rem; }
  .receipt-readout { margin-top: 0.5rem; padding: 0.55rem 0.7rem; }
  .receipt-sections { margin-top: 0.55rem; }
  .receipt-footer { padding-top: 0.6rem; }
}

@media (max-width: 900px), (max-height: 520px) {
  .near-stop-actions button { min-height: 48px; }
  .display-dock {
    right: max(0.5rem, env(safe-area-inset-right));
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    left: max(0.5rem, env(safe-area-inset-left));
    width: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.5rem 0.55rem;
    backdrop-filter: none;
  }
  .display-dock-header { align-items: center; }
  .display-dock-header h2 { overflow: hidden; max-width: 15ch; font-size: clamp(1.25rem, 6vw, 1.7rem); text-overflow: ellipsis; white-space: nowrap; }
  .display-dock-description {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .display-dock-controls { grid-column: 1; grid-row: auto; display: grid; grid-template-columns: minmax(7.5rem, 1fr) auto; align-items: end; gap: 0.45rem; }
  .project-reel-nav { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .project-reel-nav button { min-width: 48px; min-height: 48px; }
  .display-dock-reel { grid-column: 1; width: 100%; }
  .display-dock-view-area { min-width: 0; }
  .display-dock-view-area select,
  .display-dock-controls button,
  .display-dock-actions button { min-height: 48px; }
  .display-dock-view-area select { height: 48px; }
  .display-dock-zoom { grid-template-columns: repeat(3, 48px); }
  .display-dock-zoom button { width: 48px; padding: 0; font-size: 0.82rem; }
  .dock-control-word { display: none; }
  .dock-control-symbol { display: inline; }
  .dock-fit-symbol { font-size: 0.52rem; letter-spacing: 0.04em; }
  .display-dock-actions { grid-column: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .display-dock-actions button { min-width: 0; }
  .display-dock-shortcuts { grid-column: 1; display: block; font-size: 0.45rem; line-height: 1.3; text-align: left; }
  .display-dock.has-project-reel .display-dock-shortcuts { display: none; }
  .garage-deck {
    right: max(0.5rem, env(safe-area-inset-right));
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    left: max(0.5rem, env(safe-area-inset-left));
    width: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.62rem 0.7rem;
    backdrop-filter: none;
  }
  .garage-header { align-items: center; }
  .garage-header h2 { overflow: hidden; max-width: 15ch; font-size: clamp(1.25rem, 6vw, 1.7rem); text-overflow: ellipsis; white-space: nowrap; }
  .garage-description {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .garage-navigation { grid-column: 1; grid-row: auto; grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .garage-navigation button,
  .garage-actions button { min-height: 48px; }
  .garage-navigation button:first-child,
  .garage-navigation button:last-child { width: 48px; padding: 0; font-size: 0.82rem; }
  .garage-control-word { display: none; }
  .garage-control-symbol { display: inline; }
  .garage-actions { grid-column: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .garage-actions button { min-width: 0; }
  .garage-shortcuts { grid-column: 1; display: block; font-size: 0.52rem; line-height: 1.35; text-align: left; }
}

@media (max-height: 520px) {
  .display-dock.has-project-reel .display-dock-view-area { display: none; }
  .display-dock.has-project-reel .display-dock-controls { grid-template-columns: 1fr; }
  .display-dock.has-project-reel .display-dock-zoom { justify-self: end; }
  .detail-visual.has-reel { min-height: calc(100dvh - 1rem); }
  .detail-display.has-reel img { top: 4.35rem; bottom: 4.6rem; height: calc(100% - 8.95rem); }
  .detail-reel-controls { right: 0.5rem; bottom: 0.5rem; left: 0.5rem; }
  .detail-reel-copy p { display: none; }
}

@media (max-width: 600px) and (min-height: 521px) {
  .near-stop { bottom: max(5.85rem, calc(env(safe-area-inset-bottom) + 5.1rem)); grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; padding: 0.68rem 0.72rem; }
  .has-near-stop .route-hud { opacity: 0; visibility: hidden; }
  .near-stop-actions { display: grid; grid-template-columns: repeat(2, 64px); }
  .has-garage-entry .near-stop { grid-template-columns: minmax(0, 1fr); }
  .has-garage-entry .near-stop-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .near-stop-actions button { min-width: 0; padding-inline: 0.35rem; }
  .near-action-word { display: none; }
  .near-action-short { display: inline; }
  .display-dock-readout span { display: none; }
  .display-dock.has-project-reel .display-dock-readout strong { font-size: 0; }
  .display-dock.has-project-reel .display-dock-readout strong::after { content: attr(data-compact); font-size: 0.62rem; }
  .garage-readout span { display: none; }
}

@media (max-height: 520px) and (min-width: 600px) {
  .has-near-stop .project-radar { opacity: 0; visibility: hidden; }
  .near-stop {
    top: max(4.45rem, calc(env(safe-area-inset-top) + 3.7rem));
    right: auto;
    bottom: auto;
    left: max(0.75rem, env(safe-area-inset-left));
    width: min(11.5rem, calc(32vw - env(safe-area-inset-left)));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.42rem;
    padding: 0.55rem 0.62rem;
    transform: none;
  }
  .near-target-left .near-stop { right: max(0.75rem, env(safe-area-inset-right)); left: auto; }
  .near-stop-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.28rem; }
  .has-garage-entry .near-stop-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .near-stop-actions button { min-width: 0; padding-inline: 0.25rem; font-size: 0.48rem; white-space: normal; }
  .near-action-word { display: none; }
  .near-action-short { display: inline; }
  .display-dock {
    top: max(4.35rem, calc(env(safe-area-inset-top) + 3.6rem));
    right: auto;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    left: max(0.65rem, env(safe-area-inset-left));
    width: clamp(12.5rem, 27vw, 13.5rem);
    align-content: start;
    overflow: auto;
  }
  .dock-target-left .display-dock { right: max(0.65rem, env(safe-area-inset-right)); left: auto; }
  .display-dock-header { display: grid; gap: 0.32rem; }
  .display-dock-header h2 { max-width: 100%; font-size: 1.22rem; }
  .display-dock-readout { justify-items: start; text-align: left; }
  .display-dock-controls { grid-template-columns: minmax(0, 1fr); }
  .display-dock-view-area select { width: 100%; }
  .display-dock-zoom { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .display-dock-zoom button { width: auto; }
  .display-dock-actions button { padding-inline: 0.3rem; font-size: 0.48rem; line-height: 1.2; white-space: normal; }
  .garage-deck {
    top: max(4.35rem, calc(env(safe-area-inset-top) + 3.6rem));
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    left: auto;
    width: clamp(12.5rem, 27vw, 13.5rem);
    align-content: start;
    overflow: auto;
  }
  .garage-header { display: grid; gap: 0.32rem; }
  .garage-header h2 { max-width: 100%; font-size: 1.22rem; }
  .garage-readout { justify-items: start; text-align: left; }
  .garage-navigation { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .garage-actions button { padding-inline: 0.3rem; font-size: 0.48rem; line-height: 1.2; white-space: normal; }
}

.corridor-stage.is-display-docked .drive-deck,
.corridor-stage.is-display-docked .drive-instructions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.corridor-stage.is-garage-active .drive-deck,
.corridor-stage.is-garage-active .drive-instructions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .radar-scope::after,
  .radar-stop.is-newly-seen,
  .radar-stop.is-tour-target,
  .blueprint-scanner,
  .crosscheck-scan-rail { animation: none !important; }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .stop-marker { border-color: rgba(255, 157, 36, 0.55); }
  .detail-visual { background: #111315; }
  .status-pill { border-color: rgba(255, 157, 36, 0.55); }
}
