/* ==========================================================================
   Full Attack Motorsports // FAM Detailing — Brandcore sales deck
   Design system: "Inspection Bay"
     Obsidian clear-coat slides and bone spec-sheet slides, lamp-white type,
     one motorsport redline accent. The genuine FAM mark always sits on a
     white racing number panel with a black keyline, matching the mark's own
     black-on-white palette, at full opacity with no filters.
   Contrast: every text token below is AAA (7:1) against the surface it is
   used on; red is used as text only at headline size (AA-large/AAA-large 4.5:1+).
   ========================================================================== */

@font-face { font-family: 'Chakra Petch'; src: url('assets/fonts/chakra-petch-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('assets/fonts/chakra-petch-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('assets/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2'); font-weight: 300 800; 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: 100 800; font-style: normal; font-display: swap; }

:root {
  /* Scale unit: tracks the limiting viewport edge so 16:9, 16:10 and 4:3 all fit. */
  --u: min(1vw, 1.78vh);

  --font-display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* Brand constants */
  --obsidian: #080A0E;
  --obsidian-2: #0E1218;
  --bone: #F2EFE9;
  --plate: #FFFFFF;
  --plate-ink: #0B0E12;
  --redline: #E11D48;          /* graphic accent only (bars, rules, dots) */
  --redline-deep: #A30D2B;     /* fills behind white text: 7.9:1 */

  /* Type scale */
  --fs-h1: clamp(40px, calc(var(--u) * 4.05), 88px);
  --fs-h2: clamp(30px, calc(var(--u) * 3.3), 70px);
  --fs-h3: clamp(17px, calc(var(--u) * 1.26), 27px);
  --fs-lead: clamp(16px, calc(var(--u) * 1.15), 24px);
  --fs-body: clamp(15px, calc(var(--u) * .98), 20px);
  --fs-small: clamp(14px, calc(var(--u) * .88), 18.5px);
  --fs-label: clamp(11.5px, calc(var(--u) * .68), 14px);

  --pad-x: clamp(20px, calc(var(--u) * 5), 112px);
  --pad-top: clamp(14px, calc(var(--u) * 1.8), 40px);
  --pad-bottom: clamp(76px, calc(var(--u) * 4.9), 104px);
  --gap: clamp(14px, calc(var(--u) * 1.6), 34px);
  --radius: clamp(10px, calc(var(--u) * .7), 16px);
}

/* Theme tokens ------------------------------------------------------------ */
.theme-dark {
  --bg: var(--obsidian);
  --surface: #121821;
  --surface-2: #19212C;
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .26);
  --ink: #F6F8FB;        /* 18.6:1 on --bg */
  --ink-2: #D9DFE7;      /* 13.9:1 on --surface */
  --ink-3: #B4BDC9;      /* 9.4:1 on --surface */
  --accent-text: #FF4766;/* headline em only: 5.9:1 */
  --tag-bg: var(--redline-deep);
  --tag-ink: #FFFFFF;
  background-color: var(--bg);
  color: var(--ink);
}
.theme-light {
  --bg: var(--bone);
  --surface: #FFFFFF;
  --surface-2: #F8F6F2;
  --line: rgba(11, 14, 18, .14);
  --line-strong: rgba(11, 14, 18, .3);
  --ink: #0B0E12;        /* 17.4:1 on --bg */
  --ink-2: #252A31;      /* 13.6:1 on --bg */
  --ink-3: #434A54;      /* 8.0:1 on --bg, 9.1:1 on white */
  --accent-text: #970C28;/* 7.6:1 on --bg */
  --tag-bg: var(--redline-deep);
  --tag-ink: #FFFFFF;
  background-color: var(--bg);
  color: var(--ink);
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: var(--obsidian); }
body {
  color: #F6F8FB;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #FF4766; outline-offset: 3px; border-radius: 4px; }
.theme-light :focus-visible { outline-color: var(--redline-deep); }

/* Deck shell -------------------------------------------------------------- */
#deck { position: relative; width: 100%; min-height: 100vh; overflow: hidden; background: var(--obsidian); }
.slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  grid-template-rows: auto minmax(0, 1fr);
  row-gap: clamp(12px, calc(var(--u) * 1.5), 32px);
}
.slide.active { display: grid; }
.slide.theme-dark {
  background:
    radial-gradient(120% 70% at 85% -10%, rgba(225, 29, 72, .10) 0%, transparent 55%),
    radial-gradient(90% 80% at 10% 110%, rgba(120, 150, 190, .10) 0%, transparent 60%),
    linear-gradient(180deg, #0B0F14 0%, var(--obsidian) 100%);
  background-color: var(--obsidian);
}
.slide.theme-light {
  background:
    radial-gradient(110% 80% at 100% 0%, #FFFFFF 0%, transparent 60%),
    linear-gradient(180deg, #F5F2EC 0%, var(--bone) 100%);
  background-color: var(--bone);
}
.slide:not(.cover) { grid-template-columns: minmax(0, 1fr); }
.slide-body { min-height: 0; align-self: safe center; width: 100%; }
.nw { white-space: nowrap; }

/* Genuine-mark number panel ------------------------------------------------ */
.brand-plate {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--plate);
  border-radius: clamp(8px, calc(var(--u) * .55), 12px);
  padding: clamp(7px, calc(var(--u) * .62), 13px) clamp(12px, calc(var(--u) * 1.05), 22px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 28px rgba(0, 0, 0, .28);
}
.brand-plate::after {          /* black keyline, echoing the mark's ink */
  content: '';
  position: absolute;
  inset: clamp(3px, calc(var(--u) * .24), 5px);
  border: 1.5px solid var(--plate-ink);
  border-radius: clamp(5px, calc(var(--u) * .36), 8px);
  pointer-events: none;
}
.theme-light .brand-plate { box-shadow: 0 0 0 1px rgba(11, 14, 18, .12), 0 10px 26px rgba(11, 14, 18, .10); }
.brand-plate img {
  height: clamp(38px, calc(var(--u) * 3.35), 70px);
  width: auto;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

/* Slide header ------------------------------------------------------------ */
.slide-head {
  display: flex;
  align-items: center;
  gap: clamp(14px, calc(var(--u) * 1.4), 30px);
  min-width: 0;
}
.head-stripe {
  flex: 1 1 auto;
  min-width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--redline) 0 clamp(40px, calc(var(--u) * 6), 120px), var(--line-strong) clamp(40px, calc(var(--u) * 6), 120px) 100%);
}
.head-label {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: right;
}
.head-label b {
  display: inline-grid;
  place-items: center;
  min-width: 2.4em;
  padding: .3em .45em;
  border-radius: 4px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  letter-spacing: .06em;
}

/* Typography ---------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: .005em; }
h1 { font-size: var(--fs-h1); line-height: 1.0; }
h2 { font-size: var(--fs-h2); line-height: 1.04; }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; }
h1 em, h2 em { font-style: normal; color: var(--accent-text); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
p { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 700; }

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55em 1em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.tag {
  display: inline-block;
  padding: .42em .8em;
  border-radius: 4px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  letter-spacing: .14em;
}
.num-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: clamp(30px, calc(var(--u) * 2.1), 44px);
  height: clamp(30px, calc(var(--u) * 2.1), 44px);
  border-radius: 6px;
  background: var(--redline-deep);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13px, calc(var(--u) * .9), 19px);
  letter-spacing: .02em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.page {
  position: absolute;
  z-index: 3;
  right: var(--pad-x);
  bottom: clamp(26px, calc(var(--u) * 1.9), 40px);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ink-3);
}

/* Controls ------------------------------------------------------------------ */
.controls {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, calc(var(--u) * 1.3), 28px);
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10, 13, 18, .94);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  color: #F6F8FB;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.controls button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #F6F8FB;
  cursor: pointer;
  font-size: 20px;
  transition: background .2s ease;
}
.controls button:hover { background: rgba(255, 255, 255, .1); }
#counter {
  min-width: 64px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #F6F8FB;
}
#play {
  white-space: nowrap;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  border: 1px solid rgba(255, 255, 255, .2);
}
#play[aria-pressed="true"] { background: var(--redline-deep); border-color: var(--redline-deep); }

