/* ==========================================================================
   Quant Kit × ReD: Qual + Quant pitch
   Full-screen slides with scroll snap, keyboard paging and side dots.
   Follows quant-kit-founding-studio/Style Guide.md
   ========================================================================== */

:root {
  /* Colour */
  --white: #FFFFFF;
  --grey-light: #F5F5F5;
  --grey-line: #EAECED;
  --grey-mid: #8A8F94;
  --text: #3C3C3C;
  --heading: #1A1A1A;
  --coral: #FF6B6B;
  --coral-light: #FFB3B3;
  --pink: #FFE8E8;
  --ai: #FFC9C9;
  --blue: #4682B4;
  --blue-dark: #2F5D84;
  --green: #228B22;
  --purple: #9370DB;

  /* Type */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;

  /* Layout */
  --pad-x: clamp(20px, 7vw, 120px);
  --pad-y: clamp(56px, 9vh, 104px);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--heading); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.using-pointer :focus-visible { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.accent { color: var(--coral); }
.mono { font-family: var(--mono); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; color: var(--heading); letter-spacing: -0.01em;
}

.pill {
  font-family: var(--mono); font-size: 13px; font-weight: 400;
  background: var(--grey-light); color: var(--text);
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Slides
   -------------------------------------------------------------------------- */
.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad-y) var(--pad-x);
  overflow: hidden;
}

/* Snap one slide at a time on screens big enough to present from */
@media (min-width: 900px) and (min-height: 600px) {
  html { scroll-snap-type: y mandatory; }
  .slide { scroll-snap-align: start; scroll-snap-stop: always; }
}

/* Reveal: children fade up when their slide arrives */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 100ms);
}
.js .slide.is-visible .reveal { opacity: 1; transform: none; }
.no-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* --------------------------------------------------------------------------
   Side navigation
   -------------------------------------------------------------------------- */
