/* Cunningham, Malone & Morton — Brandcore strategic overview
   One stylesheet, no override layers. The desktop deck is designed on a fixed
   1640 × 920 stage and scaled to the viewport with --fit (set inline in index.html).
   Every text colour below is paired with the surface it sits on and clears WCAG AAA (7:1). */

@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/source-serif-4-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/source-serif-4-wght-italic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  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 {
  /* Surfaces */
  --navy-900: #070D17;
  --navy-800: #0B1422;
  --navy-700: #111D31;
  --navy-600: #1A2840;
  --paper: #F5F0E6;
  --paper-card: #FFFFFF;
  --ivory: #FBF8F1;

  /* Ink on dark navy (contrast measured against #1A2840, the lightest dark surface) */
  --on-dark: #FFFFFF;
  --body-on-dark: #D9E1EC;   /* 11.2:1 */
  --muted-on-dark: #B8C4D4;  /* 8.4:1 */
  --gold-text: #E8C977;      /* 9.2:1 */

  /* Ink on paper / ivory (contrast measured against #F5F0E6) */
  --ink: #0B1422;            /* 16.3:1 */
  --body-on-paper: #2C3A4E;  /* 10.2:1 */
  --muted-on-paper: #3D4A5F; /* 7.9:1 */
  --gold-on-paper: #5E430C;  /* 8.1:1, 7.5:1 on the #F3E7C6 badge */

  /* Non-text accents */
  --gold: #C9A54A;
  --rule-dark: rgba(201, 165, 74, 0.28);
  --rule-paper: rgba(11, 20, 34, 0.14);

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

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

html, body {
  margin: 0;
  background: var(--navy-900);
  color: var(--on-dark);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a, input { font: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { opacity: 1; filter: none; }

.ui-icon, .date-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.14em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Deck & slide frame ---------- */
#deck {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--navy-800);
}

.slide {
  position: relative;
  display: none;
  flex-direction: column;
  padding: 40px 72px 30px;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(201, 165, 74, 0.07), transparent 70%),
    linear-gradient(155deg, var(--navy-800) 0%, #13213A 100%);
}
.slide.active { display: flex; }

.slide.paper {
  color: var(--ink);
  background:
    radial-gradient(80% 70% at 90% 0%, rgba(201, 165, 74, 0.10), transparent 70%),
    linear-gradient(180deg, #F7F3EA 0%, var(--paper) 100%);
}

/* ---------- Header: the client's nameplate ---------- */
.slide-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-dark);
}
.paper .slide-head { border-color: var(--rule-paper); }

/* White plate = the logo's own interior white, so the mark sits seamlessly */
.nameplate {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  height: 78px;
  padding: 10px 26px 10px 14px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(201, 165, 74, 0.6), 0 12px 30px rgba(0, 0, 0, 0.38);
}
.paper .nameplate { box-shadow: 0 0 0 1px rgba(11, 20, 34, 0.14), 0 10px 26px rgba(11, 20, 34, 0.10); }
.nameplate img {
  display: block;
  height: 58px;
  width: auto;
}
.nameplate-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(11, 20, 34, 0.16);
}
.nameplate-text b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.nameplate-text small {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-on-paper);
}

.head-section {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.head-section i {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0;
  color: var(--gold-text);
}
.paper .head-section { color: var(--muted-on-paper); }
.paper .head-section i { color: var(--gold-on-paper); }

/* ---------- Body & footer ---------- */
.slide-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 0;
}
.slide-body.two { display: grid; align-items: center; }

.slide-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.slide-foot b { color: var(--on-dark); }
.page {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-text);
}
.paper .slide-foot { border-color: var(--rule-paper); color: var(--muted-on-paper); }
.paper .slide-foot b { color: var(--ink); }
.paper .page { color: var(--gold-on-paper); }
.source { color: inherit; text-decoration: none; }
.source:hover { text-decoration: underline; }

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.kicker::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: currentColor;
}
.paper .kicker { color: var(--gold-on-paper); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--on-dark);
}
h1 { font-size: 64px; line-height: 1.03; letter-spacing: -0.018em; }
h2 { font-size: 46px; line-height: 1.08; letter-spacing: -0.014em; }
h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-text);
}
.paper h2 { color: var(--ink); }
.paper h2 em { color: var(--gold-on-paper); }

