/* ==========================================================================
   Jefferson State Cabinet Company · Brandcore sales deck
   One stylesheet, two surfaces: Walnut (dark) and Linen (light).
   Palette is drawn from the client's own logo: charcoal ink #424244,
   bronze "Cabinet Company" #8A6642 and the beige cabinet line #E4D8CC.
   Every text token below meets WCAG AAA (7:1) on the surface it is used on.
   ========================================================================== */

@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/source-serif-4-600.woff2') format('woff2');
  font-weight: 600;
  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;
}

:root {
  /* Brand, sampled from assets/client-logo.png */
  --logo-ink: #424244;
  --logo-bronze: #8A6642;
  --logo-beige: #E4D8CC;
  --logo-plate: #FFFFFF;

  /* Walnut surface */
  --walnut-950: #0D0907;
  --walnut-900: #16100C;
  --walnut-850: #1F1813;
  --walnut-800: #2A2019;
  --ivory: #F8F2EA;      /* 17.4:1 on walnut-900 */
  --ivory-2: #E6DACB;    /* 13.6:1 */
  --ivory-3: #CDBDA9;    /*  9.9:1 */
  --brass: #DDB683;      /*  9.9:1 */

  /* Linen surface */
  --linen: #F5EEE4;
  --linen-2: #ECE2D4;
  --paper: #FFFCF7;
  --ink: #1A140F;        /* 16.6:1 on linen */
  --ink-2: #3A2F26;      /* 11.3:1 */
  --ink-3: #4F4135;      /*  8.5:1 */
  --bronze-ink: #66411D; /*  7.8:1 on linen, 8.6:1 on paper */
  --bronze-head: #6E4A26;

  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  --plate-h: clamp(56px, 8.3cqh, 76px);
  --pad-x: clamp(36px, 3.9cqw, 64px);
  --pad-t: clamp(20px, 3.6cqh, 34px);
  --pad-b: clamp(26px, 4.6cqh, 42px);
  --gap: clamp(14px, 2.8cqh, 28px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: radial-gradient(1400px 900px at 50% 28%, #241A13 0%, #0D0907 70%) fixed, #0D0907;
  color: var(--ivory);
}

img { max-width: 100%; }

p, li, small, figcaption span, .lead { text-wrap: pretty; }

.ui-icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Themes
   -------------------------------------------------------------------------- */
.theme-walnut {
  --bg: var(--walnut-900);
  --surface: var(--walnut-850);
  --surface-2: var(--walnut-800);
  --line: rgba(236, 220, 198, 0.16);
  --line-strong: rgba(221, 182, 131, 0.5);
  --text: var(--ivory);
  --text-2: var(--ivory-2);
  --text-3: var(--ivory-3);
  --accent-text: var(--brass);
  --accent-head: var(--brass);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  background-color: var(--walnut-900);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(221, 182, 131, 0.10), transparent 62%),
    radial-gradient(900px 600px at -10% 110%, rgba(138, 102, 66, 0.12), transparent 60%);
  color: var(--text);
}

.theme-linen {
  --bg: var(--linen);
  --surface: var(--paper);
  --surface-2: var(--linen-2);
  --line: rgba(58, 40, 22, 0.15);
  --line-strong: rgba(102, 65, 29, 0.55);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --accent-text: var(--bronze-ink);
  --accent-head: var(--bronze-head);
  --shadow: 0 22px 50px rgba(60, 40, 20, 0.12);
  background-color: var(--linen);
  background-image:
    radial-gradient(1000px 640px at 100% 0%, rgba(255, 252, 247, 0.9), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(228, 216, 204, 0.55), transparent 60%);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Desktop presentation frame
   -------------------------------------------------------------------------- */
@media screen and (min-width: 701px) {
  html, body { height: 100%; overflow: hidden; }

  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .deck {
    position: relative;
    flex: none;
    width: min(96vw, 1640px);
    height: min(920px, calc(100vh - 104px));
    border-radius: 18px;
    overflow: hidden;
    container-type: size;
    background: var(--walnut-900);
    border: 1px solid rgba(236, 220, 198, 0.14);
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.5);
  }
}

/* --------------------------------------------------------------------------
   Slide scaffold
   -------------------------------------------------------------------------- */
.slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: var(--pad-t) var(--pad-x) var(--pad-b);
}

