/*
 * CAS deck — visual system.
 * Architectural drawing: ink linework, AVA blue for anything CAS understands
 * or routes, AVA gold for labels and annotation. Every slide is dark, in the
 * Aurora look (founder, 2026-10-13; see the Aurora block below); the drawn
 * islands keep paper. Body type: Atkinson Hyperlegible Next, designed for
 * low-vision readers; headlines: Fraunces.
 */

:root {
  --deep: #0d2233;
  --deep-2: #143149;
  --deep-3: #1f4a6a;
  --paper: #eef2f3;
  --paper-2: #e1e8eb;
  --paper-3: #d3dde2;
  --ink: #13283a;
  --ink-2: #45596a;
  --line: #93a4b0;
  --line-2: #c4cfd6;
  --blue: #1B5E8C;
  --blue-2: #2f7db3;
  --blue-soft: #d7e6f1;
  --gold: #8B7D3C;
  --gold-ink: #6c6128;
  --gold-light: #e0cd7c;
  --restricted: #a3412a;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ts: 1;
  --fit: 1;

  /* plan drawing (paper slides) */
  --plan-street: #dbe2e6;
  --plan-slab: #f7f9fa;
  --plan-slab-up: #fbfcfc;
  --plan-edge: #b6c3cb;
  --plan-edge-2: #a3b2bb;
  --plan-room: #e6ecef;
  --plan-lounge: #e7eff5;
  --plan-line: #93a4b0;
  --plan-wall: #45596a;
  --plan-lift: rgba(27, 94, 140, 0.14);
  --plan-glass: rgba(47, 125, 179, 0.18);
  --plan-furn: #c9d4da;
  --plan-ramp: #d8e6ef;
  --tag-bg: #ffffff;
  --tag-ink: #13283a;
  --route: #1B5E8C;
  --route-casing: #ffffff;
  --focus: #1B5E8C;
  /* UI component boundaries: at least 3:1 against white and paper (WCAG 1.4.11). */
  --control-border: #7b8d99;
}