.dots {
  transition: color 0.4s ease, background 0.3s ease;
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--heading);
}
.dots.on-dark { color: var(--white); }
.dots.on-coral a.is-active::before { background: var(--white); }
.dots ul { display: flex; flex-direction: column; gap: 4px; }
.dots a {
  position: relative; display: block; width: 24px; height: 24px;
}
.dots a::before {
  content: ''; position: absolute; inset: 8px;
  border-radius: 50%; background: currentColor; opacity: 0.25;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dots a:hover::before { opacity: 0.6; }
.dots a.is-active::before { opacity: 1; transform: scale(1.35); background: var(--coral); }
.dots a::after {
  content: attr(data-label);
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 12px; white-space: nowrap;
  background: var(--heading); color: var(--white);
  padding: 3px 10px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.dots a:hover::after, .dots a:focus-visible::after { opacity: 1; }

@media (max-width: 899px) {
  .dots { display: none; }
}

/* --------------------------------------------------------------------------
   1. Thesis: Quant Kit
   -------------------------------------------------------------------------- */
.thesis {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
.thesis-logo { width: 72px; height: 72px; margin: 0 0 20px -10px; }
.thesis-intro h2 {
  font-size: clamp(52px, 6vw, 104px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
/* Logo, name, tagline and "Prepared for" sit together, centred in the column */
.thesis-intro {
  position: relative;
  align-self: stretch;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.thesis-tagline {
  margin-top: clamp(24px, 3.5vh, 48px);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--text);
  max-width: 14ch;
}
.prepared {
  margin-top: clamp(64px, 12vh, 160px);
  padding-top: clamp(14px, 1.6vh, 22px);
  border-top: 1.5px solid var(--grey-line);
  font-size: clamp(20px, 1.6vw, 34px); font-weight: 700; letter-spacing: -0.02em;
  color: var(--heading);
}
/* Date pinned to the bottom-left of the slide */
.thesis-date {
  position: absolute; left: 0; bottom: 0;
  font-family: var(--mono); font-size: clamp(12px, 0.7vw, 16px);
  color: var(--grey-mid);
}
.prepared span {
  display: block;
  font-family: var(--mono); font-size: clamp(12px, 0.7vw, 16px); font-weight: 400; letter-spacing: 0;
  color: var(--grey-mid);
  margin-bottom: 4px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 12px;
  height: calc(100svh - 2 * var(--pad-y));
}
.tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grey-line);
}
.tile:hover { box-shadow: 0 14px 30px rgba(26,26,26,0.08); }
.tile img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform 0.5s var(--ease); }
.tile:hover img { transform: scale(1.03); }

/* 4 × 6 grid, tuned for a 16:9 screen: email runs down the right,
   course + odds share the bottom */
.t-brahe   { grid-column: 1 / 3; grid-row: 1 / 3; }
.t-resid   { grid-column: 3;     grid-row: 1 / 3; }
.t-email   { grid-column: 4;     grid-row: 1 / 5; }
.t-code    { grid-column: 1 / 3; grid-row: 3; }
.t-frame   { grid-column: 3;     grid-row: 3 / 5; }
.t-rose    { grid-column: 1;     grid-row: 4; background: #FFF9FB; }
.t-shape   { grid-column: 2;     grid-row: 4; }
.t-course  { grid-column: 1 / 3; grid-row: 5 / 7; }
.t-odds    { grid-column: 3 / 5; grid-row: 5 / 7; }

.t-email img { object-fit: cover; object-position: left top; padding: 0; }
.t-course img { padding: 14px; }

/* Script block (style guide) */
.t-code { background: var(--grey-light); display: flex; align-items: center; padding: 8px; }
.s-script {
  display: flex; width: 100%;
  background: var(--white);
  border-left: 4px solid var(--text);
  border-radius: 0 6px 6px 0;
  overflow: hidden;
  font-family: var(--mono);
}
.s-gutter {
  background: var(--grey-light); color: #AAAAAA;
  font-size: clamp(10px, 1.1vh, 14px); line-height: 1.8; text-align: right;
  padding: 8px 10px;
}
.s-code {
  color: var(--heading);
  font-size: clamp(10px, 1.1vh, 14px); line-height: 1.8;
  white-space: pre; overflow: hidden;
  padding: 8px 12px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.s-c { color: var(--green); }
.s-f { color: var(--blue); font-weight: 700; }

@media (max-width: 899px) {
  .thesis { grid-template-columns: 1fr; }
  .thesis-tagline { margin-top: 20px; }
  .prepared { margin-top: 32px; }
  .thesis-date { position: static; margin-top: 12px; }
  .bento {
    height: auto; max-height: none;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: 150px;
    grid-auto-flow: dense;
  }
  .bento .tile { grid-column: auto; grid-row: auto; }
  .bento .t-brahe, .bento .t-code, .bento .t-course, .bento .t-odds { grid-column: span 2; }
  .bento .t-code { grid-row: auto; }
  .bento .t-email { grid-row: span 2; }
}

/* --------------------------------------------------------------------------
   Shared: centred content block, slide titles, leads and labels
   -------------------------------------------------------------------------- */
.slide-inner {
  --card-gap: clamp(16px, 1.8vw, 48px);
  width: 100%;
  max-width: 2560px;
  margin: 0 auto;
}
.slide-title {
  font-size: clamp(34px, 3.2vw, 82px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: clamp(12px, 2.2vh, 28px);
}
.lead {
  max-width: 52ch;
  font-size: clamp(19px, 1.45vw, 36px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: clamp(24px, 4vh, 64px);
}
.col-label {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(13px, 0.7vw, 18px);
  color: var(--coral);
  margin-bottom: clamp(10px, 1.4vh, 18px);
}

/* --------------------------------------------------------------------------
   2. Executive summary & context
   -------------------------------------------------------------------------- */
.summary { display: flex; align-items: center; }
/* Two columns: the challenge | the opportunity, with what will improve underneath it */
.summary { --sum-gap: clamp(32px, 4.5vw, 120px); }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sum-gap);
}
/* Title and lead run to halfway across the second column */
.summary .slide-title,
.summary .lead { max-width: calc((100% - var(--sum-gap)) * 0.75 + var(--sum-gap)); }
.summary-col {
  padding-top: clamp(18px, 1.6vw, 40px);
  font-size: clamp(15px, 0.95vw, 23px);
  line-height: 1.55;
}
.summary-col h3 {
  font-size: clamp(22px, 1.6vw, 40px); font-weight: 700; line-height: 1.15;
  margin-bottom: clamp(12px, 1.6vh, 22px);
}
.summary-col p + p { margin-top: 0.9em; }
.summary-col em { color: var(--heading); }
.summary-col .col-label { color: var(--heading); }

/* Challenge: a grey box, stretched to the full height of the opportunity column */
.challenge {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: clamp(18px, 1.6vw, 40px);
}

/* Outcomes: the two outcomes sit under the opportunity in green */
.summary-col .outcomes .col-label { color: var(--green); }
.outcomes { margin-top: clamp(24px, 3.6vh, 52px); }
.outcome-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 64px);
}
.outcome-num {
  font-size: clamp(19px, 1.35vw, 34px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--green);
  margin-bottom: 0.35em;
}
.summary-col .outcome p + p { margin-top: 0; }
.outcome-note {
  margin-top: clamp(14px, 2vh, 24px);
  font-family: var(--mono); font-size: clamp(12px, 0.66vw, 16px); line-height: 1.5;
  color: var(--text);
}

@media (max-width: 899px) {
  .summary-grid { grid-template-columns: 1fr; gap: 40px; }
  .outcome-row { grid-template-columns: 1fr; }
  .outcome-row { gap: 16px; }
}

/* --------------------------------------------------------------------------
   3. Quant Kit for ReD: what it is (2/3) + what practitioners gain (1/3)
   -------------------------------------------------------------------------- */
.what { display: flex; align-items: center; }
.what-grid {
  width: 100%; max-width: 2560px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 96px);
  align-items: center;
}
.what-points {
  display: grid; gap: clamp(12px, 1.8vh, 26px);
  max-width: 68ch;
  font-size: clamp(15px, 0.95vw, 23px); line-height: 1.55;
}
.what-points li { position: relative; padding-left: 1.4em; }
.what-points li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--coral);
}
.what-points strong { color: var(--heading); }