.slide.active {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  animation: slide-in 360ms cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes slide-in { from { opacity: 0; } to { opacity: 1; } }

.slide > header { flex: none; margin-bottom: auto; }
.slide:not(.cover) > :nth-last-child(2) { margin-bottom: auto; }

.page {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(10px, 1.6cqh, 16px);
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 12px/1.4 var(--sans);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  background-color: var(--bg);
}

/* Header: the client's nameplate leads every slide */
.slide > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(10px, 1.7cqh, 16px);
  border-bottom: 1px solid var(--line);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.4cqw, 22px);
  min-width: 0;
}

.header-logo-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: var(--plate-h);
  padding: 0 clamp(12px, 1.1cqw, 18px);
  border-radius: 12px;
  background: var(--logo-plate);
  border: 1px solid var(--logo-beige);
}

.theme-walnut .header-logo-pill {
  border-color: rgba(221, 182, 131, 0.7);
  box-shadow: 0 0 0 4px rgba(221, 182, 131, 0.10), 0 12px 30px rgba(0, 0, 0, 0.45);
}

.theme-linen .header-logo-pill {
  box-shadow: 0 0 0 4px rgba(138, 102, 66, 0.07), 0 10px 24px rgba(60, 40, 20, 0.10);
}

/* The header shows the primary mark; the address band is reserved for the cover,
   where it is large enough to read. Cropping is done in CSS so the source asset stays intact. */
.logo-crop {
  display: block;
  height: calc(var(--plate-h) - 14px);
  aspect-ratio: 1334 / 438;
  overflow: hidden;
}

.logo-crop img,
.cover-badge img {
  display: block;
  opacity: 1;
  filter: none;
}

.logo-crop img { width: 100%; height: auto; }

.header-wordmark {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font: 700 15px/1.2 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
}

.header-wordmark small {
  font: 600 12.5px/1.3 var(--sans);
  letter-spacing: 0.13em;
  color: var(--accent-text);
}

.header-meta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 12.5px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.header-meta b {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--accent-text);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Type */
.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 clamp(12px, 1.45cqh, 13.5px)/1.35 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.kicker::before,
.eyebrow::before {
  content: "";
  flex: none;
  width: 30px;
  height: 1.5px;
  background: currentColor;
}

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
  color: var(--text);
  text-wrap: balance;
}

h1 em, h2 em {
  font-style: normal;
  color: var(--accent-head);
}

h2 { font-size: clamp(30px, 5cqh, 46px); line-height: 1.07; }

h3 { margin: 0; }

.lead {
  margin: 0;
  max-width: 62ch;
  font: 400 clamp(16px, 2.05cqh, 19px)/1.55 var(--sans);
  color: var(--text-2);
}

.two {
  display: grid;
  align-items: center;
  min-height: 0;
}

.narrative-col {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.7cqh, 16px);
  min-width: 0;
}

/* Browser chrome shared by slides 3, 4 and 5 */
.browser-window,
.case-frame {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
}

.browser-bar,
.case-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: clamp(34px, 4.2cqh, 40px);
  padding: 0 14px;
  flex: none;
}

