/* Layout: sticky contents rail on the left; the chapter runs as a stack of full-height panels.
   "How to apply it" pins and travels sideways, then vertical scrolling resumes. */
:root {
  /* Primitives (Energy Operations Playbook design system) */
  --pink: #ff0074;
  --pink-hover: #d1005f;
  --pink-press: #ab004e;
  --teal-950: #07171b;
  --teal-900: #002a32;
  --teal-800: #00424f;
  --slate-100: #d5def0;
  --white: #ffffff;
  --canvas: #f6f6f6;
  --n200: #dbdbdb;
  --n300: #c7c7c7;
  --n700: #474646;
  --sky: #69b1ff;
  --sky-wash: #e5f2ff;

  /* Semantic */
  --bg-canvas: var(--canvas);
  --bg-surface: var(--white);
  --bg-brand: var(--teal-900);
  --text-primary: var(--teal-950);
  --text-body: var(--n700);
  --text-emphasis: var(--teal-900);
  --text-muted: var(--n300);
  --text-on-brand: var(--slate-100);
  --border: var(--slate-100);
  --hairline: rgba(7, 23, 27, 0.1);
  --hairline-dark: rgba(213, 222, 240, 0.14);

  /* Type */
  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-label: "IBM Plex Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-display: "Syne", "Inter", ui-sans-serif, system-ui, sans-serif;
  --t-display: clamp(44px, 6.6vw, 100px);
  --t-h2: clamp(32px, 3.4vw, 48px);
  --t-h4: clamp(24px, 2.25vw, 32px);   /* 32 on a laptop */
  --t-lead: clamp(20px, 2.25vw, 32px); /* 32 on a laptop, same as h4 */
  --t-large: clamp(17px, 1.3vw, 20px);
  --t-body: 16px;

  /* Space */
  --bar: 56px;
  --rail: 320px;
  --pad: clamp(24px, 5.2vw, 80px);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 8px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; /* no browser default 8px frame around the page */
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg-canvas);
}
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 300; }
h1, .h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; left: var(--gutter-l); top: 8px; z-index: 100;
  background: var(--pink); color: var(--white); padding: 8px 16px; border-radius: 999px;
  transform: translateY(-200%); transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }

.eyebrow {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 12px; /* eyebrows and small numbers share one 12px size across the playbook */
  line-height: 1.4;
  color: var(--text-body);
}

