/* ==========================================================================
   Lou Strano — portfolio
   Tokens first; everything else reads from them.
   ========================================================================== */

:root {
  --paper: #F2F4F3;
  --surface: #FFFFFF;
  --ink: #18202B;
  --muted: #566170;
  --line: #D5DBD9;
  --accent: #3346D3;
  --accent-ink: #FFFFFF;
  --accent-soft: #E2E6FB;
  --flag: #E09A2F;
  --chart-before: #566170; /* neutral baseline */
  --chart-after: #3346D3;
  --ph-bg: #FFF0B3;
  --ph-ink: #5C4600;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-hero: clamp(2.35rem, 1.4rem + 4.2vw, 4.75rem);
  --step-h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
  --step-h2: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --step-h3: 1.25rem;
  --step-body: 1.125rem;
  --step-small: 0.9375rem;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --measure: 60rem; /* ~880px: about 80 characters of body text */
  --radius-lg: 18px;
  --radius-sm: 8px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11151C;
    --surface: #181E27;
    --ink: #E7EBEE;
    --muted: #9AA5B2;
    --line: #2A323D;
    --accent: #8F9DFF;
    --accent-ink: #11151C;
    --accent-soft: #222A49;
    --flag: #D9963A;
    --chart-before: #6B7685;
    --chart-after: #7A8AF2;
    --ph-bg: #4A3D10;
    --ph-ink: #FFE89A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11151C;
  --surface: #181E27;
  --ink: #E7EBEE;
  --muted: #9AA5B2;
  --line: #2A323D;
  --accent: #8F9DFF;
  --accent-ink: #11151C;
  --accent-soft: #222A49;
  --flag: #D9963A;
  --chart-before: #6B7685;
  --chart-after: #7A8AF2;
  --ph-bg: #4A3D10;
  --ph-ink: #FFE89A;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
/* Keep proportions when an <img> has width/height attributes but is sized by CSS. */
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }

/* Placeholder content — visible on purpose so nothing ships unreplaced. */
mark.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0 .25em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease-out), border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; }
.wordmark-dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: var(--step-small); font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav .nav-cta { color: var(--ink); border: 1px solid var(--line); margin-left: 8px; }
.nav .nav-cta:hover { border-color: var(--ink); }
.theme-toggle { margin-left: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.theme-toggle:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.menu-bars { top: 21px; }
.menu-bars::before { content: ""; left: 0; top: -7px; }
.menu-bars::after { content: ""; left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); background: var(--ink); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); background: var(--ink); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu nav { display: flex; flex-direction: column; padding-block: 12px 24px; }
.mobile-menu a { font-size: 1.6rem; font-weight: 600; padding: 10px 0; text-decoration: none; letter-spacing: -0.02em; }
.mobile-menu:not([hidden]) a { animation: menuIn .4s var(--ease-out) both; }
.mobile-menu a:nth-child(2) { animation-delay: .04s; } .mobile-menu a:nth-child(3) { animation-delay: .08s; } .mobile-menu a:nth-child(4) { animation-delay: .12s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(64px, 12vw, 152px) clamp(56px, 8vw, 104px); }
.hero-h { font-size: var(--step-hero); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; max-width: 17ch; }
.rotator { display: inline-block; position: relative; white-space: nowrap; }
.rotator-text { display: inline-block; }
.rotator::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.09em;
  background: var(--accent); border-radius: 2px;
  transform-origin: left; transition: transform .6s var(--ease-out);
}
.rotator.is-resolving::after { transform: scaleX(0.18); }
.rotator .glyph { color: var(--muted); }
/* Fade effect: phrases can be long, so let them wrap. Words fade in reading order
   (left to right, line by line); delays match STAGGER_IN/OUT in main.js. */