.browser-dots { display: inline-flex; gap: 7px; flex: none; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #E0796C; }
.browser-dots i:nth-child(2) { background: #E2B65A; }
.browser-dots i:nth-child(3) { background: #7FB27C; }

.browser-url {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  border-radius: 8px;
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-url .ui-icon { font-size: 14px; }

.browser-tag {
  flex: none;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-walnut .browser-window {
  background: #0F0B08;
  border: 1px solid rgba(236, 220, 198, 0.18);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.6);
}
.theme-walnut .browser-bar { background-color: #241B15; border-bottom: 1px solid rgba(236, 220, 198, 0.12); }
.theme-walnut .browser-url { background-color: #15100C; color: var(--ivory-2); }
.theme-walnut .browser-tag { color: var(--brass); }

.theme-linen .browser-window,
.theme-linen .case-frame {
  background: var(--paper);
  border: 1px solid #D6C8B6;
  box-shadow: 0 26px 60px rgba(60, 40, 20, 0.14), 0 2px 6px rgba(60, 40, 20, 0.06);
}
.theme-linen .browser-bar,
.theme-linen .case-bar { background-color: var(--linen-2); border-bottom: 1px solid #D6C8B6; }
.theme-linen .browser-url { background-color: var(--paper); color: var(--ink-2); }
.theme-linen .browser-tag { color: var(--bronze-ink); }

/* --------------------------------------------------------------------------
   Slide 1 · Cover
   -------------------------------------------------------------------------- */
.slide.cover.active {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  padding: 0;
}

.hero-copy {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: clamp(28px, 5.5cqh, 60px) clamp(36px, 4.6cqw, 76px);
  overflow: hidden;
  background-color: var(--linen);
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 95% at 100% 0%, #000 0%, #000 30%, transparent 64%);
  mask-image: radial-gradient(120% 95% at 100% 0%, #000 0%, #000 30%, transparent 64%);
}

#scene[data-webgl="unavailable"] { display: none; }

.hero-copy-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 2.3cqh, 22px);
  max-width: 780px;
}

.cover-badge {
  display: inline-flex;
  margin-bottom: clamp(4px, 1cqh, 10px);
  padding: clamp(10px, 1.7cqh, 18px) clamp(14px, 2cqh, 22px);
  border-radius: 16px;
  background: var(--logo-plate);
  border: 1px solid var(--logo-beige);
  box-shadow: 0 0 0 6px rgba(138, 102, 66, 0.06), 0 24px 54px rgba(60, 40, 20, 0.16), 0 2px 6px rgba(60, 40, 20, 0.08);
}

.cover-badge img {
  height: clamp(92px, 15.6cqh, 148px);
  width: auto;
}

.cover h1 {
  font-size: clamp(36px, 6cqh, 56px);
  line-height: 1.05;
}

.cover .lead { max-width: 58ch; }

.cover-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  margin: clamp(2px, 0.6cqh, 6px) 0 0;
  padding: clamp(12px, 1.8cqh, 16px) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cover-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: clamp(16px, 1.8cqw, 28px);
  margin-right: clamp(16px, 1.8cqw, 28px);
  border-right: 1px solid var(--line);
}

.cover-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.cover-facts .ui-icon {
  font-size: 22px;
  color: var(--bronze-ink);
  stroke-width: 1.6;
}

.cover-facts span { display: flex; flex-direction: column; gap: 2px; }

.cover-facts small {
  font: 700 12px/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.cover-facts b {
  font: 700 clamp(15px, 1.8cqh, 17px)/1.25 var(--sans);
  color: var(--ink);
  white-space: nowrap;
}

.cover-subnote {
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background-color: var(--walnut-900);
}

.hero-photo {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
  transform: scale(1.12);
  transform-origin: 54% 40%;
  opacity: 1;
  filter: none;
}

.hero-photo figcaption {
  position: absolute;
  left: clamp(18px, 2cqw, 28px);
  bottom: clamp(18px, 3cqh, 28px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px 12px 18px;
  border-radius: 12px;
  background-color: var(--paper);
  border-left: 3px solid var(--logo-bronze);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.hero-photo figcaption b {
  font: 700 15px/1.25 var(--sans);
  color: var(--ink);
}

.hero-photo figcaption span {
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.cover .page {
  color: var(--ivory-2);
  background-color: var(--walnut-900);
}

/* --------------------------------------------------------------------------
   Slide 2 · The foundation
   -------------------------------------------------------------------------- */
.foundation-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
  gap: clamp(32px, 4.2cqw, 68px);
}

.narrative-pillars {
  display: flex;
  flex-direction: column;
  margin-top: clamp(2px, 0.6cqh, 6px);
}

.pillar-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: clamp(10px, 1.7cqh, 16px) 0;
  border-top: 1px solid var(--line);
}

.pillar-num,
.c-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  font: 700 15px/1 var(--sans);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
  background-color: var(--bg);
}

.pillar-content h3 {
  font: 700 clamp(19px, 2.4cqh, 22px)/1.25 var(--sans);
  color: var(--text);
}

.pillar-content p {
  margin: 5px 0 0;
  font: 400 clamp(16px, 1.95cqh, 17.5px)/1.5 var(--sans);
  color: var(--text-2);
}

.craft-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--surface);
  border: 1px solid rgba(221, 182, 131, 0.32);
  box-shadow: var(--shadow);
}

.craft-photo {
  height: clamp(250px, 51cqh, 480px);
  overflow: hidden;
  background-color: var(--walnut-950);
}

.craft-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 46%;
  transform: scale(1.32);
  transform-origin: 36% 44%;
  opacity: 1;
  filter: none;
}

.craft-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(221, 182, 131, 0.32);
}

.craft-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(14px, 2cqh, 20px) clamp(14px, 1.4cqw, 22px);
  border-left: 1px solid var(--line);
}

.craft-stats div:first-child { border-left: 0; }

.craft-stats b {
  font: 600 clamp(20px, 2.8cqh, 26px)/1.1 var(--serif);
  color: var(--brass);
  white-space: nowrap;
}

.craft-stats span {
  font: 500 13.5px/1.4 var(--sans);
  color: var(--ivory-2);
}

/* --------------------------------------------------------------------------
   Slide 3 · Today and growth opportunities
   -------------------------------------------------------------------------- */
.journey-layout {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(28px, 3.8cqw, 60px);
}

.journey-today {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.7cqh, 16px);
  min-width: 0;
}

