/* Living Trust Express — Brandcore sales deck
   "Paper & Ink": ivory paper slides and deep ink-navy slides, accented only with
   the green and blue of the client's own mark. One stylesheet, no override layers.

   Every slide is laid out on a 1640 x 920 canvas and scaled by --u (1 canvas px),
   so the composition is identical at 1920x1080, 1366x768 and in print.
   Text colours are tokens per theme; every pairing below meets WCAG AAA (>= 7:1). */

@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/source-serif-4-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-400-normal.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --frame-w: min(94vw, 1640px);
  --frame-h: min(88vh, 920px);
  --u: min(calc(var(--frame-h) / 920), calc(var(--frame-w) / 1640));

  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  /* Brand graphics (shapes only, never text): sampled from the Living Trust Express mark */
  --brand-green: #39B54A;
  --brand-blue: #2196D6;
  --brand-blue-deep: #2A4C9C;

  /* Fixed neutrals */
  --ivory: #FBF9F4;
  --linen: #F2EEE5;
  --navy: #0D1E31;
  --navy-2: #13304B;
  --ink: #0F2236;

  --stripes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 16'%3E%3Cpath d='M1 15h4.6L19.6 3H15z' fill='%232196D6'/%3E%3Cpath d='M7.6 15h4.6L26.2 3h-4.6z' fill='%2339B54A'/%3E%3Cpath d='M14.2 15h4.6L32.8 3h-4.6z' fill='%232A4C9C'/%3E%3C/svg%3E");
}

/* Theme tokens. Contrast (normal text) measured against each theme's backgrounds:
   paper  #FBF9F4 / card #FFFFFF / linen #F2EEE5     night  #0D1E31 .. #16314D
   text   #0F2236  15.3                               text   #F6F3EC  15.2
   body   #3B4859   8.8 (8.0 on linen)                body   #CBD5E0   8.9 min
   label  #3F4B5A   8.4                               label  #DCE3EA  10.4
   accent #175A2D   7.9 (7.2 on linen)                accent #9FDDAA   8.5 min
   num    #18497F   8.7                               num    #A9CDF2   8.0 min      */
.paper, .quote-sheet {
  --bg: var(--ivory);
  --surface: #FFFFFF;
  --surface-2: var(--linen);
  --line: #E2DBCD;
  --line-strong: #CFC6B4;
  --text: #0F2236;
  --body: #3B4859;
  --label: #3F4B5A;
  --accent: #175A2D;
  --num: #18497F;
  --on-accent: #FFFFFF;
  --bar: #F1EDE4;
  --url-bg: #FFFFFF;
  --shadow: 0 calc(18 * var(--u)) calc(48 * var(--u)) rgba(15, 34, 54, 0.12), 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(15, 34, 54, 0.06);
}
.night, .request {
  --bg: var(--navy);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: #16314D;
  --line: rgba(220, 227, 234, 0.16);
  --line-strong: rgba(220, 227, 234, 0.3);
  --text: #F6F3EC;
  --body: #CBD5E0;
  --label: #DCE3EA;
  --accent: #9FDDAA;
  --num: #A9CDF2;
  --on-accent: #0D1E31;
  --bar: #0A1828;
  --url-bg: rgba(255, 255, 255, 0.07);
  --shadow: 0 calc(26 * var(--u)) calc(64 * var(--u)) rgba(0, 0, 0, 0.42);
}

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

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

button, a, input { font: inherit; color: inherit; }
img { max-width: 100%; }

.ui-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

:focus-visible {
  outline: 3px solid var(--accent, #9FDDAA);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Deck frame ---------- */
#deck {
  position: relative;
  overflow: hidden;
}

.slide {
  position: relative;
  display: none;
  flex-direction: column;
  gap: calc(22 * var(--u));
  padding: calc(30 * var(--u)) calc(56 * var(--u)) calc(70 * var(--u));
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}
.slide.active { display: flex; }

.slide.paper {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 55%),
    var(--ivory);
}
.slide.night {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(33, 150, 214, 0.12) 0%, rgba(33, 150, 214, 0) 60%),
    linear-gradient(160deg, var(--navy) 0%, #11283F 62%, var(--navy-2) 100%);
}