.gains {
  background: var(--pink);
  border-radius: var(--radius);
  padding: clamp(22px, 1.8vw, 48px);
}
.gains .col-label { color: #E04848; margin-bottom: clamp(20px, 3vh, 40px); }
.gain {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(14px, 1.1vw, 28px);
  padding: clamp(12px, 1.8vh, 26px) 0;
  border-top: 1.5px solid var(--coral-light);
}
.gain:first-of-type { border-top: 0; padding-top: 0; }
.gain .icon { grid-row: 1 / span 2; width: clamp(56px, 4vw, 96px); height: auto; }
.gain h3 {
  font-size: clamp(17px, 1.1vw, 28px); font-weight: 700; line-height: 1.2;
  margin-bottom: 0.4em;
}
.gain .quote p { font-size: clamp(13px, 0.74vw, 18px); line-height: 1.45; color: var(--text); }
.gain .quote cite { margin-top: 6px; font-size: clamp(11px, 0.6vw, 14px); color: var(--grey-mid); }
.gains-note {
  font-family: var(--mono); font-size: clamp(11px, 0.6vw, 14px); color: var(--text);
  padding-top: clamp(10px, 1.4vh, 18px); border-top: 1.5px solid var(--coral-light);
}

@media (max-width: 899px) {
  .what-grid { grid-template-columns: 1fr; }
}

.quote cite {
  display: block;
  font-family: var(--mono); font-style: normal;
}
.quote cite::before { content: '— '; }

/* Icon: ladder */
.icon-ladder .rail { stroke: var(--heading); stroke-width: 5; stroke-linecap: round; fill: none; stroke-dasharray: 100; }
.icon-ladder .rung { stroke-width: 6; stroke-linecap: round; transform-box: fill-box; transform-origin: center; }
.icon-ladder.is-playing .rail { animation: rail 4.8s linear infinite; }
.icon-ladder.is-playing .r1 { animation: rung1 4.8s linear infinite; }
.icon-ladder.is-playing .r2 { animation: rung2 4.8s linear infinite; }
.icon-ladder.is-playing .r3 { animation: rung3 4.8s linear infinite; }
.icon-ladder.is-playing .r4 { animation: rung4 4.8s linear infinite; }
.icon-ladder.is-playing .r5 { animation: rung5 4.8s linear infinite; }
.icon-ladder.is-playing .r6 { animation: rung6 4.8s linear infinite; }
@keyframes rail {
  0% { stroke-dashoffset: 100; opacity: 1; }
  45% { stroke-dashoffset: 0; }
  86% { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes rung1 { 0%, 7%  { opacity: 0; transform: scaleX(0); } 11% { opacity: 1; transform: scaleX(1); } 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes rung2 { 0%, 14% { opacity: 0; transform: scaleX(0); } 18% { opacity: 1; transform: scaleX(1); } 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes rung3 { 0%, 21% { opacity: 0; transform: scaleX(0); } 25% { opacity: 1; transform: scaleX(1); } 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes rung4 { 0%, 28% { opacity: 0; transform: scaleX(0); } 32% { opacity: 1; transform: scaleX(1); } 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes rung5 { 0%, 35% { opacity: 0; transform: scaleX(0); } 39% { opacity: 1; transform: scaleX(1); } 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes rung6 { 0%, 42% { opacity: 0; transform: scaleX(0); } 46% { opacity: 1; transform: scaleX(1); } 86% { opacity: 1; } 94%, 100% { opacity: 0; } }

/* Icon: message bubbles */
.icon-bubbles .glyph { font-family: 'Apple Symbols', 'Segoe UI Symbol', var(--mono); font-size: 12px; letter-spacing: 0.5px; opacity: 0; }
.icon-bubbles .line { transform-box: fill-box; transform-origin: left center; }
.icon-bubbles.is-playing .b-right { animation: bubbleR 6s linear infinite; }
.icon-bubbles.is-playing .b-left  { animation: bubbleL 6s linear infinite; }
.icon-bubbles.is-playing .b-right .ga { animation: glyphRa 6s steps(1, end) infinite; }
.icon-bubbles.is-playing .b-right .gb { animation: glyphRb 6s steps(1, end) infinite; }
.icon-bubbles.is-playing .b-left .ga  { animation: glyphLa 6s steps(1, end) infinite; }
.icon-bubbles.is-playing .b-left .gb  { animation: glyphLb 6s steps(1, end) infinite; }
.icon-bubbles.is-playing .b-right .l1 { animation: lineR1 6s ease-out infinite; }
.icon-bubbles.is-playing .b-right .l2 { animation: lineR2 6s ease-out infinite; }
.icon-bubbles.is-playing .b-left .l1  { animation: lineL1 6s ease-out infinite; }
.icon-bubbles.is-playing .b-left .l2  { animation: lineL2 6s ease-out infinite; }
@keyframes bubbleR {
  0% { opacity: 0; transform: translateY(6px); }
  6% { opacity: 1; transform: none; }
  88% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
@keyframes bubbleL {
  0%, 38% { opacity: 0; transform: translateY(6px); }
  44% { opacity: 1; transform: none; }
  88% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
@keyframes glyphRa { 0% { opacity: 0; } 7% { opacity: 1; } 10% { opacity: 0; } 13% { opacity: 1; } 16% { opacity: 0; } 19% { opacity: 1; } 22% { opacity: 0; } 25% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes glyphRb { 0% { opacity: 0; } 10% { opacity: 1; } 13% { opacity: 0; } 16% { opacity: 1; } 19% { opacity: 0; } 22% { opacity: 1; } 25% { opacity: 0; } 28% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes glyphLa { 0% { opacity: 0; } 45% { opacity: 1; } 48% { opacity: 0; } 51% { opacity: 1; } 54% { opacity: 0; } 57% { opacity: 1; } 60% { opacity: 0; } 63% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes glyphLb { 0% { opacity: 0; } 48% { opacity: 1; } 51% { opacity: 0; } 54% { opacity: 1; } 57% { opacity: 0; } 60% { opacity: 1; } 63% { opacity: 0; } 66% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes lineR1 { 0%, 31% { transform: scaleX(0); } 37%, 100% { transform: scaleX(1); } }
@keyframes lineR2 { 0%, 33% { transform: scaleX(0); } 39%, 100% { transform: scaleX(1); } }
@keyframes lineL1 { 0%, 69% { transform: scaleX(0); } 75%, 100% { transform: scaleX(1); } }
@keyframes lineL2 { 0%, 71% { transform: scaleX(0); } 77%, 100% { transform: scaleX(1); } }

/* Icon: mountain (animated with SMIL in the SVG itself) */
.icon-mountain line { stroke-width: 3.5; stroke-linecap: round; }
.icon-mountain .mt-outline { stroke: var(--heading); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   4. How it will work: three sessions + investment
   -------------------------------------------------------------------------- */
.details { display: flex; align-items: center; padding-top: clamp(32px, 5vh, 72px); padding-bottom: clamp(32px, 5vh, 72px); }
.details-goal {
  max-width: 62ch;
  font-size: clamp(16px, 1vw, 26px);
  margin-bottom: clamp(22px, 3.6vh, 56px);
}
.details-goal strong { color: var(--heading); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
}
.card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: clamp(360px, 50vh, 720px);
  padding: clamp(22px, 1.7vw, 44px) clamp(18px, 1.45vw, 44px) clamp(60px, 3.8vw, 96px);
  text-align: left;
  background: var(--white);
  border: 5px solid var(--c);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: box-shadow 0.3s var(--ease);
}
.card:hover { box-shadow: 0 16px 36px rgba(26,26,26,0.1); }
.c1 { --c: var(--blue); }
.c2 { --c: var(--purple); }
.c3 { --c: var(--green); }
.card-meta { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: clamp(14px, 1.6vh, 22px); }
.card-label { font-family: var(--mono); font-weight: 700; font-size: clamp(13px, 0.7vw, 18px); color: var(--c); }
.card .pill { font-size: clamp(11px, 0.6vw, 15px); }
.card-title {
  font-size: clamp(20px, 1.55vw, 40px); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--heading);
  margin-bottom: clamp(10px, 1.4vh, 18px);
}
.card-title span { display: block; }
.card-aim { font-size: clamp(14px, 0.8vw, 20px); line-height: 1.5; color: var(--text); margin-bottom: clamp(14px, 1.8vh, 24px); }
.card-concepts { display: flex; flex-wrap: wrap; gap: clamp(7px, 0.45vw, 12px) 6px; }
.card-concepts span {
  font-size: clamp(12px, 0.64vw, 16px); font-weight: 500; line-height: 1.3;
  padding: 0.3em 0.62em; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--c); color: var(--heading);
}

/* AI overlay: ramps from a line (No AI) to high (AI as Partner) */
.ai {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: -1;
  transform-origin: bottom;
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 500ms);
}
.ai path { fill: var(--ai); }
.ai-1 { height: 6px; background: var(--ai); }
.ai-2, .ai-3 { width: 100%; height: 100%; display: block; }
.js .ai { transform: scaleY(0); }
.js .slide.is-visible .ai { transform: none; }
.no-motion .ai { transform: none !important; }
.ai-label {
  position: absolute; left: clamp(18px, 1.45vw, 44px); bottom: clamp(18px, 1.3vw, 34px);
  font-family: var(--mono); font-weight: 700; font-size: clamp(12px, 0.68vw, 18px);
  color: var(--coral);
}

@media (max-width: 899px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; padding-bottom: 120px; }
  .invest-box { padding: 28px; }
}

/* Fourth column: the three investment tiers, stacked in a grey box */
.invest-box {
  display: flex; flex-direction: column;
  background: var(--grey-light);
  border-radius: var(--radius);
  /* same inset as the cards (their padding + 5px border), so "Investment" lines up with "Session 3" */
  padding: calc(clamp(22px, 1.7vw, 44px) + 5px) calc(clamp(18px, 1.45vw, 44px) + 5px);
}
/* Box label matches the cards' "Session 1" labels, so it reads apart from the tier names and prices */
.invest-box h3 {
  font-family: var(--mono); font-weight: 700; font-size: clamp(13px, 0.7vw, 18px);
  letter-spacing: 0; line-height: 1.6; color: var(--heading);
  margin-bottom: clamp(14px, 1.6vh, 22px);
}
.tier { padding: clamp(14px, 1.7vh, 30px) 0; border-top: 1.5px solid #DADDE0; }
.tier-price {
  font-size: clamp(19px, 1.2vw, 32px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; color: var(--heading); white-space: nowrap;
  margin-bottom: 0.25em;
}
.tier-price span { font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: var(--grey-mid); }
/* Short tier name in front of the price, in the same treatment */
.tier-name { font-weight: inherit; }
.tier li { font-size: clamp(12px, 0.66vw, 17px); line-height: 1.35; color: var(--text); }
.tier .nowrap { white-space: nowrap; }
/* Global: the recommended tier, lifted onto a white card with a coral edge */
.tier.is-recommended {
  margin: 0 calc(-1 * clamp(10px, 0.7vw, 20px));
  padding: clamp(12px, 1.4vh, 24px) clamp(10px, 0.7vw, 20px);
  background: var(--white);
  border: 2.5px solid var(--coral);
  border-radius: 12px;
}
.tier.is-recommended { position: relative; }
.tier.is-recommended + .tier { border-top: 0; }
/* Pill sits on the coral outline, towards the right */
.tier-flag {
  position: absolute; top: -1.25px; right: clamp(10px, 0.7vw, 20px);   /* centre of the 2.5px border */
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 2px 10px; border-radius: 999px;
  background: var(--coral); color: var(--white);
  font-family: var(--mono); font-weight: 700; font-size: clamp(10px, 0.56vw, 14px);
}
.tier-note {
  margin-top: auto;
  padding-top: clamp(8px, 1vh, 20px); border-top: 1.5px solid #DADDE0;
  font-size: clamp(12px, 0.7vw, 18px); line-height: 1.45; color: var(--text);
}
.tier-note p + p { margin-top: 0.4em; }
.tier-note strong { color: var(--text); font-weight: 800; }

/* --------------------------------------------------------------------------
   5. Timeline & next steps
   -------------------------------------------------------------------------- */
.timeline { display: flex; align-items: center; padding-top: clamp(32px, 5vh, 72px); padding-bottom: clamp(32px, 5vh, 72px); }
.timeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: var(--card-gap);
  align-items: stretch;
}

/* Left: what ReD confirms now */
.next-box {
  display: flex; flex-direction: column;
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: clamp(20px, 1.6vw, 44px);
}
.next-box .col-label { margin-bottom: clamp(18px, 2.6vh, 36px); }
.next-list { display: grid; gap: clamp(18px, 2.6vh, 36px); }
.next-list li {
  display: flex; align-items: center; gap: 0.6em;
  font-size: clamp(19px, 1.35vw, 34px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--heading);
}
.next-list strong { font-weight: 800; }
.next-num {
  flex: none; display: grid; place-items: center;
  width: 1.6em; height: 1.6em; border-radius: 50%;
  background: var(--coral); color: var(--white);
  font-family: var(--mono); font-size: 0.62em; font-weight: 700; letter-spacing: 0;
}
.next-note {
  margin-top: clamp(20px, 3vh, 40px);
  font-size: clamp(13px, 0.75vw, 18px); line-height: 1.5; color: var(--text);
}

/* Right: a 6-month gantt in half-month columns (Nov 2026 – Apr 2027) */
.gantt {
  --row: clamp(26px, 3.3vh, 44px);
  position: relative;
  display: grid;
  grid-template-columns: max-content repeat(12, minmax(0, 1fr));
  grid-template-rows: auto repeat(9, var(--row));
  align-items: center;
  font-size: clamp(13px, 0.76vw, 19px);
}
.g-lines {
  grid-column: 2 / 14; grid-row: 1 / -1;
  align-self: stretch;
  display: grid; grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
}
.g-lines span { border-left: 1px solid var(--grey-line); }
.g-lines span:nth-child(3), .g-lines span:nth-child(4) { background: #FCF4F4; }  /* workshop months */
.g-month {
  grid-row: 1;
  padding: 0 0 clamp(6px, 1vh, 12px) 8px;
  font-family: var(--mono); font-weight: 700; font-size: clamp(12px, 0.68vw, 17px);
  color: var(--heading);
}
.g-month span { font-weight: 400; color: var(--grey-mid); }
.g-label {
  grid-column: 1;
  padding-right: clamp(14px, 1.2vw, 28px);
  line-height: 1.25; color: var(--text);
  white-space: nowrap;
}
.g-label strong { color: var(--heading); }
.g-label.is-now { color: var(--heading); font-weight: 700; }
.g-when { display: none; }
.g-mark { position: relative; z-index: 1; }
.g-dot {
  justify-self: center;
  width: clamp(12px, 0.75vw, 18px); height: clamp(12px, 0.75vw, 18px);
  border-radius: 50%; background: var(--heading);
}
.g-dot.is-now { background: var(--coral); box-shadow: 0 0 0 5px var(--pink); }
.g-dot.is-tagged { background: var(--white); border: 3px solid var(--coral); }
.g-bar {
  height: clamp(10px, 0.65vw, 16px); margin: 0 4px;
  border-radius: 999px; background: #C9CDD1;
}
.g-cohort {
  display: flex; justify-content: space-around; align-items: center;
  height: clamp(20px, 1.25vw, 30px); margin: 0 4px;
  border-radius: 999px; background: var(--pink);
}
.g-cohort i { width: clamp(9px, 0.55vw, 14px); height: clamp(9px, 0.55vw, 14px); border-radius: 50%; }
.g-cohort .sd1 { background: var(--blue); }
.g-cohort .sd2 { background: var(--purple); }
.g-cohort .sd3 { background: var(--green); }

/* Under the gantt: what the kick-off and the surveys + ROI review involve */
.timeline-main { min-width: 0; }
.detail-rows {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  margin-top: clamp(20px, 3.2vh, 48px);
}
.detail-row {
  padding-top: clamp(12px, 1.6vh, 22px);
  border-top: 1.5px solid #DADDE0;
}
.detail-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  font-size: clamp(18px, 1.2vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--heading);
  margin-bottom: clamp(8px, 1.2vh, 16px);
}
.detail-head .pill { font-size: clamp(11px, 0.6vw, 15px); letter-spacing: 0; white-space: nowrap; }
.detail-cols {
  display: grid;
  gap: clamp(8px, 1vh, 14px);
  font-size: clamp(13px, 0.76vw, 19px); line-height: 1.5;
}
.detail-cols strong { color: var(--heading); }

@media (max-width: 899px) {
  .timeline-grid, .detail-rows { grid-template-columns: 1fr; }
  .detail-rows { gap: 32px; }
  /* Gantt becomes a list: label + month, no bars */
  .gantt { display: block; }
  .g-lines, .g-month, .g-mark { display: none; }
  .g-label { padding: 10px 0; border-top: 1px solid var(--grey-line); white-space: normal; }
  .g-when {
    display: block;
    font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--grey-mid);
  }
}

/* --------------------------------------------------------------------------
   Footer: contact
   -------------------------------------------------------------------------- */
.site-footer {
  min-height: 60vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad-y) var(--pad-x) clamp(24px, 4vh, 48px);
  background: var(--heading);
  color: #C9CDD1;
}
@media (min-width: 900px) and (min-height: 600px) {
  .site-footer { scroll-snap-align: end; }
}
.footer-inner {
  width: 100%; max-width: 2560px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 120px);
  align-items: end;
  flex: 1;
}
.footer-brand img { width: clamp(56px, 4vw, 96px); height: auto; margin: 0 0 16px -8px; }
.footer-name {
  font-size: clamp(52px, 6vw, 140px); font-weight: 800; letter-spacing: -0.035em; line-height: 1;
  color: var(--white);
}
.footer-tag { margin-top: 0.6em; font-size: clamp(20px, 1.6vw, 36px); font-weight: 500; line-height: 1.3; }
.footer-person {
  font-size: clamp(28px, 2.4vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--white);
}
.footer-role { margin-top: 0.4em; font-family: var(--mono); font-size: clamp(13px, 0.8vw, 18px); }
.footer-links { margin-top: clamp(20px, 3vh, 40px); display: grid; gap: 0.5em; }
.footer-links a {
  font-size: clamp(18px, 1.3vw, 30px); font-weight: 500; color: var(--white);
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--coral-light); border-color: var(--coral); }
.footer-small {
  width: 100%; max-width: 2560px; margin: clamp(32px, 6vh, 72px) auto 0;
  padding-top: 16px; border-top: 1px solid #3C3C3C;
  font-family: var(--mono); font-size: 12px; color: var(--grey-mid);
}
@media (max-width: 899px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links a { overflow-wrap: anywhere; }
}

/* --------------------------------------------------------------------------
   Session pop-up
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 26, 26, 0.45);
  animation: fadeIn 0.25s ease;
}
.modal-panel {
  position: relative;
  width: min(92vw, 2000px);
  height: min(92vh, 1400px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: popIn 0.3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px); } }
.modal-bar {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: flex; gap: 8px;
}
.modal-bar button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--grey-line); background: var(--white);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.modal-bar button:hover { border-color: var(--coral); color: var(--coral); }
.modal-bar button[disabled] { opacity: 0.3; cursor: default; border-color: var(--grey-line); color: inherit; }
.modal-scroll {
  height: 100%; overflow-y: auto;
  scroll-snap-type: y proximity;
  overscroll-behavior: contain;
}
.session {
  --c: var(--blue);
  scroll-snap-align: start;
  padding: clamp(56px, 4.5vw, 104px) clamp(24px, 6vw, 140px);
  border-top: 1px solid var(--grey-line);
}
.session:first-child { border-top: 0; }
.session.s2 { --c: var(--purple); }
.session.s3 { --c: var(--green); }
.session-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.session-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: clamp(15px, 0.9vw, 20px); color: var(--c);
}
.session-label::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.session h3 { font-size: clamp(32px, 3.2vw, 72px); font-weight: 700; margin-bottom: 0.4em; }
.session-aim { font-size: clamp(19px, 1.3vw, 30px); max-width: 60ch; margin-bottom: 1.8em; }
.session-aim strong { color: var(--heading); }
.session-body { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(40px, 3.5vw, 88px); }
.goal { margin-bottom: 1.6em; }
.goal p { font-size: clamp(17px, 1.1vw, 25px); line-height: 1.55; }
.goal-label { color: var(--c); font-weight: 600; }
.goal-detail { color: var(--grey-mid); font-size: clamp(15px, 0.95vw, 21px) !important; margin-top: 6px; }
.goal-detail strong { color: #6F7479; font-weight: 600; }
.session-side { border-left: 1px solid var(--grey-line); padding-left: clamp(28px, 2vw, 48px); font-size: clamp(16px, 1vw, 23px); }
.side-title { font-weight: 600; color: var(--heading); margin-bottom: 10px; }
.concepts { margin-bottom: 24px; }
.concepts li { position: relative; padding-left: 1.1em; font-size: inherit; color: var(--heading); margin-bottom: 4px; }
.concepts li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c);
}
.brief { background: var(--pink); border-radius: 10px; padding: 1em 1.15em; }
.brief-label { font-family: var(--mono); font-weight: 700; font-size: 0.82em; color: #E04848; margin-bottom: 4px; }
.brief p:last-child { color: var(--heading); font-size: 1em; line-height: 1.45; }

@media (max-width: 720px) {
  .session-body { grid-template-columns: 1fr; gap: 8px; }
  .session-side { border-left: 0; padding-left: 0; }
}

/* --------------------------------------------------------------------------
   Speaker notes view: each section as a 16:9 preview (2/3) + notes (1/3)
   -------------------------------------------------------------------------- */
/* Notes layout measurements, shared by the pill and the grid */
:root {
  --notes-pad: clamp(20px, 4vw, 72px);
  --notes-gap: clamp(20px, 2vw, 40px);
}
/* Pill sits in the top-right corner: solid while notes are open */
.notes-toggle {
  position: fixed; top: 16px; right: 16px;
  z-index: 300;
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  background: var(--white); color: var(--heading);
  border: 1.5px solid var(--heading);
  cursor: pointer;
  opacity: 0;   /* hidden while presenting; hover the top-right corner to bring it back */
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.notes-toggle:hover, .notes-toggle:focus-visible { opacity: 1; }
@media (hover: none) { .notes-toggle { opacity: 0.6; } }
.notes-toggle[aria-pressed="true"] { opacity: 1; background: var(--heading); color: var(--white); }

.notes-view {
  position: fixed; inset: 0; z-index: 200;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--grey-light);
}
.notes-view[hidden] { display: none; }
.notes-open body { overflow: hidden; }
.notes-open .dots { display: none; }
.notes-inner { padding: 88px var(--notes-pad) 96px; }
.note-row + .note-row { margin-top: clamp(56px, 7vw, 112px); }
.note-title {
  color: var(--heading);
  font-size: clamp(30px, 2.6vw, 52px);
  font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: clamp(14px, 1.4vw, 24px);
}
.note-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--notes-gap);
}
.note-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--grey-line), 0 10px 30px rgba(26,26,26,0.06);
}
/* The page renders at 1920 × 1080 inside the frame, scaled to fit (--s set in script.js) */
.note-frame iframe {
  position: absolute; top: 0; left: 0;
  width: 1920px; height: 1080px; border: 0;
  transform-origin: 0 0; transform: scale(var(--s, 0.5));
}
.note-text { position: relative; }
/* Notes scroll inside the frame height; the scrollbar shows only on hover */
.note-scroll {
  position: absolute; inset: 0;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  padding-right: 12px;
  font-family: var(--mono);
  font-size: clamp(13px, 0.78vw, 16px); line-height: 1.7; color: var(--text);
}
.note-scroll:hover, .note-scroll:focus-within { overflow-y: auto; }
@media (hover: none) { .note-scroll { overflow-y: auto; } }
.note-scroll p + p, .note-scroll p + ul, .note-scroll ul + p { margin-top: 0.8em; }
.note-scroll li + li { margin-top: 0.3em; }
.note-scroll strong { color: var(--heading); }
.note-label {
  font-weight: 700; font-size: 0.85em;
  color: var(--grey-mid);
  padding-bottom: 0.7em; margin-bottom: 1.1em;
  border-bottom: 1px solid #D6D9DC;
}
.note-aside { color: var(--grey-mid); }

@media (max-width: 899px) {
  .notes-toggle { top: auto; bottom: 16px; }
  .note-grid { grid-template-columns: 1fr; }
  .note-scroll { position: static; }
}

/* Inside a preview frame: show only the one section, no page chrome */
.is-framed, .is-framed body { overflow: hidden; scroll-snap-type: none; }
.is-framed .slide:not(.is-frame-target),
.is-framed .dots,
.is-framed .notes-toggle,
.is-framed .notes-view { display: none !important; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-panel { animation: none; }
}