.today-frame { margin-top: clamp(4px, 1cqh, 10px); }

.today-viewport {
  height: clamp(170px, 31cqh, 300px);
  overflow: hidden;
  background-color: #fff;
}

.today-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}

.journey-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6cqh, 16px);
  min-width: 0;
}

.journey-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: clamp(14px, 2.2cqh, 22px) clamp(16px, 1.6cqw, 24px);
  border-radius: 14px;
  background-color: var(--paper);
  border: 1px solid #DDD0BF;
  box-shadow: 0 12px 30px rgba(60, 40, 20, 0.07);
}

.diag-step {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font: 700 15px/1 var(--sans);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  background-color: var(--bronze-ink);
}

.journey-card h3 {
  font: 700 clamp(19px, 2.4cqh, 22px)/1.25 var(--sans);
  color: var(--ink);
}

.journey-card p {
  margin: 6px 0 0;
  font: 400 clamp(16px, 1.95cqh, 17.5px)/1.5 var(--sans);
  color: var(--ink-2);
}

.journey-outcome {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(6px, 1cqh, 10px);
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.journey-outcome::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   Slide 4 · The website upgrade
   -------------------------------------------------------------------------- */
.website-layout {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 4cqw, 64px);
}

.concept-notes {
  display: flex;
  flex-direction: column;
  margin-top: clamp(2px, 0.6cqh, 6px);
}

.concept-note-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: clamp(10px, 1.6cqh, 15px) 0;
  border-top: 1px solid var(--line);
}

.concept-note-item b {
  display: block;
  font: 700 clamp(18px, 2.2cqh, 20px)/1.3 var(--sans);
  color: var(--ivory);
}

.concept-note-item p {
  margin: 4px 0 0;
  font: 400 clamp(16px, 1.9cqh, 17px)/1.5 var(--sans);
  color: var(--ivory-2);
}

.mockup-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mockup-window { max-width: 100%; }

.mock-hero-stage {
  position: relative;
  height: clamp(300px, 42vh, 440px);
  aspect-ratio: 1376 / 768;
  max-width: 100%;
  overflow: hidden;
  background-color: #0B0F17;
}

.mock-hero-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}

.mockup-caption {
  margin: 0;
  font: 500 15px/1.4 var(--sans);
  color: var(--ivory-2);
}

