/* Eureka Car Stereo × Brandcore — sales deck
   Palette is drawn from the client's own mark: the #003300 racing-green field and the
   brushed-gold letters of the Eureka Car Stereo wordmark. Dark slides sit on deep forest
   black; light slides on warm linen. Every text colour below is AAA (7:1+) on its slide. */

@font-face {
  font-family: 'Marcellus';
  src: url('assets/fonts/marcellus-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Marcellus ships old-style figures (0 reads as O); Cinzel's lining digits from the same
   Roman-inscription tradition replace 0-9 inside display type only. */
@font-face {
  font-family: 'Display Digits';
  src: url('assets/fonts/cinzel-digits-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2');
  font-weight: 200 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: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-green: #003300;     /* logo field, sampled */
  --brand-gold: #DCC28E;      /* logo letters, sampled */
  --brand-gold-hi: #EAD8AA;
  --night: #05120B;
  --night-2: #0A1D13;
  --linen: #F5EFE1;
  --linen-2: #EDE4CF;
  --paper: #FFFDF8;
  --ink: #0E1A13;
  --bronze: #4C3810;
  --font-display: 'Display Digits', 'Marcellus', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad-x: clamp(24px, 4.4vw, 88px);
  --pad-top: clamp(18px, 3.4vh, 40px);
  --pad-bottom: clamp(70px, 9.4vh, 104px);
  --radius: 16px;
}

.theme-dark {
  --bg: radial-gradient(120% 95% at 0% 0%, #0E2C1B 0%, #06160D 48%, #030C07 100%);
  --fg: #F6F1E6;
  --fg-2: #DED7C7;
  --fg-3: #CBC4B2;
  --accent-text: var(--brand-gold);
  --em: var(--brand-gold);
  --rule: rgba(220, 194, 142, 0.3);
  --card-bg: rgba(255, 248, 230, 0.045);
  --card-border: rgba(220, 194, 142, 0.26);
  --card-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  --plate-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --link: var(--brand-gold-hi);
}

.theme-cream {
  --bg: linear-gradient(180deg, #F8F3E8 0%, #F2EAD8 100%);
  --fg: var(--ink);
  --fg-2: #2B3830;
  --fg-3: #34423A;
  --accent-text: var(--bronze);
  --em: #0F4527;
  --rule: rgba(14, 26, 19, 0.16);
  --card-bg: var(--paper);
  --card-border: rgba(94, 68, 19, 0.2);
  --card-shadow: 0 16px 36px rgba(48, 36, 12, 0.09);
  --plate-shadow: 0 10px 24px rgba(0, 51, 0, 0.2);
  --link: #0F4527;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--night);
  color: #F6F1E6;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a, input { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }

.ui-icon, .date-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Deck frame ---------- */
#deck {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.slide {
  position: relative;
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
}
.slide.active { display: flex; }

/* ---------- Brand header ---------- */
.slide-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(12px, 1.8vh, 20px);
  border-bottom: 1px solid var(--rule);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.3vw, 24px);
  min-width: 0;
}

.logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  max-width: 100%;
  padding: clamp(8px, 1.05vh, 12px) clamp(14px, 1.15vw, 22px);
  background: var(--brand-green);
  border: 1px solid rgba(220, 194, 142, 0.6);
  border-radius: 10px;
  box-shadow: var(--plate-shadow), inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.logo-plate img {
  width: auto;
  height: clamp(28px, 3.7vh, 40px);
  max-width: 100%;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.brand-sub {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: clamp(11.5px, 0.74vw, 14px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-sub b { color: var(--fg); font-weight: 700; }
.brand-sub small { font-size: 1em; color: var(--accent-text); font-weight: 700; }

.head-section {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(11.5px, 0.74vw, 14px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  white-space: nowrap;
}
.head-section b {
  display: inline-grid;
  place-items: center;
  min-width: 2.6em;
  height: 2.2em;
  padding: 0 0.6em;
  border-radius: 999px;
  background: var(--brand-green);
  border: 1px solid rgba(220, 194, 142, 0.55);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-gold-hi);
}

/* ---------- Type ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(10px, 1.5vh, 18px);
  font-size: clamp(12px, 0.78vw, 14.5px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.kicker::before {
  content: '';
  width: 30px;
  height: 2px;
  flex: none;
  background: currentColor;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.005em;
}
h1 em, h2 em {
  font-style: normal;
  color: var(--em);
}
h1 {
  font-size: clamp(40px, 3.95vw, 78px);
  line-height: 1.06;
}
h2 {
  font-size: clamp(32px, 2.95vw, 58px);
  line-height: 1.08;
  max-width: 22ch;
}
h3 {
  font-size: clamp(19px, 1.28vw, 25px);
  line-height: 1.22;
}

.lead {
  margin-top: clamp(12px, 1.8vh, 20px);
  max-width: 60ch;
  font-size: clamp(15.5px, 1.04vw, 20px);
  line-height: 1.58;
  color: var(--fg-2);
}

.num-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: clamp(38px, 2.4vw, 46px);
  height: clamp(38px, 2.4vw, 46px);
  border-radius: 50%;
  background: var(--brand-green);
  border: 1px solid rgba(220, 194, 142, 0.55);
  color: var(--brand-gold-hi);
  font-family: var(--font-body);
  font-size: clamp(14px, 0.86vw, 16.5px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums tabular-nums;
}

.page {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(26px, 3.6vh, 40px);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fg-3);
}

.source-row {
  margin-top: clamp(12px, 1.8vh, 20px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.source {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Shared two-column layout ---------- */
.split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: center;
  padding-top: clamp(14px, 2.6vh, 32px);
}
.split-wide-visual { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.col-copy { min-width: 0; display: flex; flex-direction: column; }
.col-visual { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2vh, 22px); }

/* ---------- Browser chrome (shared) ---------- */
.browser {
  overflow: hidden;
  border-radius: 14px;
  background: #0B1510;
  border: 1px solid rgba(220, 194, 142, 0.42);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}
.theme-cream .browser { box-shadow: 0 30px 60px rgba(14, 26, 19, 0.24), 0 6px 14px rgba(14, 26, 19, 0.12); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  background: #0F1D15;
  border-bottom: 1px solid rgba(220, 194, 142, 0.24);
}
.browser-dots { display: inline-flex; gap: 7px; flex: none; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3A4A40; }
.browser-dots i:first-child { background: #E5675B; }
.browser-dots i:nth-child(2) { background: #E8B44E; }
.browser-dots i:nth-child(3) { background: #5DB36F; }
.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  max-width: 420px;
  height: 24px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #E6E0D2;
  white-space: nowrap;
  overflow: hidden;
}
.browser-url .ui-icon { color: var(--brand-gold); width: 13px; height: 13px; }
.browser-tag {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold);
  white-space: nowrap;
}
.browser-shot {
  width: 100%;
  height: auto;
  opacity: 1;
  filter: none;
}

/* =========================================================
   SLIDE 1 — COVER
   ========================================================= */
.slide.cover {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  padding: 0;
}
.slide.cover.active { display: grid; }

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 5vh, 64px) clamp(28px, 3.4vw, 64px) clamp(84px, 11vh, 120px) clamp(28px, 5.4vw, 104px);
}

.cover-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.7vh, 18px);
  margin-bottom: clamp(26px, 5vh, 56px);
}
.logo-plate-xl {
  padding: clamp(14px, 2vh, 22px) clamp(20px, 1.8vw, 32px);
  border-radius: 14px;
  border-color: rgba(220, 194, 142, 0.7);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(0, 51, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.logo-plate-xl img {
  width: clamp(380px, 39vw, 780px);
  height: auto;
}
.cover-address {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: clamp(12.5px, 0.86vw, 16px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.cover-address i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.cover h1 { max-width: 17ch; }
.cover .lead { max-width: 56ch; }

.cover-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 3vh, 34px); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(220, 194, 142, 0.45);
  background: rgba(0, 51, 0, 0.45);
  font-size: clamp(12.5px, 0.78vw, 14.5px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F6F1E6;
}
.chip .ui-icon { color: var(--brand-gold); }
.cover-note {
  display: block;
  margin-top: clamp(16px, 2.6vh, 28px);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Hero stage: the real storefront on top, the website concept below, a gold
   equalizer (Three.js) grounded along the bottom edge. */
.hero-stage {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #082015 0%, #04120A 62%, #020A06 100%);
  border-left: 1px solid rgba(220, 194, 142, 0.3);
}
.stage-photo {
  position: absolute;
  inset: 0 0 auto 0;
  height: 46%;
  overflow: hidden;
  border-bottom: 1px solid rgba(220, 194, 142, 0.45);
}
.stage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 42%;
  opacity: 1;
  filter: none;
}
.stage-photo figcaption {
  position: absolute;
  top: clamp(16px, 2.6vh, 28px);
  left: clamp(16px, 2vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand-green);
  border: 1px solid rgba(220, 194, 142, 0.6);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold-hi);
}
.stage-photo figcaption span {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #F6F1E6;
  font-size: 14px;
}
.stage-browser {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 27.5%;
  width: min(88%, calc((48vh - 38px) * 1.7917));
  transform: translateX(-50%);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.stage-eq {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  z-index: 1;
}
.stage-eq canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.eq-fallback {
  position: absolute;
  inset: auto 6% 0 6%;
  height: 70%;
  display: none;
  align-items: flex-end;
  gap: 1.2%;
}
.eq-fallback span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #EAD8AA, #9C7B3C);
  height: calc(28% + (var(--h, 0.5) * 60%));
}
.eq-fallback span:nth-child(3n) { --h: 0.9; }
.eq-fallback span:nth-child(3n+1) { --h: 0.45; }
.eq-fallback span:nth-child(4n) { --h: 0.7; }
.eq-fallback span:nth-child(5n) { --h: 0.25; }
#scene[data-webgl="unavailable"] { display: none; }
#scene[data-webgl="unavailable"] + .eq-fallback { display: flex; }

/* =========================================================
   SLIDE 2 — FOUNDATION
   ========================================================= */
.pillars { display: grid; gap: clamp(10px, 1.4vh, 16px); margin-top: clamp(18px, 2.8vh, 30px); }
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(14px, 1.9vh, 22px) clamp(16px, 1.3vw, 24px);
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.pillar h3 { margin-bottom: 6px; }
.pillar p, .note p {
  font-size: clamp(14.5px, 0.9vw, 17px);
  line-height: 1.52;
  color: var(--fg-2);
}

.work-photo {
  width: min(100%, calc(52vh * 4 / 3));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 60px rgba(48, 36, 12, 0.18);
}
.work-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  opacity: 1;
  filter: none;
}
.work-photo figcaption { padding: clamp(14px, 1.9vh, 20px) clamp(18px, 1.4vw, 24px); }
.work-photo figcaption .kicker { margin-bottom: 6px; }
.work-photo figcaption p { font-size: clamp(14.5px, 0.9vw, 17px); line-height: 1.5; color: var(--fg-2); }

.brand-roster { width: min(100%, calc(52vh * 4 / 3)); }
.roster-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.brand-roster ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-roster li {
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--card-border);
  font-size: clamp(13px, 0.8vw, 15px);
  font-weight: 700;
  color: var(--ink);
}

/* =========================================================
   SLIDE 3 — CUSTOMER JOURNEY
   ========================================================= */
.journey-head, .proof-head, .exec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  padding-top: clamp(16px, 3vh, 36px);
}
.journey-head .lead, .proof-head .lead, .exec-head .lead { margin-top: 0; }

