/* The Bay Architects × Brandcore — presentation stylesheet.
   One coherent system, zero override layers.
   Surfaces: Warm Architectural Linen (#F4F0E6) and Deep Architectural Slate (#121820).
   Brand accents drawn from East Bay landmark masonry, redwood timber & cartographic ink:
   Every text colour below is paired with the surface it actually sits on and
   measured at WCAG AAA (7:1+ for body/small/mono text, 4.5:1+ for large display text). */

@font-face {
  font-family: 'Newsreader';
  src: url('assets/fonts/newsreader-roman-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('assets/fonts/newsreader-italic-var.woff2') format('woff2');
  font-weight: 200 800;
  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 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Role A — Decorative / Hairline / Graphic Accents (never small text on light) */
  --tba-bronze: #B8864B;
  --tba-terracotta: #9E4724;

  /* Light Theme — Warm Architectural Linen (#F4F0E6) */
  --linen: #F4F0E6;
  --linen-card: #FFFFFF;
  --ink: #121820;            /* 15.9:1 on #F4F0E6 */
  --ink-2: #2D3744;          /* 10.1:1 on #F4F0E6 */
  --bronze-ink: #5A3E0A;     /*  8.3:1 on #F4F0E6 (Role D: small text/kicker on light) */
  --terracotta-ink: #7A2B10; /*  8.5:1 on #F4F0E6 (Role D: em/badge on light) */

  /* Dark Theme — Deep Architectural Slate (#121820) */
  --forest: #121820;
  --forest-card: #19222E;
  --forest-deep: #0B1017;
  --cream: #F6F3EB;          /* 15.6:1 on #121820 */
  --sage: #CED6E0;           /* 11.2:1 on #121820 */
  --olive-light: #E8C57B;    /*  9.7:1 on #121820 (Role C: small text/kicker on dark) */
  --sand: #F0B775;           /*  8.8:1 on #121820 (Role B: large display em on dark) */

  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --pad-x: clamp(24px, 3.8vw, 72px);
  --pad-top: clamp(18px, 3vh, 34px);
  --pad-bottom: clamp(28px, 4.4vh, 48px);

  --h1: clamp(34px, min(3.35vw, 5.9vh), 62px);
  --h2: clamp(28px, min(2.55vw, 4.5vh), 48px);
  --h3: clamp(16px, min(1.08vw, 1.95vh), 21px);
  --lead: clamp(15px, min(1.0vw, 1.78vh), 19px);
  --body: clamp(13.5px, min(0.88vw, 1.55vh), 16.5px);
  --label: clamp(11px, min(0.64vw, 1.14vh), 12.5px);

  --radius: 16px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #090D12;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; opacity: 1; filter: none; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

/* Theme tokens: components read these, so contrast follows the surface. */
.light {
  --bg: var(--linen);
  --card: var(--linen-card);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --accent-text: var(--bronze-ink);
  --em: var(--terracotta-ink);
  --line: rgba(18, 24, 32, 0.14);
  --line-strong: rgba(18, 24, 32, 0.28);
}

.dark,
.awards-card,
.exec-phase-card.featured,
.request {
  --bg: var(--forest);
  --card: var(--forest-card);
  --fg: var(--cream);
  --fg-2: var(--sage);
  --accent-text: var(--olive-light);
  --em: var(--sand);
  --line: rgba(246, 243, 235, 0.14);
  --line-strong: rgba(246, 243, 235, 0.28);
}

/* ---------- Slide shell ---------- */
.slide {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
}
.slide.dark {
  background:
    radial-gradient(120% 90% at 100% 0%, #1C2736 0%, rgba(28, 39, 54, 0) 55%),
    var(--forest);
}
.slide.active {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.2vh, 24px);
}

.slide-head {
  flex: 0 0 auto;
  margin-bottom: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(10px, 1.5vh, 15px);
  border-bottom: 1px solid var(--line);
}
.foundation-grid, .issue-grid, .website-grid, .comparison, .exec-footer-bar, .close-grid {
  margin-bottom: auto;
}

/* ---------- Client brand: authentic Bay cartographic emblem on crisp white plate ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.1vw, 18px);
  min-width: 0;
}
.brand-plate {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(48px, 6.4vh, 64px);
  padding: 4px clamp(12px, 1vw, 16px);
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid rgba(18, 24, 32, 0.14);
  box-shadow: 0 1px 2px rgba(18, 24, 32, 0.06), 0 8px 22px rgba(18, 24, 32, 0.10);
}
.dark .brand-plate {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}
.brand-plate img,
.cover-logo {
  display: block;
  width: auto;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}
.brand-plate img { height: 84%; }
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.brand-text b {
  font-family: var(--font-display);
  font-size: clamp(15px, min(1.02vw, 1.8vh), 19px);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  white-space: nowrap;
}
.brand-text small {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
  white-space: nowrap;
}
.section-tag {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  text-align: right;
}

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--tba-bronze);
  flex: 0 0 auto;
}
h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.014em;
  line-height: 1.05;
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--em);
}
h3 {
  margin: 0;
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--fg);
}
p { margin: 0; }
.lead {
  font-size: var(--lead);
  line-height: 1.54;
  color: var(--fg-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.col {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.7vh, 18px);
  min-height: 0;
  min-width: 0;
}

/* Solid high-contrast numbered chip (.num) */
.num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(32px, 4.2vh, 38px);
  height: clamp(32px, 4.2vh, 38px);
  border-radius: 10px;
  background: var(--terracotta-ink);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: clamp(12px, min(0.8vw, 1.4vh), 14px);
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
}
.dark .num {
  background: var(--olive-light);
  color: var(--forest-deep);
}

/* ---------- Shared browser chrome ---------- */
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: clamp(30px, 3.8vh, 38px);
  padding: 0 14px;
  background: #EAE5DA;
  border-bottom: 1px solid rgba(18, 24, 32, 0.10);
}
.dark .browser-bar {
  background: var(--forest-deep);
  border-bottom-color: rgba(246, 243, 235, 0.10);
}
.browser-dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.browser-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E0675A;
}
.browser-dots i:nth-child(2) { background: #E5B443; }
.browser-dots i:nth-child(3) { background: #5DB06A; }
.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  max-width: 100%;
  padding: 4px 16px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: clamp(11px, min(0.66vw, 1.2vh), 12.5px);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dark .browser-url { background: var(--forest-card); color: var(--sage); }
.browser-url svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 68px);
  align-items: center;
  min-height: 0;
}

