/* KTUA Planning & Landscape Architecture: Brandcore sales deck
   One stylesheet, one token system. Light (linen) and dark (forest) slides share
   every component; each theme carries its own text colors, all >= 7:1 on their
   real background. The client logo is never filtered, faded or recolored. */

@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 {
  /* Brand marks (decorative use only; never small text on linen) */
  --ktua-olive: #9CB156;
  --ktua-gray: #636466;

  /* Linen theme */
  --linen: #F4F1E9;
  --linen-card: #FBFAF6;
  --ink: #16211C;          /* 14.7:1 on linen */
  --ink-2: #3A453F;        /*  8.9:1 on linen */
  --olive-ink: #3A4F12;    /*  8.1:1 on linen */
  --clay-ink: #76340D;     /*  8.2:1 on linen */

  /* Forest theme */
  --forest: #14201A;
  --forest-card: #1C2B24;
  --forest-deep: #0F1814;
  --cream: #F4F1E9;        /* 14.9:1 on forest */
  --sage: #C9D1C7;         /* 10.7:1 on forest */
  --olive-light: #C2D488;  /* 10.4:1 on forest */
  --sand: #E6BE8F;         /*  9.7:1 on forest */

  --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(20px, 4vw, 76px);
  --pad-top: clamp(16px, 3.2vh, 38px);
  --pad-bottom: clamp(30px, 5vh, 54px);

  --h1: clamp(36px, min(3.55vw, 6.3vh), 68px);
  --h2: clamp(28px, min(2.7vw, 4.8vh), 52px);
  --h3: clamp(16px, min(1.12vw, 2vh), 22px);
  --lead: clamp(15px, min(1.04vw, 1.86vh), 20px);
  --body: clamp(14px, min(0.9vw, 1.6vh), 17px);
  --label: clamp(11px, min(0.64vw, 1.16vh), 12.5px);

  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0E1411;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

/* 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(--olive-ink);
  --em: var(--clay-ink);
  --line: rgba(22, 33, 28, 0.14);
  --line-strong: rgba(22, 33, 28, 0.3);
}
.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(244, 241, 233, 0.13);
  --line-strong: rgba(244, 241, 233, 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%, #1B2A22 0%, rgba(27, 42, 34, 0) 55%),
    var(--forest);
}
.slide.active {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.6vh, 30px);
}

/* Header sits on top; the body block is centered in the remaining height. */
.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.6vh, 16px);
  border-bottom: 1px solid var(--line);
}
.foundation-grid, .issue-grid, .website-grid, .comparison, .exec-footer-bar, .close-grid {
  margin-bottom: auto;
}

/* ---------- Client brand: always on its native white, always full strength ---------- */
.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(46px, 6.4vh, 64px);
  padding: 0 clamp(14px, 1.15vw, 20px);
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid rgba(22, 33, 28, 0.1);
  box-shadow: 0 1px 2px rgba(22, 33, 28, 0.06), 0 8px 22px rgba(22, 33, 28, 0.1);
}
.dark .brand-plate {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.brand-plate img,
.cover-logo {
  display: block;
  width: auto;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal;
}
.brand-plate img { height: 70%; }
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.brand-text b {
  font-size: clamp(14px, min(0.92vw, 1.66vh), 17px);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg);
  white-space: nowrap;
}
.brand-text small {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  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;
}

/* ---------- Type ---------- */
.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(--ktua-olive);
  flex: 0 0 auto;
}
h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
  line-height: 1.04;
  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.25;
  letter-spacing: -0.01em;
  color: var(--fg);
}
p { margin: 0; }
.lead {
  font-size: var(--lead);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.col {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.9vh, 20px);
  min-width: 0;
}