.journey-grid {
  position: relative;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 32px);
  align-content: center;
  margin-top: clamp(18px, 3vh, 36px);
}
.journey-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.6vh, 30px) clamp(18px, 1.5vw, 28px);
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(220, 194, 142, 0.5);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.journey-card h3 { margin-top: 4px; }
.journey-card p { flex: 1; font-size: clamp(14.5px, 0.92vw, 17.5px); line-height: 1.55; color: var(--fg-2); }
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-foot span { color: var(--fg-3); }
.card-foot b { color: var(--accent-text); text-align: right; }


.journey-rail {
  list-style: none;
  margin: clamp(22px, 4vh, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}
.journey-rail::before {
  content: '';
  position: absolute;
  top: 23px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(220, 194, 142, 0.25), var(--brand-gold) 50%, rgba(220, 194, 142, 0.25));
}
.journey-rail li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.rail-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-green);
  border: 1px solid rgba(220, 194, 142, 0.6);
  color: var(--brand-gold-hi);
  font-size: 21px;
  box-shadow: 0 0 0 6px rgba(5, 18, 11, 0.9);
}
.journey-rail li:last-child .rail-icon { background: var(--brand-gold); color: #10200F; }
.journey-rail b {
  font-size: clamp(13px, 0.8vw, 15px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.journey-rail small { font-size: clamp(13px, 0.78vw, 15px); font-weight: 500; color: var(--fg-3); }

/* =========================================================
   SLIDE 4 — WEBSITE CONCEPT
   ========================================================= */
.notes { display: grid; gap: clamp(10px, 1.4vh, 16px); margin-top: clamp(18px, 2.8vh, 30px); }
.note {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(14px, 1.8vh, 20px) clamp(16px, 1.3vw, 22px);
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.note b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 1.25vw, 24px);
  line-height: 1.2;
  color: var(--fg);
}
.showcase-browser {
  width: min(100%, calc(clamp(300px, 42vh, 440px) * 1.7917));
}
.browser-viewport {
  width: 100%;
  aspect-ratio: 1376 / 768;
  max-height: clamp(300px, 42vh, 440px);
  overflow: hidden;
  background: #0B1510;
}
.browser-viewport img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.visual-caption {
  width: min(100%, calc(clamp(300px, 42vh, 440px) * 1.7917));
  font-size: clamp(14px, 0.86vw, 16px);
  line-height: 1.5;
  font-weight: 600;
  color: var(--fg-3);
}

/* =========================================================
   SLIDE 5 — UFG BEFORE / AFTER
   ========================================================= */
.comparison {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 30px);
  margin-top: clamp(14px, 2.4vh, 30px);
}
.case { display: flex; flex-direction: column; gap: 12px; }
.case .browser { box-shadow: 0 30px 64px rgba(0, 0, 0, 0.5); }
.case-viewport {
  height: clamp(280px, 38vh, 400px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #FFFFFF;
}
.case-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}
.state {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.state-before { color: #F6F1E6; border: 1px solid rgba(246, 241, 230, 0.5); }
.state-after { color: #10200F; background: var(--brand-gold); }
.case figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(14px, 0.86vw, 16.5px);
  font-weight: 600;
  color: var(--fg-2);
}
.case figcaption b {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.compare-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--brand-green);
  border: 1px solid rgba(220, 194, 142, 0.6);
  color: var(--brand-gold-hi);
  font-size: 22px;
}

/* =========================================================
   SLIDE 6 — EXECUTION ROADMAP
   ========================================================= */
.exec-head h2 { max-width: none; }
.phases {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 30px);
  align-content: center;
  margin-top: clamp(16px, 2.6vh, 32px);
}
.phase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.5vh, 30px) clamp(18px, 1.5vw, 28px);
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.phase-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.phase-num {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.05vw, 20px);
  letter-spacing: 0.06em;
  color: var(--accent-text);
}
.phase-days {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-green);
  color: var(--brand-gold-hi);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.phase > p { min-height: calc(3 * 1.52em); font-size: clamp(14.5px, 0.9vw, 17px); line-height: 1.52; color: var(--fg-2); }