.rotator[data-effect="fade"] { display: inline; white-space: normal; }
.rotator[data-effect="fade"] .rotator-text { display: inline; }
.rotator[data-effect="fade"] .fade-word { animation: wordIn .55s var(--ease-out) both; animation-delay: calc(var(--w) * 90ms); }
.rotator[data-effect="fade"] .is-static .fade-word { animation: none; }
.rotator[data-effect="fade"] .is-out .fade-word { animation: wordOut .35s ease-in both; animation-delay: calc(var(--w) * 45ms); }
@keyframes wordIn { from { opacity: 0; filter: blur(8px); } }
@keyframes wordOut { to { opacity: 0; filter: blur(8px); } }
.rotator[data-effect="fade"]::after { display: none; }
.rotator[data-effect="fade"] .rotator-text { color: var(--accent); }
.hero-intro { margin-top: clamp(28px, 4vw, 44px); max-width: 60ch; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.hero-intro a { color: var(--ink); }

/* hero load sequence — the page's one orchestrated moment */
.js .hero-h, .js .hero-intro { animation: heroIn .9s var(--ease-out) both; }
.js .hero-intro { animation-delay: .25s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-h { font-size: var(--step-h2); }
.text-link { font-weight: 500; font-size: var(--step-small); }

/* ---------- work list ---------- */
.work { border-top: 1px solid var(--line); }
.work-list { display: grid; gap: clamp(20px, 3vw, 32px); }
.work-link {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: border-color .3s, transform .5s var(--ease-out);
}
.work-link:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.work-client { font-size: var(--step-small); color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.work-title { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); margin-bottom: 14px; }
.work-title { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease-out); display: inline; }
.work-link:hover .work-title { background-size: 100% 2px; }
.work-summary { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.work-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--step-small); }
.work-more::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .4s var(--ease-out); }
.work-link:hover .work-more::after { width: 34px; }
.work-visual { border-radius: 14px; overflow: hidden; transition: transform .6s var(--ease-out); }
.work-link:hover .work-visual { transform: translateY(-6px) scale(1.012); }
.work-visual img { width: 100%; height: auto; }

/* ---------- protected work: the vault ---------- */
/* A mosaic of past work drifts behind frosted glass. A spotlight (--x/--y, --peek)
   shows it in focus: it follows the cursor, or wanders on its own until you hover. */