/* --------------------------------------------------------------------------
   Slide 5 · Before and after
   -------------------------------------------------------------------------- */
.proof-head,
.exec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(24px, 3.4cqw, 56px);
  align-items: end;
}

.proof-head > div,
.exec-head > div {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5cqh, 14px);
}

.comparison {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 2.8cqw, 44px);
  min-height: 0;
}

.case-bar .case-url {
  flex: 1;
  text-align: center;
  font: 600 13px/1 var(--sans);
  color: var(--ink-2);
}

.case-bar strong {
  flex: none;
  padding: 5px 10px;
  border-radius: 6px;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background-color: var(--paper);
  border: 1px solid #D6C8B6;
}

.case-frame.after .case-bar strong {
  color: var(--paper);
  background-color: var(--bronze-ink);
  border-color: var(--bronze-ink);
}

.case-viewport {
  position: relative;
  height: clamp(280px, 38vh, 400px);
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  background-color: #fff;
}

.case-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.03);
  transform-origin: center top;
  opacity: 1;
  filter: none;
}

.case-frame figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(10px, 1.5cqh, 14px) 18px;
  background-color: var(--paper);
  border-top: 1px solid #E3D8CA;
}

.case-frame figcaption b {
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.case-frame figcaption span {
  font: 500 16px/1.4 var(--sans);
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Slide 6 · Launch roadmap
   -------------------------------------------------------------------------- */
.exec-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5cqw, 24px);
  align-items: stretch;
}

.exec-phase-card {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4cqh, 13px);
  padding: clamp(16px, 2.6cqh, 26px) clamp(18px, 1.7cqw, 26px);
  border-radius: 16px;
  background-color: var(--walnut-850);
  border: 1px solid var(--line);
}

.exec-phase-card.featured {
  background-color: var(--walnut-800);
  border-color: rgba(221, 182, 131, 0.6);
  box-shadow: 0 0 0 4px rgba(221, 182, 131, 0.07), 0 26px 60px rgba(0, 0, 0, 0.4);
}

.exec-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exec-phase-num {
  font: 700 12.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.exec-duration-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(221, 182, 131, 0.5);
  font: 700 12.5px/1 var(--sans);
  letter-spacing: 0.08em;
  color: var(--ivory);
  white-space: nowrap;
}

.exec-figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.exec-figure b {
  font: 600 clamp(40px, 6.6cqh, 62px)/0.95 var(--serif);
  color: var(--brass);
}

.exec-figure span {
  font: 700 13px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-2);
}

.exec-phase-card h3 {
  font: 700 clamp(19px, 2.3cqh, 21.5px)/1.25 var(--sans);
  color: var(--ivory);
}

.exec-deliverables {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.1cqh, 10px);
  margin: 2px 0 0;
  padding: clamp(10px, 1.5cqh, 14px) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.exec-deliverables li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font: 400 16px/1.42 var(--sans);
  color: var(--ivory-2);
}

.exec-deliverables .ui-icon {
  font-size: 18px;
  margin-top: 2px;
  color: var(--brass);
  stroke-width: 2.3;
}

.exec-footer-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 12px;
  background-color: var(--walnut-850);
  border: 1px solid var(--line);
}

.exec-footer-bar span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: clamp(10px, 1.6cqh, 15px) 18px;
  border-left: 1px solid var(--line);
  font: 500 15px/1.3 var(--sans);
  color: var(--ivory-2);
}

.exec-footer-bar span:first-child { border-left: 0; }

.exec-footer-bar b {
  font: 600 clamp(19px, 2.3cqh, 22px)/1 var(--serif);
  color: var(--brass);
}

/* --------------------------------------------------------------------------
   Slide 7 · Partner sign-off
   -------------------------------------------------------------------------- */
.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: clamp(28px, 3.6cqw, 60px);
  align-items: center;
}