.lead {
  max-width: 60ch;
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.58;
  color: var(--body-on-dark);
}
.paper .lead { color: var(--body-on-paper); }

/* ---------- Shared browser chrome ---------- */
.browser-bar, .case-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  background: #111B2B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: #D9695F; }
.browser-dots span:nth-child(2) { background: #D8B04A; }
.browser-dots span:nth-child(3) { background: #5BAE7F; }
.browser-url {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 420px;
  height: 26px;
  padding: 0 12px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--body-on-dark);
}
.browser-url .ui-icon { width: 13px; height: 13px; color: var(--gold-text); }
.browser-tag {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- Slide 1: cover ---------- */
.slide.cover {
  grid-template-columns: 1.04fr 0.96fr;
  padding: 0;
  background: linear-gradient(160deg, #0A121F 0%, #0E192B 100%);
}
.slide.cover.active { display: grid; }

.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 52px 60px 76px;
}
.cover-nameplate {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 26px;
  margin-bottom: 40px;
  padding: 20px 36px 20px 22px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(201, 165, 74, 0.65), 0 26px 64px rgba(0, 0, 0, 0.5);
}
.cover-nameplate img {
  display: block;
  height: 124px;
  width: auto;
}
.cover-name {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 26px;
  border-left: 1px solid rgba(11, 20, 34, 0.16);
}
.cover-firm {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cover-sub {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-on-paper);
}
.cover-sub2 { font-size: 14.5px; font-weight: 600; color: var(--muted-on-paper); }

.cover-facts { display: grid; gap: 12px; margin-top: 30px; }
.cover-facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16.5px;
  color: var(--body-on-dark);
}
.cover-facts b { margin-right: 6px; font-weight: 700; color: var(--on-dark); }
.cover-facts .ui-icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 50%;
  border: 1px solid rgba(201, 165, 74, 0.5);
  color: var(--gold-text);
  stroke-width: 1.6;
}
.cover-prepared {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.cover-prepared b { color: var(--on-dark); }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 56px 72px 44px;
  overflow: hidden;
  border-left: 1px solid var(--rule-dark);
  background:
    radial-gradient(55% 45% at 55% 42%, rgba(201, 165, 74, 0.16), transparent 72%),
    linear-gradient(180deg, #0D1726 0%, #0A111D 100%);
}
/* Ambient Three.js ledger floor: a quiet glow behind the real showcase, never the subject */
.hero-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}
.hero-browser {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--navy-800);
  box-shadow: 0 0 0 1px rgba(201, 165, 74, 0.55), 0 44px 100px rgba(0, 0, 0, 0.6);
}
.hero-browser img { display: block; width: 100%; height: auto; }
.hero-points {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.hero-points li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-left: 2px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(17, 29, 49, 0.85);
}
.hero-points b { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--on-dark); }
.hero-points span { font-size: 14.5px; color: var(--body-on-dark); }
.cover-page { position: absolute; right: 60px; bottom: 26px; font-size: 12px; }

/* ---------- Numbered lists (slides 2 & 4) ---------- */
.numbered-list { display: grid; gap: 12px; margin-top: 26px; }
.numbered-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 6px;
  padding: 16px 24px 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(201, 165, 74, 0.22);
}
.num {
  padding-top: 1px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  color: var(--gold-text);
}
.numbered-item h3 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.22;
  color: var(--on-dark);
}
.numbered-item p { font-size: 15.5px; line-height: 1.55; color: var(--body-on-dark); }

/* ---------- Slide 2: foundation & firm letterhead ---------- */
.foundation-grid { grid-template-columns: 1fr 0.9fr; gap: 64px; }