body.large { --ts: 1.16; }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--deep);
  color: var(--paper);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.noscript { padding: 24px; color: #fff; }

/* ------------------------------------------------------------ shell */
.shell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.viewport { flex: 1; position: relative; min-height: 0; overflow: hidden; }
.stage {
  position: absolute; left: 50%; top: 50%;
  width: 1600px; height: 900px;
  transform-origin: center center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
}

/* ------------------------------------------------------------ slides */
.slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 540px 860px;
  grid-template-rows: 100%;
  column-gap: 56px;
  padding: 64px 72px;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.7s;
}
.slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
}
.slide.is-dark {
  background: radial-gradient(ellipse 70% 80% at 72% 45%, #173c5c 0%, var(--deep) 70%);
  color: var(--paper);
  --focus: var(--gold-light);
  --plan-street: #0f2a3f;
  --plan-slab: #173a55;
  --plan-slab-up: #1b4262;
  --plan-edge: #0b2032;
  --plan-edge-2: #091a29;
  --plan-room: #1d4563;
  --plan-lounge: #22506f;
  --plan-line: #4f7390;
  --plan-wall: #9dbbd1;
  --plan-lift: rgba(111, 182, 230, 0.2);
  --plan-glass: rgba(111, 182, 230, 0.22);
  --plan-furn: #2c5675;
  --plan-ramp: #24506f;
  --tag-bg: #0d2233;
  --tag-ink: #ffffff;
  --route: #6fb6e6;
  --route-casing: #0d2233;
}

.s-text {
  grid-column: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  justify-content: safe center; /* if even the fit floor overflows, spill down, never off the top */
  min-width: 0; min-height: 0;
  height: 100%;
}
.s-visual {
  grid-column: 2;
  align-self: center;
  min-width: 0;
  display: flex; flex-direction: column;
}

.s-headline {
  font-size: calc(60px * var(--ts) * var(--fit));
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 0 0 calc(28px * var(--fit));
  text-wrap: balance;
  color: var(--ink);
}
.is-dark .s-headline { color: #fff; }
.s-headline:focus { outline: none; }
.s-headline:focus-visible { outline: 3px solid var(--focus); outline-offset: 8px; border-radius: 4px; }
.s-body p {
  font-size: calc(28px * var(--ts) * var(--fit));
  line-height: 1.45;
  margin: 0 0 calc(14px * var(--fit));
  color: var(--ink-2);
  max-width: 30em;
  text-wrap: pretty;
}
.is-dark .s-body p { color: #c3d1db; }

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

.group-label {
  font-size: calc(18px * var(--ts));
  font-weight: 700;
  color: var(--gold-ink);
  margin: 0 0 10px;
}
.illustrative { font-size: 17px; color: var(--ink-2); margin: 0; font-style: italic; white-space: nowrap; }
.is-dark .illustrative { color: #93aabb; }
.hint { font-size: 21px; color: var(--ink-2); margin: 14px 0 0; }
.visual-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 14px; min-height: 26px; }

/* Buttons that sit on the slides */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start;
  min-height: 56px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: calc(21px * var(--ts) * var(--fit));
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta:hover { background: #154c72; }
.cta:active { transform: translateY(1px); }
.is-dark .cta { background: var(--gold-light); color: #1c1a0e; }
.is-dark .cta:hover { background: #ecdb90; }
.btn-quiet {
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: calc(19px * var(--ts) * var(--fit));
  font-weight: 700;
  cursor: pointer;
}
.btn-quiet:hover { background: rgba(255, 255, 255, 0.08); }
.btn-quiet.small { min-height: 40px; font-size: 15px; padding: 6px 14px; }

/* Toggle chips: pressed state is shown by fill AND a tick, never colour alone. */
.chip {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 10px 44px 10px 16px;
  border-radius: 12px;
  border: 2px solid var(--control-border);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chip::after {
  content: "";
  position: absolute; right: 14px; top: 50%;
  width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%;
  border: 2px solid var(--control-border);
  background: no-repeat center / 14px 14px;
}
.chip:hover { border-color: var(--blue-2); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip[aria-pressed="true"]::after {
  border-color: #fff; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%231B5E8C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.chip-label { font-size: calc(22px * var(--ts) * var(--fit)); font-weight: 700; line-height: 1.2; }
.chip-hint { font-size: calc(17px * var(--ts) * var(--fit)); color: var(--ink-2); line-height: 1.25; }
.chip[aria-pressed="true"] .chip-hint { color: #d6e6f2; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.control-row { margin-bottom: 14px; }

/* ----------------------------------------------------- plan drawing */
.plan-box { position: relative; }
.plan-svg { display: block; width: 100%; height: auto; overflow: visible; }
.p-street { fill: var(--plan-street); }
.p-slab { fill: var(--plan-slab); stroke: var(--plan-line); stroke-width: 2; stroke-linejoin: round; }
.p-slab-upper { fill: var(--plan-slab-up); }
.p-slab-edge { fill: var(--plan-edge); }
.p-slab-side { fill: var(--plan-edge-2); }
.p-room { fill: var(--plan-room); stroke: var(--plan-line); stroke-width: 1.5; stroke-linejoin: round; }
.p-lounge { fill: var(--plan-lounge); }
.p-gate { fill: var(--plan-lounge); }
.p-hatch { stroke: none; }
.p-hatch-line { stroke: var(--restricted); stroke-width: 2; opacity: 0.55; }
.p-wall { stroke: var(--plan-wall); stroke-width: 3; stroke-linecap: round; }
.p-step { fill: var(--plan-furn); stroke: var(--plan-line); }
.p-ramp { fill: var(--plan-ramp); stroke: var(--blue-2); stroke-width: 1.2; }
.p-lift { fill: var(--plan-lift); stroke: var(--blue-2); stroke-width: 1.6; }
.p-lift-face { fill: var(--plan-lift); stroke: var(--blue-2); stroke-width: 1.2; }
.p-column { stroke: var(--plan-line); stroke-width: 2; stroke-dasharray: 4 6; }
.p-flight { fill: var(--plan-room); stroke: var(--plan-line); stroke-width: 1.4; stroke-linejoin: round; }
.p-tread { stroke: var(--plan-line); stroke-width: 1; }
.p-escalator .p-flight { fill: var(--plan-furn); }
.p-glass { fill: var(--plan-glass); stroke: var(--blue-2); stroke-width: 1.2; }
.p-desk, .p-seat { fill: var(--plan-furn); stroke: var(--plan-line); stroke-width: 1; }
.p-leader { stroke: var(--gold); stroke-width: 1.6; }
.is-dark .p-leader { stroke: var(--gold-light); }
.p-dot { fill: var(--gold); }
.is-dark .p-dot { fill: var(--gold-light); }
.p-tag { fill: var(--tag-bg); stroke: var(--gold); stroke-width: 1.6; }
.is-dark .p-tag { stroke: var(--gold-light); }
.p-tag-text { fill: var(--tag-ink); font: 700 23px var(--font); }

.r-casing { fill: none; stroke: var(--route-casing); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.r-line { fill: none; stroke: var(--route); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.r-ghost { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; opacity: 0.6; }
.r-start { fill: #fff; stroke: var(--route); stroke-width: 4; }
.r-end { fill: var(--route); opacity: 0.22; }
.r-end-core { fill: var(--route); }
.r-walker { fill: var(--gold-light); stroke: var(--ink); stroke-width: 3; }
.r-start-text { fill: var(--ink); font: 700 24px var(--font); }
.is-dark .r-start-text { fill: #fff; }
.r-level-tag { fill: var(--route); }
.r-level-text { fill: #fff; font: 700 19px var(--font); }
.is-dark .r-level-text { fill: var(--deep); }

/* ------------------------------------------------------ scene drawing */
.scene-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(19, 40, 58, 0.05), 0 22px 44px -28px rgba(13, 34, 51, 0.5);
}
.scene-svg {
  display: block; width: 100%; height: auto;
  --sc-ceil-a: #e4eaed; --sc-ceil-b: #cfd9df;
  --sc-floor-a: #c6d0d6; --sc-floor-b: #a9b6be;
}
.sc-wall-l { fill: #d3dce1; }
.sc-wall-r { fill: #c8d2d8; }
.sc-wall-b { fill: #e3e9ec; }
.sc-floorlines line { stroke: #fff; stroke-opacity: 0.4; stroke-width: 1.2; }
.sc-roof line { stroke: #b6c3cb; stroke-width: 1.2; }
.sc-mezz-wall { fill: #eaeff1; }
.sc-lounge-door { fill: #d3e3ed; stroke: #8aa3b3; }
.sc-slab { fill: #8a9ba7; }
.sc-glass { fill: #bcd6e6; fill-opacity: 0.5; stroke: #8fb2c8; }
.sc-rail { stroke: #6f8594; stroke-width: 3; }
.sc-post { stroke: #8fa2ae; stroke-width: 1.5; }
.sc-lift-frame { fill: #95a7b3; }
.sc-lift-door { fill: #c8d3da; stroke: #8a9ba7; }
.sc-lamp { fill: var(--gold-light); }
.sc-stairs { fill: #e1e7ea; stroke: #9aabb6; }
.sc-tread { stroke: #9aabb6; stroke-width: 1.4; }
.sc-handrail { stroke: #5d7383; stroke-width: 3; stroke-linecap: round; fill: none; }
.sc-escalator { fill: #b5c3cb; stroke: #8a9ba7; }
.sc-shop { fill: #ddd4b2; stroke: #b5a978; }
.sc-counter { fill: #8B7D3C; opacity: 0.85; }
.sc-counter-top { fill: #cbbd84; }
.sc-plaque-bar { fill: var(--restricted); }
.sc-shop-sign { fill: #6c6128; }
.sc-door { fill: #b3c1ca; stroke: #8a9ba7; }
.sc-plaque { fill: #fff; }
.sc-plaque-icon { fill: var(--blue); }
.sc-hanger { stroke: #6f8594; stroke-width: 2; }
.sc-sign { fill: #13283a; }
.sc-sign-text { fill: #fff; font: 700 22px var(--font); }
.sc-sign-small { fill: #13283a; font: 700 15px var(--font); }
.sc-sign-small.sc-sign-light { fill: #fff; }
.sc-bench { fill: #8B7D3C; opacity: 0.85; }
.sc-bench-front { fill: #6c6128; }
.sc-leg, .sc-arm { stroke: #4a4424; stroke-width: 4; }
.sc-hatch-line { stroke: var(--restricted); stroke-width: 3; }

.sc-understand { opacity: 0; transition: opacity 0.4s ease; }
.sc-box { fill: none; stroke: var(--blue); stroke-width: 3; opacity: 0; transition: opacity 0.35s ease, stroke 0.2s ease, stroke-width 0.2s ease; }
.sc-tags { pointer-events: none; }
.sc-tag { opacity: 0; transition: opacity 0.35s ease; }
.sc-tag rect { fill: #fff; stroke: var(--blue); stroke-width: 1.6; }
.sc-tag text { fill: var(--ink); font: 700 17px var(--font); }
.sc-restricted { opacity: 0.85; }

/* The understood version of the scene: the picture quietens, meaning appears. */
.scene-understood .sc-base { filter: saturate(0.3) brightness(1.05); }
.scene-understood .sc-understand,
.scene-understood .sc-box,
.scene-understood .sc-tag { opacity: 1; }
.sc-floor-arrow { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.sc-floor-arrow-alt { stroke-dasharray: 12 10; }

/* Layered scenes (the environment and Ask slides) show only the lit layer. */
.layered .sc-box { opacity: 0.14; }
.layered .sc-tag { opacity: 0; }
.layered .sc-box.is-lit, .layered .sc-tag.is-lit { opacity: 1; }
.layered .sc-restricted { opacity: 0; transition: opacity 0.4s ease; }
.layered.show-restricted .sc-restricted { opacity: 0.85; }
.layered .sc-floor-arrow { opacity: 0; }
.sc-box.is-picked { stroke: var(--gold); stroke-width: 5; opacity: 1; }
.sc-tag.is-picked rect { stroke: var(--gold); stroke-width: 2.5; }
.sc-link { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 7 7; animation: link-in 0.6s ease both; animation-delay: calc(var(--i) * 120ms); }
.sc-link-end { fill: var(--gold); }
@keyframes link-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------- opening */
.slide-opening { grid-template-columns: 590px 810px; }
.slide-opening .s-headline { font-size: calc(46px * var(--ts) * var(--fit)); margin-bottom: calc(18px * var(--fit)); }
.slide-opening .s-body p { font-size: calc(24px * var(--ts) * var(--fit)); }
.logo { display: block; width: calc(240px * var(--fit)); height: auto; margin-bottom: calc(30px * var(--fit)); }
.wordmark { display: flex; align-items: flex-end; gap: 18px; margin: 0 0 calc(18px * var(--fit)); }
.wordmark-cas {
  font-size: calc(124px * var(--fit)); font-weight: 800; letter-spacing: -0.045em; line-height: 0.8; color: #fff;
}
.wordmark-name { font-size: calc(22px * var(--ts) * var(--fit)); font-weight: 700; color: var(--gold-light); line-height: 1.2; max-width: 9em; padding-bottom: 4px; }
.entry-q { font-size: calc(19px * var(--ts) * var(--fit)); font-weight: 700; color: #fff; margin: calc(18px * var(--fit)) 0 10px; }
.entry-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.entry .chip-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.entry { min-height: 58px; }
.is-dark .chip { background: rgba(255, 255, 255, 0.03); border-color: #7093ad; color: #fff; }
.is-dark .chip::after { border-color: #7d9ab0; }
.is-dark .chip:hover { border-color: #88a9c1; }
.is-dark .chip-hint { color: #b3c4d1; }
.is-dark .chip[aria-pressed="true"] { background: var(--gold-light); border-color: var(--gold-light); color: #1c1a0e; }
.is-dark .chip[aria-pressed="true"] .chip-hint { color: #4a4424; }
.is-dark .chip[aria-pressed="true"]::after {
  border-color: #1c1a0e; background-color: #1c1a0e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23e0cd7c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* Begin and More detail share a row: stacked, they pushed slide 1's text
   column past the canvas with Larger text on (logo cut at the top, the
   button off the bottom) even at the fit floor. */
.s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: calc(22px * var(--fit)); }
.s-actions .cta, .s-actions .more-btn { margin-top: 0; }
.slide-opening .s-visual { align-self: center; }
.slide-opening .illustrative { text-align: right; margin-top: 6px; }

/* The one orchestrated moment: the building assembles, then names itself. */
.slide-opening .plan-l0 { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease 0.15s, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
.slide-opening .plan-vertical { opacity: 0; transition: opacity 0.8s ease 0.7s; }
.slide-opening .plan-l1 { opacity: 0; transform: translateY(-34px); transition: opacity 0.9s ease 0.9s, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s; }
.slide-opening .p-label { opacity: 0; transition: opacity 0.45s ease calc(1.5s + var(--i) * 260ms); }
.slide-opening.is-built .plan-l0,
.slide-opening.is-built .plan-vertical,
.slide-opening.is-built .plan-l1,
.slide-opening.is-built .p-label { opacity: 1; transform: none; }

/* --------------------------------------------------------- understanding (displays vs understands) */
.compare { cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.compare .scene-top { position: absolute; inset: 0; }
.compare .scene-top svg { width: 100%; height: 100%; }
.slider-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 0;
  border-left: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(19, 40, 58, 0.25);
  outline: none;
}
.slider-grip {
  position: absolute; top: 50%; left: -27px;
  width: 52px; height: 52px; margin-top: -26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 8px 20px -8px rgba(13, 34, 51, 0.6);
}
.slider-grip::before, .slider-grip::after {
  content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border: solid var(--blue); border-width: 0 0 3px 3px;
}
.slider-grip::before { left: 11px; transform: rotate(45deg); }
.slider-grip::after { right: 11px; transform: rotate(-135deg); }
.slider-handle:focus-visible .slider-grip { outline: 4px solid var(--gold); outline-offset: 3px; }
.side-tag {
  position: absolute; top: 16px;
  padding: 7px 14px; border-radius: 8px;
  font-size: 20px; font-weight: 700;
  background: rgba(19, 40, 58, 0.85); color: #fff;
  pointer-events: none;
}
.side-left { left: 16px; }
.side-right { right: 16px; background: var(--blue); }

.atlas { margin-top: calc(22px * var(--fit)); opacity: 0.25; transition: opacity 0.6s ease; }
.atlas.is-open { opacity: 1; }
.atlas-title { font-size: calc(19px * var(--ts) * var(--fit)); font-weight: 700; color: var(--gold-ink); margin: 0 0 6px; }
.atlas-list { list-style: none; margin: 0; padding: 0; }
.atlas-list li {
  display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline;
  padding: calc(9px * var(--fit)) 0;
  border-top: 1px solid var(--line-2);
  opacity: 0.35; transform: translateX(-6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.atlas.is-open li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 110ms); }
.atlas-name { font-size: calc(19px * var(--ts) * var(--fit)); font-weight: 700; }
.atlas-detail { font-size: calc(18px * var(--ts) * var(--fit)); color: var(--ink-2); }

/* --------------------------------------------------------- environment (layered scene) */
.tabs-vertical { display: flex; flex-direction: column; gap: 4px; margin: calc(8px * var(--fit)) 0 calc(22px * var(--fit)); }
.tab {
  display: grid; grid-template-columns: 150px 1fr; align-items: baseline; gap: 12px;
  min-height: 46px;
  padding: calc(8px * var(--fit)) 14px;
  border: 2px solid transparent; border-radius: 10px;
  background: transparent; color: var(--ink);
  text-align: left; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tab:hover { border-color: var(--line-2); }
.tab-label { font-size: calc(24px * var(--ts) * var(--fit)); font-weight: 700; }
.tab-summary { font-size: calc(16px * var(--ts) * var(--fit)); color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--blue); color: #fff; }
.tab[aria-selected="true"] .tab-summary { color: #d6e6f2; }

.detail { border-left: 4px solid var(--gold); padding: 2px 0 2px 18px; min-height: 150px; }
.detail.is-fresh { animation: detail-in 0.4s ease both; }
@keyframes detail-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.detail-name { font-size: calc(27px * var(--ts) * var(--fit)); font-weight: 700; margin: 0 0 10px; }
.detail-seen, .detail-understood {
  display: grid; grid-template-columns: 116px 1fr; gap: 10px;
  margin: 0 0 6px;
  font-size: calc(23px * var(--ts) * var(--fit)); line-height: 1.42;
}
.detail .k { color: var(--gold-ink); font-weight: 700; }
.detail-seen span:last-child { color: var(--ink-2); }
.hotspots { position: absolute; inset: 0; }
.hotspot {
  position: absolute; padding: 0; margin: 0;
  background: transparent; border: 0; border-radius: 8px;
  cursor: pointer;
}
.hotspot:hover { background: rgba(27, 94, 140, 0.1); }
.hotspot:focus-visible { outline: 4px solid var(--gold); outline-offset: 2px; }
.hotspot[hidden] { display: none; }

/* --------------------------------------------------------- clip captions */
.clip-caption { font-size: 20px; color: var(--ink); margin: 0; font-weight: 600; }

/* --------------------------------------------------------- personal (needs) */
.needs { gap: 8px; flex-wrap: nowrap; }
.needs .chip { padding: 10px 38px 10px 12px; }
.needs .chip::after { right: 11px; }
.needs .chip-label { font-size: 19px; white-space: nowrap; }
.needs .chip-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.slide-personal .plan-box { width: 820px; align-self: flex-end; }
.dest-line { font-size: 21px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.route-stats { font-size: 23px; font-weight: 700; color: var(--blue); margin: 0; font-variant-numeric: tabular-nums; }
.why { margin-top: calc(12px * var(--fit)); }
.why-title { font-size: calc(19px * var(--ts) * var(--fit)); font-weight: 700; color: var(--gold-ink); margin: 0 0 8px; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li {
  position: relative;
  padding: calc(8px * var(--fit)) 0 calc(8px * var(--fit)) 34px;
  border-top: 1px solid var(--line-2);
  font-size: calc(23px * var(--ts) * var(--fit)); line-height: 1.4;
  animation: detail-in 0.4s ease both;
}
.why-list li::before { position: absolute; left: 2px; top: calc(8px * var(--fit)); font-weight: 800; font-size: 20px; }
.why-avoided::before { content: "✓"; color: var(--blue); }
.why-uses::before { content: "↗"; color: var(--blue); }
.why-accepted::before { content: "!"; color: var(--restricted); left: 8px !important; }
.why-accepted { color: var(--ink-2); }
.why-default { color: var(--ink-2); padding-left: 0 !important; }

/* --------------------------------------------------------- ask */
.slide-ask .s-headline { font-size: calc(96px * var(--ts) * var(--fit)); letter-spacing: -0.02em; }
.questions { display: flex; flex-direction: column; gap: 8px; }
.question {
  position: relative;
  min-height: 52px;
  padding: calc(10px * var(--fit)) 16px calc(10px * var(--fit)) 42px;
  border-radius: 12px;
  border: 2px solid var(--control-border);
  background: #fff; color: var(--ink);
  font-size: calc(22px * var(--ts) * var(--fit)); font-weight: 600; line-height: 1.3;
  text-align: left; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.question::before {
  content: ""; position: absolute; left: 14px; top: 50%;
  width: 16px; height: 14px; margin-top: -8px;
  border-radius: 4px 4px 4px 1px;
  border: 2px solid var(--blue);
}
.question:hover { border-color: var(--blue-2); }
.question[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.question[aria-pressed="true"]::before { border-color: #fff; background: #fff; }
.convo {
  min-height: 176px;
  padding: 18px 24px 20px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--deep);
  color: #fff;
}
.who { margin: 0; font-size: 15px; font-weight: 700; color: var(--gold-light); }
.who-ava { margin-top: 10px; opacity: 0; transition: opacity 0.3s ease; }
.ask-q { margin: 2px 0 0; font-size: 34px; font-weight: 700; line-height: 1.2; min-height: 36px; letter-spacing: -0.01em; }
.ask-a { margin: 4px 0 0; font-size: 23px; line-height: 1.45; color: #d5e1ea; opacity: 0; transition: opacity 0.45s ease; }
.convo.has-answer .who-ava, .convo.has-answer .ask-a { opacity: 1; }
.ask-stage {
  position: relative;
  height: 520px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
}
.ask-plan, .ask-scene {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.ask-plan .plan-svg { width: auto; height: 100%; max-width: 100%; }
.ask-scene { opacity: 0; border-radius: 0; box-shadow: none; }
.ask-scene .scene-svg { width: 100%; height: 100%; }
.ask-stage.show-scene .ask-scene { opacity: 1; }
.ask-stage.show-scene .ask-plan { opacity: 0; }

/* --------------------------------------------------------- existing */
/* safe center: an overflow spills downward, where fitText's scrollHeight
   check sees it, instead of off the top edge, where it never does. */
.slide-existing { display: flex; flex-direction: column; justify-content: center; justify-content: safe center; gap: 0; }
.s-top { display: grid; grid-template-columns: 820px 1fr; column-gap: 56px; align-items: end; }
.slide-existing .s-headline { font-size: calc(64px * var(--ts) * var(--fit)); margin: 0; }
.slide-existing .s-body p:last-child { margin-bottom: 0; }
.slide-existing .s-body p:last-child { color: var(--blue); font-weight: 700; }
.pipeline {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr);
  list-style: none;
  margin: calc(46px * var(--fit)) 0 calc(38px * var(--fit));
  padding: 34px 0 0;
}
.pipeline::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 10px;
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) 0 16.6%, var(--blue) 16.6% 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.8s cubic-bezier(0.3, 0.6, 0.2, 1) 0.2s;
}
.slide-existing.is-built .pipeline::before { transform: scaleX(1); }
.pipeline li {
  position: relative;
  padding-right: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(0.3s + var(--i) * 280ms);
}
.slide-existing.is-built .pipeline li { opacity: 1; transform: none; }
.pipeline li::before {
  content: ""; position: absolute; left: 0; top: -34px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); border: 4px solid var(--paper);
  box-shadow: 0 0 0 2px var(--blue);
}
.pipeline .pipe-start::before { background: var(--paper); box-shadow: 0 0 0 2px var(--gold); }
.pipe-label { display: block; font-size: calc(32px * var(--ts) * var(--fit)); font-weight: 800; letter-spacing: -0.01em; }
.pipe-start .pipe-label { color: var(--gold-ink); font-size: calc(22px * var(--ts) * var(--fit)); font-weight: 700; }
.pipe-detail { display: block; margin-top: 6px; font-size: calc(22px * var(--ts) * var(--fit)); color: var(--ink-2); }
.sectors { display: grid; grid-template-columns: 1fr; }
.tabs-horizontal { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs-horizontal .tab {
  display: inline-flex; grid-template-columns: none;
  padding: 8px 18px;
  border: 2px solid var(--control-border);
  background: #fff;
}
.tabs-horizontal .tab-label { font-size: calc(22px * var(--ts) * var(--fit)); }
.tabs-horizontal .tab[aria-selected="true"] { border-color: var(--blue); background: var(--blue); }
.sectors .tab[aria-selected="true"] { color: #fff; box-shadow: 0 5px 0 0 var(--gold); }
.sector-panel.is-fresh { animation: detail-in 0.4s ease both; }
.sector-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: baseline;
  padding: 16px 0 0; border-top: 1px solid var(--line-2);
  border-radius: 4px;
}
.sector-line { margin: 0; font-size: calc(27px * var(--ts) * var(--fit)); line-height: 1.4; }
.sector-ask { margin: 0; font-size: calc(27px * var(--ts) * var(--fit)); line-height: 1.4; color: var(--gold-ink); font-weight: 700; }
.patent {
  margin: calc(36px * var(--fit)) 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: calc(17px * var(--ts) * var(--fit));
  color: var(--ink-2);
}

/* --------------------------------------------------------- next */
.slide-next { grid-template-columns: 590px 810px; }
.slide-next .s-headline { font-size: calc(76px * var(--ts) * var(--fit)); letter-spacing: -0.02em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: calc(20px * var(--fit)); align-items: center; }
.actions .cta { align-self: auto; }
.contact {
  margin-top: calc(34px * var(--fit));
  padding: 14px 0 0 18px;
  border-left: 4px solid var(--gold-light);
  border-radius: 2px;
  outline: none;
}
.contact:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 6px; }
.contact.is-flash { animation: contact-flash 1.2s ease; }
@keyframes contact-flash { 0%, 100% { background: transparent; } 30% { background: rgba(224, 205, 124, 0.16); } }
.contact-name { margin: 0; font-size: calc(24px * var(--ts) * var(--fit)); font-weight: 700; color: #fff; }
.contact-role { margin: 2px 0 0; font-size: calc(19px * var(--ts) * var(--fit)); color: #c3d1db; }
.contact-email { margin: 6px 0 0; font-size: calc(19px * var(--ts) * var(--fit)); }
.contact-email a { color: var(--gold-light); }
.eco { position: relative; width: 660px; align-self: center; }
.eco-svg { display: block; width: 100%; height: auto; overflow: visible; }
.eco-ring { fill: none; stroke: #2a4d68; stroke-width: 1.5; }
.eco-ring-inner { stroke-dasharray: 3 7; }
.eco-spoke { stroke: var(--gold-light); stroke-width: 1.6; opacity: 0; transition: opacity 0.6s ease calc(0.3s + var(--i) * 170ms); }
.eco-node { fill: var(--gold-light); opacity: 0; transition: opacity 0.4s ease calc(0.4s + var(--i) * 170ms); }
.eco-core { fill: var(--blue); stroke: #6fb6e6; stroke-width: 2; }
.eco-core-text { fill: #fff; font: 800 64px var(--font); letter-spacing: -0.03em; }
.eco-verb {
  position: absolute;
  width: 200px;
  opacity: 0;
  transition: opacity 0.5s ease calc(0.5s + var(--i) * 170ms);
}
.eco-verb.is-right { transform: translate(20px, -50%); }
.eco-verb.is-left { transform: translate(calc(-100% - 20px), -50%); text-align: right; }
.eco-verb.is-mid.is-top { transform: translate(-50%, calc(-100% - 18px)); text-align: center; }
.eco-verb.is-mid.is-bottom { transform: translate(-50%, 18px); text-align: center; }
.eco-v { display: block; font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.eco-l { display: block; font-size: 20px; color: #b9c8d3; line-height: 1.3; }
.slide-next.is-built .eco-spoke,
.slide-next.is-built .eco-node,
.slide-next.is-built .eco-verb { opacity: 1; }
.signoff { margin: 26px 0 0; text-align: center; font-size: 21px; font-weight: 700; color: var(--gold-light); }

/* ----------------------------------------------------- caption bar */
.captions {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  background: #081827;
  border-top: 1px solid #1f3d55;
}
.captions[hidden] { display: none; }
.caption-who {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold-light);
  font-size: 14px; font-weight: 800; color: var(--gold-light);
}
.captions.is-hearing .caption-who { background: var(--gold-light); color: var(--deep); }
.caption-lines { flex: 1; min-width: 0; }
.voice-status { margin: 0; font-size: 14px; color: #9fb4c4; }
.caption-text { margin: 2px 0 0; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.35; color: #fff; min-height: 1.35em; }
.caption-you { margin: 2px 0 0; font-size: clamp(14px, 1.2vw, 17px); color: #c3d1db; }
.caption-you:empty { display: none; }
.voice-ctl { display: flex; gap: 4px; flex: none; }

/* ------------------------------------------------------ controls */
.controls {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  background: var(--deep);
  border-top: 1px solid #1a3850;
}
.nav-group { display: flex; align-items: center; gap: 2px; }
.ctl {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #dbe6ee;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
}
.ctl svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl:hover { background: #17354d; }
.ctl:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.ctl[aria-pressed="true"] { background: var(--deep-3); border-color: #3e7299; color: #fff; }
.ctl:disabled { opacity: 0.35; cursor: default; background: transparent; }
.ctl[hidden] { display: none; }
.nav-btn { padding: 0 10px; }
.nav-btn svg { width: 26px; height: 26px; stroke-width: 2.6; }
.nav-btn .ctl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-next { background: var(--deep-3); }
.nav-next:hover { background: #28587d; }
.counter { min-width: 58px; text-align: center; color: #fff; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dots { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.dot {
  display: grid; place-items: center;
  width: 30px; height: 36px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; cursor: pointer;
}
.dot::before { content: ""; width: 20px; height: 5px; border-radius: 3px; background: #6d8da6; transition: width 0.3s ease, background 0.3s ease; }
.dot.is-past::before { background: #a9c6dc; }
.dot[aria-current]::before { width: 28px; background: var(--gold-light); }
.dot:hover::before { background: #d4e4ef; }
.dot:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 0; }
.rotate-hint { display: none; margin: 0; padding: 8px 16px 12px; text-align: center; font-size: 15px; color: #9fb4c4; }

@media (max-width: 1180px) {
  .tools .ctl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tools .ctl { padding: 0 10px; }
}
/* Small landscape phones still show the dots: narrower (targets stay 36px
   tall) so the bar fits without pushing the last tool off the edge. */
@media (max-width: 900px) {
  .dot { width: 24px; }
}
/* Upright phones: four 44px tools plus the slide controls leave little room, so the
   bar's own padding and gaps give way (targets keep their 44px). */
@media (max-width: 420px) {
  .controls { padding-left: 4px; padding-right: 4px; gap: 4px; }
  .nav-btn { padding: 0 9px; }
  .counter { min-width: 52px; }
}
@media (max-width: 720px) {
  .dots { display: none; }
  .voice-ctl .ctl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stage { border-radius: 4px; }
}
@media (orientation: portrait) and (max-width: 760px) {
  .rotate-hint { display: block; }
  .viewport { flex: 0 0 auto; aspect-ratio: 16 / 9; }
  .shell { justify-content: center; }
}
@media (max-width: 1180px) {
  .voice-ctl .ctl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ------------------------------------------------ text version */
.text-version {
  width: min(840px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0; border-radius: 14px;
  background: var(--paper); color: var(--ink);
  overflow: auto;
}
.text-version::backdrop { background: rgba(5, 15, 25, 0.72); }
.tv-head {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
}
.tv-head h2 { margin: 0; font-size: 22px; }
.tv-head .btn-quiet { color: var(--blue); font-size: 17px; }
.tv-body { padding: 8px 28px 48px; font-size: 19px; line-height: 1.6; }
.tv-body h3 { font-size: 26px; margin: 34px 0 6px; }
.tv-body h4 { font-size: 19px; margin: 18px 0 4px; color: var(--gold-ink); }
.tv-body h3:focus { outline: none; }
.tv-body h3:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.tv-headline { font-size: 23px; font-weight: 700; margin: 0 0 8px; }
.tv-body p { margin: 0 0 10px; max-width: 42em; }
.tv-body ul { margin: 0 0 12px; padding-left: 1.2em; }
.tv-picture { color: var(--ink-2); }
.tv-patent { font-size: 17px; color: var(--ink-2); }
.tv-transcript { margin-top: 40px; padding-top: 8px; border-top: 2px solid var(--line-2); }

/* ------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body.reader *, body.reader *::before, body.reader *::after { transition: none !important; animation: none !important; }

/* ------------------------------------------------ more detail */
.more-btn {
  display: inline-flex; align-items: center; gap: 12px;
  align-self: flex-start;
  margin-top: calc(26px * var(--fit));
  min-height: 48px;
  padding: 8px 18px 8px 10px;
  border: 2px solid var(--control-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: calc(20px * var(--ts));
  font-weight: 700;
  cursor: pointer;
}
.more-btn:hover { border-color: var(--blue); }
.more-icon {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue);
}
.more-icon::before, .more-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px;
  background: #fff; border-radius: 2px;
  transition: transform 0.25s ease;
}
.more-icon::after { transform: rotate(90deg); }
.more-btn[aria-expanded="true"] .more-icon::after { transform: rotate(0deg); }
.is-dark .more-btn { color: #fff; border-color: #7093ad; }
.is-dark .more-icon { background: var(--gold-light); }
.is-dark .more-icon::before, .is-dark .more-icon::after { background: var(--deep); }
.slide-existing .s-top .more-btn { grid-column: 1; }

/* --pfit is the panel's own fit factor, stepped down by fitPanel() in the
   deck scripts until every point shows; panel text also follows Larger text
   (--ts), like the rest of the slide. */
.more-panel {
  --pfit: 1;
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 930px;
  padding: calc(80px * var(--pfit)) 80px calc(64px * var(--pfit)) 72px;
  background: var(--deep);
  color: #fff;
  overflow: auto;
  animation: more-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  z-index: 5;
}
.is-dark .more-panel { background: var(--paper); color: var(--ink); }
.slide-opening .more-panel, .slide-next .more-panel { width: 880px; }
.more-panel[hidden] { display: none; }
/* Still too long at the fit floor: a scrollbar that is always drawn, because
   overlay scrollbars (macOS) stay invisible until scrolled and the last
   points read as missing. */
.more-panel.is-scrollable { scrollbar-width: thin; scrollbar-color: #7d9ab0 transparent; }
.more-panel.is-scrollable::-webkit-scrollbar { width: 12px; }
.more-panel.is-scrollable::-webkit-scrollbar-thumb { background: #7d9ab0; border-radius: 6px; border: 3px solid transparent; background-clip: padding-box; }
@keyframes more-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.more-title { margin: 0 0 calc(30px * var(--pfit)); font-size: calc(44px * var(--ts) * var(--pfit)); font-weight: 700; letter-spacing: -0.01em; color: var(--gold-light); }
.is-dark .more-title { color: var(--gold-ink); }
.more-title:focus { outline: none; }
.more-title:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 6px; }
.more-points { list-style: none; margin: 0; padding: 0; }
.more-points li {
  --li-size: 25px;
  position: relative;
  padding: calc(14px * var(--pfit)) 0 calc(14px * var(--pfit)) 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: calc(var(--li-size) * var(--ts) * var(--pfit)); line-height: 1.42;
  animation: more-in 0.4s ease both;
  animation-delay: calc(0.1s + var(--i) * 60ms);
}
.is-dark .more-points li { border-top-color: var(--line-2); }
.more-points li::before {
  content: ""; position: absolute; left: 2px;
  top: calc(var(--pfit) * (14px + var(--li-size) * 0.71 * var(--ts)) - 4.75px);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-light);
}
.is-dark .more-points li::before { background: var(--blue); }

/* ------------------------------------------------ real tour views */
.s-visual { position: relative; }
.segmented {
  display: inline-flex; align-self: flex-start;
  margin-top: calc(22px * var(--fit));
  padding: 4px; gap: 4px;
  border: 2px solid var(--control-border); border-radius: 12px;
  background: #fff;
}
.seg {
  min-height: 44px; padding: 6px 18px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--ink);
  font-size: calc(19px * var(--ts)); font-weight: 700;
  cursor: pointer;
}
.seg:hover { background: var(--paper-2); }
.seg[aria-pressed="true"] { background: var(--blue); color: #fff; }
.real-figure {
  position: absolute; inset: 0;
  margin: 0;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--paper);
  animation: detail-in 0.35s ease both;
  z-index: 2;
}
.real-figure[hidden] { display: none; }
.real-figure img {
  display: block; width: 100%; max-height: 640px; object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 22px 44px -28px rgba(13, 34, 51, 0.55);
}
.real-figure figcaption, .proof-caption {
  margin-top: 14px; font-size: 21px; line-height: 1.4; color: var(--ink-2);
}

/* ------------------------------------------------ proof slide */
.stats { margin: calc(26px * var(--fit)) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: calc(18px * var(--fit)) 28px; }
/* flex-end is the TOP in column-reverse: values line up across a row even
   when one label wraps to two lines (slide 4's "destinations people can ask
   for" pushed its number above its neighbour's). */
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; border-top: 3px solid var(--blue); padding-top: 10px; }
.stat-value { margin: 0; font-size: calc(46px * var(--ts) * var(--fit)); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { font-size: calc(19px * var(--ts) * var(--fit)); color: var(--ink-2); line-height: 1.3; }
.slide-proof .tabs-horizontal { margin-bottom: 16px; }
.proof-figure { margin: 0; }
.proof-frame {
  height: 520px; border-radius: 14px; overflow: hidden;
  background: #11161d;
  display: flex; align-items: center; justify-content: center;
}
.proof-img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }

/* images inside More detail */
.more-panel.has-img .more-body { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.more-img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.6); }
.more-panel.has-img .more-points li { --li-size: 23px; }

/* ------------------------------------------------ vision slide */
.levels { flex-direction: column; flex-wrap: nowrap; }
.levels .chip { width: 100%; }
.segmented.pace { margin-top: 0; }
.hear-row { display: flex; align-items: center; gap: 16px; margin-top: calc(22px * var(--fit)); }
.hear-row .cta { margin: 0; }
.hear-note { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 20em; }
.vision-scene { opacity: 0.9; }
.narration-card {
  margin-top: -120px; margin-left: 40px; margin-right: 40px;
  position: relative; z-index: 1;
  padding: 22px 28px 24px;
  border-radius: 14px;
  background: var(--deep); color: #fff;
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.7);
}
.narration-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--gold-light); }
.narration-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-light); }
.narration-lines { list-style: none; margin: 0; padding: 0; }
.narration-lines li { font-size: 23px; line-height: 1.4; padding: 5px 0; color: #fff; opacity: 0.18; transition: opacity 0.5s ease; }
.narration-lines li.is-said { opacity: 1; }

/* dataset view on the proof slide */
.data-view { height: 520px; border-radius: 14px; background: var(--deep); color: #fff; padding: 30px 36px 20px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.data-view[hidden] { display: none; }
.data-count { margin: 0; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.data-num { font-size: 84px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.data-label { font-size: 24px; font-weight: 700; max-width: 14em; line-height: 1.25; }
.data-sub { margin: 10px 0 14px; font-size: 19px; color: #b9c8d3; }
.data-window { flex: 1; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.14);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%); }
.data-stream { list-style: none; margin: 0; padding: 0; animation: data-scroll 38s linear infinite; }
.data-view.is-paused .data-stream { animation-play-state: paused; }
@keyframes data-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.data-stream li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.data-type { justify-self: start; padding: 3px 10px; border-radius: 6px; font-size: 15px; font-weight: 700; background: #24506f; color: #e9f2f8; }
.data-hazard, .data-restricted, .data-edge { background: #6b2a1d; color: #ffe2da; }
.data-lift, .data-stairs, .data-door { background: #1B5E8C; }
.data-sign, .data-restroom { background: #5d5427; color: #fbf3cf; }
.data-text { font-size: 19px; line-height: 1.35; color: #e6eef4; }
.data-pause { position: absolute; right: 24px; bottom: 18px; min-height: 40px; font-size: 15px; padding: 6px 14px; background: var(--deep); }
.data-examples { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--gold-light); }
@media (prefers-reduced-motion: reduce) { .data-pause { display: none; } }
body.reader .data-pause { display: none; }

/* live slide: the real tour up front */
.moments .tab { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; border: 2px solid var(--control-border); margin-bottom: 6px; }
.moments .tab-summary { font-size: calc(19px * var(--ts) * var(--fit)); }
.live-figure { margin: 0; }
.live-frame { border-radius: 14px; overflow: hidden; box-shadow: 0 26px 50px -28px rgba(13, 34, 51, 0.6); background: #11161d; }
.live-img { display: block; width: 100%; height: auto; }

/* voice moment on the live slide: transcript in the product's style */
.live-frame { position: relative; }
.talk-card {
  position: absolute; right: 22px; top: 22px; width: 400px;
  padding: 14px 18px 16px; border-radius: 10px;
  background: rgba(26, 32, 44, 0.94); color: #fff;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
}
.talk-card[hidden] { display: none; }
.talk-label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--gold-light); }
.talk-lines { list-style: none; margin: 0; padding: 0; }
.talk-lines li { font-size: 17px; line-height: 1.4; padding: 5px 0; animation: more-in 0.4s ease both; animation-delay: calc(var(--i) * 450ms); }
.talk-who { font-weight: 800; }
.talk-lines .is-ava .talk-who { color: #8fd0ff; }
.talk-lines .is-you { color: #dfe7ee; }

/* ------------------------------------------------ real-tour clips */
.clip { position: relative; }
.clip[hidden] { display: none; }
.real-figure .clip { border-radius: 12px; overflow: hidden; box-shadow: 0 22px 44px -28px rgba(13, 34, 51, 0.55); }
.clip-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #11161d; }
.clip-toggle {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 16px 6px 12px;
  border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 999px;
  background: rgba(13, 34, 51, 0.82); color: #fff;
  font-size: 17px; font-weight: 700; cursor: pointer;
}
.clip-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.clip-toggle:hover { background: rgba(13, 34, 51, 0.95); }
.clip-toggle:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.live-img[hidden] { display: none; }

/* ------------------------------------------------ what CAS is */
.simple-figure { margin: 0; }
.simple-frame { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 26px 50px -28px rgba(13, 34, 51, 0.6); background: #11161d; }
.simple-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.simple-marks { position: absolute; inset: 0; }
.simple-mark {
  position: absolute; transform: translate(-50%, -50%);
  padding: 8px 16px; border-radius: 999px;
  background: #fff; color: var(--ink);
  border: 3px solid var(--blue);
  font-size: 21px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  animation: mark-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i) * 160ms);
}
[data-beat="understand"] .simple-mark { border-color: var(--gold); background: #fffbea; }
.simple-mark.is-strong { background: var(--blue); color: #fff; border-color: #fff; font-size: 23px; }
@keyframes mark-in { from { opacity: 0; transform: translate(-50%, -30%) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%); } }
.simple-arrow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.4s ease; }
.simple-arrow-line { fill: none; stroke: #fff; stroke-width: 10px; stroke-dasharray: 2 26; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: arrow-march 1.1s linear 4; /* stops on its own: WCAG 2.2.2 */ }
[data-beat="guide"] .simple-arrow { opacity: 1; }
@keyframes arrow-march { to { stroke-dashoffset: -28; } }
.simple-said { margin: 14px 0 0; font-size: 21px; line-height: 1.4; color: var(--ink-2); }

/* ------------------------------------------------ narrated navigation */
.is-dark .group-label { color: var(--gold-light); }
.is-dark .hear-note { color: #c3d1db; }
.narrated-figure { margin: 0; }
.narrated-frame { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.narrated-frame .clip-toggle { top: 16px; bottom: auto; }
.cue-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px 36px 26px;
  background: linear-gradient(to bottom, rgba(13, 34, 51, 0) 0%, rgba(13, 34, 51, 0.88) 42%, rgba(13, 34, 51, 0.95) 100%);
  color: #fff;
}
.cue-who { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--gold-light); }
.cue-now { margin: 0; font-size: 30px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.cue-overlay.is-new .cue-now { animation: more-in 0.4s ease both; }
.cue-note { margin: 14px 0 0; font-size: 18px; color: #b9c8d3; }
.slide-narrated .hear-row { margin-top: calc(30px * var(--fit)); }

/* ------------------------------------------------ dataset */
.slide-dataset .data-count { margin: 0 0 calc(22px * var(--fit)); display: flex; flex-direction: column; gap: 6px; }
.slide-dataset .data-num { font-size: calc(120px * var(--fit)); color: var(--gold-light); }
.slide-dataset .data-label { font-size: calc(30px * var(--ts) * var(--fit)); color: #fff; }
.slide-dataset .s-headline { font-size: calc(52px * var(--ts) * var(--fit)); }
.slide-dataset .data-sub { margin: 0 0 calc(18px * var(--fit)); font-size: calc(21px * var(--ts) * var(--fit)); color: #b9c8d3; max-width: 24em; }
.kinds { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kind {
  padding: 7px 14px; border-radius: 999px;
  border: 2px solid #4d7593; color: #fff;
  font-size: calc(18px * var(--ts)); font-weight: 700;
}
.slide-dataset.is-built .kind { animation: more-in 0.4s ease both; animation-delay: calc(0.25s + var(--i) * 45ms); }
.slide-dataset .data-view { height: 380px; background: rgba(255, 255, 255, 0.05); }
.data-step-free, .data-ramp, .data-threshold, .data-narrow { background: #1f6b52; color: #e2f6ee; }
.data-escalator { background: #1B5E8C; }
.data-place, .data-facility, .data-scene, .data-surface, .data-lighting { background: #24506f; }


/* ------------------------------------------------- all slides dark */
/* Founder, 2026-10-09: darker backgrounds across the whole deck. Every slide
   carries .is-dark (deck.js slideFrame), so the text tokens flip to light
   here; the islands that are still drawn on paper (the scene illustrations,
   the More detail panel) put the paper tokens back so their text stays dark
   on light. Contrast was measured slide by slide in the browser (WCAG 1.4.3
   text 4.5:1, 1.4.11 control borders 3:1). */
.slide.is-dark {
  --ink: #eef2f3;
  --ink-2: #b9cad6;
  --gold-ink: #e0cd7c;
  --line-2: #3e6280;
  --control-border: #7093ad;
}
/* The Sees / Understands / Guides labels are white pills on the photo, so
   they keep the paper ink too (dark slides would turn their text pale). */
.is-dark .more-panel, .is-dark .scene-box, .is-dark .simple-mark {
  --ink: #13283a;
  --ink-2: #45596a;
  --gold-ink: #6c6128;
  --line-2: #c4cfd6;
  --control-border: #7b8d99;
}
.is-dark .tab { color: var(--ink); }
.is-dark .tab:hover { border-color: #88a9c1; }
.is-dark .tab[aria-selected="true"] { background: var(--blue); color: #fff; }
.is-dark .moments .tab, .is-dark .tabs-horizontal .tab { background: rgba(255, 255, 255, 0.04); border-color: var(--control-border); }
.is-dark .tabs-horizontal .tab[aria-selected="true"] { background: var(--blue); border-color: #4f8fbd; }
/* The card rule above is as specific as the selected-tab rule and comes
   later, so the real-tour steps need their selected state restated. */
.is-dark .moments .tab[aria-selected="true"] { background: var(--blue); border-color: #4f8fbd; }
.is-dark .segmented { background: rgba(255, 255, 255, 0.04); }
.is-dark .seg { color: #fff; }
.is-dark .seg:hover { background: rgba(255, 255, 255, 0.1); }
.is-dark .seg[aria-pressed="true"] { background: var(--blue); }
.is-dark .question { background: rgba(255, 255, 255, 0.04); color: #fff; }
.is-dark .question:hover { border-color: #88a9c1; }
.is-dark .question[aria-pressed="true"] { background: var(--blue); border-color: #4f8fbd; }
.is-dark .route-stats, .slide-existing.is-dark .s-body p:last-child { color: #8cc6ee; }
.is-dark .real-figure { background: transparent; }
/* The Ask slide's plan is drawn in the dark palette, so its stage is dark
   too; the scene it switches to is a light .scene-box island of its own. */
.is-dark .ask-stage { background: rgba(255, 255, 255, 0.04); }
.slide-existing .s-top .more-btn { justify-self: start; }

/* ===================================================== THE LOOK */
/* deck.js sets body[data-style="aurora"], the deck's one look (founder,
   2026-10-13). Decorative
   light sits on .slide::before behind the content (z-index -1 inside the
   slide's own stacking context), never carries meaning, and every moving
   effect is off under prefers-reduced-motion and the Screen reader mode. */

.slide { isolation: isolate; }
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity 0.6s ease;
}
.s-headline { font-family: var(--hfont, var(--font)); }

/* The More detail button is easy to miss: a gentle ring, twice, the first
   time each slide is shown (founder, 2026-10-09). */
@keyframes more-hint { 0% { box-shadow: 0 0 0 0 rgba(224, 205, 124, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(224, 205, 124, 0); } }
.slide.is-active .more-btn .more-icon { animation: more-hint 1.4s ease-out 1.6s 2; }

/* ---- Aurora — the deck's look (founder, 2026-10-13: locked in, the style
   picker removed; the other looks are in git history): ink and teal, slow
   drifting light, Fraunces headlines, frosted cards. */
body[data-style="aurora"] { --hfont: "Fraunces", Georgia, serif; background: #070f17; }
body[data-style="aurora"] .slide.is-dark { background: #0a1520; }
body[data-style="aurora"] .slide.is-dark::before {
  inset: -20%;
  background:
    radial-gradient(40% 45% at 22% 30%, rgba(43, 143, 151, 0.5), transparent 70%),
    radial-gradient(45% 50% at 78% 70%, rgba(27, 94, 140, 0.5), transparent 70%),
    radial-gradient(30% 30% at 60% 15%, rgba(224, 205, 124, 0.12), transparent 70%);
  opacity: 1;
  animation: aurora-drift 38s ease-in-out infinite alternate;
}
@keyframes aurora-drift { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(4%, -3%) rotate(6deg); } }
body[data-style="aurora"] .is-dark .s-headline { font-weight: 600; letter-spacing: -0.01em; }
body[data-style="aurora"] .is-dark .tab,
body[data-style="aurora"] .is-dark .question,
body[data-style="aurora"] .is-dark .segmented { background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px); }
body[data-style="aurora"] .is-dark .tab[aria-selected="true"],
body[data-style="aurora"] .is-dark .question[aria-pressed="true"] { background: rgba(27, 94, 140, 0.92); }

/* Calm modes: no pointer light, no drift, no tilt, no hint ring. */
@media (prefers-reduced-motion: reduce) {
  .slide::before { animation: none !important; transition: none; }
  .slide.is-active .more-btn .more-icon { animation: none; }
}
body.reader .slide::before { animation: none !important; }
body.reader .slide.is-active .more-btn .more-icon { animation: none; }
body[data-style="aurora"] .is-dark .illustrative { color: #a9bccb; }

/* ---- acts and the manifesto (deck 2) */
.s-act {
  margin: 0 0 calc(14px * var(--fit));
  font-family: var(--hfont, var(--font));
  font-size: calc(17px * var(--ts) * var(--fit));
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.is-dark .s-act { color: var(--gold-light); }
.hl-line { display: block; }
.hl-line + .hl-line { color: var(--gold-light); }
.slide.is-active .hl-line { animation: manifesto-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.25s + var(--n) * 1.1s); }
@keyframes manifesto-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .slide.is-active .hl-line { animation: none; } }
body.reader .slide.is-active .hl-line { animation: none; }
/* The No-rebuild slide lays its top out as a two-column grid; the act label
   spans it so the headline keeps column one. */
.slide-existing .s-top .s-act { grid-column: 1 / -1; }