.partner-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px clamp(18px, 1.8cqw, 26px);
  margin-top: clamp(2px, 0.6cqh, 6px);
  padding: clamp(16px, 2.4cqh, 24px);
  border-radius: 18px;
  background-color: var(--paper);
  border: 1px solid #DDD0BF;
  box-shadow: var(--shadow);
}

.partner-avatar-wrap {
  width: clamp(112px, 15.2cqh, 140px);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
}

.partner-avatar-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 1;
  filter: none;
}

.partner-details { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.partner-meta-kicker {
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.partner-name-heading {
  font: 600 clamp(24px, 3.2cqh, 30px)/1.15 var(--serif);
  color: var(--ink);
}

.partner-role-sub {
  font: 600 14.5px/1.35 var(--sans);
  color: var(--ink-3);
}

.partner-quote {
  margin: clamp(4px, 0.9cqh, 8px) 0 0;
  font: 400 clamp(15.5px, 1.85cqh, 16.5px)/1.55 var(--sans);
  color: var(--ink-2);
}

.partner-contact-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: clamp(10px, 1.6cqh, 14px);
  border-top: 1px solid #E6DCCF;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background-color: var(--linen);
  border: 1px solid #DDD0BF;
  font: 700 14px/1.2 var(--sans);
  color: var(--ink);
  white-space: nowrap;
}

.partner-pill .ui-icon { font-size: 16px; color: var(--bronze-ink); }

.concierge-col { min-width: 0; }

.request {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6cqh, 14px);
  padding: clamp(18px, 3cqh, 30px);
  border-radius: 18px;
  background-color: var(--paper);
  border: 1px solid #DDD0BF;
  border-top: 4px solid var(--logo-bronze);
  box-shadow: var(--shadow);
}

.request h3 {
  font: 600 clamp(30px, 4.4cqh, 42px)/1.05 var(--serif);
  color: var(--ink);
}

.request > p {
  margin: 0;
  font: 400 clamp(16px, 1.9cqh, 17px)/1.5 var(--sans);
  color: var(--ink-2);
}

.screen-request { display: flex; flex-direction: column; gap: clamp(10px, 1.6cqh, 14px); }

.suggestions { display: flex; flex-wrap: wrap; gap: 10px; }

.suggestions button {
  padding: 11px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--bronze-ink);
  background-color: var(--paper);
  color: var(--ink);
  font: 700 13px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.suggestions button:hover { background-color: var(--bronze-ink); color: var(--paper); }

.picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.picker-col label {
  display: block;
  margin-bottom: 6px;
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.date-control { position: relative; display: block; }

.date-control input {
  width: 100%;
  height: clamp(42px, 5.2cqh, 48px);
  padding: 0 48px 0 14px;
  border-radius: 10px;
  border: 1px solid #C9B9A5;
  background-color: #FFFFFF;
  color: var(--ink);
  font: 600 15px/1 var(--sans);
  color-scheme: light;
}

.date-control input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }

.date-control #open-date,
.date-control #open-time {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.date-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--bronze-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#picker-help { margin: 0; font: 500 14px/1.4 var(--sans); color: var(--ink-2); }

#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: clamp(48px, 6cqh, 56px);
  padding: 0 20px;
  border-radius: 12px;
  background-color: var(--bronze-ink);
  color: var(--paper);
  font: 700 14px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(102, 65, 29, 0.28);
  transition: background-color 160ms ease, transform 160ms ease;
}

#contact:hover { background-color: #4F3216; transform: translateY(-1px); }
#contact .ui-icon { font-size: 18px; stroke-width: 2; }

.request small {
  font: 500 13px/1.45 var(--sans);
  color: var(--ink-3);
}

.print-contact { display: none; }

/* Focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--logo-bronze);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Presentation controls
   -------------------------------------------------------------------------- */
.controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background-color: #17110C;
  border: 1px solid rgba(236, 220, 198, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  z-index: 20;
}

.controls button {
  display: inline-grid;
  place-items: center;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}

#prev, #next { width: 36px; }
#prev .ui-icon, #next .ui-icon { font-size: 18px; stroke-width: 2; }
#prev:hover, #next:hover { background-color: #2A2019; }