/* === SLIDE 1 CSS START === */
.slide.cover.active {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 0;
  padding: 0;
}
.cover-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(12px, 2.2vh, 24px);
  min-height: 0;
  padding: clamp(22px, 4.4vh, 48px) clamp(68px, 5.8vw, 108px) clamp(22px, 4.2vh, 44px) var(--pad-x);
}
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 62% 48% at 38% 56%, transparent 35%, #000 100%);
  mask-image: radial-gradient(ellipse 62% 48% at 38% 56%, transparent 35%, #000 100%);
}
#scene[data-webgl='unavailable'] { display: none; }
.cover-copy > :not(canvas) { position: relative; z-index: 1; }

.cover-collab {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #121820;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #F6F3EB;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brandcore-badge-logo {
  height: 18px;
  width: auto;
  display: block;
}
.cover-collab-sep { color: #E8C57B; font-weight: 800; }
.cover-collab-label { color: #F6F3EB; }

.cover-brand {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: clamp(16px, 1.5vw, 26px);
  padding: clamp(12px, 1.8vh, 18px) clamp(18px, 1.8vw, 28px);
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(18, 24, 32, 0.14);
  box-shadow: 0 18px 44px rgba(18, 24, 32, 0.10);
}
.cover-logo {
  height: clamp(68px, 10.5vh, 108px);
  width: auto;
}
.cover-brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: clamp(16px, 1.4vw, 24px);
  border-left: 1.5px solid rgba(18, 24, 32, 0.18);
}
.cover-brand-text b {
  font-family: var(--font-display);
  font-size: clamp(22px, min(1.75vw, 3.1vh), 34px);
  font-weight: 600;
  line-height: 1.06;
  color: var(--ink);
}
.cover-brand-text span {
  font-size: clamp(12px, min(0.8vw, 1.4vh), 14.5px);
  font-weight: 700;
  color: var(--terracotta-ink);
}
.cover-brand-text small {
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}
.cover-main {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 18px);
}
.cover-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 22px);
  margin: 0;
  padding-top: clamp(10px, 1.6vh, 16px);
  border-top: 1.5px solid var(--line-strong);
}
.cover-facts div { display: flex; flex-direction: column; gap: 4px; }
.cover-facts dt {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}
.cover-facts dd {
  margin: 0;
  font-size: var(--body);
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
}
.cover-prepared-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: clamp(8px, 1.2vh, 12px);
  border-top: 1px solid var(--line);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.cover-prepared-row img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 1.5px solid var(--terracotta-ink);
}
.hero-visual {
  position: relative;
  min-height: 0;
  height: 100%;
  z-index: 2;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}