/* Numbered marker used in lists and cards */
.num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(30px, 4.2vh, 40px);
  height: clamp(30px, 4.2vh, 40px);
  border-radius: 50%;
  border: 1.5px solid var(--accent-text);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: clamp(14px, min(0.95vw, 1.7vh), 18px);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- Shared browser chrome ---------- */
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: clamp(30px, 4vh, 40px);
  padding: 0 14px;
  background: #ECE8DF;
  border-bottom: 1px solid rgba(22, 33, 28, 0.1);
}
.dark .browser-bar {
  background: var(--forest-deep);
  border-bottom-color: rgba(244, 241, 233, 0.1);
}
.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), 13px);
  font-weight: 500;
  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;
}
.browser-url.insecure { color: #F4B9A6; }
.browser-url.insecure i {
  display: block;
  width: 1px;
  height: 14px;
  background: rgba(244, 241, 233, 0.3);
}
.browser-url.insecure i + * { color: var(--sage); }

/* ---------- Slide 1: cover ---------- */
.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(16px, 3vh, 34px);
  min-height: 0;
  padding: clamp(26px, 5.4vh, 62px) clamp(64px, 5.8vw, 112px) clamp(26px, 5vh, 56px) var(--pad-x);
}
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  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-brand {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 30px);
}
.cover-logo { height: clamp(68px, 11.6vh, 126px); }
.cover-brand-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: clamp(16px, 1.5vw, 28px);
  border-left: 1.5px solid var(--line-strong);
}
.cover-brand-text b {
  font-family: var(--font-display);
  font-size: clamp(18px, min(1.45vw, 2.6vh), 28px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
}
.cover-brand-text small {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-ink);
}
.cover-main {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.3vh, 26px);
}
.cover-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 26px);
  margin: 0;
  padding-top: clamp(12px, 2vh, 20px);
  border-top: 1.5px solid var(--line-strong);
}
.cover-facts div { display: flex; flex-direction: column; gap: 6px; }
.cover-facts dt {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-ink);
}
.cover-facts dd {
  margin: 0;
  font-size: var(--body);
  font-weight: 600;
  line-height: 1.35;
  color: var(--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% 30%;
  display: block;
  opacity: 1;
  filter: none;
}
.photo-tag {
  position: absolute;
  top: clamp(16px, 3vh, 30px);
  right: clamp(16px, 1.7vw, 30px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.97);
  color: var(--ink);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(10, 20, 15, 0.22);
}
.hero-browser {
  position: absolute;
  left: clamp(-90px, -4.6vw, -36px);
  bottom: clamp(22px, 5vh, 56px);
  width: min(68%, 540px);
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 34px 80px rgba(10, 20, 15, 0.42), 0 0 0 1px rgba(22, 33, 28, 0.08);
}
.hero-browser > img {
  display: block;
  width: 100%;
  aspect-ratio: 1376 / 768;
  object-fit: cover;
  object-position: center top;
}
.hero-browser figcaption {
  padding: 9px 16px;
  border-top: 1px solid rgba(22, 33, 28, 0.08);
  background: #FFFFFF;
  color: var(--ink-2);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Two-column body ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 76px);
  align-items: center;
  min-height: 0;
}

/* ---------- Slide 2: foundation ---------- */
.project-list, .note-list {
  list-style: none;
  margin: clamp(2px, 0.8vh, 8px) 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(10px, 1.7vh, 18px) 0;
  border-bottom: 1px solid var(--line);
}
.project-list p, .note-list p {
  margin-top: 4px;
  font-size: var(--body);
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: pretty;
}
.foundation-visual { gap: clamp(12px, 2vh, 20px); }
.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: 0 22px 54px rgba(22, 33, 28, 0.16), 0 0 0 1px rgba(22, 33, 28, 0.06);
}
.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2160 / 756;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 1;
  filter: none;
}
.photo-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(9px, 1.4vh, 14px) clamp(14px, 1.2vw, 20px);
}
.photo-card figcaption span {
  font-family: var(--font-display);
  font-size: clamp(17px, min(1.15vw, 2.05vh), 22px);
  font-weight: 500;
  color: var(--ink);
}
.photo-card figcaption small {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-ink);
}
.awards-card {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vh, 16px);
  padding: clamp(16px, 2.6vh, 28px) clamp(18px, 1.6vw, 30px);
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--fg);
}
.awards-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(8px, 1.3vh, 14px);
}
.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.45; color: var(--fg-2); }
.awards-card blockquote {
  margin: 0;
  padding-top: clamp(10px, 1.5vh, 16px);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, min(1.2vw, 2.15vh), 23px);
  line-height: 1.3;
  color: var(--em);
}
.awards-card cite {
  display: block;
  margin-top: 6px;
  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 3: what a visitor sees ---------- */
.journey-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 3.6vw, 68px);
  align-items: center;
}
.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(244, 241, 233, 0.14);
}
.exhibit > img {
  display: block;
  width: 100%;
  aspect-ratio: 1600 / 397;
  object-fit: cover;
}
.exhibit figcaption {
  padding: 9px 16px;
  background: var(--forest-deep);
  color: var(--sage);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 26px);
}
.issue-card {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 11px);
  padding: clamp(14px, 2.4vh, 26px) clamp(16px, 1.5vw, 28px);
  border-radius: var(--radius);
  background: var(--forest-card);
  border: 1px solid var(--line);
}
.issue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.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.14em;
  text-transform: uppercase;
}
.tag.urgent { background: var(--sand); border-color: var(--sand); color: var(--forest); }
.issue-stat {
  font-family: var(--font-display);
  font-size: clamp(28px, min(2.5vw, 4.4vh), 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--em);
}
.issue-card p {
  font-size: var(--body);
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: pretty;
}
.issue-fix {
  margin-top: auto;
  padding-top: clamp(8px, 1.3vh, 12px);
  border-top: 1px solid var(--line);
  font-size: var(--body);
  font-weight: 700;
  color: var(--accent-text);
}

