/* Ferris Orthodontic Group · Brandcore web proposal
   Fonts: Geist (display/body), Instrument Serif italic (one payoff phrase per headline), JetBrains Mono (labels). */

@font-face { font-family: 'Geist'; src: url('assets/fonts/geist-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/instrument-serif-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('assets/fonts/jetbrains-mono-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --night: #091424;
  --night-2: #0B1830;
  --navy: #1F3556;
  --paper: #F5F0E6;
  --paper-card: #FBF8F1;
  --paper-line: #DCD3C0;
  --sun: #EE7F34;
  --amber: #F7B541;
  --bronze: #8A4A12;
  --red: #A3232B;
  --text-dark: #F1EEE7;
  --muted-dark: #B9C3D3;
  --text-paper: #14233B;
  --muted-paper: #47536A;

  /* Fluid type: measured as rendered CSS px at 1600, 1366, 2100 and 390 widths */
  --fs-body: clamp(17px, calc(0.75vw + 6.5px), 23px);
  --fs-lead: clamp(19px, calc(0.9vw + 6px), 26px);
  --fs-label: clamp(13px, calc(0.5vw + 6.2px), 16px);
  --fs-h2: clamp(36px, 3.6vw, 66px);
  --fs-h3: clamp(22px, calc(1.35vw + 4.4px), 34px);
  --fs-cover: clamp(56px, 7.6vw, 150px);

  --top: 64px;
  --bottom: 64px;
  --gutter: clamp(24px, 4.2vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); overflow: hidden; }
body {
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-body);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--amber); color: var(--night); padding: 12px 16px; }
.skip-link:focus { left: 12px; top: 12px; }
[hidden] { display: none !important; }

/* ───────── Deck frame ───────── */
.deck { position: fixed; inset: 0; overflow: hidden; background: var(--night); }
.stage { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0;
  background: var(--bg); color: var(--fg);
  opacity: 0; visibility: hidden; z-index: 1;
  will-change: transform, opacity;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 3; }
.slide-dark {
  --bg: var(--night); --fg: var(--text-dark); --muted: var(--muted-dark); --line: rgba(241, 238, 231, 0.16);
  background-image: radial-gradient(60% 55% at 78% 34%, rgba(238, 127, 52, 0.13), transparent 72%), radial-gradient(50% 50% at 12% 100%, rgba(31, 53, 86, 0.55), transparent 70%);
}
.slide-paper {
  --bg: var(--paper); --fg: var(--text-paper); --muted: var(--muted-paper); --line: rgba(20, 35, 59, 0.16);
  background-image: radial-gradient(70% 60% at 100% 0%, rgba(247, 181, 65, 0.16), transparent 70%);
}
.slide-scroll {
  position: absolute; inset: 0;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: calc(var(--top) + clamp(22px, 4vh, 44px)) var(--gutter) calc(var(--bottom) + clamp(18px, 3vh, 36px));
  scroll-padding: var(--top) 0 var(--bottom);
}

