/* =========================================================
   ACTO Report — Responsible AI in Life Sciences 2026
   One stylesheet for index.html. Read AGENTS.md before editing.

   1  Tokens (colour, type scale, 8px spacing)
   2  Base
   3  Sticky top bar + tabs
   4  Views (Overview / Part layout)
   5  Table of contents (sticky; collapsible bar on phones)
   6  Slide shell + part cards + pager
   7  Small screens (page chrome)
   8  Slide system + Overview slides
   9  Part 1 components (cards, surveys, quotes, types table, CTA)
   10 Width tiers (container queries on the deck)
   11 Part 2 components (themes, feature, survey, charts, quotes)
   12 Parts 3–5 components (split, data table, cards, plan, CTA band)
   13 Phone refinements (client mobile review)
   14 Client review round 2 (widows, quotes, tiers, cards)
   15 Phone QA pass (opener logo scrim, stacked tiers table)
   16 End cover (closes Part 5) + phone fixes
   17 Phone type cap + opener crops
   18 Covers, openers and vendor CTA matched to the PDF
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* colour */
  --c-ink: #2d2321;
  --c-muted: #6b6461;
  --c-teal: #15988b;
  --c-magenta: #ae5d9a;
  --c-bg: #f4f2ee;
  --c-cream: #fdf7e5;
  --c-rt: #ae5d9a;            /* roundtables track */
  --c-rt-fill: #7a2160;
  --c-sv: #15988b;            /* survey track */
  --c-sv-fill: #075e52;
  --c-surface: #ffffff;
  --c-line: #e3dfd8;
  --c-accent: var(--c-teal);

  /* type — one fixed scale, no in-between sizes.
     Headings step down by width tier (see the deck container queries).
     Body text uses only three sizes: 18 / 16 / 14. */
  --ff: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: 4rem;       /* 64 */
  --fs-h2: 3rem;       /* 48 */
  --fs-h3: 2.5rem;     /* 40 */
  --fs-h4: 2rem;       /* 32 */
  --fs-h5: 1.5rem;     /* 24 */
  --fs-lg: 1.125rem;   /* 18 · lead body */
  --fs-md: 1rem;       /* 16 · body */
  --fs-sm: 0.875rem;   /* 14 · labels, captions, UI */
  --fs-body-1: var(--fs-md);
  --fs-body-2: var(--fs-sm);
  --lh-tight: 1.15;
  --lh-head: 1.3;
  --lh-body: 1.6;

  /* spacing — 8px system */
  --s-8: 0.5rem;
  --s-16: 1rem;
  --s-24: 1.5rem;
  --s-32: 2rem;
  --s-40: 2.5rem;
  --s-64: 4rem;
  --s-80: 5rem;
  --s-100: 6.25rem;

  /* layout */
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --page-max: 112rem;
  --toc-w: clamp(14rem, 18vw, 18rem);
  --topbar-h: 1rem;            /* breathing room above the tab row */
  --tabs-h: 3.25rem;           /* tab row */
  --sticky-top: calc(var(--topbar-h) + var(--tabs-h));
  --radius: clamp(0.75rem, 1.04vw, 1.25rem);
  --shadow: 0 1rem 3rem rgba(45, 35, 33, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--sticky-top) + 1.5rem); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff);
  font-size: var(--fs-body-1);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 700; }
h2 { font-size: var(--fs-h4); line-height: var(--lh-head); font-weight: 600; }
h3 { font-size: var(--fs-lg); line-height: var(--lh-body); font-weight: 700; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 0.5rem; background: var(--c-ink); color: #fff;
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. STICKY TOP BAR + TABS ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.topbar__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.topbar__inner { padding-top: var(--topbar-h); }

.tabs { position: relative; }
.tabs__list {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--c-surface);
  border-radius: var(--radius) var(--radius) 0 0;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list li { flex: 1 0 auto; }
.tabs__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--tabs-h);
  padding-inline: 1.25rem;
  font-size: var(--fs-body-2);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: var(--c-ink);
  transition: color 0.25s var(--ease);
}
.tabs__link:hover { color: var(--c-accent); }
.tabs__link[aria-current="page"] { color: var(--c-accent); font-weight: 600; }
/* sliding underline under the current tab (positioned by JS) */
.tabs__ink {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: var(--ink-w, 0);
  transform: translateX(var(--ink-x, 0));
  background: var(--c-accent);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}

/* ---------- 4. VIEWS ---------- */
.report { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.view[hidden] { display: none; }
.view { padding-block: clamp(2rem, 5vh, 4rem); }

/* Part layout: sticky TOC on the left, slides on the right */
.view--part {
  display: grid;
  grid-template-columns: var(--toc-w) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 3.5vw, 4rem);
  align-items: start;
}

/* ---------- 5. TABLE OF CONTENTS ---------- */
.toc {
  position: sticky;
  top: calc(var(--sticky-top) + 1.5rem);
  max-height: calc(100vh - var(--sticky-top) - 3rem);
  overflow: auto;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow);
}
.toc__label {
  padding-inline: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: var(--fs-body-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.toc__toggle { display: none; }
.toc__list { display: grid; gap: 0.15rem; }
.toc__link {
  display: block;
  padding: 0.45rem 0.75rem;
  border-left: 2px solid transparent;
  border-radius: 0 0.4rem 0.4rem 0;
  font-size: var(--fs-body-2);
  line-height: 1.4;
  text-decoration: none;
  color: var(--c-muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.toc__link:hover { color: var(--c-ink); background: color-mix(in srgb, var(--c-accent) 6%, transparent); }
.toc__link--sub { padding-left: 1.6rem; }
.toc__link.is-active {
  color: var(--c-accent);
  font-weight: 600;
  border-left-color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 8%, transparent);
}

/* ---------- 6. SLIDE SHELL ---------- */
.view__slides { display: grid; gap: 0; min-width: 0; }   /* slides sit flush, one continuous deck */
.slide {
  min-height: 60vh;
  border-radius: 0;
  background: var(--c-surface);
  overflow: hidden;
}

/* Overview hero + part cards */
.view--overview { display: grid; gap: 0; }
.part-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.part-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.part-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-accent); }
.part-card__num { font-size: var(--fs-body-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-accent); }
.part-card__title { font-size: var(--fs-lg); font-weight: 700; }
.part-card__blurb { font-size: var(--fs-body-2); color: var(--c-muted); }
.part-card__more { margin-top: auto; font-size: var(--fs-body-2); font-weight: 600; color: var(--c-accent); }

/* Prev / next part */
.pager { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem 4rem; }
.pager a {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 600;
}
.pager a span { font-size: var(--fs-body-2); font-weight: 400; color: var(--c-muted); }
.pager a[rel="next"] { margin-left: auto; text-align: right; }

/* ---------- 7. SMALL SCREENS ---------- */
@media (max-width: 1023px) {
  :root { --topbar-h: 0rem; }
  .tabs__list { border-radius: 0; margin-inline: calc(var(--gutter) * -1); }
  .tabs__list li { flex: 0 0 auto; }

  /* Part TOC becomes a collapsible "On this page" bar under the tabs */
  .view--part { display: block; }
  .toc {
    position: sticky;
    top: var(--sticky-top);
    z-index: 40;
    max-height: none;
    margin: 0 calc(var(--gutter) * -1) 1.5rem;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 0.5rem 1rem -0.75rem rgba(45, 35, 33, 0.25);
  }
  .toc__label { display: none; }
  .toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem var(--gutter);
    font-size: var(--fs-body-2);
    font-weight: 600;
  }
  .toc__toggle > span { display: flex; flex-direction: column; align-items: flex-start; gap: 0.125rem; text-align: left; }
  .toc__toggle-current { color: var(--c-accent); font-weight: 500; }
  .toc__toggle svg { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease); }
  .toc.is-open .toc__toggle svg { transform: rotate(180deg); }
  .toc__list {
    display: none;
    max-height: 60vh;
    overflow: auto;
    padding: 0 0.75rem 0.75rem;
  }
  .toc.is-open .toc__list { display: grid; }
  .slide { min-height: 0; }
}

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