/* ---------- Slide 4: the new site ---------- */
.website-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.browser-window {
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: 0 32px 76px rgba(22, 33, 28, 0.24), 0 0 0 1px rgba(22, 33, 28, 0.08);
}
.mock-hero-stage {
  position: relative;
  height: clamp(300px, 42vh, 440px);
  aspect-ratio: 1376 / 768;
  max-width: 100%;
  overflow: hidden;
  background: #FFFFFF;
}
.mock-hero-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}
.browser-window figcaption {
  padding: 10px 18px;
  border-top: 1px solid rgba(22, 33, 28, 0.08);
  color: var(--ink-2);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Slide 5: before & after ---------- */
.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(10px, 1.8vh, 18px);
}
.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 40px);
  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(244, 241, 233, 0.14);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}
.case-frame.after { justify-self: start; }
.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); }
.case-viewport {
  position: relative;
  height: clamp(280px, 38vh, 400px);
  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;
  opacity: 1;
  filter: none;
}
.case-frame figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: clamp(10px, 1.6vh, 15px) 16px;
  border-top: 1px solid rgba(244, 241, 233, 0.1);
}
.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 6: roadmap ---------- */
.exec-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
.exec-head h2 { text-wrap: wrap; }
.exec-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 26px);
  align-items: stretch;
}
.exec-phase-card {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 14px);
  padding: clamp(16px, 2.6vh, 28px) clamp(18px, 1.6vw, 28px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--fg);
}
.exec-phase-card.featured {
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: 0 24px 56px rgba(20, 32, 26, 0.3);
}
.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: auto 0 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), 54px);
  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 7: partner sign-off ---------- */
.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4vw, 76px);
  align-items: center;
}
.partner-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 1.7vw, 30px);
  align-items: start;
  margin-top: clamp(2px, 0.6vh, 8px);
  padding: clamp(14px, 2.4vh, 26px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partner-photo {
  display: block;
  width: clamp(112px, 14.5vh, 140px);
  height: clamp(112px, 14.5vh, 140px);
  object-fit: cover;
  object-position: center 18%;
  border-radius: 20px;
  opacity: 1;
  filter: none;
  box-shadow: 0 14px 34px rgba(22, 33, 28, 0.2);
}
.partner-details { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.partner-name-heading {
  font-family: var(--font-display);
  font-size: clamp(25px, min(1.85vw, 3.3vh), 34px);
  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;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, min(1.16vw, 2.08vh), 21px);
  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 22px;
}
.partner-contact li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--body);
}
.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.14em;
  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; }

