/* Man With Tools × Brandcore — sales deck
   Palette drawn from the client's own mark: roof & bar red #EA2E2A, letter blue #048FF8.
   Two surfaces alternate: warm paper and deep navy. Every text token below is ≥ 7:1
   against the surface it is used on (WCAG AAA); large headline accents are ≥ 4.5:1. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-500-normal.woff2') format('woff2');
  font-weight: 300 700;
  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 {
  --mwt-red: #EA2E2A;
  --mwt-blue: #048FF8;
  --navy: #0A1522;
  --navy-surface: #102236;
  --navy-inset: #0C1A2B;
  --paper: #F6F4EF;
  --ink: #0B1726;

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --px: clamp(36px, 4.4vw, 80px);
  --pt: clamp(18px, 2.8vh, 34px);
  --pb: clamp(36px, 5.2vh, 58px);
  --radius: clamp(12px, 1.5vh, 18px);
}

/* Surface themes. Components read these tokens, so they stay legible on either ground. */
.theme-paper {
  --bg: var(--paper);
  --surface: #FFFFFF;
  --line: rgba(11, 23, 38, 0.13);
  --text: #0B1726;        /* 16.4:1 on paper */
  --text-2: #2B3747;      /* 11.0:1 */
  --text-3: #3D4959;      /*  8.3:1 */
  --accent-text: #9E1218; /*  7.5:1  deep roof red */
  --em: #0062B1;          /*  5.7:1  large headlines only */
  --num: #004A8F;         /*  8.0:1  deep letter blue */
  background: var(--bg);
  color: var(--text);
}
.theme-navy {
  --bg: var(--navy);
  --surface: var(--navy-surface);
  --line: rgba(201, 211, 223, 0.17);
  --text: #F4F7FB;        /* 17.1:1 on navy */
  --text-2: #C9D3DF;      /* 12.1:1 */
  --text-3: #A9B6C6;      /*  8.9:1 (7.1:1 on surface) */
  --accent-text: #FFA6A1; /*  9.8:1  light roof red */
  --em: #2FA3FF;          /*  6.8:1  large headlines only */
  --num: #8FCBFF;         /* 10.6:1  light letter blue */
  background: var(--bg);
  color: var(--text);
}

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

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

button, a, input, summary { font: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }

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

/* ---------- Deck frame & slides ---------- */
#deck, .deck {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slide {
  position: relative;
  display: none;
  height: 100vh;
  min-height: 600px;
  padding: var(--pt) var(--px) var(--pb);
  overflow: hidden;
}
.slide.active {
  display: flex;
  flex-direction: column;
}

.slide-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2.8vh, 34px);
  padding-top: clamp(12px, 2vh, 24px);
}

/* ---------- Client brand header (slides 2–7) ---------- */
.slide-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(10px, 1.5vh, 16px);
  border-bottom: 1px solid var(--line);
}