/* Type roles */
.kicker { margin: 0 0 14px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); line-height: 1.35; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.kicker-paper { color: var(--bronze); }
.h2 { margin: 0 0 0.32em; font-weight: 650; font-size: var(--fs-h2); line-height: 0.98; letter-spacing: -0.045em; max-width: 22ch; }
.h3 { margin: 0 0 0.45em; font-weight: 620; font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.02em; }
.payoff { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.06em; letter-spacing: -0.01em; color: var(--amber); }
.slide-paper .payoff { color: var(--bronze); }
.body { margin: 0 0 0.6em; font-size: var(--fs-body); line-height: 1.5; max-width: 60ch; color: var(--fg); }
.body-lead { margin: 0 0 0.6em; font-size: var(--fs-lead); line-height: 1.45; max-width: 58ch; color: var(--fg); }
.source { margin: 14px 0 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); line-height: 1.4; color: var(--muted); }
.note { margin: 10px 0 0; font-size: var(--fs-label); line-height: 1.45; color: var(--muted); }
.slide-head { margin-bottom: clamp(18px, 3.2vh, 34px); }
.slide-paper .body, .slide-paper .body-lead { color: var(--text-paper); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 8px; border: 1.5px solid transparent; font-weight: 600; font-size: var(--fs-label); line-height: 1; text-decoration: none; cursor: pointer; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--sun); color: var(--night); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ───────── Chrome (opaque, theme-matched) ───────── */
.chrome { position: fixed; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(14px, 3vw, 48px); }
.chrome-top { top: 0; height: var(--top); border-bottom: 1px solid var(--chrome-line); }
.chrome-bottom { bottom: 0; height: calc(var(--bottom) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--chrome-line); }
.deck[data-theme="dark"] .chrome { background: var(--night-2); color: var(--text-dark); --chrome-line: rgba(241, 238, 231, 0.12); }
.deck[data-theme="paper"] .chrome { background: var(--paper); color: var(--text-paper); --chrome-line: rgba(20, 35, 59, 0.14); }
.chrome-brand { min-width: 0; flex: 1 1 auto; }
.cobrand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.cb-brandcore { height: 19px; width: auto; }
.cb-x { font-family: 'Instrument Serif', Georgia, serif; font-size: 24px; line-height: 1; color: var(--amber); }
.deck[data-theme="paper"] .cb-x { color: var(--bronze); }
.cb-ferris { height: 25px; width: auto; flex: none; }
.cb-name { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck[data-theme="dark"] .cb-on-paper { display: none; }
.deck[data-theme="paper"] .cb-on-dark { display: none; }
.chrome-label { margin: 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; opacity: 0.85; }
.chrome-actions { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; justify-content: flex-end; }
.chrome-count { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); white-space: nowrap; margin-right: 6px; }
.chrome-btn { min-height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid currentColor; border-radius: 8px; background: transparent; color: inherit; font-weight: 600; font-size: var(--fs-label); line-height: 1; cursor: pointer; }
.chrome-btn svg { width: 1.1em; height: 1.1em; }
.prepared-bottom { margin: 0; font-size: var(--fs-label); line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-btns { display: flex; gap: 8px; flex: none; }
.nav-btn { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid currentColor; border-radius: 8px; background: transparent; color: inherit; font-weight: 600; font-size: var(--fs-label); line-height: 1; cursor: pointer; }
.nav-btn svg { width: 1.1em; height: 1.1em; }
.nav-btn-primary { background: var(--sun); border-color: var(--sun); color: var(--night); }
.nav-btn:disabled { opacity: 0.35; cursor: default; }

/* Progress, rail, seam */
.progress { position: fixed; left: 0; right: 0; top: var(--top); height: 3px; z-index: 41; }
.progress span { display: block; height: 100%; width: 0; background: var(--amber); transition: width 0.45s ease; }
.rail { position: fixed; right: 8px; top: 50%; transform: translateY(-50%); z-index: 35; display: grid; gap: 2px; }
.deck[data-theme="dark"] .rail { color: var(--text-dark); }
.deck[data-theme="paper"] .rail { color: var(--text-paper); }
.rail button { width: 30px; height: 30px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: inherit; }
.rail button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.35; }
.rail button[aria-current="true"]::before { opacity: 1; background: var(--amber); }
.deck[data-theme="paper"] .rail button[aria-current="true"]::before { background: var(--bronze); }
.seam { position: fixed; left: 0; right: 0; top: 50%; height: 2px; z-index: 36; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, var(--amber) 30%, #FFF2D6 50%, var(--amber) 70%, transparent); box-shadow: 0 0 18px rgba(247, 181, 65, 0.6); }

.index-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(6, 12, 24, 0.94); display: grid; place-items: center; padding: 20px; }
.index-box { width: min(760px, 100%); max-height: 100%; overflow-y: auto; background: var(--night-2); border: 1px solid rgba(241, 238, 231, 0.16); border-radius: 12px; padding: 20px; }
.index-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.index-title { margin: 0; font-size: var(--fs-h3); font-weight: 620; letter-spacing: -0.02em; }
.index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.index-list button { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(241, 238, 231, 0.16); background: transparent; color: var(--text-dark); text-align: left; font-weight: 600; font-size: var(--fs-body); cursor: pointer; }
.index-list button[aria-current="true"] { border-color: var(--amber); }
.index-num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); color: var(--amber); min-width: 2.2em; }