@property --x { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
@property --y { syntax: "<percentage>"; inherits: true; initial-value: 40%; }
@property --peek { syntax: "<length>"; inherits: true; initial-value: 0px; }

.vault {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  min-height: clamp(460px, 48vw, 580px);
  padding: clamp(20px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: #0B0F15; border: 1px solid var(--line);
  animation: vaultWander 22s ease-in-out infinite;
}
.vault.is-pointer { animation: none; }

.vault-bg { position: absolute; inset: 0; z-index: -1; --peek: 150px; transition: --peek .5s var(--ease-out); }
.vault.is-pointer:not(.is-hovering) .vault-bg { --peek: 0px; }
.vault-layer { position: absolute; inset: 0; display: flex; align-items: center; }
.vault-track { display: flex; height: 100%; width: max-content; animation: vaultDrift 120s linear infinite; will-change: transform; }
.vault-track img { height: 100%; width: auto; max-width: none; }
.vault-blur { filter: blur(7px) saturate(1.25) brightness(.55); }
.vault-peek {
  -webkit-mask-image: radial-gradient(circle var(--peek) at var(--x) var(--y), #000 55%, transparent 100%);
          mask-image: radial-gradient(circle var(--peek) at var(--x) var(--y), #000 55%, transparent 100%);
}
/* soft vignette so the panel edges never fight busy tiles */
.vault-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, rgb(11 15 21 / .55) 100%); pointer-events: none; }

.vault-panel {
  position: relative; width: min(100%, 580px);
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .55);
}
.vault-eyebrow { font-size: var(--step-small); font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.vault-hint {
  position: absolute; right: 18px; bottom: 14px; margin: 0;
  font-size: .8125rem; font-weight: 500; color: rgb(255 255 255 / .7);
  transition: opacity .4s;
}
.vault.is-hovering .vault-hint { opacity: 0; }
@media (hover: none) { .vault-hint { display: none; } }
/* Phones: drop the panel to the bottom so a band of the mosaic stays visible above it. */
@media (max-width: 560px) {
  .vault { place-items: end center; padding: 150px 12px 12px; }
  .vault-hint { display: none; }
}

@keyframes vaultDrift { to { transform: translateX(-50%); } }
@keyframes vaultWander {
  0%, 100% { --x: 18%; --y: 35%; }
  25% { --x: 82%; --y: 25%; }
  50% { --x: 70%; --y: 78%; }
  75% { --x: 25%; --y: 72%; }
}
@media (prefers-reduced-motion: reduce) {
  .vault, .vault-track { animation: none; }
}

.access-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.vault .access-icon { animation: lockNudge 6s var(--ease-out) infinite; }
@keyframes lockNudge { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-12deg); } 94% { transform: rotate(9deg); } 97% { transform: rotate(-4deg); } }
.access-h { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); margin-bottom: 14px; }
.access-copy { color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.access-form { max-width: 520px; }
.access-row { display: flex; gap: 12px; flex-wrap: wrap; }
.access-row input { flex: 1 1 220px; min-height: 48px; }
.access-row .btn { flex: 0 0 auto; }
@media (max-width: 820px) {
  .work-link { grid-template-columns: 1fr; }
  .work-visual { order: -1; }
}

/* ---------- illustration styles ---------- */
.viz { width: 100%; height: auto; }
.v-bg { fill: var(--accent-soft); }
.v-panel { fill: var(--surface); }
.v-soft { fill: color-mix(in srgb, var(--ink) 5%, var(--surface)); }
.v-dot { fill: var(--line); }
.v-line { fill: color-mix(in srgb, var(--ink) 16%, var(--surface)); }
.v-line-strong { fill: color-mix(in srgb, var(--ink) 40%, var(--surface)); }
.v-accent { fill: var(--accent); }
.v-accent-soft { fill: var(--accent-soft); }
.v-input { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.v-cell { fill: color-mix(in srgb, var(--ink) 7%, var(--surface)); }
.v-flag { fill: color-mix(in srgb, var(--flag) 30%, var(--surface)); stroke: var(--flag); stroke-width: 2; }
.v-node { fill: var(--surface); stroke: var(--line-strong, color-mix(in srgb, var(--ink) 30%, var(--surface))); stroke-width: 2; }
.v-chip-t, .v-node-t { font: 600 12px var(--font); text-anchor: middle; }
.v-chip-t { fill: var(--accent-ink); }
.v-node-t { fill: var(--ink); font-size: 18px; }
.agents .v-chip-t { font-size: 18px; }
.v-link { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 6; }
@media (prefers-reduced-motion: no-preference) {
  .v-flow { animation: flow 1.6s linear infinite; }
  .v-pulse { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- results radar (before → after on one 0–100 scale) ---------- */
.radar { margin: 8px 0 40px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.radar-title { font-size: var(--step-h3); margin-bottom: 4px; }
.radar-measure { color: var(--muted); font-size: var(--step-small); margin-bottom: 10px; }
.radar-note { font-size: var(--step-small); margin-bottom: 14px; }
.radar-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--step-small); color: var(--muted); }
.radar-legend li { display: inline-flex; align-items: center; gap: 8px; }
.radar-legend line { stroke-width: 2; stroke-linecap: round; }
.radar-legend-before { stroke: var(--chart-before); stroke-dasharray: 5 4; }
.radar-legend-after { stroke: var(--chart-after); }
.radar-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 16px; }
@media (max-width: 760px) { .radar-body { grid-template-columns: minmax(0, 1fr); } }
.radar-plot { position: relative; max-width: 440px; width: 100%; margin-inline: auto; }
.radar-plot svg { width: 100%; height: auto; overflow: visible; }
.radar-ring, .radar-spoke { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-tick { font-size: 11px; fill: var(--muted); }
.radar-shape { stroke-width: 2; stroke-linejoin: round; }
.radar-before { fill: color-mix(in srgb, var(--chart-before) 10%, transparent); stroke: var(--chart-before); stroke-dasharray: 6 5; }
.radar-after { fill: color-mix(in srgb, var(--chart-after) 18%, transparent); stroke: var(--chart-after); }
.radar-dot { stroke: var(--surface); stroke-width: 2; }
.radar-dot-before { fill: var(--chart-before); }
.radar-dot-after { fill: var(--chart-after); }
.radar-axis { cursor: default; outline: none; }
.radar-hit { fill: transparent; }
.radar-badge { fill: var(--accent-soft); stroke: var(--surface); stroke-width: 2; transition: fill .2s; }
.radar-badge-n { font-size: 12px; font-weight: 700; text-anchor: middle; fill: var(--accent); pointer-events: none; }
.radar-axis:hover .radar-badge, .radar-axis:focus-visible .radar-badge { fill: var(--accent); }
.radar-axis:hover .radar-badge-n, .radar-axis:focus-visible .radar-badge-n { fill: var(--accent-ink); }
.radar-tip {
  position: absolute; z-index: 2; max-width: 240px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--paper); font-size: .8125rem; line-height: 1.4; pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}
.radar-tip[hidden] { display: none; }

/* ---------- results outcome cards: one number, one small chart ---------- */
.outcomes { margin: 8px 0 40px; }
.outcomes-title { font-size: var(--step-h3); margin-bottom: 4px; }
.outcomes-note { font-size: var(--step-small); margin-bottom: 16px; }
.outcomes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .outcomes-grid { grid-template-columns: minmax(0, 1fr); } }
.outcome { padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; }
.outcome-label { font-size: var(--step-small); color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.outcome-value { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.outcome-change { margin-left: 6px; font-size: var(--step-small); font-weight: 600; letter-spacing: 0; color: var(--ink); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.outcome-plot { position: relative; margin-top: auto; }
.outcome-chart { width: 100%; height: auto; display: block; overflow: visible; }
.outcome-detail { font-size: var(--step-small); color: var(--muted); margin: 10px 0 0; }
.chart-base { stroke: var(--line); stroke-width: 1; }
.chart-launch { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tick { font-size: 11px; fill: var(--muted); }
.chart-tick-end { text-anchor: end; }
.chart-value { font-size: 12px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart-line { fill: none; stroke: var(--chart-after); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-before { stroke: var(--chart-before); stroke-dasharray: 5 4; }
.chart-dot, .chart-focus { fill: var(--chart-after); stroke: var(--surface); stroke-width: 2; }
.chart-bar-before { fill: var(--chart-before); }
.chart-bar-after { fill: var(--chart-after); }
.chart-focus[hidden] { display: none; }
.chart-hit { fill: transparent; }
.chart-row { cursor: default; }
.radar-key { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: none; }
.radar-key li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.radar-key li:first-child { border-top: 0; }
.radar-key-n { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: .8125rem; font-weight: 700; }
.radar-key-label { font-weight: 500; }
.radar-key-values { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.radar-key-values strong { color: var(--ink); }
.radar-key-delta { margin-left: 6px; color: var(--ink); font-weight: 600; }

/* ---------- testimonials ---------- */
.testimonials { border-top: 1px solid var(--line); }
/* Three recommendations at a time on desktop (two on tablets, one on phones).
   Off-screen cards dim; the arrows move one card at a time. */
.t-slides {
  --t-gap: 16px; --t-per: 3;
  position: relative; display: grid; grid-auto-flow: column; gap: var(--t-gap);
  grid-auto-columns: calc((100% - (var(--t-per) - 1) * var(--t-gap)) / var(--t-per));
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  border-radius: var(--radius-lg);
}
@media (max-width: 1000px) { .t-slides { --t-per: 2; } }
@media (max-width: 640px) { .t-slides { --t-per: 1; } }
.t-slides::-webkit-scrollbar { display: none; }
.t-slides:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.t-slide {
  position: relative; margin: 0; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(64px, 6vw, 76px) clamp(22px, 2.4vw, 32px) clamp(24px, 2.4vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  opacity: .35; transition: opacity .5s var(--ease-out);
}
.t-slide.is-active, html:not(.js) .t-slide { opacity: 1; }
.t-slide::before {
  content: "\201C"; position: absolute; top: 10px; left: clamp(18px, 2vw, 26px);
  font-size: 4.5rem; line-height: 1; color: var(--accent); opacity: .5; pointer-events: none;
}
.t-slide blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.t-slide blockquote p { margin: 0; }
/* Every card caps its quote at the same number of lines, so all cards match in height. */
.js .t-quote p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.t-slide blockquote { flex: 1; }
.t-more {
  align-self: flex-start; margin-top: -16px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: 600 var(--step-small) var(--font); color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.t-more[hidden] { display: none; }
.t-more:hover { text-decoration-thickness: 2px; }

.t-dialog {
  width: min(680px, calc(100vw - 32px)); max-height: min(85vh, 760px); padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .45);
}
.t-dialog::backdrop { background: rgb(11 15 21 / .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.t-dialog[open] { animation: dialogIn .35s var(--ease-out); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.t-dialog-body { margin: 0; padding: clamp(56px, 7vw, 72px) clamp(24px, 5vw, 48px) clamp(28px, 5vw, 44px); position: relative; display: grid; gap: 28px; }
.t-dialog-body::before { content: "\201C"; position: absolute; top: 8px; left: clamp(18px, 4vw, 40px); font-size: 4.5rem; line-height: 1; color: var(--accent); opacity: .5; }
.t-dialog-body blockquote { margin: 0; font-size: 1.1rem; line-height: 1.65; }
.t-dialog-body blockquote p { margin: 0; }
.t-dialog-body blockquote p + p { margin-top: .8em; }
.t-dialog-body figcaption { display: flex; flex-direction: column; gap: 2px; font-size: var(--step-small); }
.t-dialog-body figcaption span { color: var(--muted); }
.t-dialog-close {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1rem;
}
.t-dialog-close:hover { border-color: var(--ink); }
.t-slide figcaption { display: flex; flex-direction: column; gap: 2px; font-size: var(--step-small); }
.t-slide figcaption span { color: var(--muted); }
.t-slide .t-rel { font-size: .8125rem; }

.t-controls { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.t-controls[hidden], .t-dot[hidden], html:not(.js) .t-controls { display: none; }
.t-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease-out);
}
.t-btn:hover { border-color: var(--ink); }
.t-btn:active { transform: scale(.94); }
.t-dots { display: flex; align-items: center; gap: 4px; }
.t-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.t-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .35s var(--ease-out), background-color .35s; }
.t-dot:hover::before { background: var(--muted); }
.t-dot[aria-current="true"]::before { width: 22px; background: var(--accent); }
.t-count { margin-left: auto; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- CTA ---------- */
.cta { border-top: 1px solid var(--line); }
.cta-inner { max-width: 860px; }
.cta h2 { font-size: var(--step-h1); letter-spacing: -0.03em; margin-bottom: 20px; }
.cta p { color: var(--muted); max-width: 58ch; font-size: 1.15rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease-out), background-color .2s, border-color .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- page heroes ---------- */
.page-hero { padding-block: clamp(56px, 9vw, 120px) clamp(24px, 4vw, 48px); }
.page-h { font-size: var(--step-h1); letter-spacing: -0.03em; max-width: 20ch; }
.about-h { max-width: 22ch; }
.page-lede { margin-top: 20px; color: var(--muted); font-size: 1.2rem; max-width: 56ch; }

/* ---------- case study ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
.cs-hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.back-link { display: inline-block; font-size: var(--step-small); font-weight: 500; color: var(--muted); margin-bottom: 28px; text-decoration: none; }
.back-link::before { content: "‹ "; }
.back-link:hover { color: var(--ink); }
.tags { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .85rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag-client { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cs-title { font-size: var(--step-h1); letter-spacing: -0.03em; max-width: 28ch; text-wrap: pretty; }
.cs-summary { margin-top: 20px; font-size: 1.25rem; color: var(--muted); max-width: 80ch; }
.cs-meta { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.cs-meta dt { font-size: var(--step-small); color: var(--muted); margin-bottom: 4px; }
.cs-meta dd { margin: 0; font-weight: 500; }
@media (max-width: 760px) { .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cs-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 112px); }
/* Text keeps a readable line length; figures inside a section use the full column. */
.cs-section > :not(.figure, .challenges, .gallery, h2, .cs-part, .findings) { max-width: var(--measure); }
/* The findings table uses the full column, but its heading and intro keep the reading width. */
.findings > :not(.findings-table) { max-width: var(--measure); }
/* Parts: one block per finding inside a section, each with its own copy and slideshow. */
.cs-part { margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.cs-section > h2 + .cs-part { margin-top: 12px; }
.cs-part > :not(.figure, .gallery) { max-width: var(--measure); }
.cs-part-finding { font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; }
.cs-part-finding span { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cs-part > h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-bottom: 14px; }
.cs-part .figure, .cs-part .gallery { margin-top: 28px; }
/* Pull quote inside a part: the user's words in the accent rule, credit below. */
.cs-quote { margin: 24px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.cs-quote p { margin: 0; font-size: 1.15rem; line-height: 1.5; font-style: italic; }
.cs-quote footer { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }
.cs-quote footer strong { color: var(--ink); font-weight: 600; }
.cs-section > h2 { font-size: var(--step-h2); margin-bottom: 20px; }
/* A user's own words inside a heading: accent, italic, in curly quotes. */
.voice { color: var(--accent); font-style: italic; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.cs-label { font-size: var(--step-small); font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.cs-overview p { font-size: 1.2rem; }
.cs-overview p:first-child { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); line-height: 1.45; letter-spacing: -0.01em; }

.challenges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.cs-overview + .challenges { margin-top: 32px; }
/* Optional "challengeImage": a screen right after the opening paragraph. */
.cs-overview + .figure { margin-top: 28px; }
.cs-overview + .figure + .cs-challenges-intro { margin-top: 32px; }
.cs-overview + .figure + .challenges { margin-top: 32px; }
/* Optional "challengesIntro": a short lead-in right above the cards. */
.cs-overview + .cs-challenges-intro { margin-top: 28px; }
.cs-challenges-intro { font-size: 1.2rem; margin-bottom: 0; }
.cs-challenges-intro + .challenges { margin-top: 20px; }
/* The second overview paragraph (your role) follows the cards at normal intro size. */
.challenges + .cs-role { margin-top: 32px; }
.figure + .cs-role { margin-top: 32px; }
/* Cards inside a regular section (e.g. Discovery), after its paragraphs. */
.cs-section > p + .challenges { margin-top: 20px; }
.cs-role p:first-child { font-size: 1.2rem; line-height: inherit; letter-spacing: 0; }
.challenge { padding: 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.challenge h3 { font-size: var(--step-h3); margin-bottom: 10px; }
.challenge .challenge-label { margin: 0 0 8px; font-size: var(--step-small); font-weight: 600; color: var(--accent); }
/* The card that names what the others have in common. */
.challenge-shared { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.challenge p { margin: 0; color: var(--muted); font-size: 1rem; }
.challenge strong { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .challenges { grid-template-columns: 1fr; } }

/* Findings → needs: two columns on wide screens, stacked pairs on phones. */
.findings { margin-top: 32px; }
.findings-h { font-size: var(--step-h3); margin-bottom: 6px; }
.findings-intro { color: var(--muted); margin-bottom: 16px; }
.findings-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.findings-table th { text-align: left; font-size: var(--step-small); font-weight: 600; color: var(--accent); padding: 0 16px 10px 0; }
.findings-table td { padding: 14px 16px 14px 0; border-top: 1px solid var(--line); vertical-align: top; width: 50%; text-wrap: balance; }
.findings-table td:first-child { font-weight: 500; }
.findings-table td + td { position: relative; padding-left: 32px; color: var(--muted); }
.findings-table td + td::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.findings-table th + th { padding-left: 32px; }
@media (max-width: 640px) {
  .findings-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .findings-table tr { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
  .findings-table td { display: block; width: auto; border: 0; padding: 0; }
  .findings-table td + td { margin-top: 4px; padding-left: 24px; }
}

.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: step; display: grid; gap: 4px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .95rem; }
.steps h3 { font-size: var(--step-h3); margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

.figure { margin: 0; max-width: none; }
.cs-section .figure { margin-top: 32px; }
.figure-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-lg); overflow: hidden; }
.figure-btn > * { transition: transform .6s var(--ease-out); }
.figure-btn:hover > * { transform: scale(1.01); }
.figure figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; }
.figure-hint {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -5px 0 0;
  border-radius: 50%; color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent);
  transition: color .2s, background-color .2s, transform .2s var(--ease-out);
}
.figure-hint svg { display: block; width: 15px; height: 15px; }
/* Fills in when the image above it is hovered or focused. */
.figure-hint { cursor: zoom-in; }
.figure:has(.figure-btn:hover, .figure-btn:focus-visible, .figure-hint:hover) .figure-hint { color: var(--accent-ink); background: var(--accent); transform: scale(1.08); }

/* Case study image gallery: one screen at a time, the next one peeking in from the right.
   Reuses the .t-slides strip and .t-controls from the recommendations slideshow. */
.cs-section .gallery { margin-top: 32px; }
.t-slides.gallery-slides { grid-auto-columns: 88%; align-items: start; border-radius: 0; }
.gallery-slide { margin: 0; opacity: .4; transition: opacity .5s var(--ease-out); }
.gallery-slide.is-active, html:not(.js) .gallery-slide { opacity: 1; }
/* The frame takes each image's own shape, so the rounded corners sit on the image itself. */
.gallery-slide .figure-btn { border: 1px solid var(--line); background: var(--surface); }
.gallery-slide img { width: 100%; height: auto; }
/* Once main.js has measured the images: one shared height, each slide as wide as its image. */
.gallery.is-sized .gallery-slides { grid-auto-columns: min-content; }
.gallery.is-sized .gallery-slide img { width: auto; height: var(--g-h); max-width: none; }
@media (max-width: 640px) { .t-slides.gallery-slides { grid-auto-columns: 92%; } }

.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.results li { padding: 20px 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.cs-quotes { margin-top: 32px; }
.cs-quotes-note { margin: 0; font-size: var(--step-small); color: var(--muted); }
/* A result that opens with a user's words (“Help me start”) shows them as a small lead-in line. */
.results .voice { display: block; width: fit-content; margin-bottom: 6px; font-size: var(--step-small); }
.reflection { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.reflection h3 { font-size: var(--step-h3); margin-bottom: 12px; }
.reflection ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.reflection li { margin-bottom: 8px; }
@media (max-width: 640px) { .reflection { grid-template-columns: 1fr; } }
.confidential { margin-top: 32px; font-size: var(--step-small); color: var(--muted); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: clamp(56px, 8vw, 112px); }
.pager-link { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, background-color .3s; }
.pager-link:hover { border-color: var(--ink); background: var(--surface); }
.pager-link span { font-size: var(--step-small); color: var(--muted); }
.pager-link strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.pager-next { text-align: right; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager-next { text-align: left; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox[hidden] { display: none; }
.lightbox-stage { width: min(1100px, 100%); max-height: 100%; overflow: auto; border-radius: var(--radius-lg); box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--ink) 40%, transparent); }
.lightbox.is-open .lightbox-stage { animation: lbIn .45s var(--ease-out) both; }
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1rem; cursor: pointer; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy p { font-size: 1.2rem; }
.about-copy p:first-child { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.5rem); line-height: 1.45; }
.side-h { font-size: var(--step-small); color: var(--muted); font-weight: 600; margin-bottom: 16px; letter-spacing: 0; }
.timeline { list-style: none; padding: 0; margin: 0 0 40px; }
.timeline li { padding: 14px 0; border-top: 1px solid var(--line); }
.timeline p { margin: 0; }
.tl-years { font-size: .85rem; color: var(--muted); }
.tl-org { font-weight: 600; }
.tl-role { font-size: 1rem; }
.tl-note { font-size: .9rem; color: var(--muted); margin-top: 2px !important; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.principles-sec { border-top: 1px solid var(--line); }
.principles-sec .section-h { margin-bottom: clamp(28px, 4vw, 48px); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.principle { padding-top: 20px; border-top: 2px solid var(--ink); }
.principle h3 { font-size: var(--step-h3); margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-sec { padding-top: 0; }
.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 1rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: #C0392B; }
.field-error { color: #C0392B; font-size: .9rem; margin: 0; }
:root[data-theme="dark"] .field-error, :root[data-theme="dark"] .field [aria-invalid="true"] { color: #FF8A7A; border-color: #FF8A7A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 500; min-height: 1.6em; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-err { color: #C0392B; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 56px); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.footer-brand p { color: var(--muted); max-width: 36ch; margin-top: 8px; font-size: 1rem; }
.footer-links { display: flex; align-items: center; gap: 16px; }
.site-footer .footer-links ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
/* Icon link: a 44px tap target around a 24px icon, pulled right so the icon meets the content edge. */
.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; color: var(--ink); border-radius: var(--radius-sm); transition: color .15s; }
.footer-social:hover { color: var(--accent); }
.footer-social:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 1rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-base { margin-top: clamp(32px, 4vw, 40px); padding-block: 24px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.footer-base p { margin: 0; }
@media (max-width: 720px) { .footer-links { width: 100%; justify-content: space-between; } }

/* ---------- scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- case study PDF download ---------- */
.cs-download {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.cs-download-h { margin: 0; font-weight: 600; font-size: 1.1rem; }
.cs-download-meta { margin: 2px 0 0; font-size: var(--step-small); color: var(--muted); }

/* ---------- print (also what `npm run pdf` captures) ---------- */
@media print {
  @page { size: Letter; margin: 14mm 14mm 16mm; }
  /* Web pages print on white; the slide-deck PDF (body.deck, css/deck.css) keeps its theme. */
  html:not(:has(body.deck)), body:not(.deck) { background: #fff !important; }
  body:not(.deck) { font-size: 11pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .skip, .site-header, .site-footer, .pager, .cta, .progress, .lightbox, .back-link,
  .t-controls, .figure-hint, .radar-tip, .cs-download, .theme-toggle, .menu-toggle { display: none !important; }
  .wrap { max-width: none; padding-inline: 0; }
  .cs-hero { padding-block: 0 24px; }
  .cs-body { gap: 28px; padding-bottom: 0; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  /* Slideshows become a plain sequence of images, each with its caption. */
  .t-slides.gallery-slides, .gallery.is-sized .gallery-slides { display: block; overflow: visible; }
  .gallery-slide { opacity: 1 !important; margin-bottom: 18px; }
  .gallery-slide img, .gallery.is-sized .gallery-slide img { width: 100%; height: auto; max-width: 100%; }
  .figure, .gallery-slide, .challenge, .radar, .results li, .steps li, .findings-table tr, .cs-quote, .reflection { break-inside: avoid; }
  /* The page is narrower than the desktop breakpoints, so keep the side-by-side layouts. */
  .challenges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .radar-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .reflection { grid-template-columns: 1fr 1fr; }
  h2, h3, .cs-label, .cs-part-finding { break-after: avoid; }
  .cs-part { break-before: auto; }
  a { text-decoration: none; }
}