/* ───────── Top bar ───────── */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  background: color-mix(in srgb, var(--bg-canvas) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
/* Logo: full lockup at the top; past the fold the wordmark folds away, leaving the M at the same size. */
.bar-brand { display: flex; align-items: center; flex: none; border-radius: 4px; }
.logo {
  --logo-h: 22px;
  display: block;
  height: var(--logo-h);
  width: calc(var(--logo-h) * 100 / 18.86);
  overflow: hidden;
  transition: width .7s var(--ease-out);
}
.logo svg { display: block; height: var(--logo-h); width: calc(var(--logo-h) * 100 / 18.86); overflow: visible; }
.logo-word { transition: opacity .35s var(--ease-out), transform .7s var(--ease-out); }
.bar.is-compact .logo { width: calc(var(--logo-h) * 21.63 / 18.86 + 1px); }
.bar.is-compact .logo-word { opacity: 0; transform: translateX(-8px); }
@media (prefers-reduced-motion: reduce) {
  .logo, .logo-word { transition-duration: .01s; }
}
.bar-sep { width: 1px; height: 20px; background: var(--hairline); flex: none; }
.bar-title { font-size: 14px; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.bar-progress span {
  display: block; height: 100%; background: var(--pink);
  transform: scaleX(0); transform-origin: 0 50%;
}
/* Menu toggle: two lines in a hairline circle; they turn into an X while the menu is open */
.menu-btn {
  flex: none; display: inline-grid; place-items: center;
  width: 40px; height: 40px; margin-right: 8px;
  border-radius: 4px; border: 0; /* no outline, like the caret */
  color: var(--text-emphasis);
  transition: background-color .25s var(--ease-out);
}
.menu-btn:hover { background: rgba(7, 23, 27, 0.04); }
.menu-btn i { position: relative; width: 16px; height: 8px; }
.menu-btn i::before, .menu-btn i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor;
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.menu-btn i::before { top: 0; }
.menu-btn i::after { top: 6.5px; }
.menu-is-open .menu-btn i::before { top: 3.25px; transform: rotate(45deg) scaleX(.85); }
.menu-is-open .menu-btn i::after { top: 3.25px; transform: rotate(-45deg) scaleX(.85); }

/* ───────── Shell ───────── */
.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  padding-right: var(--gutter-r);
}

/* ───────── Contents rail ───────── */
.rail {
  position: sticky;
  top: calc(var(--bar) + env(safe-area-inset-top, 0px));
  height: calc(100svh - var(--bar) - env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 24px 24px var(--gutter-l);
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.toc { display: flex; flex-direction: column; gap: 4px; }
.toc-link {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px; line-height: 20px; font-weight: 400; /* 8 + 20 + 8 = one 36px row, open or collapsed */
  color: var(--text-emphasis);
  transition: background-color .25s var(--ease-out);
}
.toc-link:hover { background: rgba(7, 23, 27, 0.04); }
.toc-num {
  font-family: var(--f-label); font-weight: 300; font-size: 12px; letter-spacing: 0.16em;
  flex: none; width: 24px;
}
.toc-item.is-current > .toc-link { background: var(--n200); font-weight: 500; }
.toc-text { min-width: 0; }
.toc-link:not(.toc-intro) { align-items: center; } /* keeps every row exactly 36px; mixed 12/14px baselines added half a pixel */
.toc-link:not(.toc-intro) .toc-num { line-height: 20px; }
.toc-intro .toc-text { display: flex; flex-direction: column; gap: 2px; }
.toc-intro .toc-num { line-height: 18px; } /* sits on the "Introduction" line */
.toc-kicker { font-size: 12px; line-height: 18px; font-weight: 300; }
.toc-item.is-current > .toc-link .toc-num { color: var(--pink); font-weight: 500; }
.toc-item.is-soon > .toc-link { color: color-mix(in srgb, var(--text-emphasis) 72%, transparent); }

.subnav {
  display: flex; flex-direction: column;
  margin: 4px 0 6px 46px;
  border-left: 1px solid var(--hairline);
}
.subnav a {
  position: relative;
  display: block;
  padding: 5px 0 5px 16px;
  font-size: 12px;
  color: var(--text-body);
  transition: color .25s var(--ease-out);
}
.subnav a::before {
  content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px;
  background: var(--pink);
  transform: scaleY(0); transition: transform .35s var(--ease-out);
}
.subnav a:hover { color: var(--text-primary); }
.subnav a.is-active { color: var(--text-primary); font-weight: 400; }
.subnav a.is-active::before { transform: scaleY(1); }

.assess {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
}
.assess h2 { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--text-primary); }
.assess p { font-size: 14px; line-height: 1.5; color: var(--text-body); }
.assess .btn { align-self: center; } /* buttons align left by default; here everything centres */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font-size: 14px; font-weight: 500; line-height: 24px;
  transition: background-color .2s var(--ease-out);
}
.btn:hover { background: var(--pink-hover); }
.btn:active { background: var(--pink-press); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.scrim { display: none; }

/* ───────── Sections ───────── */
main { min-width: 0; }
.sec {
  min-height: calc(100svh - var(--bar));
  display: flex;
  padding-block: 12px;
}
.panel {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: var(--radius);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.h2 { font-size: var(--t-h2); line-height: 1.17; font-weight: 300; color: var(--text-primary); letter-spacing: -0.005em; }

/* Hero */
.hero { background: var(--bg-brand); color: var(--text-on-brand); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 28px; max-width: min(1240px, 64%); }
.hero .eyebrow { color: var(--text-muted); }
.hero .eyebrow .sep { opacity: .5; margin: 0 .4em; }
.display {
  font-size: var(--t-display);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-on-brand);
}
.display .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.display .w > span { display: inline-block; }
.lead { font-size: var(--t-lead); line-height: 1.44; font-weight: 300; color: var(--text-muted); max-width: 44ch; }
.hero-art {
  position: absolute;
  right: -14%;
  top: 50%;
  width: min(68vw, 860px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
/* Hero scene paint (assets/motion/hero-scenes.js) */
.hero-art .ln { fill: none; stroke: var(--slate-100); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .gd { fill: none; stroke: var(--slate-100); stroke-opacity: .05; stroke-width: 1; }
.hero-art .ball { fill: var(--pink); }
.hero-art .dot { fill: var(--slate-100); }
.hero-art .pnl { fill: var(--teal-900); stroke: var(--slate-100); stroke-opacity: .35; stroke-width: 1.5; }
.hero-art .fill { fill: var(--teal-900); }
.hero-art .ghost { fill: none; stroke: var(--pink); stroke-width: 2; stroke-dasharray: 4 5; }
.hero-art .echo .ball, .hero-art .echo .gd, .hero-art .echo .glow { display: none; }
.cue {
  position: absolute; z-index: 1;
  left: var(--pad); bottom: clamp(20px, 4vh, 48px);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-sans); font-weight: 300; font-size: 14px;
  color: var(--text-muted);
}
.cue i { position: relative; width: 1px; height: 40px; background: var(--hairline-dark); overflow: hidden; }
.cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--pink);
  animation: cue 2s var(--ease-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* Start with people */
.people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px var(--pad); align-content: center; }
.people-head { display: flex; flex-direction: column; gap: 24px; }
.people-body { display: flex; flex-direction: column; gap: 32px; max-width: 760px; }
.people-lead { font-size: var(--t-lead); line-height: 1.44; color: var(--text-primary); }
.people-lead strong { font-weight: 400; color: var(--pink); }
.people-text { font-size: var(--t-large); line-height: 1.5; color: var(--text-body); max-width: 60ch; }
.people-body .word { transition: none; }

/* How to apply */
.howto { background: var(--bg-surface); justify-content: flex-start; gap: clamp(24px, 4vh, 48px); overflow: hidden; }
.howto-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.howto-head-l { display: flex; flex-direction: column; gap: 20px; }
.meter { display: flex; align-items: center; gap: 20px; }
.meter-count { font-family: var(--f-label); font-weight: 500; font-size: 12px; letter-spacing: .16em; color: var(--text-body); font-variant-numeric: tabular-nums; }
.meter-count b { color: var(--pink); font-weight: 500; }
.ticks { display: flex; gap: 6px; }
.tick { position: relative; width: 28px; height: 24px; }
.tick::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; border-radius: 2px;
  background: var(--n200); transition: background-color .3s var(--ease-out);
}
.tick.is-active::before { background: var(--pink); }
.tick-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.howto-viewport {
  flex: 1;
  min-height: 0;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  display: flex;
}
.howto-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}
.card {
  flex: 0 0 auto;
  width: clamp(560px, calc((100vw - var(--rail)) * 0.8), 1120px);
  background: var(--bg-canvas);
  border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 80px);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 48px);
  --card: var(--bg-canvas);
}
.card-in {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6cqi, 110px);
}
.card-copy { display: flex; flex-direction: column; gap: 20px; max-width: 34em; }
.card-meta { display: flex; align-items: baseline; gap: 14px; }
.card-label { font-size: 20px; line-height: 24px; font-weight: 400; color: var(--text-emphasis); }
.card-title { font-size: var(--t-h4); line-height: 1.25; font-weight: 300; color: var(--text-primary); }
.card-body { font-size: var(--t-body); line-height: 1.45; color: var(--text-body); }
.card-art { display: flex; align-items: center; justify-content: center; min-width: 0; }
.illo {
  width: 100%;
  max-width: 440px;
  max-height: calc(100svh - var(--bar) - 330px);
  min-height: 200px;
  aspect-ratio: 1;
  overflow: visible;
}
@container (max-width: 620px) {
  .card-in { grid-template-columns: 1fr; align-content: center; gap: 24px; }
  .card-art { order: -1; }
  .illo { max-width: 300px; max-height: 34svh; min-height: 160px; }
}