/* ===========================================================================
   Slide 1 · Cover
   =========================================================================== */
.slide.cover {
  padding: 0;
  grid-template-rows: none;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
}
.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, calc(var(--u) * 1.45), 30px);
  padding: clamp(24px, calc(var(--u) * 3), 64px) clamp(28px, calc(var(--u) * 3.6), 76px) var(--pad-bottom) var(--pad-x);
  min-width: 0;
}
.brand-plate--hero {
  align-self: flex-start;
  border-radius: clamp(12px, calc(var(--u) * .9), 18px);
  padding: clamp(14px, calc(var(--u) * 1.2), 26px) clamp(20px, calc(var(--u) * 1.8), 38px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
  margin-bottom: clamp(4px, calc(var(--u) * .6), 14px);
}
.brand-plate--hero::after { inset: clamp(5px, calc(var(--u) * .4), 8px); border-width: 2px; border-radius: clamp(8px, calc(var(--u) * .55), 12px); }
.brand-plate--hero img { height: clamp(64px, calc(var(--u) * 6.2), 132px); }
.cover .lead { max-width: 52ch; }
.fact-row { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; }
.fact-row li {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .6em .95em;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: clamp(13px, calc(var(--u) * .8), 17px);
  font-weight: 600;
  color: var(--ink);
}
.fact-row svg { font-size: 1.15em; color: #FF4766; }
.cover-sign {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cover-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(24px, calc(var(--u) * 3), 64px) clamp(24px, calc(var(--u) * 3.6), 76px) var(--pad-bottom);
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(214, 228, 255, .14) 0%, transparent 70%),
    radial-gradient(80% 40% at 50% 100%, rgba(225, 29, 72, .16) 0%, transparent 70%),
    linear-gradient(180deg, #0D1117 0%, #07090C 100%);
  background-color: #07090C;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.cover-stage::before {               /* static inspection-bay fallback grid */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 38%, transparent 62%, #000 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 38%, transparent 62%, #000 100%);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.cover-stage::after {                /* softens the bay lights at the edges; never covers the photo */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(80% 62% at 50% 48%, transparent 50%, rgba(7, 9, 12, .62) 100%),
    linear-gradient(180deg, rgba(7, 9, 12, .4) 0%, transparent 24%, transparent 80%, rgba(7, 9, 12, .3) 100%);
}
#scene[data-webgl="ready"] ~ .hero-photo { z-index: 2; }
.cover-stage:has(#scene[data-webgl="ready"])::before { opacity: 0; }
.hero-photo {
  position: relative;
  z-index: 2;
  width: min(100%, calc((100vh - var(--pad-bottom) - clamp(24px, calc(var(--u) * 3), 64px) - 110px) * 1.367));
  border-radius: var(--radius);
  background: #0B0E12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 40px 90px rgba(0, 0, 0, .6), 0 0 120px rgba(214, 228, 255, .08);
  overflow: hidden;
}
.hero-photo__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 920 / 673;     /* the photograph inside the concept, without its UI layer */
  background: #0B0E12;
}
.hero-photo__frame img {
  position: absolute;
  left: 0;
  top: -14.116%;               /* hides the 95px concept nav: 95/768 of image height */
  width: 149.565%;             /* 1376 / 920 */
  max-width: none;
  height: auto;
  opacity: 1;
  filter: none;
}
.hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(10px, calc(var(--u) * .8), 16px) clamp(14px, calc(var(--u) * 1.1), 22px);
  background: #0B0E12;
  border-top: 2px solid var(--redline);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F6F8FB;
}
.hero-photo__meta { color: #C9D1DB; letter-spacing: .08em; text-transform: none; font-weight: 500; }

/* ===========================================================================
   Slide 2 · Craft
   =========================================================================== */
.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(24px, calc(var(--u) * 3.6), 76px);
  align-items: center;
}
.craft-copy { display: flex; flex-direction: column; gap: clamp(12px, calc(var(--u) * 1.25), 26px); }
.cred-list { list-style: none; display: grid; gap: clamp(8px, calc(var(--u) * .7), 14px); }
.cred-list li { display: flex; align-items: center; gap: 14px; font-size: var(--fs-body); color: var(--ink-2); }
.cred-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: clamp(34px, calc(var(--u) * 2.3), 48px);
  height: clamp(34px, calc(var(--u) * 2.3), 48px);
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: #FF4766;
  font-size: clamp(17px, calc(var(--u) * 1.15), 24px);
}
.scope-callout {
  padding: clamp(14px, calc(var(--u) * 1.15), 24px) clamp(16px, calc(var(--u) * 1.3), 28px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--redline);
}
.scope-callout__title {
  margin-bottom: .45em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.scope-callout p:last-child { font-size: var(--fs-small); line-height: 1.55; }
.spec-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.spec-card__media { position: relative; height: clamp(150px, 30vh, 330px); overflow: hidden; background: #000; }
.spec-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%; opacity: 1; filter: none; }
.spec-card__media figcaption {
  position: absolute;
  left: clamp(10px, calc(var(--u) * .8), 18px);
  bottom: clamp(10px, calc(var(--u) * .8), 18px);
  padding: .5em .85em;
  border-radius: 6px;
  background: rgba(8, 10, 14, .9);
  border: 1px solid rgba(255, 255, 255, .2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #F6F8FB;
}
.stage-list { list-style: none; padding: clamp(6px, calc(var(--u) * .5), 12px) clamp(16px, calc(var(--u) * 1.3), 28px); }
.stage-list li {
  display: flex;
  gap: clamp(12px, calc(var(--u) * 1), 20px);
  align-items: flex-start;
  padding: clamp(10px, calc(var(--u) * .85), 18px) 0;
  border-bottom: 1px solid var(--line);
}
.stage-list li:last-child { border-bottom: 0; }
.stage-list h3 { margin-bottom: .2em; }
.stage-list p { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); }
.menu-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: clamp(12px, calc(var(--u) * .9), 18px) clamp(16px, calc(var(--u) * 1.3), 28px);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.menu-strip__label {
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.menu-chip {
  padding: .38em .8em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--ink-2);
}

/* ===========================================================================
   Shared: split heading row
   =========================================================================== */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(20px, calc(var(--u) * 3.4), 72px);
  align-items: end;
  margin-bottom: clamp(18px, calc(var(--u) * 2), 42px);
}
.split-head .kicker { margin-bottom: clamp(10px, calc(var(--u) * .9), 18px); }
.split-head .lead { padding-bottom: .3em; }