.deliverables {
  list-style: none;
  margin: 6px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 9px;
}
.deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(13.5px, 0.84vw, 16px);
  line-height: 1.42;
  font-weight: 600;
  color: var(--fg);
}
.deliverables .ui-icon { margin-top: 0.12em; color: #0F4527; stroke-width: 2.4; }

.phase-featured {
  background: var(--brand-green);
  border-color: rgba(220, 194, 142, 0.7);
  box-shadow: 0 30px 60px rgba(0, 51, 0, 0.3);
  --fg: #F6F1E6;
  --fg-2: #E4DDCC;
  --accent-text: var(--brand-gold);
  --rule: rgba(220, 194, 142, 0.35);
}
.phase-featured h3 { color: #F6F1E6; }
.phase-featured .phase-days { background: var(--brand-gold); color: #10200F; }
.phase-featured .deliverables .ui-icon { color: var(--brand-gold); }

.exec-strip {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 30px);
  margin-top: clamp(14px, 2.2vh, 26px);
  padding: clamp(12px, 1.6vh, 18px) clamp(16px, 1.4vw, 26px);
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--card-border);
}
.exec-strip span { display: flex; flex-direction: column; gap: 3px; }
.exec-strip small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.exec-strip b { font-size: clamp(14px, 0.88vw, 16.5px); font-weight: 700; color: var(--fg); }

/* =========================================================
   SLIDE 7 — PARTNER SIGN-OFF
   ========================================================= */
.close-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(28px, 3.6vw, 72px);
  align-items: center;
  padding-top: clamp(14px, 2.4vh, 30px);
}
.partner-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 1.6vw, 28px);
  align-items: start;
  margin-top: clamp(18px, 3vh, 32px);
  padding: clamp(18px, 2.4vh, 28px);
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.partner-portrait {
  width: clamp(112px, 7.3vw, 140px);
  height: clamp(112px, 7.3vw, 140px);
  border-radius: 18px;
  object-fit: cover;
  object-position: center 18%;
  opacity: 1;
  filter: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
.partner-kicker {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.partner-name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(26px, 1.75vw, 34px);
  line-height: 1.1;
  color: var(--fg);
}
.partner-role { margin-top: 4px; font-size: clamp(14px, 0.84vw, 16px); font-weight: 600; color: var(--fg-2); }
.partner-quote {
  margin-top: 12px;
  font-size: clamp(14.5px, 0.9vw, 17px);
  line-height: 1.55;
  color: var(--fg);
}
.partner-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.partner-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 8px;
  background: rgba(0, 51, 0, 0.55);
  border: 1px solid rgba(220, 194, 142, 0.45);
  font-size: clamp(13px, 0.8vw, 15px);
  font-weight: 700;
  color: #F6F1E6;
  text-decoration: none;
}
.partner-contact a .ui-icon { color: var(--brand-gold); }
.partner-contact a:hover { border-color: var(--brand-gold); }