/* =========================================================
   8. SLIDE SYSTEM
   Figma frames are layout reference only. Type and spacing come from the
   tokens above: headings 64/48/40/32/24, body 18/16/14, spacing 8/16/24/32/40/64/80/100.
   The deck is a container, so slides size themselves to the column they sit
   in (full width on Overview, beside the contents column in a Part).
   ========================================================= */
.deck { container: deck / inline-size; }
.deck > :where(.slide) {
  container-type: inline-size;   /* artwork positions use cqw */
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  min-height: auto;             /* 16:9 slides still grow if their text needs more room */
  padding: 0;
  overflow: clip;
  --pad-x: var(--s-80);
  --pad-y: var(--s-80);
  --card-m: var(--s-64);
  --card-p: var(--s-64);
  --col-gap: var(--s-64);
  --radius-card: var(--s-24);
}
.deck .slide b { font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fw-regular { font-weight: 400; }

/* Photo-led slides hold the 16:9 frame; text-led slides take the height they need */
.deck > .slide--cover,
.deck > .slide--contents,
.deck > .slide--opener,
.deck > .slide--endcover { aspect-ratio: 16 / 9; }

.slide__logo { position: absolute; z-index: 2; top: var(--s-64); left: var(--pad-x); width: clamp(7rem, 12cqw, 10rem); height: auto; }
.slide__title { font-size: var(--fs-h3); line-height: var(--lh-tight); text-transform: uppercase; font-weight: 400; }
.badge {
  display: inline-flex; align-items: center; padding: var(--s-8) var(--s-16); border-radius: 999px;
  background: var(--c-ink); color: #fff; font-size: var(--fs-sm); font-weight: 700; line-height: 1.2;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---- 1 · Cover ---- */
.slide--cover { background: var(--c-cream); }
.cover__titles { position: absolute; z-index: 2; left: var(--pad-x); top: 17.5cqw; }
.cover__title { font-size: var(--fs-h1); line-height: var(--lh-tight); text-transform: uppercase; font-weight: 700; }
.cover__year { margin-top: var(--s-24); font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 600; text-transform: uppercase; }
.cover__sub { position: absolute; z-index: 2; left: var(--pad-x); bottom: var(--s-64); max-width: 18em; font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 500; }
.cover__people { position: absolute; z-index: 1; right: 0; bottom: 0; width: 68.4cqw; height: auto; }

/* ---- 2 · Table of contents ---- */
.slide--contents { background: #c9c6c1; }   /* wall tone shows while the wall photo loads */
.contents__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }   /* concrete wall + light band, as in the PDF */
.contents__woman { position: absolute; z-index: 2; right: 7cqw; bottom: 0; width: 42.6cqw; height: auto; }
.contents__body { position: relative; z-index: 3; width: 52cqw; padding: var(--s-64) var(--pad-x); }
.contents__title { font-size: var(--fs-h3); line-height: var(--lh-head); font-weight: 500; }
.contents__list { margin-top: var(--s-40); display: grid; border-top: 1px solid rgba(45, 35, 33, 0.2); }
.contents__link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-24); row-gap: var(--s-8); align-items: end;
  padding-block: var(--s-24); border-bottom: 1px solid rgba(45, 35, 33, 0.2);
  text-decoration: none; font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 600;
  transition: color 0.25s var(--ease);
}
.contents__label { grid-column: 1 / -1; font-size: var(--fs-sm); line-height: 1.4; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-teal); }
.contents__go { font-weight: 400; transition: transform 0.35s var(--ease); }
a.contents__link:hover { color: var(--c-teal); }
a.contents__link:hover .contents__go { transform: translateX(var(--s-8)); }

/* ---- 3 · Executive summary ---- */
.slide--exec { background: #fff; padding: var(--pad-y) var(--pad-x); }
.slide--exec::before,
.slide--methods::before {
  content: ""; position: absolute; z-index: -1; top: -30cqw; right: -22cqw; width: 70cqw; aspect-ratio: 1;
  border-radius: 50%; filter: blur(30px);
  background: radial-gradient(closest-side, rgba(21, 152, 139, 0.9), rgba(21, 152, 139, 0.3) 55%, rgba(21, 152, 139, 0) 100%);
}
.exec__cols { margin-top: var(--s-64); display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); font-size: var(--fs-md); line-height: var(--lh-body); }
.exec__cols > div:first-child > p:first-child { font-size: var(--fs-lg); line-height: 1.5; }
.exec__cols p + p { margin-top: var(--s-24); }
.exec__sign { margin-top: var(--s-40) !important; }

/* ---- 4 · Section opener ---- */
.slide--opener { background: #9aa2a4; color: #fff; }
.opener__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.slide--opener::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, rgba(20, 16, 15, 0.38) 0%, rgba(20, 16, 15, 0.1) 40%, rgba(20, 16, 15, 0) 60%);
}
.opener__titles { position: absolute; z-index: 2; left: var(--pad-x); top: 28.3cqw; }
.opener__title { font-size: var(--fs-h1); line-height: var(--lh-tight); text-transform: uppercase; }

