/* ==========================================================================
   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;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-400-normal.woff2') format('woff2');
  font-weight: 400 700;
  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, calc(16cqh - 50px), 88px);
  --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: 1101px) {
  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 / 435;
  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);
}

.cover-art {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: clamp(4px, 1cqh, 10px);
}

.cover-art .cover-badge { margin-bottom: 0; }

@keyframes cover-boom-shake {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  12% { transform: translate3d(-7px, 4px, 0) rotate(-0.35deg); }
  24% { transform: translate3d(6px, -3px, 0) rotate(0.3deg); }
  36% { transform: translate3d(-4px, 2px, 0) rotate(-0.18deg); }
  48% { transform: translate3d(3px, -1px, 0) rotate(0.12deg); }
  60% { transform: translate3d(-2px, 1px, 0) rotate(-0.06deg); }
}

body.is-cover-boom .deck {
  animation: cover-boom-shake 420ms cubic-bezier(.2, .8, .3, 1) both;
  will-change: transform;
}

.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: 50% 50%;
  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: 50% 58%;
  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(28px, 3.4cqw, 56px);
}

.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%; }

.mockup-caption {
  margin: clamp(4px, 1cqh, 10px) 0 0;
  font: 500 15px/1.45 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);
}

.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-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
   -------------------------------------------------------------------------- */
/* The full-width footer bar must clear the page pill in the bottom padding. */
.execution-slide { --pad-b: clamp(40px, 6.6cqh, 56px); }

.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);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.partner-pill:hover { background-color: #EFE4D6; border-color: var(--logo-bronze); }

.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;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.14em;
  color: var(--brass);
}

#play:hover, #index-open:hover { background-color: #2A2019; }

/* ==========================================================================
   Completion pass: tokens, cover stage, nine-slide components
   ========================================================================== */
:root {
  --body: clamp(16px, min(1.12vw, 2.2cqh), 21px);
  --h3: clamp(19px, min(1.5vw, 2.8cqh), 26px);
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

[hidden] { display: none !important; }

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: rgba(221, 182, 131, 0.16); pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #8A6642, #E8C58C);
  transition: width 0.5s cubic-bezier(.22, .61, .36, 1);
}

/* Slides never clip silently: long content scrolls inside the slide. */
.slide:not(.cover) { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(138, 102, 66, 0.55) transparent; }
.slide.cover { overflow: hidden; }

.lead,
.pillar-content p,
.concept-note-item p,
.exec-deliverables li { font-size: var(--body); }

/* ---- Cover: the cabinet door is drawn on a deck-wide canvas ---- */
#scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 6; pointer-events: none; display: none;
}
body.cover-live #scene { display: block; }
#scene[data-webgl="unavailable"] { display: none !important; }
body.cover-live .cover-art { display: none; }
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  body:not(.cover-nogl) .cover-art { display: none; }
}

.hero-visual { isolation: isolate; }
.hero-photo figcaption { z-index: 2; }
.cover-stage {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  transition: opacity 0.7s ease;
  background:
    radial-gradient(circle at 50% 44%, rgba(232, 197, 140, 0.18), transparent 52%),
    radial-gradient(70% 46% at 50% 46%, rgba(10, 7, 5, 0.6), rgba(10, 7, 5, 0) 100%),
    linear-gradient(180deg, rgba(10, 7, 5, 0.52), rgba(10, 7, 5, 0.1) 30%, rgba(10, 7, 5, 0.1) 62%, rgba(10, 7, 5, 0.62));
}
body.cover-live .cover-stage { opacity: 1; }