/* Content between header and footer sits on the slide's optical centre */
.slide:not(.cover) > .slide-head + * { margin-top: auto; }
.slide:not(.cover) > :nth-last-child(2) { margin-bottom: auto; }

/* ---------- Header: the client's mark leads every slide ---------- */
.slide-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: calc(20 * var(--u));
  padding-bottom: calc(16 * var(--u));
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: calc(13 * var(--u));
  height: calc(62 * var(--u));
  padding: 0 calc(18 * var(--u));
  border-radius: calc(12 * var(--u));
  background: #FFFFFF; /* the mark's own ground */
  border: 1px solid var(--line);
  box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(15, 34, 54, 0.1);
}
.night .brand-lockup {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, 0.35);
}
.brand-lockup img {
  display: block;
  width: auto;
  opacity: 1;
  filter: none;
}
.lockup-mark { height: calc(44 * var(--u)); }
.lockup-word { height: calc(27 * var(--u)); margin-top: calc(2 * var(--u)); }

.brand-sub,
.head-section {
  font-size: max(11px, calc(13 * var(--u)));
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}
.brand-sub {
  color: var(--label);
  padding-left: calc(20 * var(--u));
  border-left: 1px solid var(--line-strong);
}
.head-section {
  margin-left: auto;
  color: var(--accent);
}

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: calc(12 * var(--u));
  font-size: max(11px, calc(13.5 * var(--u)));
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
}
.kicker::before {
  content: '';
  flex: none;
  width: calc(34 * var(--u));
  height: calc(16 * var(--u));
  background: var(--stripes) no-repeat center / contain;
}

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: calc(62 * var(--u)); line-height: 1.06; }
h2 { font-size: calc(46 * var(--u)); line-height: 1.1; }
h1 em, h2 em {
  font-style: normal;
  color: var(--accent);
}

h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: max(15px, calc(21 * var(--u)));
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text);
}

p { margin: 0; }
.nowrap, .nb { white-space: nowrap; }
.lead {
  font-size: max(14px, calc(19 * var(--u)));
  line-height: 1.5;
  color: var(--body);
  max-width: 62ch;
  text-wrap: pretty;
}

.num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(26 * var(--u));
  line-height: 1;
  color: var(--num);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- Footer & folio ---------- */