/* ---- 5 · How the study was conducted ---- */
.slide--study { background: #078b84; }
.study__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.study__card {
  position: relative; z-index: 1; margin: var(--card-m);
  display: flex; flex-direction: column; padding: var(--card-p) var(--card-p) 0; border-radius: var(--radius-card); background: #fff;
}
.study__title { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-teal); }
.study__text { margin-top: var(--s-16); max-width: 36em; font-size: var(--fs-h5); line-height: 1.45; }
.study__glance { margin-top: var(--s-64); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.study__stats {
  display: flex; flex-wrap: wrap; gap: var(--s-32) var(--s-64); margin: var(--s-16) calc(var(--card-p) * -1) 0; padding: var(--s-32) var(--card-p) var(--s-40);
  border-top: 1px solid var(--c-ink);
}
.study__stats > div { display: flex; flex-direction: column-reverse; gap: var(--s-8); }
.study__stats dd { font-size: var(--fs-h2); line-height: 1; font-weight: 700; color: var(--c-teal); font-variant-numeric: tabular-nums; }
.study__stats dt { font-size: var(--fs-md); }

/* ---- 6 · Three methods ---- */
.slide--methods { background: #fff; padding: var(--pad-y) var(--pad-x); }
.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
.method__num {
  display: grid; place-items: center; width: var(--s-64); height: 7rem; border-radius: 999px;
  background: var(--c-teal); color: #fff; font-size: var(--fs-h3); font-weight: 400; line-height: 1;
}
.method__title { margin-top: var(--s-32); font-size: var(--fs-h4); line-height: var(--lh-head); font-weight: 400; }
.method__lead { margin-top: var(--s-24); font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 700; color: var(--c-teal); }
.method__text { margin-top: var(--s-16); font-size: var(--fs-lg); line-height: var(--lh-body); }
.method__text--solo { margin-top: calc(var(--s-24) + var(--fs-h5) * var(--lh-head) + var(--s-16)); }

/* ---- 7–8 · Who took part ---- */
.slide--who { background: #fff; padding: var(--pad-y) var(--pad-x); --who-col: 8rem; }
.who__lede { margin-top: var(--s-16); max-width: 40em; font-size: var(--fs-lg); line-height: var(--lh-body); }
.bars-group { margin-top: var(--s-40); }
.bars-group__tag {
  display: inline-flex; align-items: center; justify-content: center; min-width: 12rem;
  margin-left: var(--who-col); padding: var(--s-8) var(--s-24); border-radius: 999px;
  background: var(--c-teal); color: #fff; font-size: var(--fs-md); line-height: 1.5; font-weight: 700;
}
.bars { display: grid; gap: var(--s-32) var(--col-gap); margin-top: var(--s-24); }
.bars--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 2), auto); }   /* reads down each column, as in Figma */
.bars__name { margin-left: var(--who-col); font-size: var(--fs-md); line-height: 1.4; font-weight: 700; }
.bar { display: grid; grid-template-columns: var(--who-col) minmax(0, 1fr) 5rem; align-items: center; margin-top: var(--s-8); }
.bar__who { font-size: var(--fs-sm); font-weight: 600; }
.bar__val { padding-left: var(--s-16); white-space: nowrap; font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar__track {
  position: relative; height: var(--s-16); border-radius: 999px; overflow: hidden;
  background:
    repeating-linear-gradient(to right, transparent 0 calc(10% - 1px), rgba(255, 255, 255, 0.55) calc(10% - 1px) 10%),
    var(--track);
}
.bar__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: inherit; background: var(--fill); transform-origin: left center; }
.bar--rt { --track: var(--c-rt); --fill: var(--c-rt-fill); }
.bar--sv { --track: var(--c-sv); --fill: var(--c-sv-fill); }
.slide--who-2 { padding-top: var(--s-40); }
.who__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
.bars-group--wide { grid-column: 1 / -1; margin-top: 0; }


/* =========================================================
   9. PART SLIDES (shared components) — Part 1 = Sections 02–03
   ========================================================= */
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.slide--opener-light::after { background: linear-gradient(to right, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 35%, rgba(255, 255, 255, 0) 55%); }
.slide--opener-light .opener__title { color: var(--c-ink); }

/* White card on a background */
.slide--card { background: #078b84; }
.card {
  position: relative; z-index: 1; margin: var(--card-m);
  padding: var(--card-p); border-radius: var(--radius-card); background: #fff; color: var(--c-ink);
}
.card--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--col-gap); align-items: start; }
.card__copy { font-size: var(--fs-md); line-height: var(--lh-body); }
.card__copy > * + * { margin-top: var(--s-24); }
.card__lead,
.card__intro { font-size: var(--fs-lg); line-height: 1.5; }
.card__lead { font-weight: 700; }
.card__intro { font-weight: 600; }
.card__bullets { padding-left: 1.25em; list-style: disc; }
.card__bullets li + li { margin-top: var(--s-8); }

/* Roundtable quote with flag and accent bar */
.pquote { margin-top: var(--s-40); padding-left: var(--s-24); border-left: 6px solid var(--qa, var(--c-teal)); }
.pquote--teal { --qa: var(--c-teal); }
.pquote--magenta { --qa: var(--c-magenta); }
.pquote__source { display: flex; align-items: center; gap: var(--s-16); font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; }
.flag { width: var(--s-40); height: var(--s-24); object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(45, 35, 33, 0.08); }
.pquote__text { margin-top: var(--s-16); font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 500; }

/* Survey column inside a card */
.card__survey { display: flex; flex-direction: column; align-items: flex-start; }
.sv { width: 100%; margin-top: var(--s-32); }
.sv__q { font-size: var(--fs-lg); font-weight: 600; line-height: 1.4; }
.sv__q .fw-regular { font-weight: 400; }
.sv__row { display: flex; justify-content: space-between; margin-top: var(--s-16); font-size: var(--fs-md); font-weight: 700; }
.sv__pct { font-variant-numeric: tabular-nums; }
.sv__track {
  position: relative; display: block; margin-top: var(--s-8); height: var(--s-16); border-radius: 999px; overflow: hidden;
  background: repeating-linear-gradient(to right, transparent 0 calc(10% - 1px), rgba(255, 255, 255, 0.55) calc(10% - 1px) 10%), var(--track);
}
.sv__track--teal { --track: var(--c-sv); --fill: var(--c-sv-fill); }
.sv__track--magenta { --track: var(--c-rt); --fill: var(--c-rt-fill); }
.sv__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: inherit; background: var(--fill); transform-origin: left center; }
.sv__n { margin-top: var(--s-16); font-size: var(--fs-sm); color: var(--c-muted); }
.sv__take { margin-top: var(--s-32); padding-top: var(--s-24); border-top: 1px solid var(--c-line); font-size: var(--fs-h5); line-height: var(--lh-head); }

/* 11–12 · one pastel gradient behind the card that melts into white under the questions */
.slide--flow { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; }
.flow__bg {
  grid-area: 1 / 1; position: relative; z-index: -1; pointer-events: none;
  margin-bottom: -16rem;   /* runs on under the questions, then fades out */
  background: linear-gradient(90deg, #d7ece6 0%, #9fd2c6 12%, #e9d7a3 30%, #c99689 40%, #b796be 55%, #c4d3ef 72%, #e8f0fb 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 22rem), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 22rem), transparent 100%);
}
.slide--flow > .card { grid-area: 1 / 1; margin-bottom: 0; }
.flow__questions {
  grid-area: 2 / 1; position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--col-gap); align-items: start;
  padding: var(--s-80) calc(var(--card-m) + var(--card-p)) var(--pad-y);
}
.questions__copy { font-size: var(--fs-md); line-height: var(--lh-body); }
.questions__copy p + p { margin-top: var(--s-24); }
.questions__title { font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 500; }
.qcards { margin-top: var(--s-32); display: grid; gap: var(--s-16); }
.qcard {
  display: flex; flex-direction: column; gap: var(--s-8); padding: var(--s-24); border-radius: var(--s-16);
  box-shadow: 0 0.5rem 2rem rgba(45, 35, 33, 0.1);
  background: radial-gradient(ellipse 30% 70% at 100% 0%, rgba(174, 93, 154, 0.4), rgba(174, 93, 154, 0) 100%), #fff;
}
.qcard__num { font-size: var(--fs-sm); line-height: 1.4; font-weight: 700; letter-spacing: 0.08em; color: var(--c-magenta); }
.qcard__text { font-size: var(--fs-lg); line-height: 1.4; font-weight: 600; }