.letterhead {
  position: relative;
  padding: 38px 42px 34px;
  border-radius: 20px;
  border-top: 6px solid var(--gold);
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.5);
}
.letterhead-top {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule-paper);
}
.letterhead-top img { display: block; height: 112px; width: auto; }
.letterhead-name { display: flex; flex-direction: column; gap: 7px; }
.letterhead-name b {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.letterhead-name span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-on-paper);
}
.letterhead-name em { font-family: var(--serif); font-size: 19px; color: var(--body-on-paper); }
.letterhead-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  padding: 26px 0;
}
.letterhead-facts dt {
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-on-paper);
}
.letterhead-facts dd {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.letterhead-facts small { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted-on-paper); }
.letterhead-promise {
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--navy-800);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--on-dark);
}
.letterhead-promise span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- Slide 3: client journey (paper) ---------- */
.journey-head, .proof-head, .exec-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 36px;
}
.journey-head .lead, .proof-head .lead, .exec-head .lead { margin-top: 0; padding-bottom: 6px; }

.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.journey-card {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 28px;
  border-radius: 18px;
  border: 1px solid rgba(11, 20, 34, 0.10);
  border-top: 3px solid var(--gold);
  background: var(--paper-card);
  box-shadow: 0 22px 50px rgba(11, 20, 34, 0.09);
}
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.card-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  color: var(--gold-on-paper);
}
.card-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-paper);
}
.badge {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(94, 67, 12, 0.22);
  background: #F3E7C6;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-on-paper);
}
.journey-card h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.16;
  color: var(--ink);
}
.journey-card p { margin-bottom: 26px; font-size: 18.5px; line-height: 1.58; color: var(--body-on-paper); }
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule-paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-meta span { color: var(--muted-on-paper); }
.card-meta b { color: var(--gold-on-paper); }

/* ---------- Slide 4: website upgrade ---------- */
.website-grid { grid-template-columns: 0.84fr 1.16fr; gap: 60px; }
.numbered-list.compact { gap: 12px; margin-top: 28px; }
.numbered-list.compact .numbered-item { padding: 16px 22px 16px 18px; }
.numbered-list.compact h3 { font-size: 21px; }

.mockup-col { display: flex; flex-direction: column; }
.browser-window {
  overflow: hidden;
  border-radius: 14px;
  background: var(--navy-800);
  box-shadow: 0 0 0 1px rgba(201, 165, 74, 0.55), 0 44px 100px rgba(0, 0, 0, 0.55);
}
.mock-hero-stage {
  position: relative;
  height: clamp(300px, 42vh, 440px);
  overflow: hidden;
  background: var(--navy-800);
}
.mockup-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.figure-note {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* ---------- Slide 5: before & after ---------- */
.comparison { display: flex; justify-content: center; gap: 40px; }
.case-frame {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: var(--navy-800);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 36px 80px rgba(0, 0, 0, 0.5);
}
.case-frame.after { box-shadow: 0 0 0 1px rgba(201, 165, 74, 0.65), 0 36px 80px rgba(0, 0, 0, 0.5); }
.case-url { font-family: var(--mono); font-size: 12.5px; color: var(--body-on-dark); }
.case-tag {
  margin-left: auto;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--gold-text);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.case-tag.before { background: rgba(255, 255, 255, 0.12); color: var(--on-dark); }
.case-viewport {
  position: relative;
  height: clamp(280px, 38vh, 400px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #FFFFFF;
}
.case-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.case-frame figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0F1828;
}
.case-frame figcaption b {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.case-frame figcaption span { font-size: 15px; color: var(--body-on-dark); }

/* ---------- Slide 6: launch roadmap (paper) ---------- */
.exec-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.exec-phase-card {
  display: flex;
  flex-direction: column;
  padding: 28px 30px 26px;
  border-radius: 18px;
  border: 1px solid rgba(11, 20, 34, 0.10);
  background: var(--paper-card);
  box-shadow: 0 22px 50px rgba(11, 20, 34, 0.09);
}
.phase-days { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; }
.phase-days b {
  font-family: var(--serif);
  font-size: 78px;
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.phase-days span {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  line-height: 1;
  color: var(--gold-on-paper);
}
.phase-days small {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-paper);
}
.exec-phase-num {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-on-paper);
}
.exec-phase-card h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
}
.exec-phase-card > p { margin-bottom: 20px; font-size: 16.5px; line-height: 1.56; color: var(--body-on-paper); }
.exec-deliverables {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule-paper);
}
.exec-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.exec-deliverables .ui-icon { width: 18px; height: 18px; margin-top: 1px; stroke-width: 2.4; color: var(--gold-on-paper); }

