/* Almost Everything Auto Body Repair & Paint — Brandcore website proposal
   Brand system taken from the client's own artwork: AE red #C2000A, white, black.
   Two slide themes (carbon / paper) each define their own inks, so every text colour is
   chosen against the background it actually sits on (WCAG AAA: 7:1 body, 4.5:1 large). */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-500-normal.woff2') format('woff2');
  font-weight: 300 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: 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 {
  --ae-red: #C2000A;        /* exact red of the AE mark and banner */
  --ae-red-deep: #9A0008;   /* fills behind small white text (8.8:1) */
  --carbon: #0E0F12;
  --paper: #F6F3EE;

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --pad-x: clamp(28px, 3.75vw, 72px);
  --pad-top: clamp(20px, 3.4vh, 40px);
  --pad-bottom: clamp(76px, 9vh, 100px);
  --gap: clamp(28px, 3.3vw, 64px);
  --radius: 14px;

  --fs-h1: clamp(36px, 3.2vw, 62px);
  --fs-h2: clamp(30px, 2.55vw, 50px);
  --fs-lead: clamp(16.5px, 1.08vw, 21px);
  --fs-h3: clamp(19px, 1.22vw, 24px);
  --fs-body: clamp(15px, 0.92vw, 18px);
  --fs-label: clamp(12px, 0.7vw, 14px);
}