/* Illustration paint: the hero language on a light card (assets/motion/howto-scenes.js) */
.illo .ln { fill: none; stroke: var(--teal-900); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.illo .gd { fill: none; stroke: var(--teal-900); stroke-opacity: .07; stroke-width: 1; }
.illo .ball { fill: var(--pink); }
.illo .dot { fill: var(--teal-900); }
.illo .echo .ball, .illo .echo .gd, .illo .echo .glow { display: none; }

/* In the field */
.field-panel { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.field-main {
  background: var(--bg-brand);
  padding: var(--pad);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 8vh, 80px);
}
.field-main .h2 { color: var(--white); }
.field-copy { display: flex; flex-direction: column; gap: 28px; }
.field-copy p { font-size: var(--t-large); line-height: 1.5; color: var(--text-muted); max-width: 46ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; }
.stat-num { font-size: var(--t-h2); line-height: 1.15; font-weight: 300; color: var(--pink); font-variant-numeric: tabular-nums; }
.stat-label { font-size: clamp(14px, 1.1vw, 18px); line-height: 1.35; font-weight: 500; color: var(--text-muted); }
.field-quote {
  background: var(--teal-800);
  padding: var(--pad);
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.qmark { font-size: 96px; line-height: .6; height: 44px; font-weight: 300; color: var(--slate-100); opacity: .55; font-family: Georgia, "Times New Roman", serif; }
.field-quote blockquote p { font-size: clamp(20px, 1.95vw, 28px); line-height: 1.5; font-style: italic; font-weight: 300; color: var(--slate-100); max-width: 30ch; }
.field-quote figcaption { font-size: 14px; color: var(--text-muted); }

/* Fragmentation sources */
.frag { gap: clamp(40px, 7vh, 72px); }
.frag-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px var(--pad); align-items: start; }
.frag-intro { display: flex; flex-direction: column; gap: 24px; }
.frag-intro p { font-size: var(--t-large); line-height: 1.5; color: var(--text-body); max-width: 56ch; }
.pull { display: flex; flex-direction: column; gap: 20px; margin-top: calc(var(--t-h2) * 0.22 + 9px); }  /* sets the quote mark level with the headline cap height */
.pull .qmark { color: var(--teal-800); opacity: .3; }
.pull blockquote p { font-size: clamp(20px, 1.95vw, 28px); line-height: 1.5; font-style: italic; font-weight: 300; color: var(--text-primary); }
.pull figcaption { font-size: 14px; color: var(--text-body); }
.frag-sub { font-size: var(--t-large); color: var(--text-body); padding-top: 32px; border-top: 1px solid var(--hairline); }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; position: relative; }
.group { display: flex; flex-direction: column; gap: 20px; }
.group li { display: grid; grid-template-columns: 6px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.dot { width: 8px; height: 8px; margin-top: calc((1.45em - 8px) / 2); border-radius: 50%; background: var(--pink); }
.group h3 { font-size: 16px; line-height: 20px; font-weight: 500; color: var(--text-primary); }
.group ul { display: flex; flex-direction: column; gap: 12px; }
.group .dot { width: 6px; height: 6px; margin-top: calc((1.45em - 6px) / 2); } /* Step 1 fragmentation lists: smaller dots for 14px text */
.group li { font-size: 14px; line-height: 1.45; color: var(--text-primary); }

/* Next chapter */
.next { padding-block: 12px 24px; }
.next a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--hairline); /* no card: a thin hairline above the next-chapter link */
  padding: clamp(24px, 4vw, 48px) var(--pad);
}
.next-copy { display: flex; flex-direction: column; gap: 12px; }
.next-copy .eyebrow b { color: var(--pink); font-weight: 500; }
.next-title { font-size: var(--t-h4); line-height: 1.25; font-weight: 300; }
.next-arrow {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--pink); color: var(--pink);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.next-arrow svg { width: 22px; height: 22px; transition: transform .35s var(--ease-out); }
.next a:hover .next-arrow { background: var(--pink); color: var(--white); }
.next a:hover .next-arrow svg { transform: translateX(3px); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--teal-950); color: var(--white);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 400;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  :root { --rail: 0px; }
  .shell { grid-template-columns: minmax(0, 1fr); padding-left: var(--gutter-l); }
  .rail {
    position: fixed;
    z-index: 45;
    top: calc(var(--bar) + env(safe-area-inset-top, 0px));
    left: 0;
    width: min(340px, 88vw);
    height: calc(100dvh - var(--bar) - env(safe-area-inset-top, 0px));
    background: var(--bg-canvas);
    border-right: 1px solid var(--hairline);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .nav-open .rail { transform: none; visibility: visible; transition: transform .45s var(--ease-out), visibility 0s; }
  .scrim {
    display: block; position: fixed; inset: 0; z-index: 44;
    background: rgba(7, 23, 27, 0.32);
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out);
  }
  .nav-open .scrim { opacity: 1; pointer-events: auto; }
  .card { width: clamp(520px, 78vw, 900px); }
  .frag-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pull, .block-top > .pathway { margin-top: 0; }
}
@media (max-width: 860px) {
  .field-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .bar-title, .bar-sep { display: none; }
  .sec { padding-block: 8px; }
  .hero-art { right: -40%; width: 120vw; top: 30%; opacity: .7; }
  .hero-inner { max-width: none; }
  .meter { display: none; }
  .howto-viewport { margin-inline: 0; padding-inline: 0; }
  .howto-track { flex-direction: column; gap: 16px; width: 100%; }
  .card { width: 100%; padding: 28px 24px 32px; }
  .card-in { grid-template-columns: 1fr; gap: 24px; }
  .card-art { order: -1; }
  .illo { max-width: 260px; max-height: none; min-height: 0; }
  .groups { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stats { column-gap: 14px; }
  .next a { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .howto-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .card { scroll-snap-align: start; }
  .cue i::after { animation: none; }
}

/* ═════════ Chapter components (shared by Introduction, Steps 2–6, Where to start) ═════════ */

/* Live chapter links in the rail */
.toc-item.is-done > .toc-link { color: var(--text-emphasis); }

/* How to apply cards without illustrations: a narrower, text-led card */
.card--text { width: clamp(400px, calc((100vw - var(--rail)) * 0.46), 640px); justify-content: space-between; }
.card--text .card-in { grid-template-columns: minmax(0, 1fr); align-items: end; }
.card--text .card-copy { gap: 24px; }
.card--text .card-title { font-size: 32px; line-height: 1.2; }

/* A section opener: headline + paragraph (left), optional pull quote (right) */
.block { gap: clamp(40px, 7vh, 72px); }
.block-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px var(--pad); align-items: start; }
.block-top.is-solo { grid-template-columns: minmax(0, 1fr); }
.block-intro { display: flex; flex-direction: column; gap: 24px; }
.block-intro p { font-size: var(--t-large); line-height: 1.5; color: var(--text-body); max-width: 60ch; }
.block-note { font-size: var(--t-large); line-height: 1.5; color: var(--text-body); max-width: 60ch; }
.block-sub { font-size: var(--t-large); color: var(--text-body); padding-top: 32px; border-top: 1px solid var(--hairline); }

/* In the field: a list instead of a quote on the right */
.field-aside {
  background: var(--teal-800);
  padding: var(--pad);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.field-aside h3 { font-size: 20px; line-height: 24px; font-weight: 500; color: var(--slate-100); }
.aside-list { display: flex; flex-direction: column; gap: 14px; }
.aside-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 14px; font-size: var(--t-body); line-height: 1.45; color: var(--slate-100); }
.aside-list li .dot { margin-top: calc((1.45em - 8px) / 2); }
.aside-list b { font-weight: 500; }
.aside-group { display: flex; flex-direction: column; gap: 16px; }
.field-copy .roles-list { display: flex; flex-direction: column; gap: 14px; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.one { grid-template-columns: minmax(0, 1fr); }

/* Bulleted groups (pink dots) */
.bullets li { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 12px; align-items: start; font-size: 16px; line-height: 1.45; color: var(--text-primary); }
.bullets { display: flex; flex-direction: column; gap: 12px; }

/* Visual frame: a light stage for the closing visuals.
   Spec: the same padding on all four sides, and every drawing's viewBox cropped to its content,
   so this padding is the only margin around an illustration. */
.stage {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 48px);
}
.stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz .ln { fill: none; stroke: var(--teal-900); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.viz .gd { fill: none; stroke: var(--teal-900); stroke-opacity: .12; stroke-width: 1; }
.viz .ball { fill: var(--pink); }
.viz .node { fill: var(--bg-surface); stroke: var(--teal-900); stroke-width: 1.5; }
.viz .node.is-pink { stroke: var(--pink); }
.viz .lbl { font: 400 16px/1 var(--f-sans); fill: var(--text-primary); }
.viz .lbl-s { font: 300 14px/1 var(--f-sans); fill: var(--text-body); }
.viz .lbl-num { font: 300 14px/1 var(--f-label); letter-spacing: .08em; fill: var(--text-body); font-variant-numeric: tabular-nums; }
.viz .lbl-pink { fill: var(--pink); }

/* Where trust is lost: copy beside a vertical chart. Trust runs across the top; the line steps left
   (toward less trust) as the ball moves down through the stages. Hairlines use .hl so their
   opacity stays an SVG attribute. */
.trust-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.trust-viz svg { max-height: calc(100svh - var(--bar) - 2 * var(--pad) - 24px); margin: 0 auto; }
.viz .hl { fill: none; stroke: var(--teal-900); stroke-width: 1; }
.viz .axis { font: 500 12px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; fill: var(--teal-900); }
.viz .axis-dim { fill: var(--text-body); fill-opacity: .45; }

/* From many measures to a few: 1px lines, a large caption for the test being applied */
.sieve-viz .ln { stroke-width: 1; }
/* Infographic type follows From signal to action: names in Syne 15, body in Inter 300 14, labels 11.
   Drawings that scale up set --u (viewBox units per screen pixel), so their type holds these sizes on screen. */
.sieve-viz .axis { font-size: calc(12px * var(--u, 1)); }
.sieve-viz .big { font: 300 calc(28px * var(--u, 1))/1.2 var(--f-display); letter-spacing: -0.01em; fill: var(--text-primary); }
.sieve-viz .cat { font: 400 calc(14px * var(--u, 1))/1 var(--f-display); letter-spacing: -0.01em; fill: var(--text-primary); }
.sieve-viz svg { max-height: calc(100svh - var(--bar) - 2 * var(--pad) - 160px); margin: 0 auto; }

/* One number, many copies: names in Syne 14, the owner line in Inter 300 14, labels 12, held on screen by --u */
.trace-viz .ln { stroke-width: 1; }
.trace-viz .name { font: 400 calc(14px * var(--u, 1))/1 var(--f-display); letter-spacing: -0.01em; fill: var(--text-primary); }
.trace-viz .body { font: 300 calc(14px * var(--u, 1))/1 var(--f-sans); fill: var(--text-body); }
.trace-viz .axis { font-size: calc(12px * var(--u, 1)); }
.trace-viz svg { max-height: calc(100svh - var(--bar) - 2 * var(--pad) - 160px); margin: 0 auto; }
/* Stacked on phones, the lanes run behind the labels: a halo in the card colour keeps each label clear of the dots */
.trace-viz .halo { fill: none; stroke: var(--bg-surface); stroke-width: calc(6px * var(--u, 1)); stroke-linejoin: round; }  /* its own copy behind the words, so no browser can paint the edge over the letters */

/* From prototype to platform: two weights only. 1px for structure, 0.5px for every detail inside a shape */
.proto-viz .ln { stroke-width: 1; }
.proto-viz .hair { fill: none; stroke: var(--teal-900); stroke-width: .5; }
.proto-viz .lbl-s { font: 400 calc(14px * var(--u, 1))/1 var(--f-display); letter-spacing: -0.01em; transition: fill .3s var(--ease-out); }
.proto-viz .lbl-s.on { fill: var(--text-primary); }

/* One screen isn't one truth: the spectrum sits full width under the intro copy */
.truth-viz svg { max-height: calc(100svh - var(--bar) - 2 * var(--pad) - 160px); margin: 0 auto; }
/* Its labels: a 16px headline over 14px notes, the same on every screen (--u holds the size as the drawing scales) */
.truth-viz .lbl { font: 400 calc(16px * var(--u, 1))/1 var(--f-display); letter-spacing: -0.01em; }
.truth-viz .lbl-s { font-size: calc(14px * var(--u, 1)); }

/* Where a drawing isn't pinned (narrow or short screens, such as a phone on its side), the limits above give way:
   each drawing may be as tall as the screen, so it never shrinks to a sliver. */
@media (max-width: 1100px), (max-height: 619px) {
  .trust-viz svg, .sieve-viz svg, .trace-viz svg, .truth-viz svg { max-height: calc(100svh - var(--bar) - 48px); }
}


/* Intro · single pane vs single source */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.compare-item { background: var(--bg-surface); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 56px); display: flex; flex-direction: column; gap: 20px; }
.compare-item.is-truth { background: var(--bg-brand); }
.compare-item h3 { font-size: var(--t-h4); line-height: 1.25; font-weight: 300; color: var(--text-primary); }
.compare-item.is-truth h3 { color: var(--white); }
.compare-item p { font-size: var(--t-large); line-height: 1.5; color: var(--text-body); }
.compare-item.is-truth p { color: var(--slate-100); }
.compare-art { width: 100%; max-width: 280px; aspect-ratio: 2 / 1; }
.compare-art .ln { fill: none; stroke: var(--teal-900); stroke-width: 1.5; stroke-linecap: round; }
.compare-item.is-truth .compare-art .ln { stroke: var(--slate-100); }

/* Intro · CLEAR Discovery staircase (after slide 4 of the CLEAR Discovery deck, on a light page) */
.clear { position: relative; display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.stairs { --rise: clamp(28px, 4.5vh, 48px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
/* Every step is one rise taller than the one before, whatever its text: the row grows to fit the tallest content plus its offset */
.stair { margin-top: calc((4 - var(--i)) * var(--rise)); display: flex; transform-origin: 50% 100%; }
.stair-in { min-height: 220px; }
.stair-in {
  flex: 1; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-surface); border-radius: var(--radius) var(--radius) 0 0;
  padding: clamp(18px, 1.8vw, 28px) clamp(16px, 1.6vw, 24px) clamp(20px, 2vw, 28px);
}
.stair-num { font-family: var(--f-label); font-weight: 500; font-size: 12px; letter-spacing: .16em; color: var(--pink); font-variant-numeric: tabular-nums; }
.stair-name { font-size: 20px; line-height: 1.15; font-weight: 300; color: var(--text-primary); margin-top: -4px; }
.stair-text { font-size: 12px; line-height: 1.5; color: var(--text-body); margin-top: 8px; }
.stair-out { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.stair-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: var(--pink); }
.stair-link svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.stair-link:hover svg { transform: translateX(3px); }
.stair-link.is-here { color: var(--text-body); font-weight: 300; }
.stairs-base { display: block; height: 1px; background: var(--hairline); transform-origin: 0 50%; margin-inline: calc(var(--pad) * -1); }  /* runs out to the section margins */
.clear-next {
  display: flex; align-items: center; gap: 12px; margin-top: 28px; align-self: center;
  font-size: 14px; color: var(--text-body); padding: 10px 6px;
}
.clear-next b { font-weight: 500; color: var(--text-primary); }
.clear-next .stair-num { margin-right: 6px; }
.clear-next > svg { width: 18px; height: 18px; color: var(--pink); transition: transform .35s var(--ease-out); }
.clear-next:hover > svg { transform: translateX(3px); }

/* Step 2 · roles: one row per role, all copy at 12px */
.role-table { width: 100%; border-collapse: collapse; }
.role-table th { text-align: left; font: 500 12px/1.4 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--text-primary); padding: 0 20px 12px 0; border-bottom: 1px solid var(--text-primary); }
.role-table td { vertical-align: top; font-size: 14px; font-weight: 300; line-height: 1.5; color: var(--text-body); padding: 16px 24px 16px 0; border-bottom: 1px solid var(--hairline); }
.role-table th:last-child, .role-table td:last-child { padding-right: 0; }
.role-table .rt-role, .role-table .rt-lead { color: var(--text-primary); }
.role-table .rt-role, .role-table .rt-lead { font: 400 16px/1.35 var(--f-display); letter-spacing: -0.01em; }
.role-table .rt-lead { display: block; margin-bottom: 6px; }
.role-table .rt-l { display: none; }
@media (max-width: 767px) {
  /* Each role becomes a stacked block with small labels */
  .role-table, .role-table tbody, .role-table tr, .role-table td { display: block; width: 100%; }
  .role-table thead, .role-table colgroup { display: none; }
  .role-table tr { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
  .role-table tr:first-child { border-top: 1px solid var(--text-primary); }
  .role-table td { padding: 0; border: 0; }
  .role-table td + td { margin-top: 12px; }
  .role-table .rt-l { display: block; font: 500 12px/1.4 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--text-primary); opacity: .55; margin-bottom: 2px; }
}

/* Step 5 · the decision path: a delicate rail beside the intro; the current step opens in place.
   Hierarchy: the step name (20px), then what it does (16px, headline face), then the example (14px body). */
.pathway { --dot: 9px; --gap: 28px; }
.block-top > .pathway { margin-top: calc(var(--t-h2) * 0.22 + 9px); }  /* level with the headline, like the pull quotes */
.path-rail { position: relative; }
.path-rail::before, .path-fill { content: ""; position: absolute; left: calc(var(--dot) / 2 - .5px); width: 1px; top: var(--y0, 0); }
.path-rail::before { height: calc(var(--y1, 0px) - var(--y0, 0px)); background: var(--n200); }
.path-fill { height: 0; background: var(--pink); }
.path-step { position: relative; display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); column-gap: 16px; padding: calc(var(--gap) / 2) 0; }
.path-step:first-child { padding-top: 0; }
.path-step:last-child { padding-bottom: 0; }
.p-head { grid-column: 1 / -1; display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); column-gap: 16px; align-items: center; text-align: left; }
.path-step .p-dot { position: relative; z-index: 1; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--n300); transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.path-step .p-name { font-size: 20px; line-height: 1.2; color: var(--text-body); transition: color .3s var(--ease-out); }
.path-step.is-reached .p-dot { background: var(--pink); border-color: var(--pink); }
.path-step.is-current .p-dot { box-shadow: 0 0 0 4px var(--bg-surface), 0 0 0 5px var(--pink); }
.path-step.is-current .p-name { color: var(--text-primary); }
.p-more { grid-column: 2; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease-out), opacity .4s var(--ease-out); }
.p-more > div { overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.path-step.is-current .p-more { grid-template-rows: 1fr; opacity: 1; }
.p-more .pc-h { padding-top: 10px; font-size: 16px; line-height: 1.35; color: var(--text-primary); }
.p-more .pc-b { font-size: 14px; line-height: 1.5; font-weight: 300; color: var(--text-body); max-width: 48ch; }
.pathway.is-scrubbed .p-head { pointer-events: none; cursor: default; }

/* Step 5 · tiers + context views */
.tiers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
/* The key: small diamonds that fill with their layer, 16px tier names, 14px notes */
.layers { display: block; width: 100%; max-width: 380px; height: auto; justify-self: center; overflow: visible; }
.tier-list { display: flex; flex-direction: column; }
.tier-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--hairline); transition: opacity .5s var(--ease-out); }
.tier-list li:last-child { border-bottom: 1px solid var(--hairline); }
.tier-list li.is-dim { opacity: .3; }
.tier-list .t-key { width: 14px; height: 14px; margin-top: 2px; }
.tier-list h3 { font-size: 16px; font-weight: 400; line-height: 1.3; }
.tier-list p { grid-column: 2; font-size: 14px; font-weight: 300; color: var(--text-body); line-height: 1.45; margin-top: 4px; }