.photo-tag {
  position: absolute;
  top: clamp(16px, 2.8vh, 28px);
  right: clamp(16px, 1.7vw, 28px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(10, 15, 22, 0.25);
}
.hero-browser {
  position: absolute;
  left: clamp(-62px, -3.3vw, -28px);
  bottom: clamp(22px, 4.8vh, 52px);
  width: min(74%, 560px);
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 34px 80px rgba(10, 15, 22, 0.48), 0 0 0 1px rgba(18, 24, 32, 0.12);
}
.hero-browser > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
}
.hero-browser figcaption {
  padding: 9px 16px;
  border-top: 1px solid rgba(18, 24, 32, 0.08);
  background: #FFFFFF;
  color: var(--ink-2);
  font-size: clamp(10.5px, min(0.6vw, 1.08vh), 11.5px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* === SLIDE 1 CSS END === */

/* === SLIDE 2 CSS START === */
.project-list, .note-list {
  list-style: none;
  margin: clamp(2px, 0.6vh, 6px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.project-list li, .note-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 1.2vw, 20px);
  align-items: start;
  padding: clamp(9px, 1.5vh, 15px) 0;
  border-bottom: 1px solid var(--line);
}
.project-list p, .note-list p {
  margin-top: 4px;
  font-size: var(--body);
  line-height: 1.48;
  color: var(--fg-2);
  text-wrap: pretty;
}
.foundation-visual { gap: clamp(10px, 1.5vh, 16px); }
.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: 0 22px 54px rgba(18, 24, 32, 0.16), 0 0 0 1px rgba(18, 24, 32, 0.08);
}
.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6.6;
  object-fit: cover;
  object-position: 50% 42%;
}
.photo-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(8px, 1.2vh, 12px) clamp(14px, 1.2vw, 20px);
}
.photo-card figcaption span {
  font-family: var(--font-display);
  font-size: clamp(15px, min(1.02vw, 1.85vh), 19px);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.photo-card figcaption small {
  font-size: clamp(10.5px, min(0.6vw, 1.08vh), 12px);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--terracotta-ink);
  white-space: nowrap;
}
.awards-card {
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 1.15vh, 12px);
  padding: clamp(13px, 2.0vh, 20px) clamp(18px, 1.6vw, 26px);
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--fg);
  box-shadow: 0 22px 48px rgba(12, 18, 26, 0.24);
}
.awards-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(7px, 1.05vh, 11px);
}
.awards-card li { display: flex; flex-direction: column; gap: 3px; }
.awards-card li b { font-size: var(--body); font-weight: 700; color: var(--fg); }
.awards-card li span { font-size: var(--body); line-height: 1.42; color: var(--fg-2); }
.awards-card blockquote {
  margin: 0;
  padding-top: clamp(7px, 1.1vh, 11px);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15.5px, min(1.08vw, 1.9vh), 20px);
  line-height: 1.32;
  color: var(--em);
}
.awards-card cite {
  display: block;
  margin-top: 5px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
/* === SLIDE 2 CSS END === */

/* === SLIDE 3 CSS START === */
.slide.journey.active {
  gap: clamp(10px, 1.7vh, 18px);
  padding-bottom: clamp(32px, 4.2vh, 44px);
}
.journey-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(24px, 3.2vw, 56px);
  align-items: center;
}
.journey-top .col {
  gap: clamp(8px, 1.35vh, 14px);
}
.exhibit {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--forest-deep);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(246, 243, 235, 0.16);
}
.exhibit > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 5.75;
  max-height: clamp(168px, 22.5vh, 232px);
  object-fit: cover;
  object-position: center top;
}
.exhibit figcaption {
  padding: 7px 14px;
  background: var(--forest-deep);
  color: var(--sage);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: clamp(14px, 1.5vw, 26px);
}
.issue-card {
  grid-row: span 5;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: clamp(5px, 0.85vh, 9px);
  padding: clamp(13px, 1.9vh, 20px) clamp(16px, 1.5vw, 24px);
  border-radius: var(--radius);
  background: var(--forest-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--tba-bronze);
}
.issue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tag {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-2);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.tag.urgent { background: var(--sand); border-color: var(--sand); color: var(--forest-deep); }
.issue-stat {
  font-family: var(--font-display);
  font-size: clamp(24px, min(2.15vw, 3.7vh), 38px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--em);
}
.issue-card p {
  font-size: var(--body);
  line-height: 1.44;
  color: var(--fg-2);
  text-wrap: pretty;
}
.issue-fix {
  padding-top: clamp(7px, 1.1vh, 11px);
  border-top: 1px solid var(--line);
  font-size: clamp(13px, min(0.84vw, 1.48vh), 15.5px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--accent-text);
}
/* === SLIDE 3 CSS END === */