/* Theme inks — measured contrast in comments */
.slide.dark {
  --bg: var(--carbon);
  --surface: #17191E;
  --surface-2: #1F2229;
  --ink: #FFFFFF;             /* 19.6:1 */
  --ink-2: #D3D7DD;           /* 13.4:1 */
  --ink-3: #B4BAC3;           /* 9.8:1 bg, 9.0:1 surface */
  --accent-large: #FF4A52;    /* 5.8:1, headline-size text only */
  --label: #FFFFFF;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
}
.slide.paper {
  --bg: var(--paper);
  --surface: #FFFFFF;
  --surface-2: #EFEAE2;
  --ink: #111216;             /* 17.3:1 */
  --ink-2: #33373E;           /* 11.0:1 */
  --ink-3: #4A4F57;           /* 7.5:1 bg, 8.3:1 surface */
  --accent-large: #C2000A;    /* 5.8:1, headline-size text only */
  --label: #9A0008;           /* 8.0:1 small red text */
  --line: rgba(17, 18, 22, 0.13);
  --shadow: 0 22px 50px -26px rgba(17, 18, 22, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--carbon);
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow: hidden; }
button, a, input { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
p, li, figcaption { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
ul { padding: 0; list-style: none; }

/* ---------- Slide frame ---------- */
.deck { position: relative; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; }
.slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: clamp(18px, 2.6vh, 32px);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
.slide.active { display: grid; }
.slide.dark {
  background:
    radial-gradient(1200px 700px at 88% -10%, rgba(194, 0, 10, 0.16), transparent 60%),
    var(--carbon);
}
.slide.paper {
  background:
    linear-gradient(90deg, var(--ae-red) 0 6px, transparent 6px),
    var(--paper);
}

/* ---------- Header ---------- */
.slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(14px, 2vh, 22px);
  border-bottom: 1px solid var(--line);
}
.header-brand { display: flex; align-items: center; gap: clamp(14px, 1.2vw, 22px); min-width: 0; }

.logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: clamp(48px, 5.8vh, 62px);
  padding: 0 clamp(14px, 1.05vw, 20px);
  border-radius: 8px;
  background: var(--ae-red);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 26px -14px rgba(154, 0, 8, 0.8);
}
.logo-plate img {
  display: block;
  height: 68%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.header-wordmark { display: flex; flex-direction: column; gap: 4px; line-height: 1.15; min-width: 0; }
.header-wordmark b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.02vw, 19.5px);
  letter-spacing: -0.005em;
  color: var(--ink);
}
.header-wordmark small {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.header-meta {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.header-meta b { color: var(--ink); font-weight: 800; }

/* ---------- Type ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); line-height: 1.04; }
h2 { font-size: var(--fs-h2); line-height: 1.07; }
h1 em, h2 em { font-style: normal; color: var(--accent-large); }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}
.bar { display: block; flex-shrink: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--ae-red); }
.dark .bar { background: #FF4A52; }

/* Number badges: own deep-red fill, white digits (8.8:1) on any theme */
.pillar-num, .c-num, .step-num, .exec-phase-num {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  min-width: clamp(38px, 2.4vw, 46px);
  height: clamp(38px, 2.4vw, 46px);
  padding: 0 8px;
  border-radius: 9px;
  background: var(--ae-red-deep);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(14px, 0.86vw, 17px);
  letter-spacing: 0.04em;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(11.5px, 0.66vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.tag-dark { background: #000000; }
.tag-red { background: var(--ae-red-deep); }

.source, .slide-foot {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.source { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.source:hover { color: var(--ink); }
.slide-foot {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(26px, 3.6vh, 40px);
  max-width: calc(50% - var(--pad-x) - 190px);
  line-height: 1.4;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--gap);
  align-items: center;
  min-height: 0;
}
.narrative-col { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); min-width: 0; }

/* ---------- Slide 1: Cover ---------- */
.cover { grid-template-rows: auto minmax(0, 1fr); }
.cover-topbar { display: flex; justify-content: space-between; align-items: center; }
.topbar-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--gap);
  min-height: 0;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 2.3vh, 26px); min-width: 0; }
.cover-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cover-plate {
  height: clamp(80px, 10.6vh, 116px);
  padding: 0 clamp(16px, 1.3vw, 26px);
  border-radius: 12px;
  max-width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 26px 50px -22px rgba(194, 0, 10, 0.75);
}
.cover-sublabel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.cover-sublabel b {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(17px, 1.3vw, 25px); letter-spacing: -0.01em; color: #FFFFFF;
}
.cover-sublabel small {
  font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-label);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.fact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fact-row li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: clamp(13px, 0.8vw, 15.5px);
  color: #FFFFFF;
}
.fact-row svg, .partner-pill svg {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.fact-row svg { color: #FF4A52; }
.prepared { font-size: var(--fs-body); color: var(--ink-3); }
.prepared b { color: #FFFFFF; }

.hero-visual { position: relative; min-height: 0; display: flex; padding: 26px 26px 0 0; }
#scene {
  position: absolute;
  inset: -8% -6% -4% -10%;
  width: 116%;
  height: 112%;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
#scene[data-webgl="unavailable"] { display: none; }
.shop-frame {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(194, 0, 10, 0.14);
}
.shop-photo { position: relative; flex: 1; min-height: 0; }
.shop-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 38% 58%;
  display: block; opacity: 1; filter: none;
}
.shop-frame figcaption {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: clamp(12px, 1.6vh, 18px) clamp(16px, 1.3vw, 24px);
  background: #000000;
  font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-label);
  letter-spacing: 0.06em; color: #D3D7DD;
}
.shop-frame figcaption b { margin-right: 10px; color: #FFFFFF; text-transform: uppercase; letter-spacing: 0.12em; }
.mini-browser {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 40%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--carbon);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.85);
}
.mini-bar {
  display: flex; align-items: center; gap: 6px;
  height: clamp(24px, 2.6vh, 30px);
  padding: 0 12px;
  background: #1F2229;
}
.mini-bar i { width: 9px; height: 9px; border-radius: 50%; background: #5A5F68; }
.mini-bar i:first-child { background: #FF5F57; }
.mini-bar span {
  margin-left: 10px;
  font-family: var(--font-mono); font-weight: 600; font-size: 12px; color: #D3D7DD;
}
.mini-browser img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; }

/* ---------- Slide 2: Foundation ---------- */
.foundation-grid { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); }
.pillars { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.pillar-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: clamp(14px, 1.9vh, 20px) clamp(16px, 1.2vw, 22px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pillar-card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.01em; color: var(--ink); }
.pillar-card p { margin-top: 5px; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-3); }
.proof-col { display: flex; flex-direction: column; gap: clamp(12px, 1.8vh, 18px); min-width: 0; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-pair figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.9;
  background: #000;
  box-shadow: var(--shadow);
}
.ba-pair img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; display: block; opacity: 1; filter: none; }
.ba-pair img.focus-right { object-position: 68% 60%; }
.ba-pair figcaption { position: absolute; left: 12px; top: 12px; }
.ba-caption { font-size: var(--fs-body); line-height: 1.5; color: var(--ink-3); }
.ba-caption b { color: var(--ink); }
.award-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.award-row li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--carbon);
}
.award-row b { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.2vw, 23px); color: #FFFFFF; }
.award-row span { font-size: clamp(13px, 0.8vw, 15.5px); line-height: 1.35; color: #D3D7DD; }

/* ---------- Slide 3: Journey ---------- */
.journey { grid-template-rows: auto auto minmax(0, 1fr); }
.journey-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: var(--gap);
  row-gap: 14px;
  align-items: end;
}
.journey-head .kicker { grid-column: 1 / -1; }
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 28px);
  align-content: center;
  min-height: 0;
}
.journey-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.journey-photo {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 10.4;
  min-height: 0;
  overflow: hidden;
  background: #000;
  border-bottom: 3px solid #FF4A52;
}
.journey-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; opacity: 1; filter: none; }
.journey-photo.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 3px; }
.journey-photo.mosaic > img { position: static; min-height: 0; }
.journey-photo figcaption { position: absolute; left: 12px; top: 12px; }
.journey-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.4vh, 26px) clamp(20px, 1.5vw, 28px) clamp(20px, 2.6vh, 28px); }
.journey-top { display: flex; align-items: center; gap: 14px; }
.step-label {
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.journey-card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.01em; color: var(--ink); }
.journey-card p { font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); }