/* Where to start · three moves + closing CTA */
.moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.move { background: var(--bg-surface); border-radius: var(--radius); padding: clamp(20px, 3vw, 48px); display: flex; flex-direction: column; gap: 20px; aspect-ratio: 1; min-height: var(--move-min, 0px); }
.move svg { width: 72px; height: 72px; }
/* Headline and copy start right under the icon, so they line up across the cards whatever the copy length */
.move-copy { display: flex; flex-direction: column; gap: 8px; max-width: 32ch; }
.move h3 { font-size: var(--t-large); line-height: 1.3; font-weight: 400; color: var(--text-primary); }
.move p { font-size: 14px; line-height: 1.5; color: var(--text-body); }
.closing { font-size: var(--t-lead); line-height: 1.4; font-weight: 300; color: var(--text-primary); max-width: 34ch; }
.closing strong { font-weight: 400; color: var(--pink); }
.cta { background: var(--bg-brand); color: var(--slate-100); align-items: flex-start; gap: 28px; overflow: hidden; }
.cta .h2 { color: var(--white); max-width: 18ch; position: relative; z-index: 1; }
.cta p { font-size: var(--t-large); line-height: 1.5; color: var(--text-muted); max-width: 52ch; position: relative; z-index: 1; }
.cta .btn { margin-top: 12px; position: relative; z-index: 1; }
/* Sign-off under the assessment button: who we are, with the full logo and a link to our site */
.cta-sign { position: relative; z-index: 1; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(213, 222, 240, .16);
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px; align-self: stretch; } /* hairline full width; logo, then the words below it */
.cta-logo { flex: none; display: block; width: 132px; color: var(--white); padding-top: 2px; }
.cta-logo svg { display: block; width: 100%; height: auto; }
.cta-sign-copy { display: flex; flex-direction: column; gap: 6px; }
.cta .cta-sign-title { font-size: 16px; line-height: 1.4; color: var(--white); font-weight: 400; }
.cta .cta-sign-text { font-size: 14px; line-height: 1.5; color: var(--text-muted); max-width: none; }
.cta-sign-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--white); width: fit-content; }
.cta-sign-link svg { width: 16px; height: 16px; color: var(--pink); transition: transform .3s var(--ease-out); }
.cta-sign-link:hover svg { transform: translateX(3px); }
@media (max-width: 767px) { .cta-sign { gap: 20px; } .cta-sign-text br { display: none; } } /* phones wrap naturally */
/* Closing panel background, from Figma (Energy Operations Playbook › Footer BG), option 03 · Parallax.
   A 1600 × 1200 stage covers the panel: the brand teal, the pink M watermark, a dark gradient from the right, and the
   striped texture in saturation blend, twice: a slow layer behind and a faster, fainter one in front. Each texture
   is an endless strip (the image, then its mirror) sliding left to right. A veil darkens the left for the copy. */