.slide-foot {
  position: absolute;
  left: calc(56 * var(--u));
  right: calc(56 * var(--u));
  bottom: calc(22 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: max(10px, calc(12 * var(--u)));
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  pointer-events: none;
}
.folio {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* ---------- Shared browser frame ---------- */
.browser,
.stage-browser,
.case-frame {
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(14 * var(--u));
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.paper .browser, .paper .case-frame { background: #FFFFFF; }
.night .browser { background: #0A1828; }

.browser-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  height: calc(42 * var(--u));
  padding: 0 calc(16 * var(--u));
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: inline-flex; gap: calc(7 * var(--u)); flex: none; }
.browser-dots i {
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  border-radius: 50%;
  background: #E5675F;
}
.browser-dots i:nth-child(2) { background: #E9B949; }
.browser-dots i:nth-child(3) { background: #5DBE6B; }
.browser-url {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  height: calc(27 * var(--u));
  padding: 0 calc(12 * var(--u));
  border-radius: calc(7 * var(--u));
  background: var(--url-bg);
  font-family: var(--mono);
  font-size: max(10.5px, calc(13 * var(--u)));
  font-weight: 500;
  color: var(--label);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url .ui-icon { color: var(--accent); }
.browser-tag,
.case-badge {
  flex: none;
  padding: calc(6 * var(--u)) calc(11 * var(--u));
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: max(10px, calc(11.5 * var(--u)));
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.case-badge.before { background: #6A3424; color: #FFFFFF; }
.case-badge.after { background: #175A2D; color: #FFFFFF; }

/* ---------- Slide 1: cover ---------- */
.slide.cover {
  padding: 0;
  gap: 0;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
}
.slide.cover.active { display: grid; }

.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: calc(22 * var(--u));
  padding: calc(56 * var(--u)) calc(56 * var(--u)) calc(92 * var(--u)) calc(76 * var(--u));
}
.cover-logo {
  display: block;
  height: calc(184 * var(--u));
  width: auto;
  margin: 0 0 calc(12 * var(--u)) calc(-4 * var(--u));
  opacity: 1;
  filter: none;
}
.cover h1 { max-width: 13.5em; }
.cover .lead { font-size: max(14px, calc(19.5 * var(--u))); }

.cover-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: calc(8 * var(--u)) 0 0;
  border-top: 1px solid var(--line-strong);
}
.cover-facts > div {
  padding: calc(18 * var(--u)) calc(18 * var(--u)) 0 0;
}
.cover-facts > div + div {
  padding-left: calc(20 * var(--u));
  border-left: 1px solid var(--line);
}
.cover-facts dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(32 * var(--u));
  line-height: 1;
  color: var(--text);
}
.cover-facts dd {
  margin: calc(8 * var(--u)) 0 0;
  font-size: max(12px, calc(14.5 * var(--u)));
  font-weight: 600;
  line-height: 1.4;
  color: var(--body);
}

.cover-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(33, 150, 214, 0.16) 0%, rgba(33, 150, 214, 0) 65%),
    radial-gradient(70% 50% at 90% 100%, rgba(57, 181, 74, 0.12) 0%, rgba(57, 181, 74, 0) 70%),
    linear-gradient(165deg, var(--navy) 0%, #11283F 60%, var(--navy-2) 100%);
}
/* Static brand-stripe texture, shown only if WebGL is unavailable */
.cover-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: repeating-linear-gradient(-50deg, rgba(57, 181, 74, 0.07) 0 calc(14 * var(--u)), transparent calc(14 * var(--u)) calc(46 * var(--u)));
}
.cover-stage:has(#scene[data-webgl="unavailable"])::before { opacity: 1; }
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.22;
  pointer-events: none;
}

.stage-photo {
  position: absolute;
  top: calc(62 * var(--u));
  right: calc(52 * var(--u));
  width: 80%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: calc(16 * var(--u));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 calc(30 * var(--u)) calc(72 * var(--u)) rgba(0, 0, 0, 0.45);
}
.stage-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
  opacity: 1;
  filter: none;
}
.stage-photo figcaption {
  position: absolute;
  top: calc(18 * var(--u));
  left: calc(18 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  padding: calc(10 * var(--u)) calc(15 * var(--u)) calc(10 * var(--u)) calc(12 * var(--u));
  border-radius: calc(11 * var(--u));
  background: #FFFFFF;
  color: #0F2236;
  font-size: max(11.5px, calc(14.5 * var(--u)));
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 calc(10 * var(--u)) calc(26 * var(--u)) rgba(15, 34, 54, 0.28);
}
.stage-photo figcaption .ui-icon {
  width: calc(26 * var(--u));
  height: calc(26 * var(--u));
  color: #175A2D;
}
.stage-photo figcaption b {
  display: block;
  font-size: max(10px, calc(11.5 * var(--u)));
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #175A2D;
}

.stage-browser {
  --line: rgba(15, 34, 54, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --bar: #F1EDE4;
  --url-bg: #FFFFFF;
  --label: #3F4B5A;
  --accent: #175A2D;
  --on-accent: #FFFFFF;
  position: absolute;
  left: calc(44 * var(--u));
  bottom: calc(80 * var(--u));
  width: 68%;
  background: #FFFFFF;
  border-radius: calc(13 * var(--u));
  box-shadow: 0 calc(36 * var(--u)) calc(84 * var(--u)) rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.stage-browser .browser-bar { height: calc(38 * var(--u)); }
.stage-browser img {
  display: block;
  width: 100%;
  aspect-ratio: 1376 / 712;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}
.cover .slide-foot { left: calc(76 * var(--u)); }
.cover .folio { color: #DCE3EA; }

/* ---------- Two-column split (slides 2 & 4) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: calc(60 * var(--u));
  align-items: center;
  min-height: 0;
}
.split-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(16 * var(--u));
}
.split-copy .lead { margin-bottom: calc(6 * var(--u)); }

.pillars, .features, .win-list, .phases, .phases ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pillars, .features { width: 100%; }
.pillars > li, .features > li {
  display: grid;
  grid-template-columns: calc(52 * var(--u)) minmax(0, 1fr);
  gap: calc(6 * var(--u));
  padding: calc(17 * var(--u)) 0;
  border-top: 1px solid var(--line);
}
.pillars > li .num, .features > li .num { padding-top: calc(1 * var(--u)); }
.pillars p, .features p, .win-list p {
  text-wrap: pretty;
  margin-top: calc(6 * var(--u));
  font-size: max(13.5px, calc(16.5 * var(--u)));
  line-height: 1.52;
  color: var(--body);
}

/* Slide 2 */
.split-foundation { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.quote-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: calc(38 * var(--u)) calc(42 * var(--u)) calc(30 * var(--u));
  border-radius: calc(18 * var(--u));
  background: var(--ivory);
  color: var(--text);
  box-shadow: 0 calc(34 * var(--u)) calc(80 * var(--u)) rgba(0, 0, 0, 0.42);
}
.quote-sheet::after {
  content: '';
  position: absolute;
  top: calc(34 * var(--u));
  right: calc(38 * var(--u));
  width: calc(64 * var(--u));
  height: calc(30 * var(--u));
  background: var(--stripes) no-repeat center / contain;
}
.sheet-label {
  font-size: max(11px, calc(13.5 * var(--u)));
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: calc(8 * var(--u));
}
.quote-sheet blockquote {
  margin: 0;
  padding: calc(20 * var(--u)) 0;
  border-bottom: 1px solid var(--line);
}
.quote-sheet blockquote p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(25 * var(--u));
  line-height: 1.28;
  color: var(--text);
  text-wrap: balance;
}
.quote-sheet cite {
  display: block;
  margin-top: calc(10 * var(--u));
  font-style: normal;
  font-size: max(11px, calc(13 * var(--u)));
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}
.sheet-offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(20 * var(--u));
  padding-top: calc(20 * var(--u));
}
.sheet-offices span {
  font-family: var(--mono);
  font-size: max(12px, calc(15.5 * var(--u)));
  font-weight: 600;
  color: var(--text);
}
.sheet-offices b {
  display: block;
  margin-bottom: calc(5 * var(--u));
  font-family: var(--sans);
  font-size: max(10.5px, calc(12 * var(--u)));
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Intro row (slides 3, 5, 6) ---------- */
.intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: calc(64 * var(--u));
  align-items: end;
}
.intro-row > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(14 * var(--u));
}
.intro-row .lead { padding-bottom: calc(6 * var(--u)); }

/* ---------- Slide 3: three quick wins ---------- */
.wins {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: calc(40 * var(--u));
  align-items: stretch;
  min-height: 0;
}
.site-shot {
  position: relative;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
}
.site-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  border-radius: 50%;
  background: #15572B;
  color: #FFFFFF;
  font-size: max(12px, calc(16 * var(--u)));
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 calc(4 * var(--u)) #FFFFFF, 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(15, 34, 54, 0.35);
}
.pin.static {
  position: static;
  transform: none;
  box-shadow: none;
  flex: none;
}
.win-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(14 * var(--u));
}
.win-list > li {
  flex: 1;
  display: grid;
  grid-template-columns: calc(36 * var(--u)) minmax(0, 1fr);
  gap: calc(18 * var(--u));
  align-items: start;
  align-content: center;
  padding: calc(22 * var(--u)) calc(24 * var(--u));
  border-radius: calc(14 * var(--u));
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(15, 34, 54, 0.07);
}

/* ---------- Slide 4: website showcase ---------- */
.split-website {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: calc(52 * var(--u));
}
.showcase-view {
  height: clamp(300px, 42vh, 440px);
  height: min(clamp(300px, 42vh, 440px), calc(440 * var(--u))); /* never outgrow the scaled canvas */
  overflow: hidden;
  background: #FFFFFF;
}
.showcase-view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}
.showcase figcaption {
  padding: calc(13 * var(--u)) calc(18 * var(--u));
  font-size: max(12px, calc(14.5 * var(--u)));
  font-weight: 600;
  color: var(--body);
  border-top: 1px solid var(--line);
  background: #0A1828;
}

/* ---------- Slide 5: before & after ---------- */
.comparison {
  display: flex;
  justify-content: center;
  gap: calc(44 * var(--u));
}
.case-frame { width: max-content; max-width: 50%; }
.case-viewport {
  height: clamp(280px, 38vh, 400px);
  height: min(clamp(280px, 38vh, 400px), calc(400 * var(--u)));
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #FFFFFF;
}
.case-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  transform-origin: center top;
  opacity: 1;
  filter: none;
}
.case-frame figcaption {
  max-width: 0;
  min-width: 100%;
  text-wrap: balance;
  padding: calc(14 * var(--u)) calc(18 * var(--u));
  font-size: max(12.5px, calc(15.5 * var(--u)));
  line-height: 1.45;
  font-weight: 500;
  color: var(--body);
  border-top: 1px solid var(--line);
}

/* ---------- Slide 6: roadmap ---------- */
.phases {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(24 * var(--u));
  padding-top: calc(28 * var(--u));
}
.phases::before {
  content: '';
  position: absolute;
  left: calc(30 * var(--u));
  right: calc(30 * var(--u));
  top: calc(9 * var(--u));
  height: 2px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-blue) 55%, var(--brand-blue-deep));
}
.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--u));
  padding: calc(26 * var(--u)) calc(28 * var(--u)) calc(26 * var(--u));
  border-radius: calc(16 * var(--u));
  background: var(--surface);
  border: 1px solid var(--line);
}
.phase::before {
  content: '';
  position: absolute;
  top: calc(-27 * var(--u));
  left: calc(28 * var(--u));
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
  border-radius: 50%;
  background: var(--navy);
  border: calc(3 * var(--u)) solid var(--brand-green);
}
.phase:nth-child(2)::before { border-color: var(--brand-blue); }
.phase:nth-child(3)::before { border-color: #6C8FD6; }
.phase.featured {
  background: rgba(159, 221, 170, 0.075);
  border-color: rgba(159, 221, 170, 0.5);
}
.phase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12 * var(--u));
}
.phase .num { font-size: calc(30 * var(--u)); }
.phase-days {
  padding: calc(7 * var(--u)) calc(12 * var(--u));
  border-radius: 999px;
  border: 1px solid rgba(159, 221, 170, 0.55);
  font-size: max(10.5px, calc(12 * var(--u)));
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.phase h3 { font-size: max(15px, calc(22 * var(--u))); }
.phase ul { display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.phase ul li {
  text-wrap: pretty;
  position: relative;
  padding-left: calc(24 * var(--u));
  font-size: max(13.5px, calc(16.5 * var(--u)));
  line-height: 1.48;
  color: var(--body);
}
.phase ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: calc(13 * var(--u));
  height: calc(5 * var(--u));
  background: var(--brand-green);
  transform: skewX(-40deg);
  border-radius: 1px;
}
.roadmap-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(24 * var(--u));
}
.roadmap-strip span {
  padding: calc(14 * var(--u)) calc(2 * var(--u)) 0;
  border-top: 1px solid var(--line-strong);
  font-size: max(13px, calc(16 * var(--u)));
  font-weight: 600;
  color: var(--body);
}
.roadmap-strip b {
  margin-right: calc(6 * var(--u));
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(24 * var(--u));
  color: var(--text);
}