/* 14 · intro across the card + types strip */
.card--types { display: flex; flex-direction: column; padding-bottom: 0; }
.card__big { font-size: var(--fs-h5); line-height: 1.45; }
.card__big p + p { margin-top: var(--s-24); }
.card__label { margin-top: var(--s-64); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.types-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-24);
  margin: var(--s-16) calc(var(--card-p) * -1) 0; padding: var(--s-32) var(--card-p) var(--card-p);
  border-top: 1px solid var(--c-ink); font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 600;
}
.types-strip .is-feature { color: var(--c-magenta); }

/* 15 · types table over the magenta band + download CTA */
.slide--types { background: #fff; padding: var(--pad-y) var(--pad-x) var(--s-64); }
.types__band { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 45%; object-fit: cover; }
.types-table {
  margin-top: var(--s-40); border-radius: var(--radius-card); overflow: hidden; background: #fff;
  box-shadow: 0 0.75rem 2.5rem rgba(45, 35, 33, 0.12); font-size: var(--fs-sm); line-height: 1.5;
}
.tt__row { display: grid; grid-template-columns: 1.7fr 1.5fr 1.6fr 1.8fr 2.5fr; }
.tt__row > * { padding: var(--s-16); border-left: 1px solid var(--c-line); }
.tt__row > :first-child { border-left: 0; padding-left: var(--s-24); }
.tt__row + .tt__row > * { border-top: 1px solid var(--c-line); }
.tt__head > * { padding-block: var(--s-24); font-size: var(--fs-md); font-weight: 700; }
.tt__row:not(.tt__head) > [role="rowheader"] { font-size: var(--fs-md); font-weight: 600; }
.tt__feature { color: var(--c-magenta); }
.tt__chip { display: block; padding: var(--s-8) var(--s-16); border-radius: var(--s-8); background: #fff; box-shadow: 0 0.25rem 1rem rgba(45, 35, 33, 0.14); }
.tt__chip--solid { background: var(--c-magenta); color: #fff; }
.dl-cta {
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); grid-template-areas: "icon body" "head body";
  justify-items: start; align-items: center; column-gap: var(--s-40); row-gap: var(--s-16);
  width: min(100%, 48rem); margin-top: var(--s-40); padding: var(--s-24) var(--s-40);
  border: 2px solid rgba(255, 255, 255, 0.85); border-radius: var(--s-32); color: #fff; text-decoration: none;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.dl-cta__icon { grid-area: icon; }
.dl-cta__head { grid-area: head; }
.dl-cta__body { grid-area: body; }
.dl-cta:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.dl-cta__icon { width: 3rem; height: auto;   /* 48 */ transition: transform 0.3s var(--ease); }
.dl-cta:hover .dl-cta__icon { transform: translateY(3px); }
.dl-cta__head { display: flex; flex-direction: column; gap: 0.25rem; }
.dl-cta__eyebrow { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.dl-cta__title { font-size: var(--fs-h5); font-weight: 700; line-height: 1.2; }
.dl-cta__link { font-size: var(--fs-sm); text-decoration: underline; }
.dl-cta__body { font-size: var(--fs-md); line-height: 1.5; }


/* =========================================================
   10. WIDTH TIERS (measured on the deck, not the window)
   ========================================================= */
/* Medium deck — laptops, and every Part beside its contents column */
@container deck (max-width: 1200px) {
  .deck > .slide {
    --pad-x: var(--s-64); --pad-y: var(--s-64);
    --card-m: var(--s-40); --card-p: var(--s-40); --col-gap: var(--s-40);
    --fs-h1: 3rem; --fs-h2: 2.5rem; --fs-h3: 2rem; --fs-h4: 1.5rem; --fs-h5: 1.25rem;
  }
  .slide--who { --who-col: 7rem; }
}

/* Two columns no longer fit comfortably: stack cards and question blocks */
@container deck (max-width: 900px) {
  .contents__body { width: 64cqw; }
  .contents__woman { right: 0; width: 38cqw; }
  .card--split, .flow__questions { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-40); }
  .flow__questions { padding-top: var(--s-64); }
  .types-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-cta { grid-template-columns: minmax(0, 1fr); grid-template-areas: "icon" "head" "body"; padding: var(--s-24); }

  /* Types table: one card per question, each answer labelled */
  .tt__head { display: none; }
  .tt__row { grid-template-columns: 1fr; }
  .tt__row > * { border-left: 0; padding: var(--s-8) var(--s-16); }
  .tt__row > :first-child { padding: var(--s-16); background: color-mix(in srgb, var(--c-teal) 10%, #fff); }
  .tt__row > :last-child { padding-bottom: var(--s-24); }
  .tt__row > [role="cell"]::before { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--c-teal); }
  .tt__row > [role="cell"]:nth-child(2)::before { content: "Prompt Tool"; }
  .tt__row > [role="cell"]:nth-child(3)::before { content: "Copilot"; }
  .tt__row > [role="cell"]:nth-child(4)::before { content: "Agent"; }
  .tt__row > [role="cell"]:nth-child(5)::before { content: "Agentic AI system"; color: var(--c-magenta); }
  .tt__row + .tt__row > * { border-top: 0; }
  .tt__row + .tt__row { border-top: 1px solid var(--c-line); }
}

/* Phones & portrait tablets: everything stacks, artwork flows in */
@container deck (max-width: 767px) {
  .deck > .slide {
    --pad-x: var(--s-24); --pad-y: var(--s-40);
    --card-m: var(--s-16); --card-p: var(--s-24); --col-gap: var(--s-32);
    --fs-h1: 2rem; --fs-h2: 2rem; --fs-h3: 1.5rem; --fs-h4: 1.5rem; --fs-h5: 1.25rem;
    --radius-card: var(--s-16);
  }
  .deck > .slide--cover, .deck > .slide--contents, .deck > .slide--opener, .deck > .slide--endcover { aspect-ratio: auto; }
  .slide__logo { top: var(--s-24); width: 7rem; }

  .slide--cover { display: flex; flex-direction: column; padding: var(--s-100) var(--pad-x) 0; }
  .cover__titles, .cover__sub { position: static; }
  .cover__sub { margin-top: var(--s-24); }
  .cover__people { position: relative; width: 115%; max-width: none; margin: var(--s-32) -15% 0 0; align-self: flex-end; }

  .contents__body { width: auto; padding: var(--pad-y) var(--pad-x) 22rem; }
  .contents__list { margin-top: var(--s-24); }
  .contents__woman { right: -4%; width: min(70%, 22rem); }

  .exec__cols { grid-template-columns: 1fr; margin-top: var(--s-32); }
  .exec__cols > div + div { margin-top: var(--s-24); }

  .slide--opener { min-height: min(80vh, 40rem); }
  .opener__bg { object-position: 65% center; }
  .slide--opener::after { background: linear-gradient(to top, rgba(20, 16, 15, 0.65) 0%, rgba(20, 16, 15, 0.2) 45%, rgba(20, 16, 15, 0) 70%); }
  .slide--opener-light::after { background: linear-gradient(to top, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0) 70%); }
  .opener__titles { top: auto; bottom: var(--s-40); }

  .study__text { margin-top: var(--s-16); }
  .study__glance { margin-top: var(--s-40); }
  .study__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-24); }

  .methods { grid-template-columns: 1fr; row-gap: var(--s-64); }
  .method__num { width: var(--s-40); height: var(--s-64); font-size: var(--fs-h4); }
  .method__title { margin-top: var(--s-16); }
  .method__text, .method__text--solo { margin-top: var(--s-8); }

  .slide--who { --who-col: 6.5rem; }
  .bars-group__tag { min-width: 0; margin-left: 0; }
  .bars, .bars--2col, .who__grid { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; row-gap: var(--s-24); }
  .bars__name { margin-left: 0; }

  .flow__bg { margin-bottom: -10rem; }
  .flow__questions { padding-top: var(--s-40); }

  .card__label { margin-top: var(--s-40); }

  .types__band { height: 30%; }
  .types-table { margin-top: var(--s-24); }
}


/* =========================================================
   11. PART 2 COMPONENTS — theme / survey / quotes / charts
   Pattern per theme: a feature slide (copy + cut-out portrait),
   a survey slide (bars + portrait), then three roundtable quotes.
   ========================================================= */

/* Six themes at a glance (card strip, links to each theme) */
.themes {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-24);
  margin: var(--s-16) calc(var(--card-p) * -1) 0; padding: var(--s-32) var(--card-p) var(--card-p);
  border-top: 1px solid var(--c-ink);
}
.themes a { display: flex; flex-direction: column; gap: var(--s-8); height: 100%; text-decoration: none; transition: color 0.25s var(--ease); }
.themes a:hover { color: var(--c-teal); }
.themes__num { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-teal); }
.themes li:nth-child(odd) .themes__num { color: var(--c-magenta); }
.themes__title { font-size: var(--fs-md); line-height: 1.5; font-weight: 500; }