.exec-phase-card.featured {
  border-color: var(--navy-800);
  background: linear-gradient(160deg, #13213A 0%, var(--navy-800) 100%);
  box-shadow: 0 0 0 1px rgba(201, 165, 74, 0.55), 0 30px 70px rgba(11, 20, 34, 0.35);
}
.featured .phase-days b, .featured h3, .featured li { color: var(--on-dark); }
.featured .phase-days span, .featured .exec-phase-num, .featured li .ui-icon { color: var(--gold-text); }
.featured .phase-days small { color: var(--muted-on-dark); }
.featured > p { color: var(--body-on-dark); }
.featured .exec-deliverables { border-color: rgba(255, 255, 255, 0.14); }

/* ---------- Slide 7: partner sign-off ---------- */
.slide-body.close-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 52px; }
.partner-card {
  display: grid;
  grid-template-columns: 136px 1fr;
  align-items: start;
  gap: 24px;
  margin-top: 30px;
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid rgba(201, 165, 74, 0.3);
  background: rgba(255, 255, 255, 0.04);
}
.partner-avatar-wrap {
  width: 136px;
  height: 136px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 0 2px var(--gold), 0 18px 36px rgba(0, 0, 0, 0.45);
}
.partner-avatar-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.partner-meta-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.partner-name-heading {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--on-dark);
}
.partner-role-sub { margin-top: 4px; font-size: 15.5px; color: var(--body-on-dark); }
.partner-quote {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 17.5px;
  font-style: italic;
  line-height: 1.55;
  color: #EEF2F7;
}
.partner-contact-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 165, 74, 0.38);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--on-dark);
}
.partner-pill .ui-icon { color: var(--gold-text); }

/* Request card: ivory stationery on navy, echoing the firm letterhead */
.concierge-col { display: flex; flex-direction: column; justify-content: center; }
.request {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 32px 28px;
  border-radius: 20px;
  border-top: 6px solid var(--gold);
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.5);
}
.request .kicker { margin-bottom: 0; color: var(--gold-on-paper); }
.request h3 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
}
.request > p { font-size: 16.5px; line-height: 1.5; color: var(--body-on-paper); }
.screen-request { display: flex; flex-direction: column; gap: 12px; }
.suggestions, .picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.suggestions button {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(11, 20, 34, 0.22);
  background: var(--paper-card);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.suggestions button:hover { border-color: var(--navy-800); background: var(--navy-800); color: var(--on-dark); }
.picker-col { display: flex; flex-direction: column; gap: 6px; }
.request label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-paper);
}
.date-control { position: relative; display: flex; align-items: center; }
.request input {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 6px 48px 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(11, 20, 34, 0.24);
  background: var(--paper-card);
  font-size: 15px;
  color: var(--ink);
  color-scheme: light;
}
.request input::-webkit-calendar-picker-indicator { opacity: 0; pointer-events: none; }
.date-control button {
  position: absolute;
  right: 4px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gold-on-paper);
  cursor: pointer;
}
.date-control button:hover { background: #F3E7C6; }
.date-icon { width: 20px; height: 20px; }
#picker-help { font-size: 13px; color: var(--body-on-paper); }
a#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 15px 18px;
  border-radius: 10px;
  background: var(--navy-800);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  box-shadow: 0 14px 30px rgba(11, 20, 34, 0.25);
  transition: background 0.18s ease, color 0.18s ease;
}
a#contact .ui-icon { color: var(--gold-text); }
a#contact:hover { background: var(--gold-text); color: var(--ink); }
a#contact:hover .ui-icon { color: var(--ink); }
.request small { font-size: 13px; line-height: 1.45; color: var(--muted-on-paper); }
.print-contact { display: none; }

/* ---------- Presentation controls ---------- */
.controls {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1px solid rgba(201, 165, 74, 0.4);
  background: rgba(8, 14, 24, 0.94);
  color: var(--on-dark);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}
.controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
}
.controls button:hover { background: rgba(255, 255, 255, 0.1); }
#counter {
  min-width: 48px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
#play {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 999px 999px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--gold-text);
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold-text);
  outline-offset: 2px;
}
.request button:focus-visible, .request a:focus-visible, .request input:focus-visible { outline-color: var(--gold-on-paper); }

/* ---------- Desktop: fixed 1640 × 920 stage scaled to fit ---------- */
@media screen and (min-width: 701px) {
  html, body { height: 100%; overflow: hidden; }
  body {
    display: grid;
    place-items: center;
    padding: 12px 0 60px;
    background: radial-gradient(ellipse at 50% 40%, #0E1828 0%, var(--navy-900) 70%);
  }
  #deck {
    width: 1640px;
    height: 920px;
    zoom: var(--fit, 1);
    border-radius: 20px;
    border: 1px solid rgba(201, 165, 74, 0.32);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  }
  .slide { height: 100%; }
  /* The stage is already scaled to the window, so size media against the stage itself:
     these are the 1080p values of clamp(300px, 42vh, 440px) and clamp(280px, 38vh, 400px). */
  .mock-hero-stage { height: 440px; }
  .case-viewport { height: 400px; }
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 700px) {
  html, body { overflow-x: hidden; }
  .slide { min-height: 100svh; padding: 20px 18px 96px; }
  .slide-head { flex-wrap: wrap; gap: 12px; }
  .nameplate { height: auto; gap: 12px; padding: 8px 14px 8px 10px; }
  .nameplate img { height: 44px; }
  .nameplate-text { padding-left: 12px; }
  .nameplate-text b { font-size: 16px; }
  .nameplate-text small { font-size: 10.5px; letter-spacing: 0.12em; }
  .head-section { font-size: 11.5px; }
  .head-section i { font-size: 20px; }
  .slide-body { padding: 22px 0; }
  .slide-body.two, .slide-body.close-grid, .journey-head, .proof-head, .exec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .journey-grid, .exec-cards-grid, .suggestions, .picker-grid, .hero-points { grid-template-columns: minmax(0, 1fr); }
  .narrative-col, .mockup-col, .concierge-col { min-width: 0; }
  .browser-url { min-width: 0; overflow: hidden; white-space: nowrap; }
  .browser-tag { display: none; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .lead { font-size: 16.5px; }
  .slide.cover { grid-template-columns: 1fr; }
  .cover-copy { padding: 24px 18px 10px; }
  .cover-nameplate { gap: 16px; margin-bottom: 28px; padding: 14px 18px 14px 14px; }
  .cover-nameplate img { height: 72px; }
  .cover-name { padding-left: 16px; }
  .cover-firm { font-size: 24px; }
  .hero-visual { padding: 10px 18px 100px; border-left: 0; }
  .cover-page { display: none; }
  .letterhead { padding: 26px 22px; }
  .letterhead-top { flex-wrap: wrap; }
  .letterhead-top img { height: 80px; }
  .letterhead-facts { grid-template-columns: 1fr; }
  .card-top { flex-wrap: wrap; }
  .badge { margin-left: 0; }
  .comparison { flex-direction: column; }
  .case-viewport { width: 100%; height: auto; }
  .mock-hero-stage { height: auto; aspect-ratio: 1376 / 768; }
  .partner-card { grid-template-columns: 1fr; }
  .request h3 { font-size: 34px; }
  .slide-foot { flex-wrap: wrap; font-size: 11px; }
}

/* ---------- Print: every slide on its own landscape page ---------- */
@media print {
  @page { size: letter landscape; margin: 0.25in; }
  html, body { height: auto; overflow: visible; background: #FFFFFF; }
  #deck {
    width: 1640px;
    height: auto;
    zoom: 0.6;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .slide, .slide.active {
    display: flex !important;
    height: 920px;
    break-after: page;
    page-break-after: always;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .slide.cover, .slide.cover.active { display: grid !important; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .controls, canvas, .screen-request { display: none !important; }
  .print-contact { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
}