/* ---------- Slide 7: partner sign-off ---------- */
.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: calc(52 * var(--u));
  align-items: center;
}
.close-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(16 * var(--u));
}
.partner-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: calc(26 * var(--u));
  align-items: start;
  margin-top: calc(8 * var(--u));
  padding: calc(26 * var(--u));
  border-radius: calc(18 * var(--u));
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.partner-portrait {
  display: block;
  width: max(112px, calc(138 * var(--u)));
  height: max(112px, calc(138 * var(--u)));
  object-fit: cover;
  object-position: center 18%;
  border-radius: calc(20 * var(--u));
  opacity: 1;
  filter: none;
}
.partner-details { display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.partner-kicker {
  font-size: max(10.5px, calc(12 * var(--u)));
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.partner-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(32 * var(--u));
  line-height: 1.1;
  color: var(--text);
}
.partner-role {
  font-size: max(12px, calc(14.5 * var(--u)));
  font-weight: 600;
  color: var(--label);
}
.partner-quote {
  text-wrap: pretty;
  margin: calc(12 * var(--u)) 0 calc(6 * var(--u));
  padding-left: calc(16 * var(--u));
  border-left: calc(3 * var(--u)) solid var(--brand-green);
  font-size: max(13.5px, calc(16.5 * var(--u)));
  line-height: 1.55;
  color: var(--body);
}
.partner-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8 * var(--u));
  margin-top: calc(6 * var(--u));
}
.partner-contacts a {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  padding: calc(8 * var(--u)) calc(12 * var(--u));
  border-radius: 999px;
  background: var(--linen);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: max(11px, calc(14 * var(--u)));
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.partner-contacts a .ui-icon { color: var(--accent); }
.partner-contacts a:hover { border-color: var(--accent); }

.request {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--u));
  padding: calc(36 * var(--u)) calc(36 * var(--u)) calc(30 * var(--u));
  border-radius: calc(22 * var(--u));
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(57, 181, 74, 0.14) 0%, rgba(57, 181, 74, 0) 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--text);
  box-shadow: 0 calc(34 * var(--u)) calc(80 * var(--u)) rgba(15, 34, 54, 0.32);
}
.request h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(46 * var(--u));
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.request > p {
  font-size: max(13.5px, calc(17 * var(--u)));
  line-height: 1.5;
  color: var(--body);
}
.screen-request { display: flex; flex-direction: column; gap: calc(14 * var(--u)); margin-top: calc(4 * var(--u)); }
.suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(10 * var(--u)); }
.suggestions button {
  min-height: max(42px, calc(48 * var(--u)));
  padding: 0 calc(10 * var(--u));
  border-radius: calc(11 * var(--u));
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: max(12px, calc(14 * var(--u)));
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.suggestions button:hover { border-color: var(--accent); background: rgba(159, 221, 170, 0.1); }
.picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(12 * var(--u)); }
.picker-col { display: flex; flex-direction: column; gap: calc(7 * var(--u)); min-width: 0; }
.picker-col label {
  font-size: max(10.5px, calc(12 * var(--u)));
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--label);
}
.date-control {
  display: flex;
  align-items: stretch;
  min-height: max(42px, calc(50 * var(--u)));
  border-radius: calc(11 * var(--u));
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.date-control input {
  flex: 1;
  min-width: 0;
  padding: 0 calc(13 * var(--u));
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: max(13px, calc(15.5 * var(--u)));
  color-scheme: dark;
}
.date-control input::-webkit-calendar-picker-indicator { display: none; }
.date-control button {
  flex: none;
  width: max(42px, calc(50 * var(--u)));
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--accent);
  font-size: max(15px, calc(18 * var(--u)));
  cursor: pointer;
}
#picker-help { font-size: max(12px, calc(14 * var(--u))); color: var(--label); }
#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--u));
  min-height: max(46px, calc(56 * var(--u)));
  margin-top: calc(4 * var(--u));
  border-radius: calc(12 * var(--u));
  background: #9FDDAA;
  color: #0D1E31;
  font-size: max(12.5px, calc(15 * var(--u)));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 calc(10 * var(--u)) calc(26 * var(--u)) rgba(57, 181, 74, 0.22);
}
#contact:hover { background: #B4E6BC; }
.request small {
  text-wrap: pretty;
  font-size: max(11px, calc(13 * var(--u)));
  line-height: 1.45;
  color: var(--label);
}
.print-contact { display: none; }