/* Feature slide: copy on one side, cut-out portrait on the other, flush to the bottom */
.slide--feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--col-gap);
  background: #fff;
}
.feature__copy { align-self: center; padding: var(--pad-y) var(--pad-x) var(--pad-y) 0; }
.slide--feature.is-flip .feature__copy { order: -1; padding: var(--pad-y) 0 var(--pad-y) var(--pad-x); }
.feature__num { font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 700; }
.feature__num--teal { color: var(--c-teal); }
.feature__num--magenta { color: var(--c-magenta); }
.feature__title { margin-top: var(--s-16); font-size: var(--fs-h4); line-height: var(--lh-head); font-weight: 400; }
.feature__body { margin-top: var(--s-24); font-size: var(--fs-md); line-height: var(--lh-body); }
.feature__body p + p { margin-top: var(--s-16); }
.feature__art {
  position: relative; isolation: isolate; align-self: stretch;
  display: flex; align-items: flex-end; justify-content: center; padding-top: var(--s-64);
}
.feature__art img { position: relative; z-index: 1; width: min(100%, 30rem); height: auto; }
.feature__art--wide img { width: min(100%, 40rem); }
/* soft pastel light behind the cut-out: an oval that fades out on every side,
   so it never meets the slide edge (nothing reads as cropped) */
.glow {
  position: absolute; z-index: 0; inset: auto 0 0; margin-inline: auto; width: min(90%, 36rem); height: 92%;   /* no CSS transform: GSAP animates scale */
  pointer-events: none; opacity: 0.8;
  background: linear-gradient(90deg, #f6e7b0 0%, #6cc4b6 35%, #b276aa 65%, #c7dbf3 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  filter: blur(24px);
}
/* Cut-outs that end abruptly on one side sit against the slide edge, or fade on that side */
.feature__art--flush-start { justify-content: flex-start; }
.feature__art--flush-end { justify-content: flex-end; }
.feature__art--flush-start .glow { margin-left: 5%; }
.feature__art--flush-end .glow { margin-right: 5%; }
.feature__art--fade-start img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
          mask-image: linear-gradient(to right, transparent 0, #000 22%);
}

/* Survey block (inside a feature slide, or a charts slide) */
.survey__q { margin-top: var(--s-24); font-size: var(--fs-h4); line-height: var(--lh-head); font-weight: 400; }
.survey__hint { color: var(--c-muted); }
.svlist { display: grid; gap: var(--s-16); margin-top: var(--s-32); }
.svlist .sv { margin-top: 0; }
.svlist .sv__row { margin-top: 0; font-size: var(--fs-sm); gap: var(--s-16); }
.survey__take { margin-top: var(--s-24); max-width: 36em; font-size: var(--fs-lg); line-height: 1.5; }

/* Several charts side by side; questions share a row so the bars line up */
.slide--charts { background: #fff; padding: var(--pad-y) var(--pad-x); }
.charts { display: grid; grid-template-rows: auto auto; column-gap: var(--col-gap); margin-top: var(--s-8); }
.charts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.charts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.slide--charts .survey__q { font-size: var(--fs-h5); }
.slide--charts .sv__n { margin-top: var(--s-24); }

/* Three roundtable quotes with a soft corner glow in the theme colour */
.slide--quotes { background: #fff; padding: var(--pad-y) var(--pad-x); --glow: 174, 93, 154; }
.slide--quotes-teal { --glow: 21, 152, 139; }
.slide--quotes::before {
  content: ""; position: absolute; z-index: -1; right: -20cqw; bottom: -30cqw; width: 70cqw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--glow), 0.75), rgba(var(--glow), 0.2) 55%, rgba(var(--glow), 0) 100%);
}
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s-40); align-items: start; }
.quotes .pquote { margin-top: 0; }

/* Small dark pill that jumps to a related survey slide */
.pill-link {
  display: inline-flex; align-items: center; gap: var(--s-8); margin-top: var(--s-32); padding: var(--s-8) var(--s-16);
  border-radius: 999px; background: var(--c-ink); color: #fff; font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  transition: background-color 0.25s var(--ease);
}
.pill-link:hover { background: var(--c-teal); }

@container deck (max-width: 1200px) {
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-32); }
}
@container deck (max-width: 900px) {
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .charts--2, .charts--3 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--s-40); }
  .charts .chart { grid-row: auto; grid-template-rows: auto auto; }
}
@container deck (max-width: 767px) {
  .themes { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-16); }
  .slide--feature { grid-template-columns: minmax(0, 1fr); }
  .feature__copy,
  .slide--feature.is-flip .feature__copy { order: 0; padding: var(--pad-y) var(--pad-x) 0; }
  .feature__art { order: 1; padding-top: var(--s-40); }   /* text first, portrait closes the slide */
  .feature__art img { width: min(80%, 22rem); }
  .feature__art--wide img { width: min(100%, 26rem); }
}


/* =========================================================
   12. PARTS 3–5 COMPONENTS — split layouts, tables, cards, CTAs
   ========================================================= */

/* Two families of components in an intro card (Part 3) */
.pillars {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-24) var(--col-gap);
  margin: var(--s-40) calc(var(--card-p) * -1) 0; padding: var(--s-32) var(--card-p) var(--card-p);
  border-top: 1px solid var(--c-ink);
}
.pillars__name { font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 700; }
.pillars__name--teal { color: var(--c-teal); }
.pillars__name--magenta { color: var(--c-magenta); }
.pillars .pillars__list { list-style: decimal; margin-top: var(--s-16); padding-left: 1.25em; font-size: var(--fs-lg); line-height: 1.6; }

