/* El Cajon Family Dental · Brandcore.io web proposal
   Palette: ink, enamel paper, one cool teal accent, one signal red for the confirmed-finding tag only. */

@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-regular.woff2") format("woff2"); font-weight: 400; 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: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #0A1113;
  --ink-2: #0E181B;
  --ink-chrome: #070D0F;
  --paper: #EEF4F2;
  --teal: #7CD6CC;
  --teal-deep: #0E5C57;
  --signal: #9E1B1F;
  --text-dark: #EEF4F2;
  --muted-dark: #B9CBC7;
  --text-light: #0A1113;
  --muted-light: #3E5257;
  --line-dark: rgba(214, 240, 236, 0.16);
  --chrome-h: 74px;
  --chrome-b: 56px;
  --gut: clamp(24px, 3.6vw, 58px);
  --fs-body: clamp(16px, calc(10px + 0.5vw), 24px);
  --fs-h3: clamp(22px, calc(14px + 0.75vw), 34px);
  --fs-h2: clamp(34px, 3.85vw, 62px);
  --fs-label: clamp(13px, calc(7.5px + 0.42vw), 16px);
  --fs-cover: clamp(52px, 7.2vw, 128px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); }
body {
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { left: 12px; }

/* ---------- app frame ---------- */
.deck {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--chrome-h) 2px minmax(0, 1fr) calc(var(--chrome-b) + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  overflow: hidden;
}

.chrome-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 var(--gut);
  background: var(--ink-chrome);
  border-bottom: 1px solid rgba(214, 240, 236, 0.12);
  color: var(--text-dark);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { height: 22px; width: auto; }
.sep { flex: none; color: var(--teal); }
.client-name {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #CFE6E2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chrome-section {
  margin: 0;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  white-space: nowrap;
}
.chrome-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.counter { margin: 0; font-size: 14px; letter-spacing: 0.08em; color: var(--text-dark); }
.icon-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(214, 240, 236, 0.32);
  background: transparent;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.icon-btn:focus-visible, .pager-btn:focus-visible, .cue:focus-visible, .mock-cta:focus-visible,
.tab:focus-visible, .chip:focus-visible, .day-btn:focus-visible, .slot:focus-visible, .draft-btn:focus-visible,
.index-item:focus-visible, .rail-btn:focus-visible, .vd-btn:focus-visible, .cmp-handle:focus-visible,
.opt input:focus-visible + span, .contacts a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.progress { height: 2px; background: rgba(124, 214, 204, 0.14); }
.progress span { display: block; height: 100%; width: 0; background: var(--teal); transition: width 0.6s ease; }

.deck-viewport { position: relative; overflow: hidden; min-height: 0; }

/* ---------- slides ---------- */
.slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: var(--ink);
  color: var(--text-dark);
  overflow: hidden;
}
.slide.show { visibility: visible; opacity: 1; }
.slide.is-current { z-index: 2; }
.slide.leaving { z-index: 1; }
.slide.paper { background: var(--paper); color: var(--text-light); }
.slide.dark-2 { background: var(--ink-2); }

.slide-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 214, 204, 0.4) transparent;
}
.wrap {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  min-height: 100%;
  padding: clamp(22px, 4.2vh, 52px) var(--gut) clamp(28px, 5vh, 64px);
}