.cta { isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: 0; container-type: size; pointer-events: none; }
.cta-stage { position: absolute; left: 50%; top: 50%; width: max(100cqw, 133.334cqh); aspect-ratio: 4 / 3; transform: translate(-50%, -50%); isolation: isolate; overflow: hidden; background: var(--bg-brand); } /* the texture is larger than the stage: clip it, or it shows raw where there is no teal under it */
.cta-wm { position: absolute; left: -33.25%; top: -4.58%; width: 124.75%; height: 109.08%; background: url(footer/watermark.svg) center / 100% 100% no-repeat; animation: cta-sway 30s ease-in-out infinite alternate; }
.cta-grad { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0, 42, 50, .76) 0%, rgba(0, 42, 50, 0) 86%); }
.cta-tex { position: absolute; left: -22.27%; top: 50%; width: 132.8%; aspect-ratio: 4 / 3; transform: translateY(-50%); mix-blend-mode: saturation; opacity: .5; overflow: hidden; }
.cta-tex.is-front { opacity: .28; }
.cta-strip { position: absolute; inset: 0 auto 0 0; width: 400%; display: flex; transform: translateX(-50%); animation: cta-drift 120s linear infinite; will-change: transform; }
.cta-tex.is-front .cta-strip { animation-duration: 55s; }
.cta-strip i { flex: 1 0 25%; background: url(footer/texture.jpg) center / 100% 100%; }
.cta-strip i:nth-child(even) { background-image: url(footer/texture-flip.jpg); }
.cta-tex.is-front .cta-strip i { background-size: 100% 140%; }
.cta-veil { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 42, 50, .72) 0%, rgba(0, 42, 50, .45) 42%, rgba(0, 42, 50, 0) 70%); }
@keyframes cta-drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes cta-sway { from { transform: translateX(-1.5%); } to { transform: translateX(1.5%); } }
@media (prefers-reduced-motion: reduce) { .cta-wm, .cta-strip { animation: none; } }
@media (max-width: 767px) { .cta-veil { background: rgba(0, 42, 50, .55); } }