/* Split slide: copy column + content column (table, cards, quote) */
.slide--split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); column-gap: var(--col-gap); row-gap: var(--s-40);
  align-items: start; padding: var(--pad-y) var(--pad-x); background: #fff;
}
.slide--tiers { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; }
.slide--story { align-items: center; }
.split__text { margin-top: var(--s-24); font-size: var(--fs-md); line-height: var(--lh-body); }
.split__text--end { margin-top: var(--s-40); }
.split__subtitle { margin-top: var(--s-40); font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 500; }
.split__label { margin-top: var(--s-32); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.split__note { margin-top: var(--s-40); font-size: var(--fs-sm); line-height: 1.5; color: var(--c-muted); }
.split__copy .grade-list { margin-top: var(--s-16); padding-left: 1.25em; list-style: disc; font-size: var(--fs-md); line-height: var(--lh-body); }
.grade-list li + li { margin-top: var(--s-8); }
.tick-list { margin-top: var(--s-16); display: grid; gap: var(--s-8); font-size: var(--fs-md); line-height: 1.5; }
.tick-list li { position: relative; padding-left: var(--s-32); }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--c-teal); }
.floor-flag { color: var(--c-magenta); font-weight: 400; }
.table-title { margin-bottom: var(--s-24); font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 700; }