/* ---------- Presentation controls ---------- */
.controls {
  position: fixed;
  left: 50%;
  bottom: calc((100vh - 920 * var(--u)) / 2 + 14 * var(--u));
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: calc(2 * var(--u));
  padding: calc(5 * var(--u));
  border-radius: 999px;
  background: rgba(13, 30, 49, 0.95);
  border: 1px solid rgba(220, 227, 234, 0.24);
  box-shadow: 0 calc(12 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, 0.32);
  color: #F6F3EC;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--u));
  min-width: max(34px, calc(38 * var(--u)));
  height: max(32px, calc(36 * var(--u)));
  padding: 0 calc(12 * var(--u));
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #F6F3EC;
  font-size: max(15px, calc(17 * var(--u)));
  cursor: pointer;
}
.controls button:hover { background: rgba(255, 255, 255, 0.1); }
.controls :focus-visible { outline-color: #9FDDAA; }
#counter {
  min-width: calc(58 * var(--u));
  text-align: center;
  font-family: var(--mono);
  font-size: max(11px, calc(13 * var(--u)));
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #F6F3EC;
}
#play {
  margin-left: calc(4 * var(--u));
  padding: 0 calc(15 * var(--u)) 0 calc(13 * var(--u));
  border-left: 1px solid rgba(220, 227, 234, 0.22);
  border-radius: 0 999px 999px 0;
}
#play .ui-icon { color: #9FDDAA; }
#play[aria-pressed="true"] .icon-play,
#play[aria-pressed="false"] .icon-pause { display: none; }
.play-label {
  font-size: max(10.5px, calc(12 * var(--u)));
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Desktop: centred presentation frame ---------- */
@media screen and (min-width: 1041px) {
  html, body {
    height: 100vh;
    overflow: hidden;
  }
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(70% 60% at 50% 40%, #10243A 0%, #081321 70%);
  }
  #deck {
    width: calc(1640 * var(--u));
    height: calc(920 * var(--u));
    border-radius: calc(20 * var(--u));
    box-shadow: 0 calc(40 * var(--u)) calc(120 * var(--u)) rgba(0, 0, 0, 0.5);
    outline: 1px solid rgba(255, 255, 255, 0.08);
  }
  .slide { width: 100%; height: 100%; }
}