/* ===========================================================================
   Slide 3 · Journey (light)
   =========================================================================== */
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.journey-card {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, calc(var(--u) * .75), 14px);
  padding: clamp(16px, calc(var(--u) * 1.5), 32px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--plate-ink);
  box-shadow: 0 18px 44px rgba(11, 14, 18, .08);
}
.journey-card:nth-child(2) { border-top-color: var(--redline); }
.journey-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.journey-icon {
  display: inline-grid;
  place-items: center;
  width: clamp(34px, calc(var(--u) * 2.3), 48px);
  height: clamp(34px, calc(var(--u) * 2.3), 48px);
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(18px, calc(var(--u) * 1.2), 24px);
}
.card-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pill-badge {
  align-self: flex-start;
  padding: .36em .8em;
  border-radius: 4px;
  background: var(--plate-ink);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.journey-card h3 { min-height: 2.4em; }
.journey-card > p:not([class]) { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.card-foot {
  margin-top: auto;
  padding-top: clamp(10px, calc(var(--u) * .8), 16px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.slide-foot {
  margin-top: clamp(14px, calc(var(--u) * 1.4), 28px);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ===========================================================================
   Browser frames (slides 4 and 5)
   =========================================================================== */
.browser {
  border-radius: var(--radius);
  overflow: hidden;
  background: #0B0E12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 34px 80px rgba(0, 0, 0, .45);
}
.theme-light .browser { box-shadow: 0 0 0 1px rgba(11, 14, 18, .22), 0 30px 70px rgba(11, 14, 18, .16); }
.browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: clamp(32px, calc(var(--u) * 2.1), 44px);
  padding: 0 clamp(12px, calc(var(--u) * .9), 18px);
  background: #151A22;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.browser__dots { display: inline-flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.browser__dots i:nth-child(2) { background: #FEBC2E; }
.browser__dots i:nth-child(3) { background: #28C840; }
.browser__url {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-width: 0;
  height: 70%;
  padding: 0 .9em;
  border-radius: 6px;
  background: #0B0E12;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: #E4E9F0;
  white-space: nowrap;
  overflow: hidden;
}
.browser__url svg { color: #B4BDC9; }
.browser__tag {
  flex: none;
  padding: .3em .7em;
  border-radius: 4px;
  background: var(--redline-deep);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.browser__tag--muted { background: #3A414C; }
.browser__viewport { position: relative; overflow: hidden; background: #0B0E12; }
.browser__viewport img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 1; filter: none; }

/* ===========================================================================
   Slide 4 · Showcase
   =========================================================================== */
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, calc(var(--u) * 3.4), 72px);
  align-items: center;
}
.showcase-copy { display: flex; flex-direction: column; gap: clamp(12px, calc(var(--u) * 1.25), 26px); }
.note-list { list-style: none; display: grid; gap: clamp(8px, calc(var(--u) * .75), 14px); }
.note-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: clamp(10px, calc(var(--u) * .85), 18px) clamp(12px, calc(var(--u) * 1), 20px);
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.note-list p { font-size: var(--fs-small); line-height: 1.55; }
.note-list .num-badge { width: clamp(28px, calc(var(--u) * 1.8), 38px); height: clamp(28px, calc(var(--u) * 1.8), 38px); font-size: clamp(12px, calc(var(--u) * .8), 16px); }
.showcase-figure { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, calc(var(--u) * .9), 18px); min-width: 0; }
.browser--hero { width: fit-content; max-width: 100%; }
.browser__viewport--mockup {
  /* 42vh within 300-440px, never wider than its column */
  height: min(clamp(300px, 42vh, 440px), calc((100vw - 2 * var(--pad-x) - clamp(24px, calc(var(--u) * 3.4), 72px)) * .6 / 1.7917));
  aspect-ratio: 1376 / 768;
  max-width: 100%;
}
.browser__viewport--mockup img { object-fit: cover; object-position: center top; }
.showcase-figure figcaption {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}

/* ===========================================================================
   Slide 5 · Proof (light)
   =========================================================================== */
.compare-grid {
  /* 38vh within 280-400px, two 16:10 frames always fit side by side */
  --case-h: min(clamp(280px, 38vh, 400px), calc((100vw - 2 * var(--pad-x) - clamp(20px, calc(var(--u) * 2.4), 52px)) / 2 / 1.6));
  display: flex;
  justify-content: center;
  gap: clamp(20px, calc(var(--u) * 2.4), 52px);
}
.compare { display: flex; flex-direction: column; gap: clamp(10px, calc(var(--u) * .9), 18px); width: calc(var(--case-h) * 1.6); max-width: 100%; min-width: 0; }
.browser__viewport--case { width: 100%; height: var(--case-h); }
.browser__viewport--case img { object-fit: cover; object-position: center top; }
.browser__viewport--trim img { width: 100.6%; max-width: none; object-position: left top; }   /* hides the capture's 10px white right edge */
.compare figcaption {
  max-width: 60ch;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-2);
}
.compare figcaption b {
  display: inline-block;
  margin-right: .7em;
  padding: .18em .6em;
  border-radius: 4px;
  background: var(--plate-ink);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.compare:last-child figcaption b { background: var(--redline-deep); }

/* ===========================================================================
   Slide 6 · Roadmap
   =========================================================================== */
.roadmap-head { display: grid; gap: clamp(10px, calc(var(--u) * 1), 20px); margin-bottom: clamp(16px, calc(var(--u) * 1.6), 34px); }
.roadmap-head .lead { max-width: 78ch; }
.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 clamp(12px, calc(var(--u) * 1.1), 22px);
  height: 26px;
}
.track::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--redline) 0%, var(--redline) 66%, rgba(255, 255, 255, .3) 100%);
}
.track span {
  position: relative;
  justify-self: start;
  padding: 2px 10px 2px 0;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.track span::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--redline); box-shadow: 0 0 0 4px rgba(225, 29, 72, .22); vertical-align: 0; }
.track span:nth-child(4) { position: absolute; right: 0; top: 0; padding: 2px 0 2px 10px; }
.track span:nth-child(4)::before { background: #F6F8FB; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); }
.phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.phase {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, calc(var(--u) * .8), 16px);
  padding: clamp(16px, calc(var(--u) * 1.4), 30px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.phase--featured { background: linear-gradient(180deg, #1E1218 0%, var(--surface) 70%); border-color: rgba(225, 29, 72, .55); box-shadow: 0 0 0 1px rgba(225, 29, 72, .25), 0 28px 60px rgba(0, 0, 0, .35); }
.phase__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.phase__num {
  padding: .36em .7em;
  border-radius: 4px;
  background: var(--redline-deep);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.phase__days {
  padding: .32em .7em;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.phase > p { font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.ticks { list-style: none; display: grid; gap: .55em; margin-top: auto; padding-top: clamp(10px, calc(var(--u) * .8), 16px); border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: .65em; align-items: flex-start; font-size: var(--fs-small); line-height: 1.45; color: var(--ink); }
.ticks svg { margin-top: .2em; color: #FF4766; stroke-width: 2.4; font-size: 1.05em; }
.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--gap);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  overflow: hidden;
}
.stat-bar span {
  display: flex;
  align-items: baseline;
  gap: .6em;
  padding: clamp(10px, calc(var(--u) * .85), 18px) clamp(14px, calc(var(--u) * 1.2), 26px);
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.stat-bar span + span { border-left: 1px solid var(--line); }
.stat-bar b { font-family: var(--font-display); font-size: clamp(18px, calc(var(--u) * 1.3), 28px); color: var(--ink); white-space: nowrap; }

/* ===========================================================================
   Slide 7 · Close (light)
   =========================================================================== */
.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  gap: clamp(24px, calc(var(--u) * 3.6), 76px);
  align-items: center;
}
.partner-col { display: flex; flex-direction: column; gap: clamp(12px, calc(var(--u) * 1.25), 26px); }
.person { display: flex; align-items: center; gap: clamp(16px, calc(var(--u) * 1.5), 30px); }
.person__photo {
  width: clamp(112px, calc(var(--u) * 7), 140px);
  height: clamp(112px, calc(var(--u) * 7), 140px);
  flex: none;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 18%;
  opacity: 1;
  filter: none;
  background: transparent;
  box-shadow: 0 14px 34px rgba(11, 14, 18, .22);
}
.person__meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.person__name { font-family: var(--font-display); font-size: clamp(22px, calc(var(--u) * 1.6), 34px); line-height: 1.1; color: var(--ink); }
.person__role {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.contact-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 6px; }
.contact-list li {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .45em .85em;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-2);
}
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list svg { color: var(--accent-text); }
.quote {
  padding: clamp(14px, calc(var(--u) * 1.3), 28px) clamp(16px, calc(var(--u) * 1.5), 30px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--redline);
}
.quote p { font-size: clamp(14.5px, calc(var(--u) * .92), 19px); line-height: 1.6; color: var(--ink); font-style: italic; }
.quote cite {
  display: block;
  margin-top: .8em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-style: normal;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.studio-tag { display: flex; align-items: center; gap: .6em; font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
.studio-tag svg { color: var(--accent-text); font-size: 1.2em; }
.request {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, calc(var(--u) * .9), 18px);
  padding: clamp(18px, calc(var(--u) * 1.7), 36px);
  border-radius: calc(var(--radius) + 4px);
  background: #0B0E12;
  color: #F6F8FB;
  border-top: 4px solid var(--redline);
  box-shadow: 0 36px 80px rgba(11, 14, 18, .28);
  --ink: #F6F8FB; --ink-2: #D9DFE7; --ink-3: #B4BDC9; --line: rgba(255,255,255,.14); --line-strong: rgba(255,255,255,.26);
}
.request__pill {
  align-self: flex-start;
  padding: .36em .75em;
  border-radius: 4px;
  background: var(--redline-deep);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.request h3 { color: #F6F8FB; font-size: clamp(20px, calc(var(--u) * 1.45), 30px); }
.request__intro { font-size: var(--fs-small); line-height: 1.55; color: #D9DFE7; }
.screen-request { display: flex; flex-direction: column; gap: clamp(10px, calc(var(--u) * .9), 18px); }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: .8em 1.4em;
  border-radius: 10px;
  background: var(--redline-deep);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: clamp(13px, calc(var(--u) * .78), 16px);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(163, 13, 43, .35);
  transition: background .2s ease, transform .2s ease;
}
.cta svg { font-size: 1.25em; }
.cta:hover { background: #8C0B25; transform: translateY(-1px); }
.planner { border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: #121821; }
.planner summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #F6F8FB;
}
.planner summary::-webkit-details-marker { display: none; }
.planner summary::marker { content: ''; }
.planner .chev { font-size: 18px; transition: transform .2s ease; }
.planner[open] .chev { transform: rotate(180deg); }
.suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 14px; }
.suggestions button {
  min-height: 46px;
  padding: .6em .8em;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: #19212C;
  color: #F6F8FB;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.suggestions button:hover { border-color: var(--redline); background: #221720; }
.planner-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px; }
.field-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-group label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .04em; color: #D9DFE7; }
.date-control { display: flex; align-items: stretch; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .28); background: #0B0E12; overflow: hidden; }
.date-control input { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 0 12px; border: 0; background: transparent; color: #F6F8FB; color-scheme: dark; font-family: var(--font-mono); font-size: 14px; }
.date-control input::-webkit-calendar-picker-indicator { opacity: 0; width: 0; }
.date-control button { display: grid; place-items: center; width: 46px; border: 0; border-left: 1px solid rgba(255, 255, 255, .18); background: #19212C; color: #F6F8FB; font-size: 19px; cursor: pointer; }
#picker-help { padding: 0 16px 14px; font-size: var(--fs-label); color: #D9DFE7; }
.request__fine { font-size: var(--fs-label); line-height: 1.55; color: #B4BDC9; }
.print-contact { display: none; }

/* ===========================================================================
   Tablet / short viewports
   =========================================================================== */
@media screen and (min-width: 761px) and (max-height: 820px) {
  :root { --pad-bottom: 80px; --gap: 14px; }
  .slide { row-gap: 14px; }
  .spec-card__media { height: 18vh; }
  .stage-list li { padding: 8px 0; }
  .menu-strip { padding: 10px 18px; gap: 6px; }
  .menu-strip__label { display: none; }
  .craft-copy, .showcase-copy, .partner-col { gap: 12px; }
  .split-head { margin-bottom: 16px; }
  .journey-card { padding: 16px 18px; gap: 7px; }
  .track { display: none; }
  .roadmap-head { gap: 8px; margin-bottom: 14px; }
  .phase { padding: 14px 18px; gap: 7px; }
  .ticks { gap: .3em; padding-top: 8px; }
  .stat-bar { margin-top: 12px; }
  .stat-bar span { padding: 8px 16px; }
  .request { gap: 10px; padding: 18px 22px; }
  .planner summary { padding: 10px 14px; }
  .suggestions { padding: 0 14px 10px; }
  .planner-fields { padding: 0 14px 12px; }
  .suggestions button, .date-control input { min-height: 40px; }
}
@media screen and (min-width: 761px) and (max-width: 1180px) {
  .split-head { grid-template-columns: 1fr; align-items: start; gap: 10px; }
  .head-label { letter-spacing: .1em; }
  .roadmap .head-label { max-width: 46ch; }
}

/* ===========================================================================
   Mobile: slides become scrollable pages
   =========================================================================== */
@media (max-width: 760px) {
  :root { --u: 3.2vw; --pad-x: 18px; --pad-top: 14px; --pad-bottom: 92px; }
  .slide { height: auto; min-height: 100svh; overflow: visible; grid-template-rows: auto auto; }
  .slide.cover.active { display: flex; flex-direction: column; }
  .cover-copy { padding: 20px 18px 24px; gap: 16px; }
  .cover-stage { padding: 20px 16px 96px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .hero-photo { width: 100%; }
  .slide-head { flex-wrap: wrap; gap: 10px 14px; }
  .head-stripe { order: 3; flex-basis: 100%; }
  .head-label { text-align: left; }
  .brand-plate img { height: 40px; }
  .brand-plate--hero img { height: clamp(52px, 15vw, 84px); }
  .hero-photo figcaption { flex-direction: column; align-items: flex-start; gap: 4px; }
  .craft-grid, .showcase-grid, .close-grid, .split-head { grid-template-columns: 1fr; }
  .journey-grid, .phase-grid, .stat-bar { grid-template-columns: 1fr; }
  .stat-bar span + span { border-left: 0; border-top: 1px solid var(--line); }
  .compare-grid { flex-direction: column; }
  .browser--hero { width: 100%; }
  .browser__viewport--mockup, .browser__viewport--case { height: auto; width: 100%; }
  .browser__viewport--case { aspect-ratio: 16 / 10; }
  .compare { width: 100%; }
  .track { display: none; }
  .person { align-items: flex-start; }
  .suggestions, .planner-fields { grid-template-columns: 1fr; }
  .page { bottom: 30px; right: 18px; }
  .controls { bottom: 12px; }
  #play { padding: 0 12px; font-size: 11px; }
}

/* ===========================================================================
   Print: one slide per landscape page, white paper, logos intact
   =========================================================================== */
@page { size: letter landscape; margin: .35in; }
@media print {
  html, body, #deck { background: #FFFFFF; height: auto; overflow: visible; }
  .controls, #scene, .cover-stage::before, .cover-stage::after, .page, .screen-request { display: none; }
  .slide, .slide.active, .slide.cover, .slide.theme-dark, .slide.theme-light {
    display: grid;
    height: 7.6in;
    min-height: 0;
    padding: .25in .3in;
    break-after: page;
    page-break-after: always;
    overflow: hidden;
    background: #FFFFFF;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .slide.cover { grid-template-columns: 1fr 1fr; }
  .theme-dark { --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F6F6F4; --line: rgba(0,0,0,.16); --line-strong: rgba(0,0,0,.3); --ink: #0B0E12; --ink-2: #262B33; --ink-3: #434A54; --accent-text: #970C28; }
  .cover-stage { background: #FFFFFF; border: 0; padding: .2in; }
  .brand-plate { box-shadow: 0 0 0 1pt #0B0E12; }
  .phase--featured { background: #FFFFFF; }
  .print-contact { display: block; padding: 10pt; border: 1pt solid #0B0E12; border-radius: 6pt; font-family: var(--font-mono); font-size: 10pt; color: #FFFFFF; }
}