/* Six component cards in two families */
.components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-40) var(--col-gap); }
.components__name { font-size: var(--fs-h3); line-height: var(--lh-tight); font-weight: 700; }
.components__name--teal { color: var(--c-teal); }
.components__name--magenta { color: var(--c-magenta); }
.components__list { display: grid; gap: var(--s-24); margin-top: var(--s-24); }
.comp-card {
  --tint: 21, 152, 139;
  padding: var(--s-24); border-radius: var(--s-16); font-size: var(--fs-md); line-height: 1.5;
  background: radial-gradient(ellipse 45% 90% at 100% 100%, rgba(var(--tint), 0.45), rgba(var(--tint), 0) 100%), #fff;
  box-shadow: 0 0.5rem 2rem rgba(45, 35, 33, 0.1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.comp-card--magenta { --tint: 174, 93, 154; }
.comp-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2.5rem rgba(45, 35, 33, 0.14); }
.comp-card__name { margin-bottom: var(--s-8); font-size: var(--fs-lg); line-height: 1.4; font-weight: 700; }

/* Data table: real <table>, becomes labelled cards on narrow decks */
.data-table {
  width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden;
  border-radius: var(--radius-card); background: #fff; box-shadow: 0 0.75rem 2.5rem rgba(45, 35, 33, 0.12);
  font-size: var(--fs-sm); line-height: 1.5; text-align: left;
}
.data-table th, .data-table td { padding: var(--s-16); vertical-align: top; border-left: 1px solid var(--c-line); border-top: 1px solid var(--c-line); }
.data-table tr > :first-child { border-left: 0; padding-left: var(--s-24); }
.data-table thead th, .data-table thead td { border-top: 0; padding-block: var(--s-24) var(--s-16); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.data-table tbody th { font-weight: 700; }
.data-table tbody tr { transition: background-color 0.25s var(--ease); }
.data-table tbody tr:hover { background: #faf8f4; }
.data-table__key { display: block; }
.data-table__note { display: block; margin-top: 0.25rem; font-weight: 400; color: var(--c-muted); }
.data-table__rule > * { background: #faf8f4; }
.data-table--rubric th[scope="row"] { width: 26%; }
.data-table--example td:nth-child(2) { width: 7rem; }
.data-table--example td, .data-table--example th { vertical-align: middle; }
.data-table--roles th[scope="row"] { width: 28%; }
.tier { display: inline-block; padding: 0.125rem var(--s-16); border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; }
.tier--high { background: rgba(21, 152, 139, 0.12); color: #0b6f65; }
.tier--medium { background: #f6ebc4; color: #7a5b00; }
.tier--low { background: rgba(174, 93, 154, 0.14); color: #8b3f78; }
.score {
  display: inline-grid; place-items: center; min-width: var(--s-64); padding: var(--s-8) var(--s-16); border-radius: var(--s-8);
  font-size: var(--fs-h5); line-height: 1.2; font-variant-numeric: tabular-nums;
  background: radial-gradient(ellipse 60% 80% at 100% 100%, rgba(174, 93, 154, 0.45), rgba(174, 93, 154, 0) 100%), #fff;
  box-shadow: 0 0.25rem 1rem rgba(45, 35, 33, 0.14);
}

/* Worked-example result */
.result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-24) var(--s-40); margin-top: var(--s-40); align-items: start; }
.result dt { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.result dd { margin-top: var(--s-8); font-size: var(--fs-md); line-height: 1.5; }
.result .result__score { font-size: var(--fs-h2); line-height: 1; font-variant-numeric: tabular-nums; }

/* "The hard floor" callout beside the tiers table */
.callout { padding-left: var(--s-24); border-left: 4px solid var(--c-teal); font-size: var(--fs-md); line-height: var(--lh-body); }
.callout__label { margin-bottom: var(--s-16); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.slide--tiers::before,
.slide--build::before {
  content: ""; position: absolute; z-index: -1; top: -30cqw; right: -22cqw; width: 70cqw; aspect-ratio: 1; border-radius: 50%; filter: blur(30px);
  background: radial-gradient(closest-side, rgba(21, 152, 139, 0.7), rgba(21, 152, 139, 0.2) 55%, rgba(21, 152, 139, 0) 100%);
}
.slide--build::before { background: radial-gradient(closest-side, rgba(174, 93, 154, 0.7), rgba(174, 93, 154, 0.2) 55%, rgba(174, 93, 154, 0) 100%); }

/* Download band: one or more CTAs on the magenta cells image */
.slide--cta { padding: var(--s-64) var(--pad-x); color: #fff; background: #5b2a63; }
.cta-stack { position: relative; z-index: 1; display: grid; gap: var(--s-24); justify-items: start; }
.cta-stack .dl-cta { margin-top: 0; width: min(100%, 56rem); }

/* Where to start (Part 4) */
.card__intro-text { max-width: 48em; font-size: var(--fs-md); line-height: var(--lh-body); }
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: var(--s-40) var(--col-gap); margin-top: var(--s-40); }
.start__title { font-size: var(--fs-h4); line-height: var(--lh-head); font-weight: 700; text-transform: uppercase; }
.start__copy p { margin-top: var(--s-16); font-size: var(--fs-md); line-height: var(--lh-body); }
.start__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-24); }
.step-card {
  padding: var(--s-24); border-radius: var(--s-16); background: #fff; font-size: var(--fs-md); line-height: 1.5;
  box-shadow: 0 0.5rem 2rem rgba(45, 35, 33, 0.1); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2.5rem rgba(45, 35, 33, 0.14); }
.step-card__title { font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 700; color: var(--c-magenta); }
.step-card__lede { margin: var(--s-8) 0 var(--s-24); font-weight: 600; }
.card__closing { margin-top: var(--s-40); max-width: 56em; font-size: var(--fs-md); line-height: var(--lh-body); font-weight: 700; }

/* Text card in two columns */
.card--columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s-24); }
.card__col { font-size: var(--fs-lg); line-height: var(--lh-body); }
.card__col p + p { margin-top: var(--s-24); }

/* What to build: numbered questions */
.slide--build { padding: var(--pad-y) var(--pad-x); background: #fff; }
.build__subtitle { margin-top: var(--s-16); font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 700; }
.build__intro { margin-top: var(--s-24); max-width: 48em; font-size: var(--fs-md); line-height: var(--lh-body); }
.build__intro p + p { margin-top: var(--s-16); }
.numbered {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(3, auto);
  gap: var(--s-32) var(--col-gap); margin-top: var(--s-40); font-size: var(--fs-md); line-height: 1.5;
}
.numbered li { display: grid; grid-template-columns: var(--s-40) minmax(0, 1fr); column-gap: var(--s-16); align-items: center; }
.numbered__n {
  display: grid; place-items: center; width: var(--s-40); height: var(--s-40); border-radius: 50%;
  background: var(--c-magenta); color: #fff; font-size: var(--fs-md); font-weight: 700;
}

/* The first 90 days: cards straddle the white top and the magenta band */
.slide--plan { padding: var(--pad-y) var(--pad-x) var(--s-64); background: #fff; color: var(--c-ink); }
.slide__band { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; object-fit: cover; }
.plan__intro { max-width: 48em; font-size: var(--fs-md); line-height: var(--lh-body); }
.plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-24); margin-top: var(--s-40); }
.plan__card {
  padding: var(--s-32); border-radius: var(--s-16); background: #fff; box-shadow: 0 0.75rem 2.5rem rgba(45, 35, 33, 0.14);
  transition: transform 0.35s var(--ease);
}
.plan__card:hover { transform: translateY(-4px); }
.plan__days { font-size: var(--fs-h5); line-height: var(--lh-head); font-weight: 700; }
.plan__title { margin-top: var(--s-8); font-size: var(--fs-md); font-weight: 700; }
.plan__body { margin-top: var(--s-16); font-size: var(--fs-md); line-height: var(--lh-body); }
.plan__body p + p { margin-top: var(--s-16); }
.plan__body a { color: var(--c-teal); font-weight: 600; text-underline-offset: 3px; }
.plan__body a:hover { color: var(--c-magenta); }
.slide--plan .cta-stack { margin-top: var(--s-40); color: #fff; }

@container deck (max-width: 1200px) {
  .slide--split, .slide--tiers { grid-template-columns: minmax(0, 1fr); }
  .split__copy { max-width: 48rem; }
  .start { grid-template-columns: minmax(0, 1fr); }
}
@container deck (max-width: 900px) {
  .start__steps, .plan { grid-template-columns: minmax(0, 1fr); }
  .card--columns, .numbered { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
  .slide__band { height: 75%; }
  .data-table--rubric thead, .data-table--example thead, .data-table--roles thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table--rubric tr, .data-table--example tr, .data-table--roles tr,
  .data-table--rubric th, .data-table--rubric td,
  .data-table--example th, .data-table--example td,
  .data-table--roles th, .data-table--roles td { display: block; width: auto !important; border-left: 0; }
  .data-table--rubric tbody th, .data-table--example tbody th, .data-table--roles tbody th { background: color-mix(in srgb, var(--c-teal) 10%, #fff); }
  .data-table--rubric :is(th, td), .data-table--example :is(th, td), .data-table--roles :is(th, td) { padding-inline: var(--s-16) !important; }
  .data-table--rubric td, .data-table--example td, .data-table--roles td { border-top: 0; padding-top: var(--s-8); }
  .data-table--rubric td::before, .data-table--example td::before, .data-table--roles td::before {
    content: attr(data-label); display: block; margin-bottom: 0.25rem; font-size: var(--fs-sm); font-weight: 700; color: var(--c-teal);
  }
}
@container deck (max-width: 767px) {
  .pillars, .components { grid-template-columns: minmax(0, 1fr); }
  .result { grid-template-columns: minmax(0, 1fr); }
  .slide--cta { padding: var(--s-40) var(--pad-x); }
}


/* =========================================================
   13. PHONE REFINEMENTS (client mobile review)
   Kept together so phone-only tweaks are easy to find.
   ========================================================= */
@container deck (max-width: 767px) {
  /* Navigate the full report: tighter type and rhythm */
  .contents__title { font-size: var(--fs-h5); }
  .contents__list { margin-top: var(--s-16); }
  .contents__link { padding-block: var(--s-16); row-gap: 0.25rem; font-size: var(--fs-md); }
  .contents__body { padding-bottom: 18rem; }
  .contents__woman { width: min(60%, 18rem); }

  /* Section openers: shorter banners */
  .slide--opener { min-height: min(56vh, 26rem); }

  /* How the study was conducted */
  .study__text { font-size: var(--fs-md); line-height: var(--lh-body); }
  .study__stats dd { font-size: 2.5rem; }   /* 40 — bigger than the phone h2 */

  /* Three methods */
  .method__text { font-size: var(--fs-md); }

  /* Types of AI solutions strip: one left-aligned column */
  .types-strip { grid-template-columns: minmax(0, 1fr); gap: var(--s-16); }

  /* Types table cards: bigger row headings, air under each label */
  .tt__row > :first-child { font-size: var(--fs-lg); }
  .tt__row > [role="cell"] { padding-top: var(--s-16); }
  .tt__row > [role="cell"]::before { margin-bottom: var(--s-8); font-size: var(--fs-md); }

  /* Download CTAs: icon, then heading, then text */
  .dl-cta__icon { width: var(--s-40); min-width: 0; }
}


/* =========================================================
   14. CLIENT REVIEW ROUND 2 (all widths)
   ========================================================= */
/* No lonely last words: balance headings, tidy paragraph endings */
h1, h2, h3, h4, .dl-cta__title { text-wrap: balance; }
p, li, blockquote, td, th, dd { text-wrap: pretty; }

/* Part 2 roundtable quotes: one step smaller (20 wide/laptop, 18 phone) */
.slide--quotes .pquote__text { font-size: var(--fs-lg); }
@container deck (min-width: 768px) { .slide--quotes .pquote__text { font-size: 1.25rem; } }

/* Part 3 tiers: Tier and Score columns hug their content */
.data-table--tiers tbody th, .data-table--tiers thead th:first-child,
.data-table--tiers td:nth-child(2), .data-table--tiers thead th:nth-child(2) { width: 1%; white-space: nowrap; }

/* Part 4 where-to-start cards: smaller description text */
.step-card > p:last-child { font-size: var(--fs-sm); }

/* Part 5 text cards under the openers: body size, not lead */
.card--columns .card__col { font-size: var(--fs-md); }


/* =========================================================
   15. PHONE QA PASS
   ========================================================= */
@container deck (max-width: 767px) {
  /* Openers: a soft dark scrim at the top keeps the logo readable over any photo */
  .slide--opener::before {
    content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 45%; pointer-events: none;
    background: linear-gradient(to bottom, rgba(20, 16, 15, 0.55) 0%, rgba(20, 16, 15, 0.2) 55%, rgba(20, 16, 15, 0) 100%);
  }
  .slide--opener-light .slide__logo { filter: brightness(0) invert(1); }   /* dark logo turns white over the scrim */

  /* Tiers table becomes labelled cards like the other tables */
  .data-table--tiers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table--tiers tr, .data-table--tiers th, .data-table--tiers td { display: block; width: auto !important; white-space: normal !important; border-left: 0; padding-inline: var(--s-16) !important; }
  .data-table--tiers tbody th { background: color-mix(in srgb, var(--c-teal) 10%, #fff); }
  .data-table--tiers td { border-top: 0; padding-top: var(--s-8); }
  .data-table--tiers td::before { content: attr(data-label); display: block; margin-bottom: 0.25rem; font-size: var(--fs-sm); font-weight: 700; color: var(--c-teal); }
}


/* =========================================================
   16. END COVER (closes Part 5) + phone fixes
   ========================================================= */
.slide--endcover { background: #f4f4f2; }
.endcover__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.slide--endcover::after {   /* keeps the dark title crisp over the light corridor */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.2) 35%, rgba(255, 255, 255, 0) 50%);
}
.endcover__titles { position: absolute; z-index: 2; left: var(--pad-x); top: 17.5cqw; }

@container deck (max-width: 767px) {
  .slide--endcover { display: flex; flex-direction: column; padding: var(--s-100) var(--pad-x) 0; }
  .endcover__titles, .endcover__sub { position: static; }
  .endcover__sub { margin-top: var(--s-24); }
  .endcover__bg { position: relative; order: 1; width: calc(100% + 2 * var(--pad-x)); max-width: none; height: auto; aspect-ratio: 4 / 3; margin: var(--s-32) calc(var(--pad-x) * -1) 0; object-position: 78% center; }
  .slide--endcover::after { display: none; }

  /* Navigate the full report: the portrait sits in the flow, whole and never clipped */
  .contents__body { padding-bottom: var(--s-24); }
  .slide--contents { display: flex; flex-direction: column; }
  .contents__woman { order: 1; position: relative; right: auto; display: block; width: min(64%, 16rem); margin: 0 var(--pad-x) 0 auto; }
}


/* =========================================================
   17. PHONE TYPE CAP + OPENER CROPS (client review round 3)
   On phones, text tops out at 18px (body 18 / 16 / 14). Only the
   display titles (cover, openers, slide titles) and big stat
   numbers stay larger so the page keeps its hierarchy.
   ========================================================= */
@container deck (max-width: 767px) {
  .deck > .slide { --fs-h4: 1.125rem; --fs-h5: 1.125rem; --card-m: var(--s-8); --card-p: var(--s-16); }
  .components__name { font-size: var(--fs-h5); }
  .slide .pquote__text { font-size: var(--fs-md); }

  /* Openers: a squarer frame shows more of the photo; each photo sets its own focus point */
  .deck > .slide--opener { aspect-ratio: 1 / 1; min-height: 0; }
  .opener__bg { object-position: var(--focus, 65%) center; }
}


/* =========================================================
   18. COVERS, OPENERS AND VENDOR CTA (matched to the PDF)
   Cover and end cover: full-bleed corridor photo, a frosted
   white panel holding the RAiL lockup, and the teal ACTO logo
   bottom-left. Openers: the same frosted panel behind the title.
   ========================================================= */
.cover__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.slide--cover { background: #f4f4f2; }
.slide--endcover::after { display: none; }

.cover__titles,
.endcover__titles {
  left: 0; top: 14.4cqw;
  padding: var(--s-64) var(--s-80) var(--s-64) var(--pad-x);
  border-radius: 0 var(--s-32) var(--s-32) 0;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.cover__title { line-height: 1; }
.cover__rail { display: block; width: clamp(14rem, 30cqw, 36rem); height: auto; }
.cover__titles .cover__year { margin-top: var(--s-40); font-size: var(--fs-h3); line-height: var(--lh-tight); font-weight: 700; }
.cover__titles .cover__sub { position: static; margin-top: var(--s-8); max-width: none; font-size: var(--fs-h4); line-height: var(--lh-head); font-weight: 400; }
.slide__logo.cover__acto { top: auto; bottom: 3cqw; width: clamp(8rem, 15.4cqw, 18.5rem); }

/* Openers: frosted panel behind the title, flush to the left edge */
.slide--opener::after { display: none; }
.opener__titles {
  left: 0; top: calc(28.3cqw - var(--s-64));
  padding: var(--s-64) var(--s-80) var(--s-64) var(--pad-x);
  border-radius: 0 var(--s-32) var(--s-32) 0;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.opener__title { color: var(--c-ink); }

/* Vendor grading (Part 5): copy card beside the checklist download */
.slide--card-cta { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--col-gap); padding: var(--card-m); }
.slide--card-cta > .card { margin: 0; }
.slide--card-cta .card--columns { grid-template-columns: minmax(0, 1fr); align-content: start; }
.dl-cta--panel {
  position: relative; z-index: 1; width: 100%; margin-top: 0;
  grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon head" "body body";
  align-content: center; column-gap: var(--s-24); row-gap: var(--s-32); padding: var(--s-40);
  border-radius: var(--radius-card);
  background: rgba(10, 110, 102, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.dl-cta--panel:hover { background: rgba(10, 110, 102, 0.7); }

@container deck (max-width: 1200px) {
  .cover__titles, .endcover__titles { top: 12cqw; padding: var(--s-40) var(--s-64) var(--s-40) var(--pad-x); }
  .cover__titles .cover__year { margin-top: var(--s-32); }
  .opener__titles { top: calc(28.3cqw - var(--s-40)); padding: var(--s-40) var(--s-24) var(--s-40) var(--pad-x); }
}
@container deck (max-width: 900px) {
  .slide--card-cta { grid-template-columns: minmax(0, 1fr); }
  .dl-cta--panel { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon head" "body body"; padding: var(--s-32); }
}
@container deck (max-width: 767px) {
  .slide--cover, .slide--endcover { display: flex; flex-direction: column; padding: 0 0 var(--s-40); }
  .cover__bg, .endcover__bg {
    position: relative; order: 0; width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3;
    margin: 0; object-position: 78% center;
  }
  .cover__titles, .endcover__titles {
    position: relative; order: 1; top: auto; left: auto;
    margin: calc(var(--s-64) * -1) var(--s-16) 0 0;
    padding: var(--s-32) var(--s-32) var(--s-32) var(--pad-x);
  }
  .cover__rail { width: min(100%, 17rem); }
  .slide__logo.cover__acto { position: static; order: 2; width: 8rem; margin: var(--s-32) 0 0 var(--pad-x); }

  .opener__titles { top: auto; bottom: var(--s-24); padding: var(--s-24) var(--s-24) var(--s-24) var(--pad-x); }
  .opener__br { display: none; }   /* phones wrap the long titles naturally */
  .contents__bg { object-position: 0% center; }   /* plain wall behind the list; the light band stays off the text */
  .dl-cta--panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "icon" "head" "body"; padding: var(--s-24); row-gap: var(--s-16); }
}