.kicker {
  margin: 0 0 16px;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.kicker-dark { color: var(--teal-deep); }

.h2 {
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
  max-width: 24ch;
  text-wrap: balance;
}
.h2 em, .cover-title em, .lede em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.paper .h2 em { color: var(--teal-deep); }

.h3 {
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.body, .body-sm {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #C7D9D5;
  max-width: 60ch;
  margin: 0 0 14px;
}
.paper .body, .paper .body-sm { color: #1E3136; }
.body-sm { margin: 0 0 10px; }
.note {
  font-size: var(--fs-label);
  line-height: 1.5;
  color: #A9C4BF;
  margin: 22px 0 0;
  max-width: 80ch;
}
.paper .note { color: var(--muted-light); }
.label {
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}
.paper .label { color: var(--teal-deep); }
.tag-line {
  margin: -6px 0 22px;
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- slide 1 · cover ---------- */
.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(20px, 3vw, 56px);
  align-items: center;
}
.cover-title {
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: var(--fs-cover);
  line-height: 0.86;
  letter-spacing: -0.06em;
  margin: 0 0 22px;
}
.lede {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #C7D9D5;
  max-width: 46ch;
  margin: 0 0 22px;
}
.ticker {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ticker li {
  font-size: var(--fs-label);
  padding: 8px 12px;
  border: 1px solid rgba(214, 240, 236, 0.22);
  border-radius: 999px;
  color: #DDEDEA;
}
.prepared-line { font-size: var(--fs-body); color: var(--muted-dark); margin: 0 0 22px; max-width: 50ch; }
.cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(124, 214, 204, 0.6);
  padding-bottom: 4px;
}
.cue svg { color: var(--teal); }

.cover-stage {
  position: relative;
  height: min(74vh, 660px);
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 62% 30%, rgba(124, 214, 204, 0.22), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(124, 214, 204, 0.1), transparent 70%),
    #0B1619;
  border: 1px solid var(--line-dark);
}
.cover-gl { position: absolute; inset: 0; }
.cover-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.stage-caption {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #A9C4BF;
  z-index: 2;
  pointer-events: none;
}

/* CSS poster and no-WebGL fallback: a steel disc on a dark handle, carrying the practice name */
.medallion {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.7s ease;
  z-index: 0;
  padding-bottom: 36px;
}
.med-disc {
  width: min(44%, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #4D6D6B, #F3FCFA 14%, #86AAA6 28%, #122225 44%, #E4F4F1 60%, #5F7F7C 76%, #F3FCFA 88%, #4D6D6B);
  box-shadow: 0 0 0 10px #0C1719, 0 0 0 12px rgba(124, 214, 204, 0.35), 0 40px 90px rgba(0, 0, 0, 0.6);
}
.med-handle {
  width: min(11%, 44px);
  height: min(44%, 320px);
  margin-top: -8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0C1A1D, #24423F 45%, #0C1A1D);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-24deg);
  transform-origin: top center;
}
.med-handle span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #DFF6F2;
  white-space: nowrap;
  text-transform: uppercase;
}
.gl-ready .medallion { opacity: 0; }
.no-webgl .cover-canvas { display: none; }
.no-webgl .medallion { opacity: 1; }

/* ---------- two-column text slides ---------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 3.4vw, 64px);
  align-items: start;
}
.finding {
  margin-top: 26px;
  padding: clamp(20px, 2.4vw, 34px);
  border-radius: 18px;
  background: #fff;
  border: 1px solid #C9D9D5;
  border-left: 6px solid var(--signal);
}
.finding-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.tag {
  background: var(--signal);
  color: #fff;
  font-size: var(--fs-label);
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.count { font-size: var(--fs-label); color: var(--muted-light); margin: 0; }
.source { font-size: var(--fs-label); color: var(--muted-light); margin: 12px 0 0; overflow-wrap: anywhere; }
.col-side {
  padding: clamp(18px, 2vw, 28px);
  border-radius: 18px;
  background: #E3ECEA;
  border: 1px solid #C9D9D5;
}
.pending {
  margin: 0;
  padding-left: 1.4em;
  font-size: var(--fs-body);
  line-height: 1.45;
  display: grid;
  gap: 10px;
  color: #1E3136;
}
.pending li::marker { color: var(--teal-deep); }

/* ---------- slide 3 · cost ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: 6px; }
.path {
  border: 1px solid rgba(214, 240, 236, 0.18);
  border-radius: 18px;
  padding: clamp(18px, 2vw, 30px);
  background: rgba(255, 255, 255, 0.035);
}
.path-concept { border-color: var(--teal); background: rgba(124, 214, 204, 0.07); }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.steps span { font-size: var(--fs-body); line-height: 1.35; }
.st {
  font-style: normal;
  font-size: var(--fs-label);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 240, 236, 0.3);
  color: var(--muted-dark);
  white-space: nowrap;
  margin: 0;
}
.st-confirmed { background: var(--signal); border-color: var(--signal); color: #fff; }
.st-concept { border-color: var(--teal); color: var(--teal); }

/* ---------- slide 4 · concept ---------- */
.concept-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}
.concept-head .h2 { margin-bottom: 0; }
.concept-head .body { margin: 0; }
.stage-concept {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 19vw, 262px);
  gap: clamp(16px, 2vw, 28px);
  align-items: end;
  padding: clamp(18px, 2vw, 30px);
  border-radius: 20px;
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(60% 70% at 28% 18%, rgba(124, 214, 204, 0.2), transparent 62%),
    radial-gradient(50% 60% at 85% 95%, rgba(124, 214, 204, 0.1), transparent 70%),
    #0E181B;
  overflow: hidden;
}
.stage-concept::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(214, 240, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 240, 236, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.stage-concept > * { position: relative; z-index: 1; }

.browser {
  background: #F7FAF9;
  color: var(--text-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  min-width: 0;
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: #E3ECEA; border-bottom: 1px solid #C9D8D4; }
.bdot { width: 9px; height: 9px; border-radius: 50%; background: #9DB3AF; }
.browser-bar .url { margin-left: 10px; font-size: 13px; color: var(--muted-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid #D5E2DE;
}
.site-mark { font-weight: 600; font-size: 17px; line-height: 1.2; color: #0E3E3A; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #B5C9C4;
  background: #fff;
  color: var(--text-light);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

.tabpanel { padding: 18px; }
.tabpanel[hidden] { display: none; }
.hero-mock {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0E3E3A, #0A1113);
  color: var(--text-dark);
}
.mock-kicker { margin: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.mock-h { margin: 8px 0 8px; font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.02em; }
.mock-p { margin: 0 0 12px; font-size: 16px; line-height: 1.45; color: #D2E3DF; }
.mock-cta {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--teal);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.hero-art svg { width: 100%; height: auto; max-width: 150px; margin-left: auto; display: block; }
.next-card { margin-top: 14px; padding: 14px 16px; border: 1px solid #CFDDD9; border-radius: 12px; background: #fff; }
.mock-label { margin: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-light); }
.next-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.next-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; font-size: 16px; border-top: 1px solid #E4EDEA; padding-top: 6px; }
.next-list span { font-size: 13px; color: var(--muted-light); }
.mock-strip { margin: 14px 0 0; font-size: 15px; color: var(--muted-light); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.svc-grid article { padding: 14px; border-radius: 12px; border: 1px solid #CFDDD9; background: #fff; }
.svc-grid h4 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.svc-grid p { margin: 0; font-size: 16px; line-height: 1.45; }

.visits-top { display: grid; gap: 10px; }
.day-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.day-btn {
  min-height: 44px;
  min-width: 84px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid #B5C9C4;
  background: #fff;
  color: var(--text-light);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.day-btn[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #9DB8B2;
  background: #fff;
  color: var(--text-light);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); }
.seatbar { height: 8px; border-radius: 99px; background: #D5E2DE; overflow: hidden; margin: 12px 0 6px; }
.seatbar span { display: block; height: 100%; width: 0; background: var(--teal-deep); transition: width 0.4s ease; }
.seat-note { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.04em; color: var(--muted-light); text-transform: uppercase; }
.visits-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.8fr); gap: 12px; align-items: stretch; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.slot {
  min-height: 64px;
  text-align: left;
  border: 1px solid #C5D7D2;
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.slot small { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 400; font-size: 13px; color: var(--muted-light); }
.slot[aria-pressed="true"] { border-color: var(--teal-deep); box-shadow: inset 0 0 0 2px var(--teal-deep); }
.slot[disabled] { opacity: 0.55; cursor: not-allowed; background: #EEF4F2; }
.slot[hidden] { display: none; }
.visit-detail {
  padding: 14px;
  border-radius: 12px;
  background: #0E3E3A;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vd-title { font-weight: 600; font-size: 20px; line-height: 1.2; margin: 0; }
.vd-meta { margin: 0; font-size: 16px; line-height: 1.45; color: #D2E3DF; }
.vd-note { margin: 0; font-size: 13px; letter-spacing: 0.04em; color: var(--teal); text-transform: uppercase; }
.vd-btn {
  margin-top: auto;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--teal);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.vd-reply { margin: 0; font-size: 16px; line-height: 1.45; color: #EEF4F2; min-height: 1.4em; }

.phone {
  width: 100%;
  max-width: 262px;
  aspect-ratio: 9 / 18.2;
  border-radius: 34px;
  background: #050A0B;
  padding: 11px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  justify-self: end;
}
.phone-screen {
  height: 100%;
  border-radius: 25px;
  background: #F7FAF9;
  color: var(--text-light);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.p-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; color: #0E3E3A; }
.p-h { margin: 6px 0 0; font-weight: 600; font-size: 19px; line-height: 1.2; }
.p-cta { margin: 0; padding: 12px 14px; border-radius: 999px; background: var(--teal-deep); color: #fff; font-weight: 600; font-size: 16px; text-align: center; }
.p-label { margin: 6px 0 0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-light); }
.p-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.p-list li { font-size: 15px; line-height: 1.35; padding-top: 7px; border-top: 1px solid #E0EAE7; }
.p-list span { display: block; font-size: 13px; color: var(--muted-light); }
.p-call { margin: auto 0 0; padding: 10px 12px; border-radius: 999px; border: 1px solid #9DB8B2; font-size: 14px; text-align: center; color: var(--text-light); }

.concept-detail {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.concept-detail article {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
}
.concept-detail h4 { margin: 0 0 6px; font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; }
.concept-detail p { margin: 0; font-size: var(--fs-body); line-height: 1.45; color: #C7D9D5; }

/* ---------- slide 5 · pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
  margin-top: 22px;
}
.pillar {
  border-top: 2px solid var(--teal-deep);
  padding: 18px 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar .body { margin: 0; }
.num { font-size: var(--fs-label); color: var(--teal-deep); letter-spacing: 0.06em; }
.deliv { margin: auto 0 0; padding-top: 10px; font-size: var(--fs-label); color: var(--muted-light); line-height: 1.45; }

/* ---------- slide 6 · proof ---------- */
.lead-body { margin-bottom: 22px; }
.compare {
  display: flex;
  position: relative;
  min-height: 230px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  margin: 6px 0 26px;
  background: #0B1619;
}
.cmp-side { padding: clamp(20px, 2.4vw, 34px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cmp-before { flex: 0 0 var(--split, 50%); background: #1A2427; }
.cmp-after { flex: 1 1 0; background: var(--teal-deep); }
.cmp-side .label { margin: 0; color: var(--teal); }
.cmp-after .label { color: #CDF3EE; }
.cmp-text { margin: 0; font-size: var(--fs-body); line-height: 1.45; color: #EEF4F2; }
.cmp-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split, 50%);
  width: 44px;
  transform: translateX(-50%);
  cursor: ew-resize;
  display: grid;
  place-items: center;
  z-index: 2;
  touch-action: none;
}
.cmp-handle span { width: 4px; height: 100%; background: #fff; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); }
.proof-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.proof-cards article { border-top: 2px solid var(--teal); padding-top: 14px; }
.proof-cards .body-sm { margin: 0; }

/* ---------- slide 7 · roadmap ---------- */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); margin-top: 22px; }
.phase {
  border: 1px solid #C9DAD5;
  border-radius: 16px;
  padding: clamp(18px, 2vw, 28px);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase .body-sm { margin: 0; font-size: var(--fs-body); color: #1E3136; }
.phase .body-sm strong { color: var(--text-light); }
.phase-day { margin: 0; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.owner { margin: 0 0 4px; font-size: var(--fs-label); color: var(--muted-light); line-height: 1.4; }

/* ---------- slide 8 · tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); margin-top: 22px; align-items: stretch; }
.tier {
  border: 1px solid rgba(214, 240, 236, 0.2);
  border-radius: 16px;
  padding: clamp(20px, 2.2vw, 30px);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.tier .body-sm { margin: 0; }
.tier-rec { border-color: var(--teal); background: rgba(124, 214, 204, 0.08); }
.rec {
  position: absolute;
  top: -13px;
  left: 20px;
  background: var(--teal);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.incl { margin: auto 0 0; padding-left: 1.2em; font-size: var(--fs-body); line-height: 1.45; color: #DDEDEA; display: grid; gap: 6px; }

/* ---------- slide 9 · close ---------- */
.close-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 3.4vw, 64px);
  align-items: center;
}
.rep-card { margin: 0; }
.rep-photo {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  border: 1px solid #C6D8D3;
}
.rep-card figcaption { margin-top: 16px; max-width: 500px; }
.rep-name { margin: 0; font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.1; }
.rep-role { margin: 4px 0 0; font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-deep); }
.close-copy .h2 { max-width: 20ch; }
.contacts { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 8px; }
.contacts li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; font-size: var(--fs-body); }
.contacts .mono { font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-light); }
.contacts a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.scheduler { margin: 0; padding: clamp(16px, 1.8vw, 24px); border: 1px solid #C6D8D3; border-radius: 16px; background: #fff; display: grid; gap: 12px; }
.scheduler .label { margin: 0; }
.sched-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.sched-days, .sched-times { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-block; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #9DB8B2;
  font-size: 16px;
  color: var(--text-light);
  cursor: pointer;
  background: #fff;
}
.opt input:checked + span { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.draft-btn {
  justify-self: start;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--teal-deep);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.sched-status { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted-light); }
.signoff-line {
  margin: 26px 0 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.1;
  color: var(--teal-deep);
}
.signoff {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--text-dark);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
}
.signoff img { height: 18px; width: auto; }

/* ---------- chrome bottom ---------- */
.chrome-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 var(--gut);
  background: var(--ink-chrome);
  border-top: 1px solid rgba(214, 240, 236, 0.12);
  color: var(--muted-dark);
}
.prepared, .private { margin: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.private { text-align: center; }
.pager { display: flex; gap: 8px; justify-self: end; }
.pager-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(214, 240, 236, 0.3);
  background: transparent;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.pager-primary { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.pager-btn:disabled { opacity: 0.4; cursor: default; }

/* ---------- rail ---------- */
.rail { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; z-index: 5; }
.rail-btn { width: 24px; height: 24px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.rail-btn span { width: 6px; height: 6px; border-radius: 4px; background: rgba(214, 240, 236, 0.35); transition: height 0.3s ease, background 0.3s ease; }
.rail-btn[aria-current="step"] span { height: 18px; background: var(--teal); }

/* ---------- boom layer (cover to next) ---------- */
.boom-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; display: none; overflow: hidden; }
.boom-layer.on { display: block; }
.boom-layer .cover-canvas { position: absolute; }
.boom-flash {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(closest-side at 50% 42%, rgba(255, 255, 255, 0.95), rgba(203, 255, 248, 0.45) 42%, transparent 74%);
}
.boom-flash.go { animation: boomFlash 760ms ease-out both; }
@keyframes boomFlash { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- slide transitions ---------- */
.slide.in-fwd { animation: inFwd 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.slide.in-back { animation: inBack 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.slide.out-fwd { animation: outFwd 380ms ease-in both; }
.slide.out-back { animation: outBack 380ms ease-in both; }
.slide.in-boom { animation: inBoom 720ms cubic-bezier(0.16, 0.8, 0.2, 1) both; }
@keyframes inFwd { from { opacity: 0; transform: translate3d(3.5%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes inBack { from { opacity: 0; transform: translate3d(-3.5%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes outFwd { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(-2.5%, 0, 0); } }
@keyframes outBack { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(2.5%, 0, 0); } }
@keyframes inBoom { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ---------- index overlay ---------- */
.index-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 9, 10, 0.94);
  display: grid;
  place-items: center;
  padding: 24px;
}
.index-panel[hidden] { display: none; }
.index-card { width: min(680px, 100%); max-height: 100%; overflow-y: auto; }
.index-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.index-head .label { margin: 0; }
.index-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.index-item {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-dark);
  cursor: pointer;
}
.index-item .mono { font-size: 14px; color: var(--teal); }
.index-item[aria-current="true"] { border-color: var(--teal); background: rgba(124, 214, 204, 0.1); }

/* ---------- responsive: tablet and below ---------- */
@media (max-width: 1023px) {
  .stage-concept { display: none; }
  .concept-detail { display: grid; }
  .concept-head { grid-template-columns: 1fr; }
  .cover-grid { grid-template-columns: minmax(0, 1fr); }
  .cover-stage { order: -1; height: min(56vh, 520px); min-height: 340px; }
  .cover-title { font-size: clamp(56px, 9vw, 104px); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .proof-cards { grid-template-columns: minmax(0, 1fr); }
  .close-grid { grid-template-columns: minmax(0, 1fr); }
  .rep-photo { max-width: 340px; }
  .visits-body { grid-template-columns: minmax(0, 1fr); }
  .hero-mock { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}

/* ---------- responsive: phone ---------- */
@media (max-width: 640px) {
  :root { --chrome-h: 60px; --chrome-b: 64px; --gut: 20px; }
  .chrome-top { grid-template-columns: minmax(0, 1fr) auto; }
  .client-name, .chrome-section { display: none; }
  .brand-logo { height: 18px; }
  .counter { font-size: 13px; }
  .rail { display: none; }
  .index-item { font-size: 18px; }
  .prepared, .private { display: none; }
  .chrome-bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .pager-btn span { display: none; }
  .pager-btn { width: 52px; justify-content: center; padding: 0; }
  .h2 { font-size: clamp(30px, 8.6vw, 42px); }
  .cover-title { font-size: clamp(50px, 14vw, 80px); }
  .cover-stage { min-height: 300px; height: min(44vh, 360px); }
  .stage-caption { font-size: 13px; bottom: 10px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .slot-grid { grid-template-columns: minmax(0, 1fr); }
  .concept-detail { grid-template-columns: minmax(0, 1fr); }
  .contacts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .compare { flex-direction: column; min-height: 0; }
  .cmp-before, .cmp-after { flex: 0 0 auto; }
  .cmp-handle { display: none; }
  .tag, .count { font-size: 14px; }
  .visits-top .chips { gap: 6px; }
  .chip, .day-btn { font-size: 15px; }
  .tab { padding: 0 10px; font-size: 15px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .slide.in-fwd, .slide.in-back, .slide.out-fwd, .slide.out-back, .slide.in-boom, .boom-flash.go { animation: none !important; }
  .progress span, .seatbar span, .rail-btn span, .medallion { transition: none !important; }
}

/* Whole-composition vertical balance on desktop: flagged slides center their entire inner
   composition (kicker, title, lead, body, cards, note) between the fixed global chrome.
   `safe center` falls back to start when content is tall, so natural scrolling is preserved. */
@media (min-width: 1024px) {
  #s8 .wrap { display: flex; flex-direction: column; justify-content: safe center; }
  #s8 .tiers { margin-top: 4px; }
  #s3 .wrap, #s5 .wrap, #s6 .wrap, #s7 .wrap { display: flex; flex-direction: column; justify-content: safe center; }
  #s2 .wrap { align-content: safe center; }
}