#counter {
  min-width: 56px;
  text-align: center;
  font: 700 13px/1 var(--sans);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: var(--ivory);
}

#play {
  padding: 0 14px;
  margin-left: 4px;
  border-left: 1px solid rgba(236, 220, 198, 0.2);
  border-radius: 0 999px 999px 0;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.14em;
  color: var(--brass);
}

/* --------------------------------------------------------------------------
   Mobile: stacked, natively scrolling slides
   -------------------------------------------------------------------------- */
@media screen and (max-width: 700px) {
  html, body { background: var(--walnut-900); }
  body { padding-bottom: 76px; }

  .deck { width: 100%; }

  .slide.active {
    min-height: 100svh;
    height: auto;
    padding: 22px 18px 56px;
    gap: 20px;
  }

  .slide > header { flex-wrap: wrap; gap: 12px; }
  .header-brand { flex-wrap: wrap; }
  .header-wordmark { font-size: 13px; }
  .header-wordmark small { font-size: 12px; }
  .header-meta { flex: 1 1 100%; align-items: flex-start; }
  .header-meta b { flex: none; }
  .header-logo-pill { --plate-h: 56px; }

  h2 { font-size: 30px; }
  .cover h1 { font-size: 34px; }
  .lead { font-size: 16.5px; }

  .two,
  .foundation-grid,
  .journey-layout,
  .website-layout,
  .proof-head,
  .exec-head,
  .close-grid,
  .exec-cards-grid { grid-template-columns: minmax(0, 1fr); }

  .slide.cover.active { display: flex; flex-direction: column; padding: 0; }
  .hero-visual { order: -1; height: 46svh; min-height: 280px; }
  .hero-copy { padding: 26px 18px 40px; }
  .cover-badge img { height: 88px; }
  .cover-facts { flex-direction: column; gap: 12px; }
  .cover-facts li { border-right: 0; margin-right: 0; padding-right: 0; }
  .cover-facts b { white-space: normal; }

  .craft-photo { height: 240px; }
  .craft-stats { grid-template-columns: minmax(0, 1fr); }
  .craft-stats div { border-left: 0; border-top: 1px solid var(--line); }
  .craft-stats div:first-child { border-top: 0; }

  .today-viewport { height: auto; aspect-ratio: 16 / 10; }

  .mockup-col { width: 100%; }
  .mockup-window { width: 100%; }
  .mock-hero-stage,
  .case-viewport { width: 100%; height: auto; }

  .comparison { flex-direction: column; }
  .case-frame { width: 100%; }

  .browser-tag { display: none; }

  .exec-footer-bar { grid-template-columns: minmax(0, 1fr); }
  .exec-footer-bar span { border-left: 0; border-top: 1px solid var(--line); justify-content: flex-start; }
  .exec-footer-bar span:first-child { border-top: 0; }

  .partner-card { grid-template-columns: minmax(0, 1fr); }
  .partner-pill { white-space: normal; }
  .picker-grid { grid-template-columns: minmax(0, 1fr); }
  #contact { font-size: 13px; letter-spacing: 0.06em; }

  .page { bottom: 14px; }

  .controls {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide.active { animation: none; }
  #contact, .suggestions button { transition: none; }
}

/* --------------------------------------------------------------------------
   Print: one slide per landscape page, HTML contact line instead of controls
   -------------------------------------------------------------------------- */
@media print {
  @page { size: 13.333in 7.5in; margin: 0; }

  html, body { height: auto; overflow: visible; background: #fff; display: block; }

  .deck {
    width: 13.333in;
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    container-type: normal;
  }

  .slide,
  .slide.active {
    display: flex !important;
    flex-direction: column;
    width: 13.333in;
    height: 7.5in;
    animation: none;
    break-after: page;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .slide.cover { display: grid !important; grid-template-columns: 1.1fr 0.9fr; padding: 0; }

  .controls, #scene, .screen-request { display: none !important; }
  .print-contact { display: block; font: 700 12pt/1.4 var(--sans); color: var(--ink); }
}