/* ---- Slide transition: a cabinet door slides across the frame ---- */
.seam {
  display: none; position: fixed; inset: 0; z-index: 90; pointer-events: none; will-change: transform;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent 4%, transparent 96%, rgba(0, 0, 0, 0.4)),
    repeating-linear-gradient(0deg, rgba(255, 214, 160, 0.045) 0 2px, rgba(0, 0, 0, 0.07) 2px 5px),
    linear-gradient(100deg, #6A4326, #7A4D2C 38%, #54321C 78%, #6A4326);
  border-left: 5px solid #C08E4E; border-right: 5px solid #C08E4E;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}
.seam::before {
  content: ""; position: absolute; inset: 8% 9%;
  border: 2px solid rgba(232, 197, 140, 0.5);
  box-shadow: inset 0 0 0 12px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.seam::after {
  content: ""; position: absolute; right: 11%; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #F4DDB0, #C08E4E 55%, #6B431B);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}
@media (min-width: 1101px) { .seam { position: absolute; } }

/* ---- Slide 3 · The audit ---- */
.audit-layout { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(24px, 3.2cqw, 52px); align-items: stretch; }
.audit-left { display: flex; flex-direction: column; justify-content: center; gap: clamp(10px, 1.6cqh, 16px); min-width: 0; }
.audit .today-viewport { height: clamp(130px, 23cqh, 230px); }
.findings {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6cqh, 16px);
  align-content: center; padding: 2px;
}
.finding {
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(14px, 2cqh, 22px) clamp(16px, 1.5cqw, 22px);
  border-radius: 14px; background: var(--paper); border: 1px solid #DDD0BF; box-shadow: 0 12px 30px rgba(60, 40, 20, 0.07);
}
.finding-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sev { padding: 5px 10px; border-radius: 999px; font: 700 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.sev.high { color: #8E1519; background: rgba(158, 27, 31, 0.1); border: 1px solid rgba(158, 27, 31, 0.45); }
.sev.med { color: var(--bronze-ink); background: rgba(138, 102, 66, 0.12); border: 1px solid rgba(102, 65, 29, 0.45); }
.src { font: 600 13px/1.3 var(--mono); color: var(--ink-3); letter-spacing: 0.01em; }
.finding h3 { font: 700 clamp(18px, min(1.3vw, 2.6cqh), 23px)/1.2 var(--sans); color: var(--ink); }
.finding p { margin: 0; font: 400 var(--body)/1.45 var(--sans); color: var(--ink-2); }

/* ---- Slide 4 · The working concept ---- */
.website-layout { grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.66fr); gap: clamp(24px, 3cqw, 48px); align-items: stretch; }
.website-layout .narrative-col { justify-content: center; }
.mockup-col { height: 100%; min-height: 0; align-items: stretch; justify-content: center; gap: 0; }
.mock-stage {
  flex: 1; min-height: 0; width: 100%; max-height: clamp(420px, 76cqh, 700px);
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(172px, 12.5vw, 220px);
  gap: clamp(12px, 1.6cqw, 24px); align-items: stretch;
}
.mockup-window { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.site { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; color: #2C2620; font-family: var(--sans); container: site / inline-size; text-align: left; }
.site-mast { flex: none; display: flex; align-items: center; gap: 14px; padding: 8px 18px; border-bottom: 1px solid #EFE8DE; background: #fff; }
.site-logo { flex: none; height: 44px; aspect-ratio: 1334 / 435; overflow: hidden; }
.site-logo img { display: block; width: 100%; height: auto; }
.site-tabs { display: flex; gap: 2px; margin-left: auto; }
.site-tabs [role="tab"] {
  padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #4C443B;
  font: 700 14px/1 var(--sans); cursor: pointer; white-space: nowrap;
}
.site-tabs [role="tab"]:hover { color: #3B2A1B; background: #F6EFE4; }
.site-tabs [role="tab"][aria-selected="true"] { color: #3B2A1B; border-bottom-color: #8A6642; }
.site-call { flex: none; padding: 10px 14px; border-radius: 6px; background: #7A4A2B; color: #fff; font: 700 14px/1 var(--sans); white-space: nowrap; }
.site-panels { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.site-panel { display: block; }
.hm-hero { display: grid; grid-template-columns: 46% 54%; background: #F6EFE4; }
.hm-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: clamp(14px, 2.4cqw, 28px) clamp(16px, 3cqw, 34px); background: linear-gradient(135deg, #F8F2E8, #F3EADD);
}
.hm-eyebrow { font: 700 13px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #7A5230; }
.hm-h { font: 600 clamp(22px, 4.2cqw, 34px)/1.05 var(--serif); letter-spacing: -0.012em; color: #2C2620; }
.hm-h.sm { font-size: clamp(22px, 3.6cqw, 30px); }
.hm-copy p { margin: 0; font: 400 clamp(14px, 2.1cqw, 16px)/1.45 var(--sans); color: #4C443B; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 15px; border: 1.5px solid #6D4527; background: transparent; color: #3B2A1B;
  font: 700 14px/1.1 var(--sans); cursor: pointer; transition: background-color 160ms ease, color 160ms ease;
}
.hm-btn:hover { background: #F0E3D1; }
.hm-btn.solid { background: #7A4A2B; border-color: #7A4A2B; color: #fff; }
.hm-btn.solid:hover { background: #5E3820; }
.hm-btn.wide { width: 100%; }
.hm-photo { min-width: 0; min-height: 190px; overflow: hidden; background: #DED6CA; }
.hm-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 18px 16px; background: #fff; }
.hm-tile { display: flex; flex-direction: column; gap: 7px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.hm-tile-photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #EDE7DE; }
.hm-tile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.hm-tile:hover .hm-tile-photo img { transform: scale(1.05); }
.hm-tile-label { font: 600 clamp(15px, 2.2cqw, 18px)/1.2 var(--serif); color: #2C2620; }

.kt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid #EFE8DE; }
.kt-chips, .cs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kt-chips button, .cs-chips button {
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid #B9A58C; background: #fff; color: #3B2A1B;
  font: 700 14px/1 var(--sans); cursor: pointer;
}
.kt-chips button[aria-pressed="true"], .cs-chips button[aria-pressed="true"] { background: #7A4A2B; border-color: #7A4A2B; color: #fff; }
.kt-note { font: 600 14px/1.3 var(--sans); color: #5E554B; }
.kt-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
.kt-preview { position: relative; margin: 0; min-height: 230px; border-radius: 6px; overflow: hidden; background: #EDE7DE; }
.kt-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kt-preview figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; font: 600 15px/1.3 var(--sans); color: #fff; background: linear-gradient(transparent, rgba(20, 12, 6, 0.8)); }
.kt-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
.kt-thumb { padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; aspect-ratio: 1; background: #EDE7DE; cursor: pointer; }
.kt-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kt-thumb[aria-pressed="true"] { border-color: #7A4A2B; box-shadow: 0 0 0 2px #fff inset; }

.cs-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; padding: 18px; }
.cs-col { display: flex; flex-direction: column; gap: 14px; }
.cs-group { display: flex; flex-direction: column; gap: 8px; }
.cs-label { font: 700 13px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #7A5230; }
.cs-list { margin: 0; padding-left: 18px; font: 400 15.5px/1.55 var(--sans); color: #3B332B; }
.cs-card { display: flex; flex-direction: column; gap: 12px; align-self: start; padding: 16px; border-radius: 8px; background: #F6EFE4; border: 1px solid #E5D8C6; }
.cs-summary { font: 600 clamp(20px, 3cqw, 24px)/1.15 var(--serif); color: #2C2620; }
.cs-note { font: 500 14px/1.4 var(--sans); color: #4C443B; }

.phone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 0; }
.phone-body {
  width: 100%; aspect-ratio: 9 / 18.5; max-height: 100%; padding: 7px; border-radius: 28px; background: #14100C;
  box-shadow: 0 0 0 2px #3A2F26, 0 26px 54px rgba(0, 0, 0, 0.55);
}
.ph-screen { height: 100%; display: flex; flex-direction: column; border-radius: 21px; overflow: hidden; background: #fff; color: #2C2620; text-align: left; }
.ph-bar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid #EFE8DE; }
.ph-logo { height: 24px; aspect-ratio: 1334 / 435; overflow: hidden; }
.ph-logo img { display: block; width: 100%; height: auto; }
.ph-menu { font-size: 20px; color: #3B2A1B; display: inline-flex; }
.ph-hero { flex: 1 1 0; min-height: 70px; overflow: hidden; }
.ph-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ph-copy { flex: none; padding: 9px 10px 6px; }
.ph-h { font: 600 16px/1.1 var(--serif); }
.ph-copy p { margin: 5px 0 0; font: 400 13px/1.35 var(--sans); color: #4C443B; }
.ph-dock { flex: none; display: grid; gap: 6px; padding: 8px 9px 10px; border-top: 1px solid #EFE8DE; }
.ph-btn { padding: 9px 6px; border: 1.5px solid #6D4527; border-radius: 6px; text-align: center; font: 700 13px/1.1 var(--sans); color: #3B2A1B; }
.ph-btn.solid { background: #7A4A2B; border-color: #7A4A2B; color: #fff; }
.phone-label { font: 700 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-2); }

@container site (max-width: 700px) { .site-call { display: none; } }
@container site (max-width: 560px) {
  .site-mast { flex-wrap: wrap; row-gap: 4px; }
  .site-tabs { margin-left: 0; width: 100%; }
  .site-tabs [role="tab"] { flex: 1; padding: 10px 6px; }
  .hm-hero, .kt-body, .cs-wrap { grid-template-columns: minmax(0, 1fr); }
  .hm-photo { min-height: 170px; order: -1; }
  .kt-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hm-tiles { gap: 8px; padding: 12px; }
}

/* ---- Slide 5 · What Brandcore builds ---- */
.system-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(24px, 3.4cqw, 56px); align-items: end; }
.system-head > div { display: flex; flex-direction: column; gap: clamp(10px, 1.5cqh, 14px); }
.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4cqw, 20px); align-content: stretch; }
.pillar {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 2.4cqh, 26px) clamp(16px, 1.5cqw, 24px);
  border-radius: 16px; background: var(--paper); border: 1px solid #DDD0BF; box-shadow: 0 14px 34px rgba(60, 40, 20, 0.08);
}
.pillar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pillar-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bronze-ink); color: var(--paper); font-size: 22px; }
.pillar-tag { font: 700 13px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-ink); }
.pillar h3 { font: 700 var(--h3)/1.2 var(--sans); color: var(--ink); }
.pillar p { margin: 0; font: 400 var(--body)/1.5 var(--sans); color: var(--ink-2); }

/* ---- Slide 6 · Proof (drag to compare) ---- */
.proof-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 3.2cqw, 52px); align-items: center; }
.theme-walnut .case-frame { background: #0F0B08; border: 1px solid rgba(236, 220, 198, 0.18); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); }
.theme-walnut .case-bar { background: #241B15; border-bottom: 1px solid rgba(236, 220, 198, 0.12); }
.theme-walnut .case-bar .case-url { color: var(--ivory-2); }
.theme-walnut .case-frame figcaption { background: #1F1813; border-top: 1px solid var(--line); }
.theme-walnut .case-frame figcaption b { color: var(--brass); }
.theme-walnut .case-frame figcaption span { color: var(--ivory-2); }
.cmp-tags { display: flex; gap: 6px; }
.cmp-tags strong.after { color: var(--paper); background: var(--bronze-ink); border-color: var(--bronze-ink); }
.cmp { position: relative; width: 100%; height: clamp(240px, calc(100cqh - 330px), 540px); overflow: hidden; background: #fff; user-select: none; touch-action: pan-y; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #E8C58C; pointer-events: none; }
.cmp-handle .ui-icon {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; padding: 11px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #1A140F; color: #E8C58C; border: 2px solid #E8C58C; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.cmp-label { position: absolute; top: 12px; padding: 6px 10px; border-radius: 6px; background: rgba(13, 9, 7, 0.86); color: var(--ivory); font: 700 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; }
.cmp-label.l { left: 12px; }
.cmp-label.r { right: 12px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp:focus-within { outline: 3px solid var(--brass); outline-offset: -3px; }

/* ---- Slide 8 · Engagement ---- */
.engage { --pad-b: clamp(40px, 6.6cqh, 56px); }
.engage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.5cqw, 24px); align-content: stretch; }
.tier { display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 2.6cqh, 26px) clamp(18px, 1.7cqw, 26px); border-radius: 16px; background: var(--walnut-850); border: 1px solid var(--line); }
.tier.featured { background: 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); }
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tier-name { font: 600 clamp(26px, min(2vw, 3.4cqh), 34px)/1 var(--serif); color: var(--brass); }
.tier-span { font: 700 13px/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-2); }
.tier-flag { padding: 5px 11px; border-radius: 999px; background: var(--brass); color: #1A140F; font: 700 13px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.tier-line { margin: 0; font: 500 var(--body)/1.4 var(--sans); color: var(--ivory); }
.tier-list { display: flex; flex-direction: column; gap: clamp(7px, 1.1cqh, 10px); margin: 2px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line); }
.tier-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font: 400 var(--body)/1.4 var(--sans); color: var(--ivory-2); }
.tier-list .ui-icon { font-size: 18px; margin-top: 2px; color: var(--brass); stroke-width: 2.3; }
.engage-foot { margin: 0; text-align: center; font: 600 15px/1.4 var(--sans); color: var(--ivory-2); }

/* ---- Index overlay ---- */
.index-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); overflow: auto; background: rgba(13, 9, 7, 0.95); }
.index-panel { width: min(1280px, 100%); }
.index-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font: 700 14px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.index-head button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(221, 182, 131, 0.5); background: transparent; color: var(--ivory); font-size: 20px; cursor: pointer; }
.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.index-card {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: clamp(96px, 16vh, 150px); padding: 14px 16px;
  border-radius: 14px; border: 1px solid rgba(221, 182, 131, 0.28); color: var(--ivory); text-align: left; cursor: pointer;
  background: linear-gradient(180deg, rgba(13, 9, 7, 0.28), rgba(13, 9, 7, 0.9)), var(--img) center / cover, #1F1813;
}
.index-card:hover, .index-card[aria-current] { border-color: var(--brass); }
.ic-num { font: 700 13px/1 var(--sans); letter-spacing: 0.14em; color: var(--brass); }
.ic-label { font: 700 clamp(16px, 1.3vw, 19px)/1.25 var(--sans); }

#index-open {
  padding: 0 14px; margin-left: 4px; border-left: 1px solid rgba(236, 220, 198, 0.2); border-radius: 0;
  font: 700 13px/1 var(--sans); letter-spacing: 0.14em; color: var(--ivory);
}
#play { font-size: 13px; }

/* Desktop frame: the working slides share the frame height. */
@media screen and (min-width: 1101px) {
  .audit-layout, .website-layout, .proof-layout, .system-grid, .engage-grid { flex: 1 1 0; min-height: 0; }
  .findings { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .system-grid, .engage-grid { overflow-y: auto; overscroll-behavior: contain; }
}
@media screen and (min-width: 1101px) and (max-height: 800px) {
  .hm-copy p { display: none; }
  .hm-copy { padding: 12px 16px; gap: 8px; }
  .hm-tile-photo { aspect-ratio: 2 / 1; }
  .pillar { padding: 14px 16px; gap: 6px; }
  .pillar-icon { width: 32px; height: 32px; font-size: 18px; }
}

/* Short desktop viewports (for example 1280x720): keep the sign-off and the
   slide 4 caption inside the fixed frame without changing the 1366 design. */
@media screen and (min-width: 1101px) and (max-height: 744px) {
  .website-layout .lead { font-size: 16.5px; line-height: 1.45; }
  .concept-note-item { padding: 7px 0; }
  .concept-note-item b { font-size: 18px; }
  .concept-note-item p { font-size: 15.5px; line-height: 1.42; }
  .mockup-caption { font-size: 14px; line-height: 1.4; }
  .page { display: none; }

  .partner-avatar-wrap { width: 100px; }
  .partner-card { padding: 14px 16px; gap: 10px 16px; }
  .partner-meta-kicker { font-size: 11px; }
  .partner-role-sub { font-size: 13px; }
  .partner-quote { margin-top: 2px; font-size: 14.5px; line-height: 1.42; }
  .partner-contact-pills { padding-top: 8px; }
  .partner-pill { padding: 6px 10px; font-size: 12.5px; gap: 6px; }

  .request { padding: 16px 18px; gap: 8px; }
  .request h3 { font-size: 30px; }
  .request > p { font-size: 15px; line-height: 1.4; }
  .suggestions button { padding: 9px 12px; font-size: 12px; }
  .picker-col label { margin-bottom: 4px; }
  .date-control input { height: 40px; }
  #contact { min-height: 46px; }
  .request small { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   Mobile: stacked, natively scrolling slides
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1100px) {
  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: 31px; }
  .lead { font-size: 16px; }

  .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: 36svh; min-height: 260px; }
  .hero-copy { padding: 22px 18px 40px; }
  .cover-badge img { height: 76px; }
  .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; }

  /* Slide 4 on phones: heading and lead, then the proposed homepage, then the notes. */
  .website-layout { row-gap: 14px; }
  .website-layout > .narrative-col { display: contents; }
  .website-layout .mockup-col { order: 1; width: 100%; margin: 8px 0 10px; }
  .website-layout .concept-notes { order: 2; }
  .website-layout .mockup-caption { order: 3; }
  .mockup-window { width: 100%; }

  .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; }

  .partner-pill { min-height: 44px; }
  .suggestions button { min-height: 44px; }

  .controls {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    max-width: calc(100vw - 16px);
  }
  .controls button { height: 44px; }
  #prev, #next { width: 44px; }
  #counter { min-width: 48px; }
  #play { padding: 0 12px; letter-spacing: 0.08em; white-space: nowrap; }
}

@media screen and (min-width: 701px) and (max-width: 1100px) {
  .slide.active { padding: 28px 32px 64px; gap: 22px; }
  .slide.cover.active { padding: 0; }
  .cover h1 { font-size: 42px; }
  h2 { font-size: 38px; }
  .lead { font-size: 18px; }
  .cover .lead { max-width: 58ch; }
  .cover-badge img { height: 100px; }
  .cover-facts { flex-direction: row; flex-wrap: wrap; gap: 10px 0; }
  .cover-facts li { border-right: 1px solid var(--line); margin-right: 16px; padding-right: 16px; }
  .cover-facts li:nth-child(2) { border-right: 1px solid var(--line); }
  .cover-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
  .header-logo-pill { --plate-h: 64px; }
  .header-wordmark { font-size: 14px; }
  .header-wordmark small { font-size: 12.5px; }
  .hero-visual { height: 36svh; min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide.active { animation: none; }
  body.is-cover-boom .deck { animation: none; }
  #contact, .suggestions button { transition: none; }
}

/* === Brandcore Official Co-Branding & Sign-off Lockups === */
.cover-collab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border-radius: 999px;
  background-color: #0B1220;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F8FAFC;
  width: fit-content;
  max-width: 100%;
}
.brandcore-badge-logo {
  height: 18px;
  width: auto;
  display: block;
  object-fit: contain;
}
.cover-collab-sep {
  font-size: 13px;
  line-height: 1;
  color: #AEB6C2;
}
.cover-collab-label {
  font: 700 11px/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F8FAFC;
}
.partner-brand-signoff {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background-color: #0B1220;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
  width: 100%;
}
.signoff-brandcore-logo {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}
.signoff-brandcore-meta {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.02em;
  color: #D5DAE1;
}

/* ==========================================================================
   Completion pass: phone and tablet
   ========================================================================== */
@media screen and (max-width: 1100px) {
  #scene { display: none !important; }
  .slide:not(.cover) { overflow: visible; }
  .audit-layout, .website-layout, .proof-layout, .system-head { grid-template-columns: minmax(0, 1fr); }
  .findings, .system-grid, .engage-grid { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .audit .today-viewport { height: auto; aspect-ratio: 16 / 10; }
  .mockup-col, .mockup-window { height: auto; }
  .mock-stage { grid-template-columns: minmax(0, 1fr); max-height: none; }
  .site { flex: none; }
  .site-panels { overflow: visible; }
  .phone { width: min(220px, 70%); margin: 8px auto 0; }
  .phone-body { max-height: none; }
  .cmp { height: auto; aspect-ratio: 16 / 10; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engage-foot { text-align: left; }
}
@media screen and (min-width: 701px) and (max-width: 1100px) {
  .findings, .system-grid, .engage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-stage { grid-template-columns: minmax(0, 1fr) 200px; align-items: start; }
  .phone { width: 100%; margin: 0; }
}
@media screen and (max-width: 700px) {
  #play { display: none; }
  .index-grid { grid-template-columns: minmax(0, 1fr); }
  .kt-chips button, .cs-chips button, .site-tabs [role="tab"], .hm-btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .progress i, .cover-stage, .hm-tile-photo img { transition: none; }
}