@media (max-width: 1100px) {
  .block-top, .trust-split { grid-template-columns: minmax(0, 1fr); }
  .card--text { width: clamp(380px, 60vw, 600px); }
}
@media (max-width: 860px) {
  .compare, .tiers { grid-template-columns: minmax(0, 1fr); }
  .moves { grid-template-columns: minmax(0, 1fr); }
  /* Stacked: each step is wider than the one before, so they still build on each other */
  .stairs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stair { margin-top: 0; width: calc(100% - (4 - var(--i)) * 7%); }
  .stair-in { border-radius: var(--radius); min-height: 0; }
  .stairs-base { display: none; }
  .clear-next { align-self: stretch; }
}
@media (max-width: 767px) {
  .card--text { width: 100%; }
}
@media (max-width: 767px) {
  /* Wide diagrams keep readable labels and pan inside their frame */
  .stage.viz { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .stage.viz > svg { min-width: 720px; }
  .stage.trust-viz { overflow: visible; }
  .stage.trust-viz > svg { min-width: 0; min-height: 0; }
  .stage.truth-viz { overflow: visible; }
  .stage.truth-viz > svg { min-width: 0; max-height: calc(100svh - var(--bar) - 48px); }
  /* Steps 3, 4 and 6 draw a stacked layout on phones (scripts.js), so they fit without scrolling sideways */
  .stage.trace-viz, .stage.sieve-viz, .stage.proto-viz { overflow: visible; }
  .stage.trace-viz > svg, .stage.sieve-viz > svg, .stage.proto-viz > svg { min-width: 0; max-height: calc(100svh - var(--bar) - 48px); }  /* stacked drawings are tall: on a wider phone or small tablet they shrink to fit the screen rather than spill past it */
  .sieve-viz .big { font-size: calc(20px * var(--u, 1)); }
  .sieve-viz .cat { font-size: calc(12px * var(--u, 1)); }
  .trace-viz .axis { letter-spacing: .1em; }
}

/* Introduction · roots divider between "You know this meeting" and "Where trust is lost" */
.roots { padding: 8px var(--pad) 0; display: flex; justify-content: center; }
.roots svg { width: 100%; max-width: 760px; height: auto; overflow: visible; }
.roots .root { fill: none; stroke: var(--teal-900); stroke-linecap: round; stroke-linejoin: round; }
.roots .root-tip { fill: var(--pink); }
@media (max-width: 767px) { .roots { padding-inline: 0; } }
.people-text strong { font-weight: 500; color: var(--text-primary); }
/* When the roots close a section, they sit at its foot and lead into the next one */
.people:has(.roots) { align-content: end; padding-bottom: 0; }

#where-trust-is-lost .trust-split { align-items: start; }
.people .roots { padding: 0; margin-top: calc(var(--pad) + 26px); }  /* matches the space below the roots */

/* ───────── Collapsible rail (wide screens) ───────── */
@media (min-width: 1101px) {
  .rail-ready .shell { transition: grid-template-columns .55s var(--ease-out); }
  .rail-ready .rail { transition: opacity .35s var(--ease-out), transform .55s var(--ease-out), visibility 0s; }
  /* Collapsed: a sliver that keeps the caret and the chapter numbers */
  .rail-collapsed { --rail: calc(36px + 2 * var(--gutter-r)); } /* with the rail and page insets, 24px left of the numbers, 24px from them to the page, 24px right of the page: the same 24px left of the numbers, between them and the page, and right of the page */ /* the same gutter left of the numbers, between them and the page, and on the right */
  .rail-collapsed .shell { grid-template-columns: var(--rail) minmax(0, 1fr); padding-left: 0; }
  .rail-collapsed .rail { padding-left: var(--gutter-r); padding-right: var(--gutter-r); overflow-x: hidden; }
  .rail .toc-text, .rail .subnav, .rail .assess { transition: opacity .3s var(--ease-out); }
  .rail-collapsed .rail .toc-text, .rail-collapsed .rail .subnav, .rail-collapsed .rail .assess { opacity: 0; visibility: hidden; pointer-events: none; }
  .rail-collapsed .rail .subnav { display: none; }
  .rail-collapsed .toc-link { width: 36px; height: 36px; padding: 0; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
  .rail-collapsed .toc-num { width: auto; line-height: 1; margin-right: -0.16em; } /* trailing letter spacing would push it off centre */
  .rail-collapsed .toc-text { position: absolute; }
  .menu-btn { display: none; } /* the caret in the rail takes over on wide screens */
}
/* Caret toggle in the top bar, right of the logo.
   Open: its right edge lines up with the open menu's content. Collapsed: the logo shrinks to the M and the caret
   becomes a small tab, a lip that pokes out past the right edge of the numbered sliver. */
.rail-toggle {
  position: absolute; top: 50%; left: calc(var(--rail) - var(--gutter-r) - 36px); z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px;
  border-radius: 4px; border: 0; color: var(--text-emphasis);
  transition: background-color .25s var(--ease-out);
}
.rail-ready .rail-toggle { transition: background-color .25s var(--ease-out), left .55s var(--ease-out); }
.rail-toggle:hover { background: rgba(7, 23, 27, 0.04); } /* same hover as the chapter rows */
.rail-toggle svg { width: 18px; height: 18px; }
.rail-ready .rail-toggle svg { transition: transform .45s var(--ease-out); } /* only turns on a click, not when a new page loads already collapsed */
/* Collapsed: the caret hides and the logo folds to the M, centred over the numbers; clicking the M opens the menu */
.rail-collapsed .rail-toggle { opacity: 0; pointer-events: none; }
.rail-collapsed .bar .logo { width: calc(var(--logo-h) * 21.63 / 18.86 + 1px); }
.rail-collapsed .bar .logo-word { opacity: 0; transform: translateX(-8px); }
.rail-collapsed .bar-brand { margin-left: 4px; } /* (36px column - 28px M) / 2 */
.bar-brand { transition: margin-left .55s var(--ease-out); }
@media (min-width: 1101px) { .logo { --logo-h: 24px; } } /* about 10% larger beside the menu */
.rail-collapsed .rail-toggle svg { transform: rotate(180deg); }
@media (min-width: 1101px) {
  /* Centred over the page area, right of the menu; it slides with the menu as it opens and closes */
  .bar-title { position: absolute; left: calc(var(--rail) + (100% - var(--rail)) / 2); transform: translateX(-50%); max-width: 40vw; }
  .rail-ready .bar-title { transition: left .55s var(--ease-out); }
  .bar-sep { display: none; }
}
@media (max-width: 1100px) { .rail-toggle { display: none; } }

/* Top bar · where you are: chapter, then the section in view */
.bar-where { margin-left: auto; display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: 12px; white-space: nowrap; }
.bw-num { font-family: var(--f-label); font-weight: 500; font-size: 12px; letter-spacing: .16em; color: var(--pink); }
.bw-ch { color: var(--text-emphasis); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.bw-sec { color: var(--text-body); overflow: hidden; text-overflow: ellipsis; transition: opacity .3s var(--ease-out); }
.bw-sec:empty { display: none; }
.bw-sec::before { content: "/"; margin-right: 10px; color: var(--n300); }
@media (max-width: 1100px) { .bar-title, .bar-sep { display: none; } }
@media (max-width: 767px) { .bw-sec { display: none; } .bar-where { font-size: 14px; } }

/* ───────── Section rhythm: one gap between every section ─────────
   Framed panels (hero, How to apply, In the field, the call to action) keep their full height;
   open text sections fit their content, so the space you see between sections is always the same. */
:root { --section-gap: clamp(64px, 9vh, 104px); }
main { display: flow-root; padding-block: 0 24px; } /* the hero meets the top bar with no gap */
main > * + * { margin-top: var(--section-gap); }  /* margins, not flex gap: pinned sections need a block parent to keep their scroll space */
main > .sec, main > .pin-spacer > .sec { padding-block: 0; }
.sec:has(> .people), .sec:has(> .block), .sec:has(> .frag) { min-height: 0; }
.panel.people, .panel.block, .panel.frag { padding-block: 0; }
.people:has(.roots) { padding-bottom: 0; }
main > .next { padding-block: 0; }
@media (max-width: 767px) { :root { --section-gap: 56px; } }

/* Headlines in Syne (Inter is for body copy only). Syne starts at 400, so light titles move up to 400. */
h1, h2, h3, .h2, .display, .card-label, .card-title, .next-title, .stat-num,
.p-name, .pc-h, .compare-item h3, .group h3, .field-aside h3, .tier-list h3 {
  font-family: var(--f-display);
  letter-spacing: -0.01em;
}
.card-title, .next-title, .stat-num, .pc-h, .compare-item h3 { font-weight: 400; }

/* ───── Step 5 · Context views: five strips that open into their animations (assets/motion/context-views.js) ───── */
.cvs { --cvs-e: cubic-bezier(.45, 0, .15, 1); --cvs-r: 8px; padding-top: 32px; border-top: 1px solid var(--hairline); }
.cvs-title { margin: 0 0 28px; font-family: var(--f-display); font-size: var(--t-h4); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; color: var(--text-primary); }
.cvs-row { display: flex; justify-content: flex-start; gap: 12px; transition: height .85s var(--cvs-e); }
.cvs-strip { all: unset; position: relative; flex: none; overflow: hidden; border-radius: var(--cvs-r); background: #0b1418; cursor: pointer; transition: width .85s var(--cvs-e), height .85s var(--cvs-e); }
.cvs-strip.is-on { cursor: default; }
.cvs-strip:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.cvs-frame { overflow: hidden; background: #111519; }
.cvs-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.cvs-hero { position: absolute; left: 0; top: 0; transition: left .85s var(--cvs-e), top .85s var(--cvs-e), width .85s var(--cvs-e), height .85s var(--cvs-e), filter .5s; }
.cvs-hero img { display: block; width: 100%; height: 100%; }
.cvs-live { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .9s ease; }
.cvs-live.is-in { opacity: 1; }
/* Idle strips sit in one teal tone; colour comes back on hover and on the open one */
.cvs-tint { position: absolute; inset: 0; background: var(--teal-900); mix-blend-mode: color; opacity: .85; transition: opacity .6s; pointer-events: none; }
.cvs-strip:not(.is-on) .cvs-hero { filter: grayscale(1) contrast(1.1) brightness(.9); }
.cvs-strip:not(.is-on):hover .cvs-hero { filter: none; }
.cvs-strip:hover .cvs-tint, .cvs-strip.is-on .cvs-tint { opacity: 0; }
.cvs-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 20, 26, .35), rgba(0, 20, 26, 0) 22%, rgba(0, 20, 26, 0) 52%, rgba(0, 20, 26, .9)); transition: opacity .6s; pointer-events: none; }
.cvs-strip.is-on .cvs-shade { opacity: 0; }
.cvs-name { position: absolute; left: 18px; right: 14px; bottom: 18px; font-family: var(--f-display); font-size: 20px; line-height: 1.12; color: #fff; transition: opacity .35s; }
.cvs-vert { position: absolute; left: 50%; bottom: 18px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); white-space: nowrap; font: 500 12px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .35s; }
.cvs-row.has-on .cvs-name { opacity: 0; }
.cvs-row.has-on .cvs-strip:not(.is-on) .cvs-vert { opacity: 1; transition-delay: .45s; }
.cvs-row.is-narrow .cvs-name { opacity: 0; }   /* on a phone the idle strips are too narrow for their names, so they run up the side */
.cvs-row.is-narrow .cvs-strip:not(.is-on) .cvs-vert { opacity: 1; }
.cvs-row.is-narrow .cvs-vert { bottom: 12px; font-size: 10px; letter-spacing: .12em; }
.cvs-close, .cvs-full { position: absolute; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 20, 26, .7); color: #fff; display: grid; place-items: center; font: 400 14px/1 var(--f-sans); opacity: 0; pointer-events: none; transition: opacity .3s, background-color .2s; }
.cvs-close { right: 14px; }
.cvs-full { right: 58px; }
.cvs-full svg { pointer-events: none; }
.cvs-strip.is-on .cvs-close { opacity: 1; pointer-events: auto; cursor: pointer; transition-delay: .6s; }
.cvs-strip.is-on.is-live .cvs-full { opacity: 1; pointer-events: auto; cursor: zoom-in; }
.cvs-strip.is-on .cvs-close:hover, .cvs-strip.is-on .cvs-full:hover { background: rgba(0, 20, 26, .92); }
/* Caption below the strips: number and short headline on the left, explanation on the right */
.cvs-info { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s var(--cvs-e), opacity .45s; }
.cvs-info.is-open { grid-template-rows: 1fr; opacity: 1; }
.cvs-info > div { overflow: hidden; min-height: 0; }
.cvs-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: 24px; transition: opacity .26s; }
.cvs-lab { display: flex; align-items: flex-start; gap: 14px; }
.cvs-no { display: flex; flex: none; align-items: center; height: 1.3em; font-size: 20px; }   /* one headline line tall, so the number centres on it */
.cvs-no b, .cvs-fno { font: 500 12px/1 var(--f-label); letter-spacing: .16em; color: var(--pink); font-variant-numeric: tabular-nums; }
.cvs-lab h4, .cvs-fcap h4 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.3; color: var(--text-primary); }
.cvs-in p { margin: 0; padding-top: .2em; font-size: 14px; line-height: 1.5; color: var(--text-body); max-width: 60ch; }
/* Full view, appended to <body>: the playing animation grows out of its strip over a teal backdrop */
.cvs-locked { overflow: hidden; }
.cvs-live.is-full { position: fixed; z-index: 61; border-radius: var(--cvs-r, 8px); overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .75); }
.cvs-live.is-moving { transition: opacity .9s ease, left .65s var(--cvs-e), top .65s var(--cvs-e), width .65s var(--cvs-e), height .65s var(--cvs-e); }
.cvs-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 20, 26, .9); opacity: 0; transition: opacity .45s; cursor: zoom-out; }
.cvs-back.is-in { opacity: 1; }
.cvs-fcap { position: fixed; z-index: 61; display: flex; gap: 16px; align-items: baseline; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.cvs-fcap.is-in { opacity: 1; transform: none; transition-delay: .25s; }
.cvs-fcap .cvs-fno { color: #ff5aa5; }
.cvs-fcap h4 { color: #fff; }
.cvs-fcap p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--slate-100); max-width: 72ch; }
.cvs-fx, .cvs-fnav button { border-radius: 50%; color: #fff; cursor: pointer; transition: background-color .2s; }
.cvs-fx { position: fixed; z-index: 64; width: 40px; height: 40px; border: 0; background: rgba(0, 20, 26, .75); font: 400 16px/40px var(--f-sans); opacity: 0; transition: opacity .3s; }
.cvs-fx.is-in { opacity: 1; transition-delay: .35s; }
.cvs-fnav { position: fixed; z-index: 64; display: flex; gap: 8px; opacity: 0; transition: opacity .3s; }
.cvs-fnav.is-in { opacity: 1; transition-delay: .35s; }
.cvs-fnav button { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); background: none; font: 400 20px/1 var(--f-sans); }
.cvs-fnav button:hover { background: rgba(255, 255, 255, .1); }
.cvs-fx:focus-visible, .cvs-fnav button:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
@media (max-width: 700px) {
  .cvs-in { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .cvs-in p { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cvs *, .cvs-back, .cvs-fcap, .cvs-fx, .cvs-fnav, .cvs-live { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* Start this month: each card's icon is a looping scene, cropped so it reads at 120px. Square cards with the same
   padding as the other card components (.stage), so the icon and the copy sit the same distance from every edge. */
.move .move-illo { flex: none; width: var(--move-illo, 120px); height: var(--move-illo, 120px); min-height: 0; max-width: none; max-height: none; }
.move .move-illo .ln { vector-effect: non-scaling-stroke; stroke-width: 1.25; }

/* Logo and contents are one unit: the bar's bottom hairline starts at the menu's edge,
   and a vertical hairline runs up that edge through the bar and down the menu */
@media (min-width: 1101px) {
  .bar { border-bottom-color: transparent; }
  /* no horizontal hairline under the bar; the reading progress bar still runs along its bottom */
  .bar::before { content: ""; position: absolute; left: calc(var(--rail) - 1px); /* same pixel column as the rail's edge line, so it runs unbroken */ top: 0; bottom: -1px; width: 1px; background: var(--hairline); }
  .rail { box-shadow: inset -1px 0 0 var(--hairline); }
  .bar { padding-left: var(--gutter-l); } /* logo starts on the menu items' left edge */
  .bar-progress { left: var(--rail); } /* reading progress runs across the page, starting where the menu ends */
  .rail-ready .bar::before, .rail-ready .bar-progress { transition: left .55s var(--ease-out); }
}
@media (min-width: 1101px) { main { padding-left: var(--gutter-r); } } /* the page sits off the menu hairline by the same gap it keeps on the right */
/* Phones: only the chapter number on the right; the logo sits centred in the bar, the menu button stays on the left */
@media (max-width: 767px) {
  .bw-ch, .bw-sec { display: none; }
  .bar-brand { position: absolute; left: 50%; transform: translateX(-50%); }
}
@media (min-width: 1101px) {
  .rail { padding: 16px var(--gutter-r) 24px var(--gutter-l); } /* the playbook's own side margins; 16px under the logo's hairline */
  /* Hairline under the logo and caret, inside the menu's margins. The logo sits 16px below the top of the bar,
     and the line sits 16px below the logo, on the bar's bottom edge */
  .bar::after { content: ""; position: absolute; bottom: 0; height: 1px; background: var(--hairline);
    left: var(--gutter-l); width: calc(var(--rail) - 1px - var(--gutter-l) - var(--gutter-r)); } /* the vertical hairline takes the rail's last pixel */
  .rail-ready .bar::after { transition: width .55s var(--ease-out); }
} /* the playbook's own side margins */ /* menu items sit 20px closer to the logo */
/* The logo opens and closes the menu on wide screens: its pink deepens on hover to show it's clickable */
.logo-mark { transition: fill .25s var(--ease-out); }
@media (min-width: 1101px) { .bar-brand:hover .logo-mark { fill: #d6005f; } }
/* Crowded top bar (set by fitBar in playbook.js): the section name goes first, then the title */
.bar-no-sec .bw-sec, .bar-no-title .bar-title { display: none; }
/* Wide screens, menu open: the full logo stays, even past the hero (the fold to the M is for the collapsed menu and phones) */
@media (min-width: 1101px) {
  html:not(.rail-collapsed) .bar.is-compact .logo { width: calc(var(--logo-h) * 100 / 18.86); }
  html:not(.rail-collapsed) .bar.is-compact .logo-word { opacity: 1; transform: none; }
}
/* Tablets and phones (menu in a drawer): the full logo always shows, never folding to the M */
@media (max-width: 1100px) {
  .bar.is-compact .logo { width: calc(var(--logo-h) * 100 / 18.86); }
  .bar.is-compact .logo-word { opacity: 1; transform: none; }
}