/* ───────── 1 · Cover ───────── */
.slide-cover { background: transparent; background-image: none; }
.cover-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(24px, 3vw, 64px); align-items: center; min-height: calc(100dvh - var(--top) - var(--bottom) - 90px); }
.cover-title { margin: 0.1em 0 0.12em; font-weight: 680; font-size: var(--fs-cover); line-height: 0.84; letter-spacing: -0.06em; }
.cover-payoff { margin: 0 0 18px; }
.cover-payoff em { display: block; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(30px, calc(2.2vw + 6px), 58px); line-height: 1.05; color: var(--amber); }
.lead { margin: 0 0 0.4em; font-size: var(--fs-lead); line-height: 1.45; max-width: 40ch; }
.ticker { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 18px; padding: 0; }
.ticker li { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); line-height: 1; }
.prepared, .local { margin: 6px 0; font-size: var(--fs-label); line-height: 1.45; color: var(--muted); max-width: 60ch; }
.prepared strong { color: var(--text-dark); font-weight: 600; }
.cover-stage { position: relative; min-width: 0; }
.medal-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 68dvh; min-height: 300px; }
/* The medallion layer spans the viewport. It sits above the slide backgrounds and below the copy (z 2 < 3),
   and rises above the incoming slide (z 4) only while a BOOM is playing. */
#medal-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.35s ease; }
.deck.medal-live #medal-canvas { opacity: 1; }
.deck.medal-top #medal-canvas { z-index: 4; }
.medal-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.medal-disc { width: min(70%, 400px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 34%, #FFFDF8, #F2EBDC 58%, #D8CCB4); box-shadow: 0 0 0 14px var(--navy), 0 0 0 19px var(--sun), 0 34px 70px rgba(0, 0, 0, 0.55); }
.medal-disc img { width: 66%; height: auto; }
.no-webgl #medal-canvas, .reduced #medal-canvas { display: none; }
.no-webgl .medal-fallback, .reduced .medal-fallback { display: flex; }
.cover-caption { margin: 12px 0 0; font-size: var(--fs-label); line-height: 1.45; color: var(--muted); max-width: 48ch; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 14px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.scroll-cue svg { width: 1.2em; height: 1.2em; color: var(--amber); }

/* ───────── 2 · Audit ───────── */
.finding-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.finding { display: flex; flex-direction: column; min-width: 0; padding: clamp(18px, 1.8vw, 28px); border: 1px solid var(--paper-line); border-radius: 8px; background: var(--paper-card); }
.finding-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); color: var(--bronze); }
.sev { display: inline-block; padding: 6px 10px; border-radius: 999px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.sev-high { background: var(--red); color: #FFFFFF; }
.sev-medium { background: var(--bronze); color: #FFFFFF; }
.sev-low { background: #E2D9C6; color: var(--text-paper); }
.finding .body { font-size: var(--fs-body); }
.finding .source { margin-top: auto; padding-top: 12px; }

/* ───────── 3 · Gap ───────── */
.gap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); align-items: stretch; }
.moment, .path { min-width: 0; padding: clamp(18px, 1.8vw, 28px); border-radius: 8px; border: 1px solid var(--line); }
.moment { background: rgba(247, 181, 65, 0.08); border-left: 3px solid var(--amber); }
.moment-text { margin: 0 0 10px; font-size: var(--fs-lead); line-height: 1.45; }
.path-today { background: rgba(163, 35, 43, 0.12); }
.path-proposed { background: rgba(247, 181, 65, 0.06); }
.steps { margin: 0; padding-left: 1.5em; }
.steps li { margin: 0 0 0.55em; font-size: var(--fs-body); line-height: 1.45; }
.firstvisit-fig { margin: 16px 0 0; }
.firstvisit-fig img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 6px; }
.firstvisit-fig figcaption { margin-top: 8px; font-size: var(--fs-label); line-height: 1.4; color: var(--muted); }
.counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); list-style: none; margin: clamp(20px, 3.6vh, 40px) 0 0; padding: 0; }
.counts li { display: grid; gap: 6px; padding-top: 12px; border-top: 2px solid var(--amber); }
.counts strong { font-weight: 650; font-size: clamp(38px, calc(2.4vw + 6px), 62px); line-height: 1; color: var(--amber); letter-spacing: -0.03em; }
.counts span { font-size: var(--fs-label); line-height: 1.4; color: var(--fg); }