/* === SLIDE 4 CSS START === */
.website-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
.browser-window {
  justify-self: end;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: 0 32px 76px rgba(18, 24, 32, 0.24), 0 0 0 1px rgba(18, 24, 32, 0.10);
}
.mock-hero-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #F4F0E6;
}
.mock-hero-stage img {
  display: block;
  width: 100%;
  height: auto;
}
.browser-window figcaption {
  padding: 10px 18px;
  border-top: 1px solid rgba(18, 24, 32, 0.08);
  color: var(--ink-2);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* === SLIDE 4 CSS END === */

/* === SLIDE 5 CSS START === */
.proof-head, .exec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 3.4vw, 64px);
  align-items: end;
}
.proof-head > div, .exec-head > div {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6vh, 16px);
}
.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 38px);
  align-items: start;
}
.case-frame {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  justify-self: end;
  overflow: hidden;
  border-radius: 14px;
  background: var(--forest-deep);
  border: 1px solid rgba(246, 243, 235, 0.16);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.44);
}
.case-frame.after {
  justify-self: start;
  border-color: rgba(232, 197, 123, 0.55);
}
.case-label {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-2);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.after .case-label { background: var(--sand); border-color: var(--sand); color: var(--forest-deep); }
.case-viewport {
  position: relative;
  height: clamp(270px, 37vh, 390px);
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  background: #FFFFFF;
}
.case-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.035);
  transform-origin: center top;
}
.case-frame figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: clamp(10px, 1.5vh, 14px) 16px;
  border-top: 1px solid rgba(246, 243, 235, 0.10);
}
.case-frame figcaption b {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.case-frame figcaption span {
  font-size: var(--body);
  color: var(--fg);
}
/* === SLIDE 5 CSS END === */

/* === SLIDE 6 CSS START === */
.exec-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.exec-head h2 { text-wrap: wrap; }
.exec-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(14px, 1.5vw, 26px);
  align-items: stretch;
}
.exec-phase-card {
  grid-row: span 4;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: clamp(8px, 1.4vh, 14px);
  padding: clamp(16px, 2.5vh, 26px) clamp(18px, 1.6vw, 28px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terracotta-ink);
  color: var(--fg);
}
.exec-phase-card.featured {
  background: var(--forest);
  border-color: var(--forest);
  border-top: 3px solid var(--sand);
  box-shadow: 0 24px 56px rgba(18, 24, 32, 0.28);
}
.exec-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.exec-phase-num {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.exec-duration-pill {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--accent-text);
  color: var(--accent-text);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.exec-phase-card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, min(1.4vw, 2.5vh), 26px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.exec-phase-card p {
  font-size: var(--body);
  line-height: 1.5;
  color: var(--fg-2);
}
.exec-deliverables {
  list-style: none;
  margin: 0;
  padding: clamp(8px, 1.4vh, 14px) 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(5px, 0.9vh, 9px);
}
.exec-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--body);
  line-height: 1.4;
  color: var(--fg);
}
.exec-deliverables svg {
  flex: 0 0 auto;
  margin-top: 0.15em;
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.exec-footer-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: clamp(10px, 1.8vh, 18px);
  border-top: 1.5px solid var(--line-strong);
}
.exec-footer-bar div { display: flex; align-items: center; gap: 16px; }
.exec-footer-bar b {
  font-family: var(--font-display);
  font-size: clamp(32px, min(2.9vw, 5vh), 52px);
  font-weight: 500;
  line-height: 1;
  color: var(--em);
  font-variant-numeric: lining-nums;
}
.exec-footer-bar span {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--fg-2);
}
/* === SLIDE 6 CSS END === */