.request {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 3vh, 34px) clamp(20px, 1.7vw, 32px);
  border-radius: 20px;
  background: linear-gradient(180deg, #0B2516 0%, #071A0F 100%);
  border: 1px solid rgba(220, 194, 142, 0.45);
  border-top: 4px solid var(--brand-gold);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.45);
}
.request .kicker { margin-bottom: 2px; }
.request h3 { font-size: clamp(30px, 2.3vw, 44px); }
.request > p { font-size: clamp(14.5px, 0.92vw, 17px); line-height: 1.5; color: var(--fg-2); }
.screen-request { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.suggestions button {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 51, 0, 0.6);
  border: 1px solid rgba(220, 194, 142, 0.5);
  color: #F6F1E6;
  font-size: clamp(12.5px, 0.76vw, 14px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.suggestions button:hover, .suggestions button[aria-pressed="true"] {
  background: var(--brand-green);
  border-color: var(--brand-gold);
}
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.picker-col { display: flex; flex-direction: column; gap: 6px; }
.request label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.date-control { position: relative; display: flex; align-items: center; }
.request input {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 8px 48px 8px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(220, 194, 142, 0.4);
  color: #F6F1E6;
  color-scheme: dark;
  font-family: var(--font-mono);
  font-size: 14px;
}
.request input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.date-control button {
  position: absolute;
  right: 5px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(220, 194, 142, 0.14);
  color: var(--brand-gold-hi);
  cursor: pointer;
}
.date-control .date-icon { width: 20px; height: 20px; }
#picker-help { font-size: 13px; color: var(--brand-gold-hi); }
a#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #EAD8AA 0%, #D4B678 100%);
  color: #10200F;
  font-size: clamp(13.5px, 0.84vw, 15.5px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
a#contact:hover { filter: brightness(1.05); transform: translateY(-1px); }
.request small { font-size: 13px; line-height: 1.45; color: var(--fg-3); }
.print-contact { display: none; }

/* ---------- Presentation controls ---------- */
.controls {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 2.2vh, 24px);
  z-index: 30;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(4, 16, 9, 0.92);
  border: 1px solid rgba(220, 194, 142, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  color: #F6F1E6;
}
.controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #F6F1E6;
  cursor: pointer;
}
.controls button:hover { background: rgba(220, 194, 142, 0.14); }
#counter {
  min-width: 56px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
#play {
  margin-left: 4px;
  padding-left: 16px;
  border-left: 1px solid rgba(220, 194, 142, 0.35);
  border-radius: 0 999px 999px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--brand-gold-hi);
  white-space: nowrap;
}
.controls button:focus-visible, a:focus-visible, input:focus-visible, .suggestions button:focus-visible, .date-control button:focus-visible {
  outline: 3px solid var(--brand-gold-hi);
  outline-offset: 2px;
}
.theme-cream a:focus-visible { outline-color: #0F4527; }

/* ---------- Shorter landscape screens ---------- */
@media (min-width: 901px) and (max-height: 820px) {
  .brand-sub small, .source-row, .journey-rail small { display: none; }
  .slide-head { padding-bottom: 10px; }
  .split { padding-top: 10px; }
  .kicker { margin-bottom: 8px; font-size: 11.5px; }
  h2 { font-size: clamp(28px, 5.4vh, 44px); }
  .lead { margin-top: 8px; font-size: 15px; line-height: 1.45; }
  .num-badge { width: 32px; height: 32px; font-size: 13px; }
  .pillars, .notes { gap: 8px; margin-top: 12px; }
  .pillar, .note { gap: 14px; padding: 10px 16px; }
  .pillar h3, .note b, .journey-card h3, .phase h3 { font-size: 17.5px; }
  .pillar h3 { margin-bottom: 3px; }
  .pillar p, .note p, .journey-card p, .phase > p, .work-photo figcaption p, .partner-quote, .request > p { font-size: 13.5px; line-height: 1.42; }
  .work-photo, .brand-roster { width: min(100%, calc(44vh * 4 / 3)); }
  .work-photo figcaption { padding: 10px 16px; }
  .roster-label { margin-bottom: 6px; font-size: 11.5px; }
  .brand-roster ul { gap: 6px; }
  .brand-roster li { padding: 4px 9px; font-size: 12.5px; }
  .journey-head, .proof-head, .exec-head { padding-top: 12px; }
  .journey-rail { margin-top: 14px; }
  .journey-rail::before { top: 19px; }
  .rail-icon { width: 40px; height: 40px; font-size: 18px; }
  .journey-rail b { font-size: 12px; }
  .journey-grid, .phases { margin-top: 14px; }
  .journey-card, .phase { gap: 8px; padding: 14px 16px; }
  .card-foot { padding-top: 10px; font-size: 11.5px; letter-spacing: 0.06em; }
  .deliverables { gap: 6px; padding-top: 10px; }
  .deliverables li { font-size: 13px; }
  .exec-strip { margin-top: 10px; padding: 10px 16px; }
  .partner-card { margin-top: 14px; padding: 14px; }
  .request { gap: 8px; padding: 16px 20px; }
  .request h3 { font-size: 28px; }
}

/* ---------- Tablet & phone: stacked, scrollable slides ---------- */
@media (max-width: 900px) {
  #deck { height: auto; overflow: visible; }
  .slide {
    height: auto;
    min-height: 100svh;
    padding: 18px 20px 104px;
    overflow: visible;
  }
  .slide-head { flex-wrap: wrap; gap: 12px; }
  .brand-lockup { flex-wrap: wrap; gap: 10px; }
  .brand-sub { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .logo-plate img { height: auto; width: min(100%, 340px); }
  .brand-sub { white-space: normal; }
  .head-section { display: none; }
  .journey-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .journey-rail::before { display: none; }
  .split, .split-wide-visual, .close-grid, .journey-grid, .phases, .exec-strip,
  .journey-head, .proof-head, .exec-head { grid-template-columns: 1fr; }
  .split, .close-grid { gap: 28px; }
  h2 { max-width: none; }
  h1 br, h2 br { display: none; }
  .slide.cover { grid-template-columns: 1fr; padding: 0 0 104px; }
  .hero-copy { padding: 28px 20px 8px; }
  .logo-plate-xl img { width: min(100%, 560px); }
  .hero-stage {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 20px 20px;
    border-left: 0;
    background: none;
  }
  .stage-photo, .stage-browser, .stage-eq { position: relative; inset: auto; transform: none; }
  .stage-photo { height: auto; border-radius: 14px; border: 1px solid rgba(220, 194, 142, 0.45); }
  .stage-photo img { aspect-ratio: 851 / 315; height: auto; }
  .stage-photo figcaption { top: auto; bottom: 10px; left: 10px; font-size: 11px; padding: 7px 12px; }
  .stage-photo figcaption span { font-size: 12px; }
  .stage-browser { left: auto; top: auto; width: 100%; }
  .stage-eq { display: none; }
  .work-photo, .brand-roster, .showcase-browser, .visual-caption { width: 100%; }
  .comparison { flex-direction: column; }
  .case { width: 100%; }
  .case-viewport { height: auto; width: 100%; }
  .compare-arrow { transform: rotate(90deg); margin: 0; }
  .partner-card { grid-template-columns: 1fr; }
  .picker-grid, .suggestions { grid-template-columns: 1fr; }
  .card-foot { flex-direction: column; }
  .card-foot b { text-align: left; }
  .page { bottom: 72px; }
}

@media (max-width: 520px) {
  .browser-tag { display: none; }
  .cover-address { letter-spacing: 0.14em; }
  .brand-sub { font-size: 11px; }
  .controls { bottom: 10px; }
  #play { padding-left: 10px; }
}

/* ---------- Print: one slide per landscape page, light paper ---------- */
@media print {
  @page { size: letter landscape; margin: 0.3in; }
  html, body { background: #FFFFFF; color: #111A14; }
  #deck { height: auto; overflow: visible; }
  .slide, .slide.cover, .slide.active, .slide.cover.active {
    display: flex !important;
    flex-direction: column;
    height: 7.6in;
    min-height: 0;
    padding: 0.25in 0.3in;
    overflow: hidden;
    break-after: page;
    page-break-after: always;
    background: #FFFFFF;
    color: #111A14;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    --fg: #111A14;
    --fg-2: #2B3830;
    --fg-3: #34423A;
    --accent-text: #4C3810;
    --em: #0F4527;
    --rule: rgba(14, 26, 19, 0.2);
    --card-bg: #FAF7F0;
    --card-border: rgba(14, 26, 19, 0.18);
    --card-shadow: none;
  }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .slide.cover, .slide.cover.active { flex-direction: row; padding: 0; }
  .hero-copy { flex: 1.1; padding: 0.3in; }
  .cover-address { color: #4C3810; }
  .logo-plate, .logo-plate-xl { box-shadow: none; }
  .logo-plate-xl img { width: 4.2in; }
  .cover h1 { font-size: 34pt; }
  .hero-stage { flex: 0.9; background: #FFFFFF; border-left: 0; }
  .stage-eq, .controls, .page, .screen-request, .compare-arrow { display: none !important; }
  .phase-featured { --fg: #111A14; --fg-2: #2B3830; --accent-text: #4C3810; background: #FAF7F0; }
  .phase-featured h3 { color: #111A14; }
  .request { background: #FAF7F0; border-color: rgba(14, 26, 19, 0.2); box-shadow: none; }
  .chip, .partner-contact a { background: #FAF7F0; color: #111A14; border-color: rgba(14, 26, 19, 0.25); }
  .print-contact { display: block; margin-top: 10pt; font-size: 12pt; font-weight: 700; color: #111A14; }
}