/* ───────── 4 · Flagship ───────── */
.flagship-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 250px); gap: clamp(18px, 2vw, 36px); align-items: start; }
.browser { min-width: 0; background: #FFFDF8; color: var(--text-paper); border: 1px solid rgba(20, 35, 59, 0.18); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(20, 35, 59, 0.18); }
.browser-bar { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 14px; background: #E9E2D3; }
.dots { display: inline-flex; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #C5BCA9; margin-right: 6px; }
.url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); color: var(--muted-paper); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px 0; background: #F3EEE2; border-bottom: 1px solid var(--paper-line); }
.tab { min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; background: transparent; color: var(--text-paper); font-weight: 600; font-size: var(--fs-label); line-height: 1; cursor: pointer; }
.tab[aria-selected="true"] { background: #FFFDF8; border-color: var(--paper-line) var(--paper-line) #FFFDF8; }
.panel { padding: clamp(16px, 2vw, 26px); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; border-radius: 6px; }
.hero-photo figcaption { margin-top: 8px; font-size: var(--fs-label); line-height: 1.4; color: var(--muted-paper); }
.hero-title { margin: 16px 0 14px; font-weight: 650; font-size: clamp(24px, calc(1.6vw + 6px), 40px); line-height: 1.12; letter-spacing: -0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn-primary { color: var(--night); }
.hours-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: var(--fs-label); color: var(--muted-paper); }
.slots-card { margin-top: 14px; padding: 12px 14px; border: 1px dashed #B9AE97; border-radius: 8px; }
.slots-label { margin: 0 0 8px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); color: var(--muted-paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 8px 12px; border: 1px solid #C5BCA9; border-radius: 999px; font-size: var(--fs-label); }
.goleta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.address-card, .needs-card { padding: 18px; border: 1px solid var(--paper-line); border-radius: 8px; background: var(--paper-card); }
.address-card .kicker, .needs-card .kicker { margin-bottom: 10px; }
.address { margin: 0 0 10px; font-weight: 600; font-size: var(--fs-body); line-height: 1.4; }
.address-line { margin: 0 0 12px; font-size: var(--fs-body); }
.address-line a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.hours-list p { margin: 0 0 6px; font-size: var(--fs-label); line-height: 1.4; }
.hours-list span { display: inline-block; min-width: 6.5em; font-weight: 600; }
.needs-text { margin: 0 0 10px; font-size: var(--fs-body); line-height: 1.45; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cal-title { margin: 0; font-weight: 620; font-size: clamp(18px, calc(0.9vw + 8px), 26px); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid #C5BCA9; border-radius: 8px; background: #FFFDF8; color: var(--text-paper); cursor: pointer; }
.icon-btn svg { width: 1.2em; height: 1.2em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.filter { min-height: 44px; padding: 0 14px; border: 1px solid #B9AE97; border-radius: 999px; background: #FFFDF8; color: var(--text-paper); font-weight: 600; font-size: var(--fs-label); cursor: pointer; }
.filter.is-on { background: var(--text-paper); border-color: var(--text-paper); color: #FFFDF8; }
.cal-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cal-dow { margin-bottom: 6px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; color: var(--muted-paper); text-align: center; }
.day { min-height: 46px; border: 1px solid var(--paper-line); border-radius: 6px; background: #FFFDF8; color: var(--text-paper); font-weight: 600; font-size: var(--fs-label); cursor: pointer; }
.day[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--night); }
.day:disabled { opacity: 0.4; cursor: default; }
.cal-detail .kicker { margin-bottom: 10px; }
.slot-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.slot-list button { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #B9AE97; border-radius: 8px; background: #FFFDF8; color: var(--text-paper); text-align: left; font-weight: 600; font-size: var(--fs-label); cursor: pointer; }
.slot-list button[aria-pressed="true"] { background: var(--text-paper); color: #FFFDF8; border-color: var(--text-paper); }
.avail { margin: 10px 0 0; font-size: var(--fs-label); color: var(--muted-paper); }
.request-preview { margin-top: 12px; padding: 12px 14px; border: 1px dashed #B9AE97; border-radius: 8px; font-size: var(--fs-label); line-height: 1.5; }
.request-preview p { margin: 0; }
.request-preview .kicker { margin-bottom: 8px; }
.phone-col { min-width: 0; }
.phone { width: min(100%, 250px); margin: 0 auto; padding: 16px 12px 22px; border-radius: 34px; background: #0D1626; box-shadow: 0 30px 60px rgba(20, 35, 59, 0.28); color: var(--text-dark); }
.phone-notch { width: 80px; height: 6px; margin: 0 auto 12px; border-radius: 4px; background: #24324A; }
.phone-head { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.phone-hero { display: grid; place-items: center; aspect-ratio: 1.5 / 1; border-radius: 12px; background: #F3EEE2; }
.phone-hero img { width: 46%; height: auto; }
.phone-title { margin: 12px 0 0; font-weight: 620; font-size: 16px; line-height: 1.25; }
.phone-btn { display: block; margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--sun); color: var(--night); font-weight: 600; font-size: 14px; text-align: center; }
.phone-btn-ghost { background: transparent; border: 1px solid var(--text-dark); color: var(--text-dark); }
.phone-hours { margin: 12px 0 0; text-align: center; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; line-height: 1.4; color: var(--muted-dark); }
.concept-note { margin: 14px 0 0; font-size: var(--fs-label); line-height: 1.45; color: var(--muted-paper); }
.concept-detail { margin-top: clamp(20px, 3.4vh, 40px); padding-top: 18px; border-top: 1px solid var(--line); }
.concept-detail .h3 { font-size: clamp(20px, calc(1vw + 8px), 28px); }
.detail-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.detail-cols .kicker { margin-bottom: 8px; }
.detail-cols .body { font-size: var(--fs-body); }

/* ───────── 5 · System ───────── */
.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 22px); }
.pillar { display: flex; flex-direction: column; min-width: 0; padding: clamp(18px, 1.8vw, 28px); border: 1px solid var(--line); border-radius: 8px; background: rgba(241, 238, 231, 0.03); }
.pillar-n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); color: var(--amber); margin-bottom: 14px; }
.pillar .body { font-size: var(--fs-body); }
.fixes { margin: auto 0 0; padding-top: 12px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); line-height: 1.4; color: var(--muted-dark); }

/* ───────── 6 · Proof ───────── */
.ba { position: relative; min-height: clamp(300px, 40vh, 420px); border: 1px solid #CFC5B1; border-radius: 8px; overflow: hidden; background: #F1EBDD; }
.ba-layer { padding: clamp(18px, 2vw, 30px); }
.ba-before { position: absolute; inset: 0; background: #EFE8D8; color: var(--muted-paper); }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); background: #FFFDF8; color: var(--text-paper); }
.ba-list { margin: 10px 0 0; padding-left: 1.2em; }
.ba-list li { margin: 0 0 12px; font-size: var(--fs-body); line-height: 1.45; max-width: 46ch; }
.ba-before .ba-list li { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); line-height: 1.5; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: var(--text-paper); transform: translateX(-1px); pointer-events: none; z-index: 2; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--amber); border: 2px solid var(--text-paper); box-shadow: 0 6px 14px rgba(20, 35, 59, 0.3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.proof-standard { margin-top: clamp(20px, 3.4vh, 36px); padding-top: 16px; border-top: 1px solid var(--line); max-width: 78ch; }

/* ───────── 7 · Roadmap ───────── */
.road-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.phase { min-width: 0; padding-top: 18px; border-top: 2px solid var(--amber); }
.phase-when { margin: 0 0 10px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.deliv { margin: 0 0 14px; padding-left: 1.2em; }
.deliv li { margin: 0 0 0.5em; font-size: var(--fs-body); line-height: 1.45; }
.owner { margin: 0; font-size: var(--fs-label); line-height: 1.45; color: var(--muted-dark); }
.owner strong { color: var(--text-dark); font-weight: 600; }
.needs { margin-top: clamp(22px, 3.8vh, 44px); padding-top: 18px; border-top: 1px solid var(--line); }
.needs-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.needs-list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: var(--fs-body); line-height: 1.45; }

/* ───────── 8 · Engagement ───────── */
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 2vw, 30px); border: 1px solid var(--paper-line); border-radius: 8px; background: var(--paper-card); }
.tier-rec { border: 2px solid var(--text-paper); background: #FFFDF8; }
.rec { align-self: flex-start; margin-bottom: 12px; padding: 7px 12px; border-radius: 999px; background: var(--text-paper); color: var(--paper); font-weight: 600; font-size: var(--fs-label); line-height: 1; }
.tier .body { font-size: var(--fs-body); }
.inc-label { margin: 14px 0 6px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-paper); }
.inc { margin: 0; padding-left: 1.2em; }
.inc li { margin: 0 0 0.4em; font-size: calc(var(--fs-body) - 1px); line-height: 1.45; }
.quote { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--paper-line); font-weight: 600; font-size: var(--fs-label); line-height: 1.45; }
.note-line { margin: clamp(18px, 3vh, 30px) 0 0; font-size: var(--fs-label); color: var(--muted-paper); }

/* ───────── 9 · Close ───────── */
.close-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 3vw, 60px); align-items: center; }
.rep-card { margin: 0; min-width: 0; }
.rep-portrait { width: 100%; max-width: 460px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #0F1D31; }
.rep-card figcaption { margin-top: 16px; max-width: 460px; }
.rep-name { margin: 0; font-weight: 650; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.02em; }
.rep-role { margin: 6px 0 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); color: var(--amber); }
.close-title { max-width: 18ch; }
.contact { display: grid; gap: 6px; margin: 18px 0; padding: 0; list-style: none; }
.contact li { display: grid; grid-template-columns: minmax(90px, 120px) minmax(0, 1fr); gap: 12px; align-items: center; font-size: var(--fs-body); }
.contact span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); color: var(--muted-dark); }
.contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; overflow-wrap: anywhere; }
.sched { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.sched-title { margin: 0 0 12px; font-weight: 600; font-size: var(--fs-body); }
.sched-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-label); color: var(--muted-dark); }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #3A4D6B; border-radius: 8px; background: #0F1D31; color: var(--text-dark); font-size: var(--fs-body); }
.sched-msg { margin: 10px 0 14px; font-size: var(--fs-label); line-height: 1.45; color: var(--muted-dark); min-height: 1.4em; }
.sched .btn { width: 100%; }
.sched .note { margin-top: 10px; }
.close-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-label); }
.close-foot p { margin: 0; }

/* ───────── Transitions (JS-driven) ───────── */
.no-js .slide { position: relative; opacity: 1; visibility: visible; min-height: 100vh; }
.no-js .deck { position: relative; overflow: visible; }

/* ───────── Responsive ───────── */
@media (max-width: 1099px) {
  .cover-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cover-stage { order: -1; }
  .medal-stage { aspect-ratio: 1 / 0.92; max-height: 50dvh; min-height: 260px; }
  .finding-grid, .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gap-grid { grid-template-columns: minmax(0, 1fr); }
  .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .counts li:nth-child(n+4) { border-top-color: var(--amber); }
  .road-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-rec { grid-column: 1 / -1; }
  .rail { display: none; }
  .cb-name { display: none; }
}

@media (max-width: 899px) {
  .flagship-grid { grid-template-columns: minmax(0, 1fr); }
  .phone-col { display: none; }
  .concept-detail { display: block; }
  .detail-cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .goleta-grid, .cal-body { grid-template-columns: minmax(0, 1fr); }
  .finding-grid, .system-grid, .road-grid, .tier-grid { grid-template-columns: minmax(0, 1fr); }
  .tier-rec { grid-column: auto; }
  .needs-list { grid-template-columns: minmax(0, 1fr); }
  .close-grid { grid-template-columns: minmax(0, 1fr); }
  .rep-card { margin: 0 auto; }
  .rep-portrait, .rep-card figcaption { max-width: 420px; }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counts li:nth-child(5) { grid-column: 1 / -1; }
  .chrome-label { display: none; }
}

@media (max-width: 699px) {
  :root { --top: 58px; --bottom: 68px; }
  .chrome-count { margin-right: 2px; font-size: 13px; }
  .chrome-btn span { display: none; }
  .chrome-btn { padding: 0 10px; }
  .prepared-bottom { display: none; }
  .chrome-bottom { justify-content: flex-end; }
  .nav-btns { width: 100%; justify-content: space-between; }
  .nav-btn { flex: 1 1 0; justify-content: center; min-width: 0; }
  .slide-scroll { padding-left: 20px; padding-right: 20px; }
  .h2 { max-width: none; }
  .cover-title { font-size: clamp(56px, 16vw, 74px); }
  .ba { min-height: 0; display: grid; }
  .ba-before, .ba-after { position: relative; inset: auto; clip-path: none; }
  .ba-before { border-bottom: 1px solid #CFC5B1; }
  .ba-handle, .ba-range { display: none; }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sched-row { grid-template-columns: minmax(0, 1fr); }
  .contact li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact span { font-size: 13px; }
  .detail-cols .body { font-size: 17px; }
  .close-foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .progress span { transition: none; }
  .seam { display: none !important; }
  .scroll-cue { animation: none !important; }
}