/* The mark sits on white, its native ground on manwtools.com: red roof and blue letters at full strength. */
.header-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.3vh, 16px);
  padding: clamp(6px, 0.9vh, 10px) clamp(16px, 2vh, 24px) clamp(6px, 0.9vh, 10px) clamp(10px, 1.3vh, 14px);
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 38, 0.1);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(4, 12, 22, 0.16);
  opacity: 1;
  filter: none;
}
.brand-mark {
  height: clamp(32px, 4.6vh, 50px);
  width: auto;
  opacity: 1;
  filter: none;
}
.header-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}
.header-wordmark b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2.2vh, 24px);
  letter-spacing: -0.01em;
  color: #0B1726;
}
.header-wordmark small {
  margin-top: 0.3em;
  font-weight: 700;
  font-size: clamp(10.5px, 1.2vh, 12.5px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3D4959; /* 9.2:1 on the white plate */
}
.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-weight: 700;
  font-size: clamp(11px, 1.3vh, 13.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: right;
}
.header-meta b {
  font-family: var(--font-display);
  font-size: 1.25em;
  letter-spacing: 0.02em;
  color: var(--num);
  padding-right: 0.9em;
  border-right: 1px solid var(--line);
}

/* ---------- Type ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 800;
  font-size: clamp(11.5px, 1.4vh, 14.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.kicker::before { /* the MWT roof, in brand red */
  content: "";
  flex: none;
  width: 1.3em;
  height: 0.68em;
  background: var(--mwt-red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

h1, h2, h3 { text-wrap: balance; }
p, figcaption, li, blockquote { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--text);
}
h2 {
  margin-top: 0.4em;
  font-size: clamp(28px, 4.4vh, 52px);
  line-height: 1.06;
}
h1 em, h2 em {
  display: block;
  font-style: normal;
  color: var(--em);
}
.lead {
  margin-top: 0.9em;
  max-width: 40em;
  font-size: clamp(14.5px, 1.85vh, 20px);
  line-height: 1.52;
  color: var(--text-2);
}

/* Number badge: a miniature of the MWT mark — red roof, blue numeral, red bar. */
.num-badge {
  position: relative;
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: clamp(40px, 5vh, 54px);
  padding-top: calc(clamp(10px, 1.3vh, 14px) + 5px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2.2vh, 23px);
  line-height: 1;
  color: var(--num);
}
.num-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(10px, 1.3vh, 14px);
  background: var(--mwt-red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.num-badge::after {
  content: "";
  width: 78%;
  height: clamp(3px, 0.45vh, 5px);
  margin-top: 5px;
  background: var(--mwt-red);
}

.page {
  position: absolute;
  right: var(--px);
  bottom: clamp(12px, 1.9vh, 22px);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.3vh, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

/* ---------- Shared browser frame ---------- */
.browser-frame, .case-frame {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0E1C2C;
  border: 1px solid rgba(201, 211, 223, 0.22);
  box-shadow: 0 24px 44px rgba(3, 9, 17, 0.32);
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: clamp(30px, 3.7vh, 40px);
  padding: 0 clamp(10px, 1.2vh, 14px);
  background: #0E1C2C;
  border-bottom: 1px solid rgba(201, 211, 223, 0.14);
}
.dots { display: inline-flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 4px 12px;
  border-radius: 7px;
  background: #172A40;
  font-family: var(--font-mono);
  font-size: clamp(10.5px, 1.25vh, 13px);
  font-weight: 500;
  color: #C9D3DF;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-tag {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #00579E; /* white text 7.4:1 */
  color: #FFFFFF;
  font-weight: 800;
  font-size: clamp(9.5px, 1.15vh, 12px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.browser-tag.tag-before { background: #33404F; }
.browser-viewport, .case-viewport { position: relative; overflow: hidden; background: #FFFFFF; }
.browser-viewport img, .case-viewport img, .stage-photo img, .proof-photo img, .partner-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

/* ---------- Slide 1: cover ---------- */
.slide.cover { padding: 0; }
.slide.cover.active {
  display: grid;
  grid-template-columns: 53fr 47fr;
}
.cover-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 28px);
  padding: clamp(26px, 5vh, 60px) clamp(36px, 4.6vw, 84px);
}
.cover-lockup {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vh, 28px);
  padding-bottom: clamp(14px, 2.4vh, 26px);
  border-bottom: 1px solid var(--line);
}
.cover-lockup::after { /* the logo's red bar, carried into the layout */
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: clamp(64px, 9vh, 104px);
  height: 4px;
  background: var(--mwt-red);
}
.cover-mark {
  height: clamp(66px, 10.6vh, 116px);
  width: auto;
  opacity: 1;
  filter: none;
}
.cover-name { display: flex; flex-direction: column; min-width: 0; }
.cover-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.8vh, 66px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.cover-sub {
  margin-top: 0.7em;
  font-weight: 700;
  font-size: clamp(11.5px, 1.45vh, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.cover h1 {
  font-size: clamp(29px, 4.5vh, 50px);
  line-height: 1.07;
}
.cover-copy .lead { margin-top: 0; }
.cover-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 26px);
}
.cover-stats div { padding-left: clamp(12px, 1.4vh, 16px); border-left: 3px solid var(--mwt-red); }
.cover-stats dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vh, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--num);
}
.cover-stats dd {
  margin-top: 0.45em;
  font-weight: 600;
  font-size: clamp(12px, 1.45vh, 15px);
  line-height: 1.35;
  color: var(--text-2);
}
.cover-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55em;
  font-weight: 600;
  font-size: clamp(13px, 1.6vh, 16.5px);
  color: var(--text-2);
}
.cover-foot .ui-icon { color: #C81E1B; font-size: 1.15em; }
.cover-foot b { color: var(--text); font-weight: 800; }
.cover-foot .sep { width: 1px; height: 1em; margin: 0 0.5em; background: var(--line); }

/* Right stage: the real workbench and the proposed homepage, at full strength. */
.hero-visual {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  container-type: size;
  background-color: var(--navy);
  background-image:
    radial-gradient(120% 70% at 100% 0%, rgba(4, 143, 248, 0.16), transparent 60%),
    linear-gradient(rgba(143, 203, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 203, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}
.stage-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.6cqh;
  padding: 5cqh 6.5cqw;
}
.stage-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4cqw;
}
.stage-caption { min-width: 0; padding-bottom: 0.4cqh; }
.stage-caption p {
  margin-top: 0.8em;
  font-size: clamp(12.5px, 1.9cqh, 16.5px);
  line-height: 1.5;
  color: var(--text-2);
}
.stage-photo {
  flex: none;
  width: min(58cqw, 30cqh * 1.905);
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(201, 211, 223, 0.2);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}
.stage-browser {
  align-self: flex-start;
  width: min(100%, 38cqh * 1.79);
}
.stage-browser .browser-viewport { aspect-ratio: 1376 / 768; }
.stage-browser .browser-viewport img { object-position: center top; }
.stage-quote {
  padding-left: 1.1em;
  border-left: 3px solid var(--mwt-red);
}
.stage-quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(14px, 2.1cqh, 20px);
  line-height: 1.38;
  color: var(--text);
}
.stage-quote cite {
  display: block;
  margin-top: 0.6em;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(10.5px, 1.45cqh, 13px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cover .page { color: #A9B6C6; }

/* ---------- Split layouts ---------- */
.slide-body.split {
  flex-direction: row;
  align-items: center;
  gap: clamp(28px, 3.6vw, 66px);
}
.col-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }

/* ---------- Slide 2: foundation ---------- */
.split-foundation > .col-copy { flex: 1.1 1 0; }
.split-foundation > .proof-card { flex: 0.9 1 0; }
.pillars {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 14px);
  margin-top: clamp(16px, 2.6vh, 30px);
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.6vw, 24px);
  padding: clamp(11px, 1.7vh, 20px) clamp(14px, 1.5vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pillar h3, .feature b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2.15vh, 23px);
  line-height: 1.2;
  color: var(--text);
}
.pillar p, .feature p {
  margin-top: 0.3em;
  font-size: clamp(13.5px, 1.65vh, 17px);
  line-height: 1.46;
  color: var(--text-2);
}
.source-line {
  margin-top: clamp(10px, 1.6vh, 18px);
  font-weight: 600;
  font-size: clamp(11px, 1.3vh, 13px);
  letter-spacing: 0.03em;
  color: var(--text-3);
}
.proof-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 22px 40px rgba(11, 23, 38, 0.12);
}
.proof-photo { aspect-ratio: 1200 / 630; overflow: hidden; }
.proof-quote {
  margin: clamp(14px, 2.2vh, 26px) clamp(18px, 1.8vw, 30px) 0;
  padding-left: 1em;
  border-left: 3px solid var(--mwt-red);
}
.proof-quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(14px, 1.8vh, 19px);
  line-height: 1.42;
  color: #0B1726;
}
.proof-quote cite {
  display: block;
  margin-top: 0.7em;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(10.5px, 1.25vh, 12.5px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3D4959;
}
.proof-area {
  margin-top: clamp(12px, 1.8vh, 20px);
  padding: clamp(11px, 1.6vh, 18px) clamp(18px, 1.8vw, 30px) clamp(13px, 2vh, 22px);
  border-top: 1px solid var(--line);
  background: #FBFAF7;
}
.proof-area-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 800;
  font-size: clamp(10.5px, 1.25vh, 12.5px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9E1218;
}
.proof-area-label .ui-icon { font-size: 1.3em; color: #C81E1B; }
.proof-area p {
  margin-top: 0.5em;
  font-weight: 500;
  font-size: clamp(11.5px, 1.4vh, 14px);
  line-height: 1.55;
  color: #2B3747;
}

/* ---------- Head row (slides 3, 5, 6) ---------- */
.head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: end;
  gap: clamp(24px, 3.4vw, 64px);
}
.head-row .lead { margin-top: 0; }

/* ---------- Slide 3: customer journey ---------- */
.journey .slide-body { gap: clamp(18px, 3.8vh, 46px); }
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  column-gap: clamp(14px, 1.5vw, 26px);
  row-gap: 0;
}
.journey-card { /* subgrid keeps titles, copy and Today/Next rows aligned across cards */
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: clamp(10px, 1.6vh, 18px);
  padding: clamp(16px, 2.6vh, 30px) clamp(16px, 1.6vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
}
.journey-top { display: flex; align-items: center; gap: 14px; }
.icon-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(38px, 4.8vh, 50px);
  height: clamp(38px, 4.8vh, 50px);
  border-radius: 12px;
  background: rgba(234, 46, 42, 0.14);
  border: 1px solid rgba(234, 46, 42, 0.5);
  color: #FF8F8A;
  font-size: clamp(19px, 2.5vh, 25px);
}
.icon-tile svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-label {
  font-weight: 800;
  font-size: clamp(11px, 1.35vh, 13.5px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.journey-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.55vh, 27px);
  line-height: 1.18;
  color: var(--text);
}
.journey-card p {
  font-size: clamp(13.5px, 1.78vh, 18px);
  line-height: 1.52;
  color: var(--text-2);
}
.shift {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: clamp(10px, 1.5vh, 16px) clamp(12px, 1.2vw, 18px);
  background: var(--navy-inset);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.shift span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-weight: 600;
  font-size: clamp(12.5px, 1.5vh, 15px);
  line-height: 1.3;
  color: var(--text-2);
}
.shift .shift-next { font-weight: 800; color: var(--text); }
.shift small {
  font-weight: 800;
  font-size: clamp(10px, 1.15vh, 11.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.shift .shift-next small { color: var(--num); }
.shift-arrow { font-size: 1.2em; color: #FF8F8A; }

/* ---------- Slide 4: website showcase ---------- */
.split-website { container-type: inline-size; }
.features { display: flex; flex-direction: column; margin-top: clamp(14px, 2.4vh, 28px); }
.feature {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.4vw, 22px);
  padding: clamp(10px, 1.6vh, 18px) 0;
  border-top: 1px solid var(--line);
}
.website-stage {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 16px);
}
.showcase-frame { box-shadow: 0 26px 48px rgba(11, 23, 38, 0.24); border-color: rgba(11, 23, 38, 0.22); }
.nano-browser-viewport {
  height: min(clamp(300px, 42vh, 440px), 34cqw);
  aspect-ratio: 1376 / 768;
}
.nano-browser-viewport img { object-position: center top; }
.website-stage figcaption {
  width: 0;
  min-width: 100%;
  font-weight: 600;
  font-size: clamp(12px, 1.45vh, 14.5px);
  line-height: 1.45;
  color: var(--text-3);
}

/* ---------- Slide 5: UFG before & after ---------- */
.comparison {
  container-type: inline-size;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
}
.case-frame { flex: none; margin: 0; }
.case-viewport {
  height: min(clamp(280px, 38vh, 400px), calc((100cqw - 42px) / 3.2));
  aspect-ratio: 16 / 10;
}
.case-viewport img { object-position: center top; }
.case-frame figcaption {
  width: 0;
  min-width: 100%;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: clamp(10px, 1.5vh, 15px) clamp(14px, 1.4vw, 20px);
  font-weight: 500;
  font-size: clamp(12.5px, 1.55vh, 15.5px);
  line-height: 1.4;
  color: var(--text-2);
  border-top: 1px solid rgba(201, 211, 223, 0.14);
}
.case-frame figcaption b {
  flex: none;
  font-weight: 800;
  font-size: 0.82em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.case-frame + .case-frame figcaption b { color: var(--num); }

/* ---------- Slide 6: roadmap ---------- */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  column-gap: clamp(14px, 1.5vw, 26px);
  row-gap: 0;
}
.phase-card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: clamp(10px, 1.5vh, 16px);
  padding: clamp(16px, 2.5vh, 28px) clamp(18px, 1.6vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 16px 36px rgba(11, 23, 38, 0.07);
}
.phase-card.featured { /* the build week, set on navy as the plan's centre of gravity */
  --text: #F4F7FB;
  --text-2: #C9D3DF;
  --text-3: #A9B6C6;
  --num: #8FCBFF;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 26px 50px rgba(11, 23, 38, 0.28);
}
.phase-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phase-days {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.5vh, 27px);
  line-height: 1;
  color: var(--text);
}
.phase-days small {
  margin-top: 0.45em;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(10px, 1.2vh, 12.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.phase-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.4vh, 25px);
  line-height: 1.18;
  color: var(--text);
}
.checks {
  list-style: none;
  margin: 0;
  padding: clamp(10px, 1.5vh, 16px) 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 1.1vh, 12px);
}
.phase-card.featured .checks { border-top-color: rgba(201, 211, 223, 0.18); }
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(13.5px, 1.65vh, 16.5px);
  line-height: 1.42;
  color: var(--text-2);
}
.checks .ui-icon { margin-top: 0.2em; font-size: 1.1em; stroke-width: 2.4; color: #C81E1B; }
.phase-card.featured .checks .ui-icon { color: #FF8F8A; }
.plan-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.plan-bar span {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  padding: clamp(11px, 1.7vh, 18px) clamp(16px, 1.6vw, 26px);
  font-weight: 600;
  font-size: clamp(12.5px, 1.55vh, 15.5px);
  color: #C9D3DF;
}
.plan-bar span + span { border-left: 1px solid rgba(201, 211, 223, 0.18); }
.plan-bar b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4em;
  color: #FFFFFF;
}

/* ---------- Slide 7: partner sign-off ---------- */
.split-close > .col-copy { flex: 1.12 1 0; }
.split-close > .concierge-col { flex: 0.88 1 0; min-width: 0; }
.partner-card {
  margin-top: clamp(16px, 2.6vh, 30px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(12px, 1.8vh, 20px) clamp(16px, 1.8vw, 28px);
  padding: clamp(16px, 2.4vh, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}
.partner-avatar-wrap {
  width: clamp(112px, 13.4vh, 140px);
  height: clamp(112px, 13.4vh, 140px);
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.partner-avatar-wrap img { object-position: center 18%; }
.partner-details { min-width: 0; }
.partner-meta-kicker {
  font-weight: 800;
  font-size: clamp(10.5px, 1.25vh, 12.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.partner-name-heading {
  margin-top: 0.3em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.1vh, 34px);
  line-height: 1.05;
  color: var(--text);
}
.partner-role-sub {
  margin-top: 0.35em;
  font-weight: 600;
  font-size: clamp(12.5px, 1.5vh, 15px);
  color: var(--text-2);
}
.partner-quote {
  margin-top: 0.9em;
  padding-left: 0.9em;
  border-left: 3px solid var(--mwt-red);
  font-size: clamp(13px, 1.62vh, 16.5px);
  line-height: 1.52;
  color: var(--text);
}
.partner-contact-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: var(--navy-inset);
  border: 1px solid rgba(201, 211, 223, 0.24);
  color: var(--text);
  font-weight: 700;
  font-size: clamp(12px, 1.45vh, 14.5px);
  text-decoration: none;
}
.partner-pill .ui-icon { color: var(--num); font-size: 1.1em; }
.partner-pill:hover { border-color: #8FCBFF; }

/* The request card is a paper work order on the navy slide. */
.request {
  --text: #0B1726;
  --text-2: #2B3747;
  --text-3: #3D4959;
  --accent-text: #9E1218;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 16px);
  padding: clamp(18px, 2.8vh, 32px) clamp(18px, 1.8vw, 30px);
  background: var(--paper);
  color: var(--text);
  border-radius: calc(var(--radius) + 4px);
  border-top: 6px solid var(--mwt-red);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
.request h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vh, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.request > p {
  font-size: clamp(13.5px, 1.7vh, 17px);
  line-height: 1.5;
  color: var(--text-2);
}
.screen-request { display: flex; flex-direction: column; gap: clamp(10px, 1.5vh, 16px); }
.suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.suggestions button {
  padding: clamp(10px, 1.4vh, 14px) 10px;
  border: 1.5px solid #004A8F;
  border-radius: 10px;
  background: #FFFFFF;
  color: #004A8F;
  font-weight: 800;
  font-size: clamp(12px, 1.45vh, 14.5px);
  cursor: pointer;
}
.suggestions button:hover { background: #EAF4FF; }
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.picker-col label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: clamp(10.5px, 1.2vh, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.date-control {
  display: flex;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #A9B3BF;
  border-radius: 10px;
}
.date-control:focus-within { border-color: #004A8F; box-shadow: 0 0 0 3px rgba(4, 143, 248, 0.25); }
.date-control input {
  flex: 1;
  min-width: 0;
  padding: clamp(9px, 1.3vh, 12px) 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(13px, 1.55vh, 15px);
  outline: none;
}
.date-control input::-webkit-calendar-picker-indicator { display: none; }
.date-control button {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  border: 0;
  border-left: 1px solid #D5DAE1;
  background: #F1F4F8;
  color: #004A8F;
  font-size: 19px;
  cursor: pointer;
}
#picker-help { font-weight: 600; font-size: 13px; color: #9E1218; }
#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: clamp(13px, 1.9vh, 18px) 16px;
  border-radius: 12px;
  background: #A3121A; /* white text 7.9:1 */
  color: #FFFFFF;
  font-weight: 800;
  font-size: clamp(12.5px, 1.55vh, 15.5px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(163, 18, 26, 0.3);
}
#contact:hover { background: #8A0F16; }
#contact .ui-icon { font-size: 1.15em; }
.request-note {
  font-weight: 500;
  font-size: clamp(11px, 1.3vh, 12.5px);
  line-height: 1.45;
  color: var(--text-3);
}
.print-contact { display: none; }

/* ---------- Controls ---------- */
.controls {
  position: fixed;
  left: 50%;
  bottom: clamp(10px, 1.6vh, 18px);
  z-index: 50;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(10, 21, 34, 0.94);
  color: #F4F7FB;
  border: 1px solid rgba(201, 211, 223, 0.24);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #F4F7FB;
  font-size: 17px;
  cursor: pointer;
}
.controls button:hover { background: rgba(255, 255, 255, 0.1); }
#counter {
  min-width: 56px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
}
#play {
  gap: 8px;
  padding: 0 16px 0 14px;
  border-left: 1px solid rgba(201, 211, 223, 0.24);
  border-radius: 0 999px 999px 0;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
#play::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mwt-red); }
#play[aria-pressed="false"]::before { background: #A9B6C6; }
.controls button:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid var(--mwt-blue);
  outline-offset: 2px;
}

/* ---------- Desktop: centred deck frame ---------- */
@media screen and (min-width: 701px) {
  html, body { height: 100%; overflow: hidden; }
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 56px;
    background: radial-gradient(90% 80% at 50% 40%, #0E1B2B 0%, #060E17 70%);
  }
  #deck, .deck {
    width: min(94vw, 1680px);
    height: min(calc(100vh - 104px), 940px);
    border-radius: 20px;
    border: 1px solid rgba(201, 211, 223, 0.16);
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.5);
  }
  .slide { height: 100%; min-height: 0; }
}

/* Narrow desktops and landscape tablets: columns get tight, so type steps down a notch. */
@media screen and (min-width: 701px) and (max-width: 1100px) {
  .cover-copy { gap: clamp(10px, 1.8vh, 22px); }
  .cover-title { font-size: clamp(30px, 4.6vh, 54px); }
  .cover h1 { font-size: clamp(24px, 3.5vh, 42px); }
  .cover-stats dd { font-size: 12px; }
  .stage-quote p { font-size: clamp(13px, 1.9cqh, 18px); }
  .split-foundation .lead, .split-website .lead { font-size: 14px; }
  .pillar { padding-block: 9px; }
  .pillar p, .feature p { font-size: 13px; }
  .plan-bar span { padding-block: 10px; font-size: 12px; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .slide.active .slide-body, .slide.cover.active .stage-inner, .slide.cover.active .cover-copy > * {
    animation: deck-rise 520ms cubic-bezier(.22, .61, .36, 1) both;
  }
  /* A wheel turn already slides the whole page; don't stack a second motion on top of it. */
  .slide.wheel-entering .slide-body, .slide.cover.wheel-entering .stage-inner, .slide.cover.wheel-entering .cover-copy > * { animation: none; }
  @keyframes deck-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ---------- Mobile: one slide per screen, natural scrolling ---------- */
@media screen and (max-width: 700px) {
  html, body { overflow-x: hidden; }
  .slide {
    height: auto;
    min-height: 100svh;
    padding: 16px 16px 92px;
  }
  .slide.cover { padding: 0 0 84px; }
  .slide.cover.active { display: flex; flex-direction: column; }
  .cover-copy { padding: 22px 18px 26px; gap: 16px; }
  .cover-mark { height: 64px; }
  .cover-title { font-size: 34px; }
  .cover h1 { font-size: 27px; }
  .cover-stats { grid-template-columns: 1fr; gap: 12px; }
  .cover-stats dt { font-size: 28px; }
  .hero-visual { height: auto; container-type: inline-size; }
  .stage-inner { height: auto; gap: 16px; padding: 22px 16px 28px; }
  .stage-top { flex-direction: column; align-items: stretch; gap: 14px; }
  .stage-photo, .stage-browser { width: 100%; }
  .stage-caption p { font-size: 14px; }
  .stage-quote p { font-size: 16px; }
  .stage-quote cite { font-size: 11px; }
  .cover .page { bottom: 64px; }

  .slide-head { flex-wrap: wrap; gap: 10px; }
  .header-logo-pill { padding: 6px 14px 6px 10px; }
  .brand-mark { height: 34px; }
  .header-meta { font-size: 11px; }
  h2 { font-size: 26px; }
  .lead { font-size: 15px; }
  .slide-body { gap: 18px; padding-top: 16px; }
  .slide-body.split { flex-direction: column; align-items: stretch; gap: 22px; }
  .head-row, .journey-grid, .phase-grid, .plan-bar { grid-template-columns: 1fr; }
  .plan-bar span + span { border-left: 0; border-top: 1px solid rgba(201, 211, 223, 0.18); }
  .comparison { flex-direction: column; container-type: normal; }
  .case-frame, .website-stage { width: 100%; }
  .case-viewport, .nano-browser-viewport { height: auto; width: 100%; }
  .journey-grid, .phase-grid { grid-template-rows: none; row-gap: 14px; }
  .journey-card, .phase-card { display: flex; flex-direction: column; grid-row: auto; }
  .shift { grid-template-columns: 1fr; }
  .shift-arrow { transform: rotate(90deg); }
  .partner-card { grid-template-columns: 1fr; }
  .picker-grid, .suggestions { grid-template-columns: 1fr; }
  .partner-pill { max-width: 100%; overflow-wrap: anywhere; }
  .page { bottom: 64px; }
}

/* ---------- Print: every slide on its own landscape page ---------- */
@media print {
  @page { size: 11in 8.5in; margin: 0; }
  html, body { height: auto; overflow: visible; background: #FFFFFF; }
  #deck, .deck { width: 11in; height: auto; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .slide, .slide.active {
    display: flex;
    flex-direction: column;
    width: 11in;
    height: 8.5in;
    min-height: 0;
    break-after: page;
    page-break-after: always;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .slide.cover, .slide.cover.active { display: grid; grid-template-columns: 53fr 47fr; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .slide-body, .stage-inner, .cover-copy > * { animation: none; }
  .controls, canvas, .screen-request { display: none; }
  .print-contact { display: block; font-weight: 700; font-size: 11pt; color: #0B1726; }
}