.request {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.7vh, 16px);
  padding: clamp(20px, 3.4vh, 38px) clamp(20px, 2vw, 36px);
  border-radius: 20px;
  background:
    radial-gradient(110% 80% at 100% 0%, #213328 0%, rgba(33, 51, 40, 0) 60%),
    var(--forest);
  color: var(--fg);
  box-shadow: 0 30px 70px rgba(20, 32, 26, 0.32);
}
.request h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, min(2.4vw, 4.2vh), 46px);
  font-weight: 500;
  line-height: 1;
}
.request > p { font-size: var(--body); line-height: 1.5; color: var(--fg-2); }
.screen-request { display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 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(244, 241, 233, 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;
}
.date-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#picker-help { font-size: 13px; color: var(--fg-2); }
#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--sand);
  color: var(--forest);
  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: #EFCDA6; }
#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: 13px; line-height: 1.5; color: var(--fg-2); }
.print-contact { display: none; }

/* ---------- 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: 600;
  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(251, 250, 246, 0.97);
  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(20, 32, 26, 0.96);
  border: 1px solid rgba(244, 241, 233, 0.16);
  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(244, 241, 233, 0.1); }
.ui-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#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(244, 241, 233, 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;
}
.light a:focus-visible, .light button:focus-visible { outline-color: var(--clay-ink); }
.request a:focus-visible, .request button:focus-visible, .request input:focus-visible { outline-color: var(--sand); }

/* ---------- Desktop: centered presentation frame ---------- */
@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%, #1A231E 0%, #0B100D 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);
  }
}

/* Short desktop windows: tighten copy blocks so nothing clips */
@media screen and (min-width: 701px) and (max-height: 820px) {
  .lead { line-height: 1.48; }
  .project-list p, .note-list p, .issue-card p, .exec-phase-card p { line-height: 1.42; }
  .awards-card blockquote { display: none; }
}

/* ---------- Phones & narrow tablets: native scrolling, one slide at a time ---------- */
@media screen and (max-width: 700px) {
  :root {
    --pad-x: 18px;
    --h1: 38px;
    --h2: 31px;
    --h3: 17px;
    --lead: 16px;
    --body: 15px;
    --label: 11.5px;
  }
  html, body { height: auto; overflow-y: auto; background: var(--linen); }
  #deck { width: 100%; height: auto; }
  .slide.active {
    height: auto;
    min-height: 100svh;
    padding: 16px var(--pad-x) 104px;
    gap: 22px;
  }
  .slide-head { margin-bottom: 4px; }
  .foundation-grid, .issue-grid, .website-grid, .comparison, .exec-footer-bar, .close-grid { margin-bottom: 0; }
  .section-tag, .brand-text small { display: none; }
  .brand-text b { white-space: normal; }
  .split, .website-grid, .journey-top, .proof-head, .exec-head, .close-grid,
  .issue-grid, .exec-cards-grid, .comparison, .exec-footer-bar, .cover-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .slide.cover.active { display: flex; flex-direction: column; padding: 0 0 104px; }
  .cover-copy { padding: 24px var(--pad-x) 8px; gap: 22px; }
  .cover-logo { height: 76px; }
  .hero-visual { height: 520px; margin: 0 var(--pad-x); border-radius: var(--radius); overflow: hidden; }
  .hero-browser { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cover .page { bottom: 64px; }
  .browser-window, .case-frame, .case-frame.after { justify-self: stretch; width: 100%; }
  .mock-hero-stage, .case-viewport { height: auto; width: 100%; }
  .mock-hero-stage { aspect-ratio: 1376 / 768; }
  .case-viewport { aspect-ratio: 16 / 10; }
  .partner-card { grid-template-columns: 1fr; }
  .partner-photo { width: 120px; height: 120px; }
  .picker-grid, .suggestions { grid-template-columns: minmax(0, 1fr); }
  .page { bottom: 76px; }
}

/* ---------- Print: every slide on its own landscape page ---------- */
@media print {
  @page { size: 11in 7.5in; margin: 0; }
  html, body { background: #FFFFFF; height: auto; overflow: visible; }
  #deck { width: 100%; height: auto; overflow: visible; box-shadow: none; border-radius: 0; }
  .slide, .slide.active {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
    width: 11in;
    height: 7.5in;
    padding: 0.35in 0.45in 0.4in;
    break-after: page;
    page-break-after: always;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .slide.cover { display: grid !important; grid-template-columns: 1.08fr 0.92fr; padding: 0; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  :root {
    --h1: 40px; --h2: 30px; --h3: 15px; --lead: 13px; --body: 11.5px; --label: 9px;
  }
  .mock-hero-stage { height: 3.1in; }
  .case-viewport { height: 2.9in; }
  .partner-photo { width: 1.2in; height: 1.2in; }
  .controls, #scene, .screen-request, .page { display: none !important; }
  .print-contact {
    display: block;
    font-size: 11pt;
    font-weight: 700;
    color: var(--fg);
  }
}