/* ---------- Slide 4: Website ---------- */
.website-grid { grid-template-columns: minmax(0, 1fr) auto; }
.concept-notes { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 20px); margin-top: 6px; }
.concept-note-item { display: flex; gap: 18px; align-items: flex-start; }
.concept-note-item b { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.01em; color: var(--ink); }
.concept-note-item p { margin-top: 4px; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-3); max-width: 46ch; }
.mockup-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.device-row { display: flex; align-items: flex-end; gap: clamp(16px, 1.5vw, 28px); }
.phone-frame {
  flex-shrink: 0;
  height: clamp(380px, 56vh, 600px);
  aspect-ratio: 410 / 864;
  padding: 10px;
  border-radius: 36px;
  background: var(--carbon);
  border: 1px solid rgba(17, 18, 22, 0.3);
  box-shadow: 0 46px 90px -40px rgba(17, 18, 22, 0.7), inset 0 0 0 2px #2A2E36;
}
.phone-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 27px; opacity: 1; filter: none; }
.browser-window {
  width: calc(clamp(300px, 42vh, 440px) * 16 / 9);
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--carbon);
  border: 1px solid rgba(17, 18, 22, 0.25);
  box-shadow: 0 46px 90px -40px rgba(17, 18, 22, 0.65), 0 0 0 8px rgba(17, 18, 22, 0.05);
}
.browser-bar {
  display: flex; align-items: center; gap: 16px;
  height: clamp(34px, 3.8vh, 42px);
  padding: 0 16px;
  background: #1F2229;
}
.browser-dots { display: flex; gap: 7px; }
.b-dot { width: 11px; height: 11px; border-radius: 50%; background: #5A5F68; }
.b-dot.red { background: #FF5F57; }
.b-dot.yellow { background: #FEBC2E; }
.b-dot.green { background: #28C840; }
.browser-url {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 12px;
  border-radius: 6px;
  background: #0E0F12;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: #D3D7DD;
}
.ui-icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mock-hero-stage {
  position: relative;
  width: 100%;
  height: clamp(300px, 42vh, 440px);
  overflow: hidden;
  background: var(--carbon);
}
.mock-hero-stage img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block; opacity: 1; filter: none;
}
.mockup-caption {
  font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-label);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  text-align: center;
}

/* ---------- Slide 5: UFG before & after ---------- */
.proof { grid-template-rows: auto auto minmax(0, 1fr); }
.proof-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--gap);
  row-gap: 14px;
  align-items: end;
}
.proof-head .kicker { grid-column: 1 / -1; }
.comparison {
  display: grid;
  grid-template-columns: minmax(0, calc(clamp(280px, 38vh, 400px) * 16 / 10)) auto minmax(0, calc(clamp(280px, 38vh, 400px) * 16 / 10));
  justify-content: center;
  align-content: center;
  align-items: center;
  gap: clamp(16px, 1.6vw, 30px);
  min-height: 0;
}
.case-connector {
  display: grid; place-items: center;
  width: clamp(48px, 3.3vw, 62px); height: clamp(48px, 3.3vw, 62px);
  border-radius: 50%;
  background: var(--ae-red-deep);
  color: #FFFFFF;
  box-shadow: 0 0 0 8px rgba(194, 0, 10, 0.16), 0 18px 36px -14px rgba(0, 0, 0, 0.8);
}
.case-connector svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nowrap { white-space: nowrap; }
.case-frame {
  display: flex; flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.case-bar {
  display: flex; align-items: center; gap: 14px;
  height: clamp(36px, 4vh, 44px);
  padding: 0 14px;
  background: #1F2229;
}
.case-url { flex: 1; font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: #D3D7DD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-viewport {
  position: relative;
  width: 100%;
  height: clamp(280px, 38vh, 400px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090D12;
}
.case-viewport img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transform: scale(1.035); transform-origin: center top;
  display: block; opacity: 1; filter: none;
}
.case-frame figcaption {
  padding: 14px 18px;
  font-size: var(--fs-body); line-height: 1.45; color: var(--ink-2);
}

/* ---------- Slide 6: Roadmap ---------- */
.execution-slide { grid-template-rows: auto minmax(0, 1fr) auto auto auto minmax(0, 1fr); }
.execution-slide .slide-head { grid-row: 1; }
.execution-slide .exec-head { grid-row: 3; }
.execution-slide .exec-cards-grid { grid-row: 4; }
.execution-slide .exec-footer-bar { grid-row: 5; }
.exec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--gap);
  align-items: end;
}
.exec-head > div { display: flex; flex-direction: column; gap: clamp(12px, 1.8vh, 20px); }
.exec-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 28px);
  align-content: center;
  min-height: 0;
}
.exec-phase-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(20px, 2.6vh, 30px) clamp(20px, 1.5vw, 28px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.exec-phase-card.featured { background: var(--carbon); border-color: var(--carbon); }
.exec-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.exec-duration-pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-family: var(--font-mono); font-weight: 800; font-size: var(--fs-label);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.exec-big { display: flex; align-items: flex-end; gap: 10px; margin-top: 4px; }
.exec-big b {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 4.8vw, 92px); line-height: 0.9; letter-spacing: -0.045em;
  color: var(--accent-large);
}
.exec-big span {
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(14px, 0.9vw, 17px);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.exec-phase-card.featured .exec-big b { color: #FF4A52; }
.exec-phase-card.featured .exec-big span { color: #D3D7DD; }
.exec-phase-card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.exec-phase-card > p { font-size: var(--fs-body); line-height: 1.5; color: var(--ink-3); }
.exec-deliverables { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.exec-deliverables li { position: relative; padding-left: 22px; font-size: var(--fs-body); line-height: 1.42; color: var(--ink-2); }
.exec-deliverables li::before {
  content: '';
  position: absolute; left: 2px; top: 0.5em;
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--ae-red);
}
.exec-phase-card.featured h3, .exec-phase-card.featured .exec-deliverables li { color: #FFFFFF; }
.exec-phase-card.featured > p { color: #D3D7DD; }
.exec-phase-card.featured .exec-duration-pill { background: #2A2E36; color: #FFFFFF; }
.exec-phase-card.featured .exec-deliverables { border-top-color: rgba(255, 255, 255, 0.16); }
.exec-phase-card.featured .exec-deliverables li::before { background: #FF4A52; }
.exec-footer-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 20px;
  margin-bottom: clamp(0px, 1vh, 8px);
  border-radius: 12px;
  background: var(--surface-2);
  font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-label);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.exec-footer-bar b { margin-left: 8px; color: var(--ink); font-weight: 800; }

/* ---------- Slide 7: Close ---------- */
.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: var(--gap);
  align-items: center;
  min-height: 0;
}
.partner-card {
  display: grid;
  grid-template-columns: clamp(112px, 7.3vw, 140px) minmax(0, 1fr);
  gap: 16px clamp(18px, 1.5vw, 26px);
  align-items: start;
  margin-top: 6px;
  padding: clamp(18px, 2.4vh, 26px);
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.partner-avatar-wrap {
  width: clamp(112px, 7.3vw, 140px);
  height: clamp(112px, 7.3vw, 140px);
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
}
.partner-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; opacity: 1; filter: none; }
.partner-details { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.partner-meta-kicker {
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.partner-name-heading { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 1.75vw, 34px); letter-spacing: -0.02em; color: #FFFFFF; }
.partner-role-sub { font-weight: 700; font-size: var(--fs-body); color: var(--ink-3); }
.partner-quote { margin-top: 6px; font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); }
.partner-contact-pills { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.partner-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  font-weight: 700; font-size: clamp(13.5px, 0.84vw, 16px); color: #FFFFFF;
}
.partner-pill svg { color: #FF4A52; }

.next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.next-steps li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.next-steps div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.next-steps b { font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.05vw, 20px); color: var(--ink); }
.next-steps small { font-size: clamp(13px, 0.8vw, 15.5px); line-height: 1.35; color: var(--ink-3); }
.request {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 3vh, 34px) clamp(22px, 1.8vw, 34px);
  border-radius: 18px;
  background: var(--paper);
  color: #111216;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.9);
}
.request .kicker { color: #9A0008; }
.request .bar { background: var(--ae-red); }
.request h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 2.6vw, 50px); letter-spacing: -0.03em; line-height: 1; color: #111216; }
.request > p { font-size: var(--fs-body); line-height: 1.5; color: #33373E; }
.request small { font-size: clamp(13px, 0.78vw, 15px); line-height: 1.45; color: #4A4F57; }
.screen-request { display: flex; flex-direction: column; gap: 14px; }
.suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.suggestions button {
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #111216;
  background: #FFFFFF;
  color: #111216;
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(12.5px, 0.74vw, 14.5px);
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.suggestions button:hover, .suggestions button:focus-visible { background: #111216; color: #FFFFFF; }
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.picker-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.picker-col label { font-weight: 700; font-size: clamp(13px, 0.78vw, 15px); color: #33373E; }
.date-control { position: relative; display: block; }
.date-control input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(17, 18, 22, 0.35);
  background: #FFFFFF;
  color: #111216;
  font-size: 16px;
  color-scheme: light;
}
.date-control input::-webkit-calendar-picker-indicator { opacity: 0; }
.date-control button {
  position: absolute; right: 4px; top: 4px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px;
  background: transparent;
  color: #111216;
  cursor: pointer;
}
.date-control button:hover { background: #EFEAE2; }
.date-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#picker-help { font-size: 14px; color: #33373E; }
#contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--ae-red-deep);
  color: #FFFFFF;
  font-family: var(--font-mono); font-weight: 800; font-size: clamp(13.5px, 0.82vw, 16px);
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 16px 30px -16px rgba(154, 0, 8, 0.9);
}
#contact:hover, #contact:focus-visible { background: #7A0006; }
#contact .ui-icon { width: 1.2em; height: 1.2em; }
.print-contact { display: none; }

/* ---------- Controls ---------- */
.controls {
  position: fixed;
  left: 50%;
  bottom: clamp(18px, 2.6vh, 28px);
  transform: translateX(-50%);
  z-index: 20;
  display: flex; align-items: center; gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(14, 15, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}
.controls button {
  display: inline-grid; place-items: center;
  height: 42px; min-width: 42px;
  padding: 0 12px;
  border: 0; border-radius: 999px;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
}
.controls button:hover, .controls button:focus-visible { background: #2A2E36; }
.controls .ui-icon { width: 20px; height: 20px; }
#counter {
  min-width: 64px; text-align: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; color: #FFFFFF;
}
#play {
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0 999px 999px 0;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; color: #FFFFFF;
}
:focus-visible { outline: 3px solid #FF4A52; outline-offset: 3px; }
.paper :focus-visible { outline-color: #9A0008; }

/* ---------- Compact desktop / tablet: let a slide scroll instead of clipping ---------- */
@media screen and (max-width: 1180px), screen and (max-height: 700px) {
  .deck { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
  .slide { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
  .slide-foot { position: static; max-width: none; }
}
@media screen and (max-width: 1180px) {
  .cover-grid, .split, .foundation-grid, .website-grid, .close-grid, .exec-head, .proof-head, .journey-head { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 520px; }
  .journey-grid, .exec-cards-grid { grid-template-columns: minmax(0, 1fr); }
  .comparison { grid-template-columns: minmax(0, 1fr); }
  .case-connector { justify-self: center; transform: rotate(90deg); }
  .case-viewport { height: auto; }
  .browser-window { width: 100%; }
  .mock-hero-stage { height: auto; aspect-ratio: 16 / 9; }
  .device-row { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Phone ---------- */
@media screen and (max-width: 700px) {
  body { height: 100dvh; padding-top: 68px; }
  .deck { height: calc(100dvh - 68px); }
  .slide { min-height: calc(100dvh - 68px); padding: 20px 18px 36px; }
  .controls { top: 10px; bottom: auto; }
  .slide-head { flex-wrap: wrap; gap: 12px; }
  .logo-plate { height: 46px; }
  .cover-plate { height: 66px; }
  .header-meta { font-size: 12px; }
  .hero-visual { min-height: 0; flex-direction: column; padding: 0; gap: 14px; }
  .shop-photo { aspect-ratio: 4 / 3; flex: none; }
  .mini-browser { position: relative; width: 100%; }
  #scene { display: none; }
  .ba-pair, .award-row, .suggestions, .picker-grid, .exec-footer-bar, .next-steps { grid-template-columns: minmax(0, 1fr); }
  .partner-card { grid-template-columns: 112px minmax(0, 1fr); }
  .phone-frame { height: 520px; }
  .request input, .request a, .suggestions button { scroll-margin-block: 20px; }
}

/* ---------- Print: one slide per landscape page ---------- */
@media print {
  @page { size: 16in 9in; margin: 0; }
  html, body { overflow: visible; height: auto; background: #FFFFFF; }
  .deck { height: auto; overflow: visible; }
  .slide, .slide.active {
    display: grid !important;
    width: 16in; height: 9in;
    padding: 0.45in 0.7in;
    break-after: page;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .controls, #scene, .screen-request { display: none !important; }
  .print-contact { display: block; font-size: 13pt; font-weight: 700; color: #111216; }
  .slide-foot { position: static; }
}

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