/* === SLIDE 7 CSS START === */
.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 3.8vw, 68px);
  align-items: center;
}
.partner-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 1.6vw, 28px);
  align-items: start;
  margin-top: clamp(2px, 0.6vh, 8px);
  padding: clamp(14px, 2.2vh, 22px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partner-photo {
  display: block;
  width: clamp(112px, 14vh, 136px);
  height: clamp(112px, 14vh, 136px);
  object-fit: cover;
  object-position: center 18%;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(18, 24, 32, 0.22);
}
.partner-details { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.partner-name-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, min(1.8vw, 3.2vh), 32px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--fg);
}
.partner-role-sub {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.partner-quote {
  margin-top: 4px;
  padding-left: 14px;
  border-left: 3px solid var(--terracotta-ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, min(1.02vw, 1.84vh), 18.2px);
  line-height: 1.4;
  color: var(--fg);
}
.partner-contact {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.partner-contact li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(13.5px, min(0.8vw, 1.45vh), 15px);
}
.partner-contact svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.partner-contact span {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.partner-contact a {
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}
.partner-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.partner-brand-signoff {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  background: #121820;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F6F3EB;
}
.signoff-brandcore-logo {
  height: 18px;
  width: auto;
  display: block;
}
.signoff-brandcore-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #CED6E0;
}

.request {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vh, 15px);
  padding: clamp(20px, 3.2vh, 34px) clamp(20px, 2vw, 34px);
  border-radius: 20px;
  background:
    radial-gradient(110% 80% at 100% 0%, #1F2C3D 0%, rgba(31, 44, 61, 0) 60%),
    var(--forest);
  color: var(--fg);
  box-shadow: 0 30px 70px rgba(18, 24, 32, 0.32);
}
.request h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, min(2.3vw, 4.0vh), 42px);
  font-weight: 500;
  line-height: 1.02;
}
.request > p { font-size: var(--body); line-height: 1.48; color: var(--fg-2); }
.screen-request { display: flex; flex-direction: column; gap: clamp(10px, 1.5vh, 14px); }
.suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.suggestions button {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(13px, min(0.82vw, 1.5vh), 15px);
  font-weight: 700;
  cursor: pointer;
}
.suggestions button:hover { background: rgba(246, 243, 235, 0.08); }
.picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.picker-col label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.date-control {
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--forest-deep);
  overflow: hidden;
}
.date-control input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--fg);
  color-scheme: dark;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
}
.date-control input::-webkit-calendar-picker-indicator { display: none; }
.date-control button {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--accent-text);
  cursor: pointer;
}
#picker-help { font-size: 13px; color: var(--fg-2); }
#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--sand);
  color: var(--forest-deep);
  font-size: clamp(13px, min(0.8vw, 1.45vh), 15px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
#contact:hover { background: #F5C98E; }
#contact svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.request-note { font-size: 12.5px; line-height: 1.48; color: var(--fg-2); }
.print-contact { display: none; }
/* === SLIDE 7 CSS END === */

/* ---------- Folio & controls ---------- */
.page {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(10px, 1.8vh, 20px);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--fg-2);
}
.cover .page {
  right: clamp(16px, 1.7vw, 30px);
  bottom: clamp(16px, 2.4vh, 26px);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  z-index: 3;
}
.controls {
  position: fixed;
  left: 50%;
  bottom: max(1.2vh, 12px);
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(18, 24, 32, 0.96);
  border: 1px solid rgba(246, 243, 235, 0.18);
  color: var(--cream);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}
.controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 36px;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.controls button:hover { background: rgba(246, 243, 235, 0.10); }
#counter {
  min-width: 52px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
#play {
  padding-left: 14px;
  border-left: 1px solid rgba(246, 243, 235, 0.22);
  border-radius: 0 999px 999px 0;
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.controls button:focus-visible,
.slide a:focus-visible,
.slide button:focus-visible,
.slide input:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

@media screen and (min-width: 701px) {
  html, body {
    height: 100vh;
    overflow: hidden;
  }
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 64px;
    background: radial-gradient(circle at 50% 30%, #19222E 0%, #090D12 100%);
  }
  #deck {
    position: relative;
    width: min(96vw, 1640px);
    height: min(calc(100vh - 112px), 920px);
    overflow: hidden;
    border-radius: 20px;
    background: var(--linen);
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

@media screen and (min-width: 701px) and (max-height: 820px) {
  .lead { line-height: 1.46; }
  .project-list p, .note-list p, .issue-card p, .exec-phase-card p { line-height: 1.40; }
  .awards-card blockquote { display: none; }
}

@media screen and (max-width: 700px) {
  :root {
    --pad-x: 20px;
    --pad-top: 22px;
    --pad-bottom: 84px;
    --h1: 32px;
    --h2: 26px;
    --h3: 18px;
    --lead: 15.5px;
    --body: 14.5px;
    --label: 11.5px;
  }
  html, body {
    overflow-x: hidden;
  }
  #deck {
    width: 100%;
    overflow-x: hidden;
  }
  .slide {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
  }
  .slide.cover.active {
    display: flex;
    flex-direction: column;
  }
  .cover-copy {
    padding: 24px 20px;
  }
  .cover-brand {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .cover-facts,
  .split,
  .journey-top,
  .issue-grid,
  .website-grid,
  .proof-head,
  .comparison,
  .exec-head,
  .exec-cards-grid,
  .exec-footer-bar,
  .close-grid,
  .partner-card,
  .suggestions,
  .picker-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    min-height: 340px;
  }
  .hero-browser {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 32px);
    margin: 180px 16px 24px;
  }
  .brand-text b,
  .brand-text small {
    white-space: normal;
  }
  .case-viewport,
  .mock-hero-stage {
    height: auto;
  }
}