/* ---------- Tablet & phone: stacked, scrollable slides ---------- */
@media screen and (max-width: 1040px) {
  :root { --u: 0.78px; }
  #deck { width: 100%; }
  .slide {
    min-height: 100svh;
    padding: 24px 22px 96px;
    gap: 22px;
  }
  .slide:not(.cover) > .slide-head + * { margin-top: 0; }
  .slide-head { flex-wrap: wrap; row-gap: 12px; }
  .head-section { display: none; }
  .slide.cover.active { display: flex; flex-direction: column; }
  .cover-copy { padding: 32px 22px 28px; }
  .cover-logo { height: 150px; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .cover-stage { flex: none; height: min(108vw, 640px); }
  .stage-photo { top: 22px; right: 22px; width: 82%; }
  .stage-browser { left: 18px; bottom: 26px; width: 72%; }
  .split, .split-foundation, .split-website, .intro-row, .wins, .close-grid, .phases, .roadmap-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .phases { padding-top: 0; }
  .phases::before, .phase::before { display: none; }
  .comparison { flex-direction: column; }
  .case-frame { width: 100%; max-width: 100%; }
  .case-viewport { height: auto; width: 100%; }
  .showcase-view { height: auto; aspect-ratio: 1376 / 768; }
  .slide-foot { position: static; margin-top: 8px; gap: 16px; }
  .cover .slide-foot { padding: 18px 22px 96px; margin: 0; background: var(--ivory); }
  .cover .folio { color: var(--label); }
  .folio { white-space: nowrap; }
  .nowrap { white-space: normal; }
  .controls { bottom: 14px; }
}
@media screen and (max-width: 560px) {
  :root { --u: 0.66px; }
  .cover-logo { height: 120px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .brand-sub { display: none; }
  .cover-facts { grid-template-columns: minmax(0, 1fr); }
  .cover-facts > div + div { padding-left: 0; border-left: 0; }
  .partner-card { grid-template-columns: minmax(0, 1fr); }
  .suggestions, .picker-grid { grid-template-columns: minmax(0, 1fr); }
  .play-label { display: none; }
  .stage-browser .browser-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print: each slide on its own landscape page, as designed ---------- */
@media print {
  @page { size: letter landscape; margin: 0.3in; }
  /* Lay out the full 1640 x 920 canvas, then scale it to the page so readability floors stay dormant */
  :root { --u: 1px; }
  html, body { background: #FFFFFF; height: auto; overflow: visible; display: block; }
  #deck { width: auto; height: auto; overflow: visible; box-shadow: none; outline: 0; border-radius: 0; zoom: 0.6; }
  .slide, .slide.active {
    display: flex !important;
    width: calc(1640 * var(--u));
    height: calc(920 * var(--u));
    margin: 0 auto;
    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; }
  .showcase-view { height: 440px; }
  .case-viewport { height: 400px; }
  .controls, .screen-request { display: none !important; }
  .print-contact {
    display: block;
    font-size: 10pt;
    font-weight: 700;
    color: var(--text);
  }
}
