/* Christina Sa — portfolio. Direction: "the page is the object" (tasteskill seed 2011025563).
   One loud flat field, paper, ink. Colours come from the subject; every colour below is a role.
   Premium pass (2026-11-02): a light ground a step off white so paper reads as paper, rounded corners
   that nest, one heading weight, and fewer novelty edges. */

:root {
  --xbox-green: #107c10;     /* Xbox's field, kept by name so the homepage can use it under its neutral theme */
  --glg-azure: #0216fc;      /* GLG's Azure Blue, the same, for the GLG work */
  --green: var(--xbox-green); /* the field */
  --green-deep: #0a5c0a;     /* a tone step on the field, green text on paper */
  --green-light: #86d08a;    /* the accent on dark grounds: section names */
  --paper: #ffffff;          /* card stock: every surface that sits on a ground */
  --ground: #f3f5f2;         /* the light ground, one step off white, leaning to the green */
  --mist: #edf1eb;           /* a tone step from the ground */
  --ink: #0b130d;
  --muted: #4a574c;          /* secondary text on paper, ground and mist */
  --on-green: #ffffff;
  --on-green-soft: #cfe6cf;  /* large type only on the field */
  --on-ink-soft: #a9b8ab;
  --tone-1: #e3efe2;
  --tone-2: #cfe4ce;
  --tone-3: #bcdabb;
  --ink-deep: #050a06;       /* the top of the opening, a shade under ink */
  --glow: 16 124 16;         /* the light in the dark sections, as r g b */
  --glass: 14 20 16;         /* the tint of the floating index, as r g b */
  --on-ink-body: #d3d9d4;    /* running text on dark grounds */
  --legacy: #7d877f;         /* what the new work replaced */
  --legacy-deep: #5f6b62;    /* the same, where it carries white type */
  --line: #c6d1c7;
  --line-soft: #d3dbd3;
  --green-faint: #9db59d;
  --shade: 11 19 13;         /* shadows and hairlines on light grounds, as r g b */

  --font-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);   /* 13–14 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);     /* 17–19 */
  --step-lead: clamp(1.25rem, 1rem + 1.1vw, 1.875rem);         /* 20–30 */
  --step-head: clamp(2.25rem, 1.3rem + 3vw, 4.25rem);          /* 36–68 */
  --step-display: clamp(3.25rem, 0.5rem + 6.2vw, 7rem);        /* 52–112 */

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --section: clamp(4.5rem, 2rem + 9vw, 10rem);
  --max: 1440px;             /* content width; the grounds still run edge to edge */

  /* corners nest: an inner corner is the outer one less the gap between them */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* GLG's palette, for case studies about GLG work (from GLG's brand system): black, Azure Blue as the
   accent on light grounds, Sky Blue on dark, Sea Glass, Parchment and Linen. Type stays the portfolio's. */
.theme-glg {
  --green: var(--glg-azure); /* Azure Blue */
  --green-deep: #1046b1;     /* Deep Navy, from GLG's blue ramp: blue text on paper */
  --green-light: #5798e1;    /* Sky Blue */
  --ground: #f5f4ef;         /* Linen */
  --mist: #e2decf;           /* Parchment */
  --ink: #000000;
  --ink-deep: #000000;
  --muted: #575757;          /* black at 66%, as GLG sets secondary text */
  --on-green-soft: #dfe2ff;
  --on-ink-soft: #a8a8a8;    /* white at 66% */
  --tone-1: #dbe7e8;         /* Sea Glass with white */
  --tone-2: #c8dbdc;
  --tone-3: #b6cfd0;         /* Sea Glass */
  --glow: 2 22 252;          /* Azure Blue */
  --glass: 0 0 0;
  --on-ink-body: #d6d6d6;
  --legacy: #8a8a8a;
  --legacy-deep: #5c5c5c;
  --line: #cfcbbd;
  --line-soft: #dcd9cf;
  --green-faint: #8d97f4;
  --shade: 0 0 0;
}

/* ---------- foundation ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
button, input { font: inherit; color: inherit; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--focus, var(--ink)); outline-offset: 3px; }
.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;
}

.wrap { padding-inline: var(--margin); max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: var(--section); }

/* grounds: each section paints its own field and hands its inks down */
.ground-green { background: var(--green); color: var(--on-green); --soft: var(--on-green-soft); --focus: var(--ink); }
.ground-paper { background: var(--ground); color: var(--ink); --soft: var(--green); --focus: var(--green); }
.ground-mist  { background: var(--mist); color: var(--ink); --soft: var(--green); --focus: var(--green); }
.ground-ink   { background: var(--ink); color: var(--paper); --soft: var(--green-light); --focus: var(--paper); }
.ground-leaf  { background: var(--tone-1); color: var(--ink); --soft: var(--green); --focus: var(--green); }
.ground-night { background: radial-gradient(50% 32% at 0% 60%, rgb(var(--glow) / 0.26), transparent 70%), var(--ink); color: var(--paper); --soft: var(--green-light); --focus: var(--paper); }

/* ---------- type ---------- */

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
  hyphens: none;
}
.h2 .soft { display: block; color: var(--soft); }
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-lead);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.statement { font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; }
.prose p { max-width: 72ch; }
.prose p + p { margin-top: 0.9em; }
.small { font-size: var(--step-small); line-height: 1.45; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
}
.link { text-decoration: underline; text-decoration-color: currentColor; }

/* ---------- top row ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 28px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.toplinks { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.toplinks a { font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; text-decoration: none; }
.hero .button { background: var(--paper); color: var(--ink); }

/* ---------- the opening: black, with a low green glow, like light off a console in a dark room ---------- */

.opening {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(50% 30% at 82% 24%, rgb(var(--glow) / 0.30), transparent 72%),
    radial-gradient(50% 32% at 0% 74%, rgb(var(--glow) / 0.30), transparent 70%),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 100%);
  color: var(--paper);
  --soft: var(--green-light);
  --focus: var(--paper);
}
/* a band of light sweeping across, and a fine grain so the glow reads as light, not a flat blend */
.opening::before,
.opening::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.opening::before {
  top: 14%;
  left: -25%;
  width: 150%;
  height: 26%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(var(--glow) / 0.14), transparent 72%);
  transform: rotate(-14deg);
  filter: blur(28px);
}
.opening::after {
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- hero: the title, and the live agent beside it ---------- */

.hero { padding-bottom: clamp(5rem, 3rem + 6vw, 9rem); }
.hero__stage { margin-top: clamp(2.5rem, 0.5rem + 4vw, 5rem); align-items: center; }
.hero__text { grid-column: 1 / span 5; }
/* Support AI: the opening is the hero alone, so the first screen ends where the hero does and the overview starts below it */
@media (min-width: 1101px) {
  /* a little short of the full screen, so the top of the overview shows and says there is more below */
  .hero--screen { --peek: clamp(5rem, 12svh, 8rem); display: flex; flex-direction: column; min-height: calc(100svh - var(--peek)); padding-bottom: 0; }
  /* the summary runs as wide as the title above it, rather than a narrow column of its own */
  .hero--screen .hero__text { width: max-content; max-width: 100%; }
  .hero--screen .hero-sub { width: 0; min-width: 100%; max-width: none; }
  .hero--screen > .wrap { width: 100%; }
  /* the title and agent sit in the middle of the screen, not of the hero: the bar above and the peek of overview below are weighed against each other */
  .hero--screen .hero__stage { flex: 1; align-content: center; margin-top: max(0px, calc(var(--peek) - 72px)); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-display);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-sub { max-width: 34ch; margin-top: 32px; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.45; }
.hero-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-small);
}
.hero-details .diamond { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* the live agent: a real interface fragment at one fixed size, so the conversation scrolls inside it and
   asking never moves the page. Its menu lists everything it can answer, grouped the way the page runs. */
[data-ui].sva {
  grid-column: 6 / span 7;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  /* tall enough to read an answer, short enough that the whole window shows on the first screen */
  height: clamp(480px, calc(100svh - 200px), 580px);
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  --focus: var(--green);
}
[data-ui] .sva__side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 10px;
  padding: 22px 20px 16px;
  background: var(--mist);
  border-radius: var(--r-md);
  overflow-y: auto;
  scrollbar-width: thin;
}
[data-ui] .sva__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
[data-ui] .sva__count { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
[data-ui] .sva__sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 2px; }
[data-ui] .sva__about { font-size: 14px; color: var(--muted); }
[data-ui] .sva__group { margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--muted); }
[data-ui] .sva__options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
[data-ui] .sva__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; }
[data-ui] .sva__link {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-deep);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: pointer;
}
[data-ui] .sva__foot[hidden], [data-ui] .sva__link[hidden], [data-ui] .sva__input[hidden] { display: none; }
/* the shipped agent's restrained presence: a small mark that breathes */
[data-ui] .sva__presence {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  outline: 4px solid var(--tone-2);
}
.sva__caption { grid-column: 6 / span 7; margin-top: 14px; font-family: var(--font-display); font-size: var(--step-small); color: var(--on-ink-body); }
[data-ui] .sva__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* messages stack up from the input, the way a real chat does */
[data-ui] .sva__log {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 26px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
}
/* until someone asks something, scrolling over the window scrolls the page; after that the conversation keeps its own scroll */
[data-ui].is-active .sva__log { overscroll-behavior: contain; }
[data-ui] .sva__log:focus-visible { outline-offset: -3px; }
[data-ui] .sva__log > * { flex: none; }
[data-ui] .sva__log > :first-child { margin-top: auto; }
/* the Support AI window is tall enough that a bottom-anchored greeting leaves the panel looking empty */
[data-ui].sva--top .sva__log > :first-child { margin-top: 0; }
[data-ui] .msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; }
[data-ui] .msg--agent { align-self: flex-start; background: var(--mist); border-bottom-left-radius: 4px; }
[data-ui] .msg--user { align-self: flex-end; background: var(--green); color: var(--paper); border-bottom-right-radius: 4px; }
[data-ui] .msg--wide { max-width: 92%; }
[data-ui] .msg a { color: var(--green-deep); font-weight: 600; }
[data-ui] .msg ul { display: grid; gap: 2px; margin-top: 6px; padding-left: 18px; list-style: disc; }
[data-ui] .msg ul.msg__links { padding-left: 0; list-style: none; }
/* what an answer can carry: a screen, the numbers, a participant's words, the presence settings */
[data-ui] .msg__media { margin-top: 10px; }
[data-ui] .msg__shot { display: block; width: min(300px, 100%); border-radius: 8px; }
[data-ui] .msg__shot--wide { width: 100%; }
[data-ui] .msg__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
[data-ui] .msg__pair { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: end; width: min(400px, 100%); }
[data-ui] .msg__strip img, [data-ui] .msg__pair img, [data-ui] .msg__lens { display: block; width: 100%; border-radius: 6px; }
[data-ui] .msg__lens { width: 112px; aspect-ratio: 540 / 630; background: url("../work/before.jpg") 98.64% 94.94% / 426.67% auto no-repeat var(--paper); }
[data-ui] .msg__strip figcaption, [data-ui] .msg__pair figcaption { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
[data-ui] .msg__stats { display: flex; flex-wrap: wrap; gap: 8px; }
[data-ui] .msg__stat { padding: 10px 14px 12px; border-radius: 12px; background: var(--paper); }
[data-ui] .msg__stat s { margin-right: 6px; font-size: 18px; color: var(--legacy); }
[data-ui] .msg__stat b { font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -0.03em; color: var(--green); }
[data-ui] .msg__what { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
[data-ui] .msg__quote { padding: 12px 14px; border-radius: 12px; background: var(--paper); }
[data-ui] .msg__quote p { font-family: var(--font-text); font-style: italic; font-size: 16px; line-height: 1.45; }
[data-ui] .msg__quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }
[data-ui] .msg__tracks {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  width: min(320px, 100%);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
}
[data-ui] .msg__track { position: relative; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--at), var(--line-soft) var(--at)); }
[data-ui] .msg__track::after { content: ""; position: absolute; top: 50%; left: var(--at); width: 12px; height: 12px; border-radius: 50%; background: var(--green); transform: translate(-50%, -50%); }
[data-ui] .msg__note { margin-top: 8px; font-size: 14px; color: var(--muted); }
[data-ui] .msg__foot { margin-top: 8px; font-size: 13px; color: var(--muted); }
[data-ui] .msg__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
[data-ui] .msg--typing { display: flex; gap: 4px; padding: 14px 16px; }
[data-ui] .msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.6; }
/* suggestions under the latest answer; each new turn replaces them */
[data-ui] .sva__next { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 92%; }
[data-ui] .sva__label { margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
[data-ui] .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--tone-1);
  color: var(--green-deep);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
[data-ui] .sva__side .chip { background: var(--paper); }
/* a topic already asked stays available, ticked off */
[data-ui] .chip.is-done { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
[data-ui] .chip.is-done::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
[data-ui] .sva__input { display: flex; gap: 8px; padding: 10px 14px 14px; }
[data-ui] .sva__input input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--mist);
}
[data-ui] .sva__input input::placeholder { color: var(--muted); }
[data-ui] .sva__input input:focus-visible { outline: 2px solid var(--green); outline-offset: 0; }
[data-ui] .sva__input button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--green);
  color: var(--paper);
  font-weight: 600;
  cursor: pointer;
}
[data-ui] .sva__input button:disabled { background: var(--green-faint); cursor: default; }

/* ---------- overview: title, note, facts row ---------- */

/* room above, so the title is not hard against the hero, and room below, so the floating index has ground to sit on */
.overview { padding-top: clamp(4rem, 2rem + 5vw, 7.5rem); padding-bottom: clamp(8rem, 5rem + 9vw, 15rem); }
.overview__title { grid-column: 1 / span 8; align-self: end; }
.overview__note { grid-column: 9 / span 4; align-self: end; max-width: 44ch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 40px 32px; margin-top: clamp(4rem, 2rem + 5vw, 7rem); }
.fact__value {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.fact__note { margin-top: 14px; font-size: var(--step-small); color: var(--on-green); max-width: 36ch; }

/* on a wide screen each value holds one line and the columns size to them, so "UX designer" never wraps */
@media (min-width: 1101px) {
  .facts { grid-template-columns: repeat(4, max-content); justify-content: space-between; }
  .fact__value { white-space: nowrap; }
}

/* ---------- the index: every section in reading order, floating at the top once scrolled past ---------- */

/* the bar sits over the foot of the opening and takes no room of its own: its margins cancel its height */
.index {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin: -92px 0 44px;
  padding-inline: var(--margin);
  pointer-events: none;
}
.index__inner {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 6px 6px 6px 22px;
  /* frosted glass: smoked enough to keep white text legible over the light sections it floats across */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)), rgb(var(--glass) / 0.93);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  color: var(--paper);
  --focus: var(--paper);
  border-radius: var(--r-pill);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.18),
    0 24px 56px -16px rgba(0, 0, 0, 0.5);
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
  transition: translate 320ms var(--ease-out);
}
.index__inner::-webkit-scrollbar { display: none; }
/* out of the way while reading down, back on the way up */
.index.is-tucked .index__inner { translate: 0 calc(-100% - 24px); }
.index__group { display: flex; flex: none; align-items: center; gap: 12px; }
.index__label { font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); color: rgba(255, 255, 255, 0.84); white-space: nowrap; }
.index__links { display: flex; gap: 6px; }
.index__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
}
.index__links a[aria-current="true"] { background: var(--paper); color: var(--ink); }
.index__links a:focus-visible { outline-offset: 1px; }

/* ---------- problem: what was broken, beside what we set out to do ---------- */

.problem__top { align-items: end; }
.problem__head { grid-column: 1 / span 6; }
.problem__head .statement { margin-top: 28px; }
.problem__photo { grid-column: 7 / span 6; }
.problem__photo img { width: 100%; background: var(--mist); border-radius: var(--r-md); }
.problem__photo figcaption, .row__figure figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }

/* the old agent stays neutral and the goals take the green, as the figures do in Impact */
.compare { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: 72px; }
.compare__card { padding: clamp(32px, 3.6vw, 52px); background: var(--paper); color: var(--ink); border-radius: var(--r-lg); }
.compare__card--goal { background: var(--tone-1); }
.compare__label { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.compare__card--goal .compare__label { color: var(--green); }
.compare__list { display: grid; gap: 24px; margin-top: 32px; }
.compare__list h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-body); letter-spacing: -0.01em; }
.compare__list p { margin-top: 4px; max-width: 56ch; }

/* ---------- solution: the film, then the three things it shows ---------- */

.solution { padding-block: var(--section) calc(var(--section) + 56px); }
.solution__top { align-items: end; }
.solution__title { grid-column: 1 / span 6; }
.solution__text { grid-column: 7 / span 6; }
.solution__text .statement { max-width: 46ch; }
.solution__more { margin-top: 16px; max-width: 60ch; }
.solution__scene { margin-top: clamp(3.5rem, 2rem + 3vw, 5.5rem); }
.solution__film { position: relative; }
.solution__photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 0;
  background: #1a221c;
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.solution__pause {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-small);
  cursor: pointer;
}
/* three glass cards that share their rows, so screens, titles and text line up across them */
.slips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  gap: 0 var(--gutter);
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}
.slip {
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  padding: 10px 10px 22px;
  /* frosted glass: a white sheen over what lies behind, blurred and drained of its colour */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08) 65%);
  -webkit-backdrop-filter: blur(24px) saturate(0.5);
  backdrop-filter: blur(24px) saturate(0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 28px 56px -28px rgba(0, 0, 0, 0.7);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--paper);
  --well: #ecebe7;
}
.slip--search { --well: #f3f2f1; }
/* laid down by hand rather than ruled: a slight tilt and a stagger, straightened under the pointer */
.slip { transform: translateY(var(--drop, 0)); transition: transform 500ms var(--ease-out); }
.slip:nth-child(1) { --drop: 24px; }
.slip:nth-child(2) { --drop: 0px; }
.slip:nth-child(3) { --drop: 56px; }
.slip h3 { margin-top: 24px; padding-inline: 20px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.2; letter-spacing: -0.015em; }
.slip > p { margin-top: 8px; padding-inline: 20px; font-size: 1.0625rem; color: var(--on-ink-body); }
.slip__shot { padding: 8px; background: var(--well); border-radius: var(--r-md); overflow: hidden; }
.slip__shot img { width: 100%; border-radius: 8px; }

/* fragments shown on the slips and in the design frame */
[data-ui].frag {
  min-height: 210px;
  padding: 16px;
  background: var(--mist);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  display: grid;
  gap: 10px;
  align-content: start;
}
[data-ui] .frag__bubble { max-width: 90%; padding: 9px 13px; border-radius: 14px; background: var(--paper); justify-self: start; border-bottom-left-radius: 4px; }
[data-ui] .frag__bubble--user { justify-self: end; background: var(--green); color: var(--paper); border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
[data-ui] .frag__source { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
[data-ui] .frag__source b { color: var(--green-deep); font-weight: 500; }
[data-ui] .frag__steps { list-style: decimal; padding-left: 1.2em; margin-top: 4px; }
[data-ui] .frag__row { display: flex; flex-wrap: wrap; gap: 6px; }
[data-ui] .frag__chip { padding: 5px 12px; border: 1px solid var(--green); border-radius: 999px; background: var(--paper); color: var(--green-deep); font-weight: 500; font-size: 14px; }
[data-ui] .frag__chip--plain { border-color: #b9c4b9; color: var(--ink); border-radius: 6px; }
[data-ui] .frag__status { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-weight: 500; }
[data-ui] .frag__avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
[data-ui] .frag__context { padding: 10px 12px; background: var(--paper); border-radius: 10px; }
[data-ui] .frag__context p { font-size: 13px; color: var(--muted); }
[data-ui] .frag__context ul { list-style: disc; padding-left: 1.1em; margin-top: 4px; }
[data-ui] .frag__search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--paper); border: 1px solid #b9c4b9; border-radius: 999px; }
[data-ui] .frag__search svg { flex: none; }
[data-ui] .frag__answer { padding: 12px 14px; background: var(--paper); border-radius: 10px; }
[data-ui] .frag__answer strong { display: block; font-size: 13px; color: var(--green-deep); font-weight: 500; margin-bottom: 4px; }
[data-ui] .frag__button { justify-self: start; padding: 8px 14px; border-radius: 8px; background: var(--green); color: var(--paper); font-weight: 500; }
[data-ui] .frag__links { display: grid; gap: 4px; }
[data-ui] .frag__links span { color: var(--green-deep); text-decoration: underline; text-underline-offset: 0.18em; }
[data-ui] .frag__bar { margin: -16px -16px 0; padding: 12px 16px; background: var(--ink); color: var(--paper); font-weight: 500; border-radius: 12px 12px 0 0; }
[data-ui] .frag__bar--legacy { background: #3b4650; }

/* ---------- entry points: four screens, one caption each ---------- */

.entries__head { align-items: end; }
.entries__head .h2 { grid-column: 1 / span 6; }
.entries__intro { grid-column: 7 / span 6; max-width: 60ch; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--gutter); margin-top: 64px; }
.tile img {
  width: 100%;
  aspect-ratio: 1712 / 961;
  object-fit: cover;
  background: var(--mist);
  border-radius: var(--r-lg);
  outline: 1px solid rgb(var(--shade) / 0.08);
  outline-offset: -1px;
}
.tile__strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 20px 2px 0; line-height: 1.45; color: var(--muted); }
.tile__strip b { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em; color: var(--ink); }

/* ---------- impact: the before and after ---------- */

.impact .grid { align-items: center; }
.impact__head { grid-column: 1 / span 5; }
.impact__head p { margin-top: 28px; max-width: 56ch; }
.impact__head .impact__caveat { color: var(--muted); }
/* a before and after, left to right: the old figure in grey, an arrow that goes the way the number went, the new figure in green */
.shifts { grid-column: 7 / span 6; display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.shift__nums {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.2rem + 1.2vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.25rem, 1rem + 5.5vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums lining-nums;
}
.shift__from { color: var(--legacy); }
.shift__to { color: var(--green); }
.shift__pct { margin-left: -0.5em; align-self: flex-start; margin-top: 0.12em; font-size: 0.4em; letter-spacing: 0; }
.shift__from + .shift__pct { color: var(--legacy); }
.shift__to + .shift__pct { color: var(--green); }
.shift__arrow { flex: none; width: 1.15em; height: auto; overflow: visible; fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.shift__label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-body); line-height: 1.3; }
.shift__chip { padding: 4px 12px; border-radius: var(--r-pill); background: var(--tone-1); color: var(--green-deep); font-size: var(--step-small); font-weight: 600; white-space: nowrap; }
.shift__sub { margin-top: 6px; font-size: var(--step-small); color: var(--muted); max-width: 48ch; }

/* ---------- discovery: rows for long copy ---------- */

.discovery__head { align-items: end; }
.discovery__head .h2 { grid-column: 1 / span 6; }
.discovery__head .statement { grid-column: 7 / span 6; }
.rows { display: grid; gap: clamp(3.5rem, 2rem + 4vw, 6.5rem); margin-top: clamp(4rem, 2rem + 6vw, 8rem); }
.row { align-items: start; }
.row__title { grid-column: 1 / span 4; }
.row__body { grid-column: 5 / span 8; }
.solve-list { display: grid; gap: 18px; max-width: 72ch; }
.row__figure { grid-column: 1 / -1; display: grid; gap: var(--gutter); margin-top: 48px; }
.row__figure a { display: block; border-radius: var(--r-lg); }
.row__figure img { width: 100%; background: var(--paper); border-radius: var(--r-lg); }
.solve-list strong { font-weight: 600; }
/* the three things the audit showed had to change, as three cards under their heading rather than a paragraph list */
.row--findings .row__title { grid-column: 1 / -1; }
.findings { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 24px; }
.finding { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 40px); background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgb(var(--shade) / 0.06), 0 10px 28px -12px rgb(var(--shade) / 0.18); }
.finding h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; color: var(--green-deep); text-wrap: balance; }
.finding p { max-width: 36ch; }

.audits .toggle { justify-self: start; margin-top: 0; background: var(--paper); }
/* the frame takes the height of whichever audit is showing, so the caption follows it */
.audits__frame { display: grid; }

/* ---------- the bar had moved: what each product taught, the principle first ---------- */

.bench__head { align-items: end; }
.bench__head .h2 { grid-column: 1 / span 6; }
.bench__intro { grid-column: 7 / span 6; max-width: 60ch; }
.principles { display: grid; gap: 10px; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.principle {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: baseline;
  padding: clamp(24px, 2.6vw, 36px) clamp(24px, 2.8vw, 40px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--r-lg);
  transition: background-color var(--t-hover) ease;
}
.principle__name {
  grid-column: 1 / span 5;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1rem + 1.8vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.principle__from { grid-column: 6 / span 2; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--green-light); }
.principle__from span { display: block; margin-top: 2px; font-weight: 500; font-size: var(--step-small); color: var(--on-ink-soft); }
.principle__text { grid-column: 8 / span 5; max-width: 52ch; color: var(--on-ink-body); }
.bench__foot { margin-top: 48px; align-items: start; }
.bench__count { grid-column: 1 / span 3; color: var(--on-ink-soft); }
.bench__foot .statement { grid-column: 4 / span 9; max-width: 52ch; }

/* ---------- research: quotes on paper slips, overlapping a little ---------- */

.research__head { align-items: end; }
.research__head .h2 { grid-column: 1 / span 6; }
.research__text { grid-column: 7 / span 5; }
.research__lede, .research__close { max-width: 52ch; }
.research__close { margin-top: 20px; }
/* two comparisons, ours in green and the other side in grey, so the result reads before the sentences do */
/* the two stats sit on the same columns as the heading and the text above them, and at about the heading's own size, so the figures support the title instead of outweighing it */
.versus { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.versus__item { display: grid; align-content: start; }
.versus__item:nth-child(1) { grid-column: 1 / span 6; }
.versus__item:nth-child(2) { grid-column: 7 / span 6; }
.versus__nums { display: flex; align-items: center; gap: clamp(0.4rem, 0.2rem + 1vw, 1.25rem); font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 1rem + 4.2vw, 5.25rem); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums lining-nums; }
.versus__ours { color: var(--green); }
.versus__other { color: var(--legacy); }
.versus__unit { align-self: flex-start; margin: 0.12em 0 0 -0.4em; font-size: 0.4em; letter-spacing: 0; }
.versus__ours + .versus__unit { color: var(--green); }
.versus__other + .versus__unit { color: var(--legacy); }
.versus__vs { align-self: center; font-family: var(--font-display); font-size: 0.26em; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.versus__item--time .versus__ours { color: var(--ink); }
.versus__item--time .versus__other { color: var(--green); }
.versus__item--time .versus__unit { align-self: flex-end; margin: 0 0 0.27em -0.12em; font-size: 0.42em; font-weight: 600; letter-spacing: -0.01em; }
.versus__item--time .versus__ours + .versus__unit { color: var(--ink); }
.versus__item--time .versus__other + .versus__unit { color: var(--green); }
/* two halves: what people liked (the rating and two quotes) and what they expected (the reply time and two quotes) */
.versus__item .quotes { margin: 44px 0 0; padding-inline: 0; max-width: none; }
.versus__item .quote-slip { flex: 0 1 290px; }
.versus__label { margin-top: 14px; font-size: var(--step-body); line-height: 1.4; max-width: 38ch; }
.research { padding-bottom: calc(var(--section) + 44px); }
.quotes {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: calc(var(--max) + 2 * var(--margin));
  margin: 88px auto 0;
  padding-inline: var(--margin);
}
.quote-slip {
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 40px 28px 30px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  /* on the light ground a soft shadow keeps each overlapping slip its own sheet */
  box-shadow: 0 1px 2px rgb(var(--shade) / 0.06), 0 16px 32px -16px rgb(var(--shade) / 0.22);
}
.quote-slip + .quote-slip { margin-left: -24px; }
.quote-slip:nth-child(1) { min-height: 260px; transform: rotate(-2.5deg); }
.quote-slip:nth-child(2) { min-height: 300px; transform: translateY(36px) rotate(1.5deg); background: var(--tone-1); }
.quote-slip:nth-child(3) { min-height: 280px; transform: translateY(8px) rotate(3deg); }
.quote-slip:nth-child(4) { min-height: 320px; transform: translateY(44px) rotate(-1.5deg); background: var(--tone-1); }
.quote-slip blockquote p { font-style: italic; line-height: 1.45; }
.quote-slip__who { font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); }

/* ---------- define: how present the agent should be ---------- */

.define {
  background:
    radial-gradient(45% 40% at 82% 18%, rgb(var(--glow) / 0.30), transparent 70%),
    radial-gradient(55% 35% at 15% 70%, rgb(var(--glow) / 0.12), transparent 70%),
    var(--ink);
}
/* Support AI: the glows stay in the header band, so the infographic below, which has its own gradient, sits on flat ink */
.define--flat-foot {
  background-image:
    radial-gradient(45% 40% at 82% 18%, rgb(var(--glow) / 0.30), transparent 70%),
    radial-gradient(55% 35% at 15% 70%, rgb(var(--glow) / 0.12), transparent 70%);
  background-color: var(--ink);
  background-size: 100% 900px;
  background-repeat: no-repeat;
}
.define .grid { align-items: start; }
.define__text { grid-column: 1 / span 6; }
.define__text .statement { margin-top: 28px; max-width: 42ch; }
/* Support AI: the two cases as two cards, a neutral one and a green one, with a small "vs" between them */
.define__lede { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.625rem); max-width: 46ch; }
.define__cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.define__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border-radius: 20px; border: 1px solid transparent; }
.define__card--plain { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.16); }
.define__card--green { background: color-mix(in srgb, var(--green) 18%, transparent); border-color: color-mix(in srgb, var(--green) 70%, transparent); }
.define__tag { padding: 3px 12px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); background: rgb(255 255 255 / 0.1); color: var(--paper); }
.define__card--green .define__tag { background: color-mix(in srgb, var(--green) 45%, transparent); }
.define__card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.15; letter-spacing: -0.02em; }
.define__card p { font-size: 1rem; line-height: 1.5; }
.define__vs { position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%; padding: 4px 12px; border-radius: var(--r-pill); background: var(--ink); border: 1px solid rgb(255 255 255 / 0.16); font-family: var(--font-display); font-weight: 500; font-size: var(--step-small); color: var(--on-ink-soft); }
.define__case .h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }
.define__case p { margin-top: 10px; }
.define__slipcol { grid-column: 8 / span 5; }

.spectrum {
  max-width: 480px;
  margin-left: auto;
  padding: 36px 32px 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
/* on a dark section the card is the same translucent surface as the cases beside it, with the page's light green for the marker and a tinted green band */
.spectrum--dark { background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.16); color: var(--paper); }
.spectrum--dark .spectrum__intro, .spectrum--dark .layer__ends { color: var(--on-ink-soft); }
.spectrum--dark .track__marker { background: var(--green-light); }
.spectrum--dark .spectrum__result { background: color-mix(in srgb, var(--green) 70%, transparent); margin-bottom: -1px; }
.spectrum__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; }
.spectrum__intro { margin-top: 8px; color: var(--muted); }
.layer { margin-top: 28px; }
.layer__name { font-family: var(--font-display); font-weight: 600; }
.track { position: relative; height: 18px; margin-top: 10px; }
.track svg { position: absolute; left: 0; right: 0; top: 5px; width: 100%; height: 8px; }
.track .track__done { clip-path: inset(0 calc(100% - var(--at)) 0 0); }
.track__marker {
  position: absolute;
  top: 0;
  left: calc(var(--at) - 9px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
}
.layer__ends { display: flex; justify-content: space-between; gap: 24px; margin-top: 8px; font-size: var(--step-small); color: var(--muted); }
.layer__ends span:last-child { text-align: right; }
.spectrum__result {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: 36px -32px 0;
  padding: 14px 32px;
  background: var(--green);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
}

.define__after { margin-top: clamp(4rem, 2rem + 6vw, 8rem); align-items: start; }
.define__infographic { grid-column: 1 / -1; }
.define__infographic a { display: block; border-radius: var(--r-lg); }
.define__infographic img { width: 100%; background: #1d261f; border-radius: var(--r-lg); }
.define__infographic figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--on-ink-soft); }
.define__close { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 24px; margin-top: 64px; align-items: start; }
.define__close .statement { grid-column: 1 / span 6; }
.define__close p:last-child { grid-column: 8 / span 5; max-width: 52ch; }
.define__close p.define__reason { grid-column: 1 / -1; max-width: none; }

/* ---------- implement: the final designs, one frame whose contents change ---------- */

.final__head { align-items: end; }
.final__head .h2 { grid-column: 1 / span 6; }
.final__intro { grid-column: 7 / span 6; max-width: 60ch; }
.final__intro p + p { margin-top: 16px; }
.final__controls .toggle { background: var(--paper); }
.final__media { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.final__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 20px; }
.final__controls .toggle { flex: none; margin-top: 0; }
.toggle { display: inline-flex; gap: 4px; margin-top: 36px; padding: 4px; background: var(--mist); border-radius: var(--r-pill); }
.toggle button {
  min-width: 104px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}
.toggle button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.final__caption { flex: 1 1 240px; min-height: 1.5em; color: var(--muted); max-width: 70ch; }
.final__frame {
  display: grid;
  padding: clamp(10px, 1.2vw, 16px);
  background: var(--mist);
  border-radius: var(--r-xl);
}
.final__panel { margin: 0; aspect-ratio: 16 / 9; }
.js .final__panel { grid-area: 1 / 1; }
.final__panel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: var(--r-md); }
.js .final__frame > [hidden] { display: none; }

/* ---------- define, continued: one frame that travels along the escalation flowchart, on light green ---------- */

.define__flowhead { align-items: end; }
/* it opens like every other band: the phase in green over the heading */
.define__subtitle { grid-column: 1 / span 6; }
.define__flowhead .statement { grid-column: 7 / span 6; }
.flow { margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
.flow__stage { background: var(--paper); border-radius: var(--r-xl); overflow: hidden; }
.flow__img { width: 100%; }
/* with script the chart keeps its own size and the frame moves over it */
.js .flow__stage { position: relative; height: clamp(380px, 58vw, 760px); }
.js .flow__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 6306px;
  max-width: none;
  transform-origin: 0 0;
  transform: translate(var(--x, 0px), var(--y, 0px)) scale(var(--s, 0.2));
}
.flow__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 20px; }
.flow__stops { margin-top: 0; background: var(--paper); }
.flow__stops button { min-width: 0; white-space: nowrap; }
.flow__open { font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); }
.flow__notes { display: grid; gap: 40px; margin-top: 40px; }
.flow__note { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.flow__note .h3 { grid-column: 1 / span 4; }
.flow__note p { grid-column: 5 / span 8; max-width: 72ch; }
.js .flow__notes { display: block; min-height: 5.5em; }
.js .flow__note[hidden] { display: none; }

/* ---------- onboarding: the pieces the Agentic Onboarding case study adds ---------- */

/* the hero: a longer headline under a small eyebrow, beside the guide */
.hero-eyebrow { font-family: var(--font-display); font-weight: 600; font-size: var(--step-body); color: var(--soft); }
/* sized to its column, so each line of the headline holds; it breaks only between its phrases */
.hero__text:has(.hero-title--long) { container-type: inline-size; }
.hero-title.hero-title--long { margin-top: 20px; font-size: var(--step-head); font-size: min(var(--step-head), 11cqi); line-height: 1; letter-spacing: -0.035em; }
.hero-title--long .line { white-space: normal; text-wrap: balance; }
.hero-title__keep { white-space: nowrap; }
/* the summary runs the full width of the title above it, not a narrow column of its own */
.hero__text:has(.hero-title--long) .hero-sub { max-width: none; }

/* the guide, dark: the same window, smoked glass over the opening instead of white card stock */
[data-ui].sva--dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)), rgba(10, 10, 14, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 32px 64px -28px rgba(0, 0, 0, 0.8);
  color: var(--paper);
  --mist: rgba(255, 255, 255, 0.07);
  --muted: #a8a8a8;
  --green-deep: var(--green-light);
  --tone-1: rgba(255, 255, 255, 0.1);
  --tone-2: color-mix(in srgb, var(--green-light) 32%, transparent);
  --line: rgba(255, 255, 255, 0.24);
  --focus: var(--green-light);
}
[data-ui].sva--dark .sva__side { background: rgba(255, 255, 255, 0.05); }
[data-ui].sva--dark .sva__side .chip { background: rgba(255, 255, 255, 0.09); }
[data-ui].sva--dark .chip { color: var(--paper); }
[data-ui].sva--dark .chip.is-done { color: var(--muted); }
[data-ui].sva--dark .chip.is-done::before { border-color: var(--green-light); }
[data-ui].sva--dark .sva__presence { background: var(--green-light); }
[data-ui].sva--dark .sva__input input { color: var(--paper); }
[data-ui].sva--dark .msg__tracks, [data-ui].sva--dark .msg__quote, [data-ui].sva--dark .msg__stat { background: rgba(255, 255, 255, 0.08); }
[data-ui].sva--dark .msg__track { background: linear-gradient(90deg, var(--paper) var(--at), rgba(255, 255, 255, 0.2) var(--at)); }
[data-ui].sva--dark .msg__track::after { background: var(--green-light); }
[data-ui].sva--dark .msg__shot, [data-ui].sva--dark .msg__strip img { background: var(--paper); }
/* a step shorter than the Support AI window */
[data-ui].sva.sva--compact { width: 100%; height: clamp(440px, calc(100svh - 240px), 520px); }
/* the menu takes half the window, so every topic and the way to a person show */
@media (min-width: 901px) {
  [data-ui].sva.sva--compact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  [data-ui].sva--compact .sva__side { padding-top: 18px; }
  [data-ui].sva--compact .sva__group { margin-top: 16px; }
}
/* on a smaller laptop the window takes its whole column, so the menu still fits without scrolling */
@media (min-width: 1101px) and (max-width: 1365px) { [data-ui].sva.sva--compact { width: 100%; } }

/* a placeholder still to fill before publishing: bracketed, dashed and hard to miss */
.todo {
  padding: 0 6px;
  border: 1.5px dashed currentColor;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9em;
  white-space: nowrap;
}

/* cards with a screen over a short note, on dark: Origins and Principles */
.changes { margin-top: clamp(3.5rem, 2rem + 3vw, 5.5rem); }
.changes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 40px; }
.change {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 500ms var(--ease-out), background-color var(--t-hover) ease;
}
/* every screen keeps its full width; the taller ones lose a little of their footer */
.change__shot { margin: 0; aspect-ratio: 1600 / 1138; background: var(--ground); overflow: hidden; }
.change__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.change__body { padding: 24px 24px 30px; }
.change__step { font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); color: var(--green-light); }
.change h3 { margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; }
.change p:last-child { margin-top: 8px; color: var(--on-ink-body); }
/* a dark inset panel on a light ground: ink with a corner of glow, handing down the dark inks */
.inset {
  padding: clamp(32px, 4.4vw, 72px);
  border-radius: var(--r-xl);
  background: radial-gradient(70% 90% at 100% 0%, rgb(var(--glow) / 0.42), transparent 70%), var(--ink);
  color: var(--paper);
  --soft: var(--green-light);
  --focus: var(--paper);
  --muted: var(--on-ink-soft);
}
.inset .changes__list, .inset__bridge { margin-top: clamp(2.5rem, 1.5rem + 2vw, 3.5rem); }
.inset__bridge { max-width: 52ch; }

/* the spectrum's three stops */
.layer__ends--three span:nth-child(2) { text-align: center; }

.solve-list + p { margin-top: 24px; }
.compare__today { margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); }

@media (max-width: 1100px) {
  [data-ui].sva.sva--compact { width: 100%; height: clamp(440px, 64svh, 500px); }
  .changes__list { grid-template-columns: 1fr; }
  .change { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  [data-ui].sva.sva--compact { height: auto; }
  [data-ui].sva--compact .sva__log { height: 340px; }
}

@media (max-width: 700px) {
  .change { display: flex; }
}

/* ---------- onboarding, the story and the work: what the restructured case study adds ---------- */


/* overview: one strip of labelled facts, each label over its value */
.overview.overview--strip { padding-top: 0; }
.facts.facts--strip { margin-top: 0; }
.facts--strip .fact__note { margin-top: 0; font-family: var(--font-display); font-weight: 600; color: var(--on-ink-soft); }
.facts--strip .fact__value { margin-top: 10px; font-size: var(--step-lead); }

/* problem: three decks of real screens, left to right: four pages, five pages, one conversation. Each deck
   fans its pages like a pile, so the count reads before any screen needs to */
.evo { margin-top: clamp(3.5rem, 2rem + 4vw, 6rem); }
.evo__stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px); }
.evo__stage { position: relative; }
/* the arrow from one stage to the next sits in the gap, level with the middle of the decks */
.evo__stage:not(:last-child) .evo__deck::after { content: "→"; position: absolute; top: 50%; right: calc(-1 * clamp(40px, 5vw, 80px)); width: clamp(40px, 5vw, 80px); translate: 0 -50%; text-align: center; font-family: var(--font-display); font-size: 1.5rem; color: var(--legacy-deep); }
.evo__deck { position: relative; aspect-ratio: 4 / 3; }
.evo__deck img { position: absolute; left: calc(var(--k) * 4%); top: calc(var(--k) * 5%); width: 80%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 0; background: var(--paper); border-radius: var(--r-sm); box-shadow: 0 1px 2px rgb(var(--shade) / 0.08), 0 8px 20px -10px rgb(var(--shade) / 0.3); z-index: calc(10 - var(--k)); }
.evo__stage--now .evo__deck img { left: 0; top: 8%; width: 100%; background: transparent; border-radius: var(--r-md); box-shadow: 0 1px 2px rgb(var(--shade) / 0.06), 0 24px 48px -20px rgb(var(--shade) / 0.35); }
.evo__when { margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); color: var(--muted); }
.evo__count { margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.evo__stage--now .evo__count, .evo__stage--now .evo__when { color: var(--green); }
.evo__note { margin-top: 6px; color: var(--muted); }
/* in Solution the progression sits on the dark ground, above the walkthrough */
.inset .evo { margin-top: clamp(2.5rem, 1.5rem + 2vw, 3.5rem); }
.solution .evo { margin: 0 0 clamp(4rem, 2rem + 5vw, 7rem); }
.solution .evo__when, .solution .evo__note, .solution .evo__caption { color: var(--on-ink-soft); }
.solution .evo__stage--now .evo__when, .solution .evo__stage--now .evo__count { color: var(--green-light); }
.solution .evo__stage:not(:last-child) .evo__deck::after, .solution .evo__stage:not(:last-child)::after { color: var(--on-ink-soft); }
.inset .evo__when, .inset .evo__note, .inset .evo__caption { color: var(--on-ink-soft); }
.inset .evo__stage--now .evo__when, .inset .evo__stage--now .evo__count { color: var(--green-light); }
.inset .evo__stage:not(:last-child) .evo__deck::after, .inset .evo__stage:not(:last-child)::after { color: var(--on-ink-soft); }
.evo__caption { max-width: 60ch; margin-top: clamp(2.5rem, 1.5rem + 2vw, 3.5rem); color: var(--muted); }
@media (max-width: 700px) {
  .evo__stages { grid-template-columns: 1fr; gap: 56px; }
  .evo__stage:not(:last-child)::after { content: "↓"; position: absolute; bottom: -46px; left: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--legacy-deep); }
  .evo__stage:not(:last-child) .evo__deck::after { display: none; }
  .evo__deck { width: 88%; }
}

/* solution: the clickable walkthrough, one screen at a time in a single frame */
/* sized so the screen and its controls fit in one view */
.proto { max-width: min(100%, calc((100svh - 220px) * 1600 / 1155)); margin-inline: auto; }
.proto__frame { overflow: hidden; background: transparent; border-radius: var(--r-xl); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.proto__steps { display: flex; gap: 8px; overflow-x: auto; }
.proto__step { flex: 0 0 80%; }
.proto__step img { width: 100%; }
.proto.is-live .proto__frame { cursor: pointer; }
.proto.is-live .proto__steps { display: grid; overflow: visible; }
.proto.is-live .proto__step { grid-area: 1 / 1; visibility: hidden; }
.proto.is-live .proto__step.is-on { visibility: visible; }
.proto__bar { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.proto__note { flex: 1; min-height: 3em; color: var(--on-ink-body); }
.proto__count { font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); color: var(--on-ink-soft); font-variant-numeric: tabular-nums; }
.proto__name { margin-inline: 6px 4px; font-family: var(--font-display); font-weight: 600; color: var(--paper); }
.proto__btn { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.125rem; cursor: pointer; transition: opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.proto__btn:disabled { opacity: 0.25; cursor: default; }
.proto__btn:active:not(:disabled) { transform: scale(0.97); }
.proto__btn[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .proto__step.is-on { animation: msg-in 320ms var(--ease-out) both; } }
.solution__caption { margin-top: 16px; max-width: 72ch; font-size: var(--step-small); color: var(--on-ink-soft); }

/* origins: the three screens and the flow, four across */
.changes__list--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.change--flow .change__shot { display: block; }
.change--flow .change__shot img { object-position: 0 50%; }

/* flow: one root, a trunk across, and a column for each path; the path shipping first is outlined */
.branch { margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
.branch__root { display: table; margin-inline: auto; padding: 10px 22px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 600; }
.branch__paths { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: 48px; }
.branch__paths::before, .branch__paths::after, .branch__path::before { content: ""; position: absolute; background: var(--ink); }
.branch__paths::before { left: calc((100% - 3 * var(--gutter)) / 8); right: calc((100% - 3 * var(--gutter)) / 8); top: -24px; height: 2px; }
.branch__paths::after { left: calc(50% - 1px); top: -48px; width: 2px; height: 24px; }
.branch__path::before { left: calc(50% - 1px); top: -24px; width: 2px; height: 24px; }
.branch__path { position: relative; padding: 20px 20px 24px; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); }
.branch__path--first { box-shadow: inset 0 0 0 2px var(--green); }
.branch__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-body); line-height: 1.25; }
.branch__tag { padding: 2px 10px; border-radius: var(--r-pill); background: var(--green); color: var(--paper); font-size: var(--step-small); }
.branch__steps { margin-top: 18px; }
.branch__steps li { position: relative; padding: 0 0 12px 22px; font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; line-height: 1.35; }
.branch__steps li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 10px; height: 10px; border-radius: 50%; background: var(--legacy-deep); }
.branch__steps li::after { content: ""; position: absolute; left: 4px; top: calc(0.4em + 12px); bottom: 2px; width: 2px; background: var(--line); }
.branch__steps li:last-child { padding-bottom: 0; }
.branch__steps li:last-child::after { display: none; }
.branch__path--first .branch__steps li::before { background: var(--green); }
.branch__fork { display: block; margin-top: 6px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--tone-1); color: var(--green-deep); font-size: var(--step-small); font-weight: 600; }
.branch__caption { margin-top: 28px; max-width: 72ch; }

/* decisions: one screen per card, then what I chose, what it cost and why */
.decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.decision { display: flex; flex-direction: column; padding: 10px 10px 28px; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgb(var(--shade) / 0.06), 0 10px 28px -12px rgb(var(--shade) / 0.18); }
.decision__shot { margin: 0; padding: 8px; background: var(--mist); border-radius: var(--r-md); overflow: hidden; }
.decision__shot img { width: 100%; aspect-ratio: 1440 / 1040; object-fit: cover; object-position: 50% 0; border-radius: var(--r-sm); }
.decision__title { margin-top: 24px; padding-inline: 18px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.decision__notes { display: grid; gap: 12px; margin-top: 18px; padding-inline: 18px; }
.decision__notes div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.decision__notes dt { font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); color: var(--green); }
.decision__notes dd { margin: 0; }
/* problem: three flaws, each on the legacy screen where it happened */
.decisions--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.decisions--three .decision__shot img { aspect-ratio: 16 / 10; object-position: 0 0; }
/* problem and decisions: no mat around the visuals; each sits straight in the card with a hairline edge */
.problem .decision__shot, #decisions .decision__shot { padding: 0; background: none; border-radius: var(--r-md); }
.problem .decision__shot img, #decisions .decision__shot img { border-radius: var(--r-md); outline: 1px solid rgb(var(--shade) / 0.1); outline-offset: -1px; }
#decisions .decision__shot--fit > img { inset: 0; width: 100%; height: 100%; }
#decisions .spectrum { outline: 1px solid rgb(var(--shade) / 0.1); outline-offset: -1px; }
#decisions .decision__shot--fit > img { border-radius: 0; outline: 0; }
#decisions .swap__now { background: none; box-shadow: inset 0 0 0 1.5px var(--green); }
.decision__text { margin-top: 10px; padding-inline: 18px; }
.decision--wide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); align-items: center; padding-bottom: 10px; }
.decision--wide .decision__shot { padding: clamp(16px, 2vw, 28px); }
.decision--wide .spectrum { margin-inline: auto; }
.decision--wide .decision__title { margin-top: 0; }

/* what changed along the way: the old version faded beside the new one, the reason under both */
.rethink { margin-top: clamp(4rem, 2rem + 5vw, 7rem); }
.rethink__list { display: grid; gap: 40px; margin-top: 28px; }
.rethink__item { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px clamp(16px, 2vw, 32px); }
.rethink__was, .rethink__now { padding: 20px 24px; border-radius: var(--r-lg); }
.rethink__was { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.rethink__now { background: var(--paper); box-shadow: 0 1px 2px rgb(var(--shade) / 0.06), 0 10px 28px -12px rgb(var(--shade) / 0.18); }
.rethink__label { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); }
.rethink__now .rethink__label { color: var(--green); }
.rethink__arrow { align-self: center; width: 40px; height: auto; overflow: visible; fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.rethink__why { grid-column: 1 / -1; max-width: 72ch; }
.rethink__why b { font-family: var(--font-display); font-weight: 600; }

/* process: the four stages on one line, numbered, then the notes under them */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gutter); margin-top: clamp(2.5rem, 1.5rem + 2vw, 3.5rem); counter-reset: stage; }
.timeline::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 2px; background: color-mix(in srgb, currentColor 24%, transparent); }
.timeline__stage { position: relative; padding-top: 44px; counter-increment: stage; }
.timeline__stage::before { content: counter(stage); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-light); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; }
.timeline__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.2; letter-spacing: -0.015em; }
.timeline__stage p, .inset__notes p { margin-top: 8px; max-width: 40ch; color: var(--on-ink-body); }
.inset__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gutter); margin-top: clamp(2.5rem, 1.5rem + 2vw, 3.5rem); padding-top: 28px; border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent); }

@media (max-width: 1100px) {
  .hero__text:has(.hero-title--long) .hero-sub { max-width: 52ch; }
  .changes__list--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .changes__list--four .change { display: flex; }
  .branch__paths { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
  .branch__paths::before, .branch__paths::after, .branch__path::before { display: none; }
  .timeline__stage p, .inset__notes p { max-width: none; }
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 13px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; }
  .timeline__stage { padding: 2px 0 0 48px; }
  .inset__notes { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) { .decisions--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 700px) {
  .inset { padding: 28px 20px; border-radius: var(--r-lg); }
  .decisions--three { grid-template-columns: 1fr; }
  .changes__list--four, .branch__paths, .decisions, .decision--wide { grid-template-columns: 1fr; }
  .decision--wide { padding-bottom: 28px; }
  .decision--wide .decision__title { margin-top: 14px; }
  .decision__notes div { grid-template-columns: 1fr; gap: 2px; }
  .rethink__item { grid-template-columns: 1fr; }
  .rethink__arrow { justify-self: center; width: 28px; rotate: 90deg; }
  .facts--strip .fact__value { font-size: var(--step-body); }
  /* eight links: tighter chips, and a group may wrap rather than run off the screen */
  .index--tight .index__group { flex: 0 1 auto; min-width: 0; }
  .index--tight .index__links { gap: 4px; }
  .index--tight .index__links a { padding: 0 8px; }
}

/* homepage: Agentic Onboarding plays its hi-fi Wanderer moment, a page of its own scaled to the card */
/* no white card behind it: the page shows through at the rounded corners, so the dark header has no light rim */
.home-project__shot.home-project__shot--live { aspect-ratio: 1440 / 1040; background: transparent; }
.home-project__shot--live iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent; pointer-events: none; }

/* ---------- onboarding, the reviewed pass: stacked section heads and the pieces that changed ---------- */

/* every section head: the label and headline together, any short intro directly below on the same edge */
.head-stack .statement { margin-top: 20px; max-width: 52ch; }

/* hero: the link to the walkthrough, and on a phone the role ahead of the guide */
.hero-link { margin-top: 24px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-body); }
.hero-link a { color: var(--soft); text-decoration-thickness: 1.5px; }
.hero-details.hero-details--phone { display: none; }
@media (max-width: 900px) {
  .hero-details.hero-details--phone { display: flex; }
}

/* solution: the review screen, with one callout in the margin beside it and a short leader to the entry */
.feature { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.feature__frame { position: relative; container-type: inline-size; }
.feature__frame img { width: 100%; border-radius: var(--r-xl); }
.feature__callout { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); }
.feature__pin { position: absolute; left: 0; top: 0; width: 34px; height: 34px; translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 3px var(--green-light), 0 0 0 7px color-mix(in srgb, var(--green-light) 25%, transparent); }
.feature__label { position: absolute; left: calc((100 - var(--x)) * 1cqi + 28px); top: 0; translate: 0 -50%; width: 200px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-body); line-height: 1.3; color: var(--paper); }
.feature__label::before { content: ""; position: absolute; right: calc(100% + 8px); top: 50%; width: calc((100 - var(--x)) * 1cqi + 20px - 17px); height: 2px; background: var(--green-light); }
@media (min-width: 1101px) { .feature__frame { width: calc(100% - 248px); } }
@media (max-width: 1100px) {
  /* narrower screens: the pin alone marks the entry, and the label sits under the screen */
  .feature__callout { position: static; }
  .feature__frame .feature__pin { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 26px; height: 26px; }
  .feature__label { position: static; display: block; width: auto; translate: none; margin-top: 14px; font-size: var(--step-small); color: var(--on-ink-soft); }
  .feature__label::before { display: none; }
}
.walk-title { max-width: min(100%, calc((100svh - 220px) * 1600 / 1155)); margin: clamp(4rem, 2rem + 5vw, 7rem) auto 20px; }

/* impact: two compact blocks and the measures on one line */
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 1.5rem + 2vw, 3.5rem); }
.result { padding: clamp(24px, 2.6vw, 36px); background: var(--paper); border-radius: var(--r-lg); }
.result__label { font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); color: var(--muted); }
.result__figure { margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(3.25rem, 1rem + 5.5vw, 6rem); line-height: 1; letter-spacing: -0.05em; color: var(--green); font-variant-numeric: tabular-nums lining-nums; }
.result__unit { margin-left: 0.04em; font-size: 0.5em; vertical-align: 0.6em; letter-spacing: 0; }
.result__text { margin-top: 12px; font-family: var(--font-display); font-weight: 600; }
.result__statement { margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; }
.result__measure { margin-top: 24px; color: var(--muted); }
.result__measure b { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); color: var(--ink); }

/* principles: one crop of the welcome screen, then the three points in a row */
.principles-shot { margin-top: clamp(2.5rem, 1.5rem + 2vw, 3.5rem); max-width: 820px; }
.principles-shot img { width: 100%; border-radius: var(--r-lg); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gutter); margin-top: 32px; }
.point__n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-light); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; }
.point__title { margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.2; letter-spacing: -0.015em; }
.point p { margin-top: 6px; max-width: 36ch; color: var(--on-ink-body); }

/* decisions: every visual sits in the same frame, the explanation directly under it */
.decision__shot.decision__shot--fit { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: clamp(14px, 1.6vw, 22px); }
.decision__shot--fit:has(> img) { position: relative; }
.decisions--three .decision__shot--fit > img { position: absolute; inset: clamp(14px, 1.6vw, 22px); width: calc(100% - 2 * clamp(14px, 1.6vw, 22px)); height: calc(100% - 2 * clamp(14px, 1.6vw, 22px)); aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.spectrum.spectrum--compact { width: 100%; max-width: none; margin: 0; padding: 22px 20px 0; }
.spectrum--compact .layer { margin-top: 0; }
.spectrum--compact .spectrum__result { margin: 22px -20px 0; padding: 12px 20px; min-height: 0; }
.swap { display: grid; gap: 8px; width: 100%; font-size: 1rem; line-height: 1.45; }
.swap__was, .swap__now { padding: 14px 16px; border-radius: var(--r-md); }
.swap__was { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.swap__now { background: var(--paper); }
.swap__label { display: block; margin-bottom: 2px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); }
.swap__now .swap__label { color: var(--green); }
.swap__arrow { justify-self: center; font-family: var(--font-display); color: var(--green); }

/* process: two examples side by side */
.inset__notes.inset__notes--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .decisions--three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .points, .inset__notes.inset__notes--two { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  html:has(.index--tight) { scroll-padding-top: 160px; }
  .decisions--three { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; }
  .feature__frame img { border-radius: var(--r-lg); }
}

/* ---------- footer: the postcard, following the page like any other section ---------- */

main { position: relative; z-index: 1; background: var(--ink); }
.footer { position: relative; padding-block: 96px 40px; }
@media (prefers-reduced-motion: reduce) { .index__inner { transition: none; } }
.curtain-cue { display: block; height: 0; }
.postcard {
  position: relative;
  grid-column: 2 / span 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 64px 64px 40px;
  background: var(--paper);
  color: var(--ink);
  --soft: var(--muted);
  --focus: var(--green);
  border-radius: var(--r-xl);
}
.postcard__sign { font-family: var(--font-display); font-weight: 600; font-size: var(--step-head); line-height: 1; letter-spacing: -0.035em; }
.postcard__msg p { margin-top: 20px; max-width: 36ch; }
.postcard__addr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; padding-top: 4px; }
.postcard__stamp { grid-column: 2; grid-row: 1; width: 104px; padding: 6px; background: var(--mist); border-radius: var(--r-md); }
.postcard__lines { grid-column: 1; grid-row: 1; }
.postcard__lines a { overflow-wrap: anywhere; }
.postcard__stamp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); }
.postcard__lines { display: grid; gap: 12px; font-size: var(--step-body); line-height: 1.3; }
.postcard__lines a { text-decoration: none; }
.postcard__imprint { grid-column: 1 / -1; text-align: center; font-size: var(--step-small); color: var(--muted); }
/* Support AI: the postcard without its card, set straight on the dark footer */
.postcard.postcard--bare { grid-column: 1 / -1; padding: 0; background: none; color: var(--paper); --soft: var(--on-ink-soft); --focus: var(--green-light); border-radius: 0; }
.postcard--bare { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(64px, 8vw, 120px); }
.postcard--bare .postcard__msg { grid-column: 1 / span 6; align-self: center; }
.postcard--bare .postcard__msg .postcard__lines { margin-top: 40px; }
/* the block is as wide as the heading; the intro fills that width and no more */
.postcard--bare .postcard__msg { width: fit-content; max-width: 100%; }
.postcard--bare .postcard__hello { display: flex; gap: 20px; align-items: center; margin-top: 28px; width: 0; min-width: 100%; }
.postcard--bare .postcard__hello p { flex: 1; min-width: 0; margin: 0; max-width: none; }
.postcard--bare .postcard__stamp { flex: none; width: 88px; background: rgb(255 255 255 / 0.08); }
.nextup { grid-column: 8 / -1; display: grid; gap: 14px; color: inherit; text-decoration: none; }
.nextup__frame { display: block; overflow: hidden; border-radius: var(--r-lg); background: transparent; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); }
/* the picture keeps its own shape, so a screen is shown whole rather than cropped to a fixed frame */
.nextup__frame img { width: 100%; height: auto; }
.nextup__title { margin-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.nextup__arrow { display: inline-block; color: var(--green-light); transition: transform 0.3s var(--ease-out); }
.nextup__sub { color: var(--on-ink-soft); }
.nextup:hover .nextup__frame, .nextup:focus-visible .nextup__frame { transform: translateY(-10px); box-shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.7); }
.nextup:hover .nextup__arrow, .nextup:focus-visible .nextup__arrow { transform: translateX(6px); }
.nextup:focus-visible { outline: 2px solid var(--green-light); outline-offset: 6px; border-radius: var(--r-lg); }
.postcard__foot { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; text-align: center; }
.postcard__top { font-size: var(--step-body); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color 0.2s; }
.postcard__top:hover, .postcard__top:focus-visible { text-decoration-color: currentColor; }
.postcard--bare .postcard__lines { display: grid; gap: 12px; }
.postcard--bare .postcard__imprint { color: var(--on-ink-soft); text-align: center; }
@media (prefers-reduced-motion: reduce) { .nextup__frame, .nextup__arrow { transition: none; } }
@media (max-width: 1100px) {
  .postcard--bare .postcard__msg, .nextup { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .postcard.postcard--bare { padding: 0; grid-template-columns: 1fr; gap: 56px; border-radius: 0; }
  .postcard--bare .postcard__stamp { width: 72px; }
  .postcard--bare .postcard__msg { width: auto; }
}
.credits { margin-top: 28px; max-width: 110ch; font-size: var(--step-small); color: var(--on-green); }
.credits a { color: inherit; }

/* ---------- feedback under the hand ---------- */

.button, .toggle button, [data-ui] .chip, [data-ui] .sva__input button, .solution__pause, .index__links a {
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active, .toggle button:active, [data-ui] .chip:active, [data-ui] .sva__input button:active, .solution__pause:active, .index__links a:active { transform: scale(0.97); }
.toplinks a, .wordmark, .postcard__lines a {
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-hover) ease;
}
.row__figure img, .define__infographic img, .tile img { transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--green-deep); }
  .hero .button:hover { background: var(--ink); color: var(--paper); }
  .solution__pause:hover { background: var(--paper); color: var(--ink); }
  .toggle button:hover:not([aria-selected="true"]) { background: var(--tone-2); }
  .toplinks a:hover, .wordmark:hover, .postcard__lines a:hover { text-decoration-color: currentColor; }
  [data-ui] .chip:hover { background: var(--green); color: var(--paper); }
  [data-ui] .chip.is-done:hover { background: var(--tone-1); color: var(--green-deep); }
  [data-ui] .sva__link:hover { color: var(--ink); }
  [data-ui] .sva__input button:hover:not(:disabled) { background: var(--green-deep); }
  .principle:hover { background: rgba(255, 255, 255, 0.09); }
  .row__figure a:hover img, .define__infographic a:hover img { transform: translateY(-4px); }
  .slip:hover { --tilt: 0deg; }
  .index__links a:hover:not([aria-current]) { background: rgba(255, 255, 255, 0.18); }
}

/* ---------- tablet ---------- */

@media (max-width: 1100px) {
  .hero__text, [data-ui].sva, .sva__caption { grid-column: 1 / -1; }
  [data-ui].sva { margin-top: 48px; height: clamp(480px, 70svh, 560px); }
  .hero-sub { max-width: 52ch; }
  .overview__title { grid-column: 1 / -1; }
  .overview__note { grid-column: 1 / span 8; margin-top: 20px; }
  .facts { flex-wrap: wrap; }
  .facts .fact { flex: 1 1 40%; }
  .problem__head { grid-column: 1 / -1; }
  .problem__photo { grid-column: 1 / -1; margin-top: 40px; }
  .prose p, .solve-list, .impact__head p, .bench__intro, .research__lede, .research__close, .define__case p, .overview__note { max-width: none; }
  .statement { max-width: 40ch; }
  .solution__title { grid-column: 1 / -1; }
  .solution__text { grid-column: 1 / -1; margin-top: 28px; }
  .solution__scene { margin-top: 56px; }
  .slips { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 16px; }
  .slip { grid-row: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 8px; padding: 10px; }
  .slip:nth-child(n) { --drop: 0px; --tilt: 0deg; }
  .slip:nth-child(odd) { --tilt: -0.6deg; }
  .slip:nth-child(even) { --tilt: 0.6deg; }
  .slip h3, .slip > p { grid-column: 2; }
  .slip h3 { margin-top: 22px; }
  .slip__shot { grid-column: 1; grid-row: 1 / span 2; }
  .entries__head .h2, .entries__intro { grid-column: 1 / -1; }
  .entries__intro { margin-top: 20px; }
  .define__close .statement, .define__close p:last-child, .define__close p.define__reason { grid-column: 1 / -1; }
  .impact__head, .shifts { grid-column: 1 / -1; }
  .shifts { margin-top: 56px; }
  .discovery__head .h2, .discovery__head .statement { grid-column: 1 / -1; }
  .discovery__head .statement { margin-top: 28px; }
  .row__title { grid-column: 1 / -1; }
  .row__body { grid-column: 1 / -1; margin-top: 16px; }
  .findings { grid-template-columns: 1fr; }
  .bench__head .h2, .bench__intro { grid-column: 1 / -1; }
  .bench__intro { margin-top: 20px; }
  .principle__name { grid-column: 1 / -1; }
  .principle__from { grid-column: 1 / span 4; margin-top: 16px; }
  .principle__text { grid-column: 5 / -1; margin-top: 16px; }
  .research__head .h2, .research__text { grid-column: 1 / -1; }
  .versus { row-gap: 56px; }
  .versus__item:nth-child(n) { grid-column: 1 / -1; }
  .research__text { margin-top: 24px; }
  .define__text, .define__slipcol, .define__close { grid-column: 1 / -1; }
  .define__slipcol { margin-top: 56px; }
  .spectrum { margin-left: 0; }
  .define__close { margin-top: 40px; }
  .final__head .h2, .final__intro { grid-column: 1 / -1; }
  .final__intro { margin-top: 24px; }
  .define__subtitle, .define__flowhead .statement { grid-column: 1 / -1; }
  .define__flowhead .statement { margin-top: 20px; }
  .flow__note .h3 { grid-column: 1 / -1; }
  .flow__note p { grid-column: 1 / -1; margin-top: 10px; max-width: none; }
  .flow__stops button { padding: 0 16px; }
  .postcard { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .index__label { display: none; }
  .index__inner { gap: 6px 14px; padding: 5px; }
  .index__links a { min-height: 32px; padding: 0 11px; font-size: 0.8125rem; }
  /* stacked, the menu sits above the conversation and the conversation keeps a fixed height */
  [data-ui].sva { grid-template-columns: 1fr; height: auto; }
  [data-ui] .sva__side { overflow: visible; }
  [data-ui] .sva__log { flex: none; height: 380px; }
}

/* pictures with a light edge sit on light grounds, so a very soft shadow lifts them off the page instead of letting them melt into it */
.problem__photo img,
.row__figure img,
.flow .flow__stage,
.tile img,
.final__frame {
  box-shadow: 0 1px 2px rgb(var(--shade) / 0.06), 0 10px 28px -12px rgb(var(--shade) / 0.18);
}


/* ---------- phone: its own composition ---------- */

@media (max-width: 700px) {
  html { scroll-padding-top: 124px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index__inner { flex-wrap: wrap; justify-content: center; border-radius: var(--r-lg); overflow: visible; }
  .index__group { flex-wrap: wrap; justify-content: center; }
  .index__links { flex-wrap: wrap; justify-content: center; }
  .toplinks { display: none; }
  .h2 .soft { display: inline; }
  .h2 .soft::after { content: "."; }
  .hero__stage { margin-top: 56px; }
  .hero-title { font-size: 15vw; }
  [data-ui].sva { margin-top: 40px; }
  [data-ui] .sva__log { padding: 20px 16px 10px; }
  [data-ui] .msg { max-width: 92%; }
  [data-ui] .msg__strip { grid-template-columns: 1fr 1fr; }

  .overview__title, .overview__note { grid-column: 1 / -1; }
  .overview__note { margin-top: 16px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; margin-top: 56px; }
  .fact__value { font-size: 1.75rem; }
  .hero-details__wide { display: none; }

  .problem__head, .problem__photo { grid-column: 1 / -1; }
  .problem__photo { margin-top: 40px; }
  .compare { grid-template-columns: 1fr; margin-top: 40px; }
  .compare__card { padding: 28px 24px; }

  .solution__scene { margin-top: 48px; }
  .solution__photo { border-radius: var(--r-lg); }
  .solution__pause { right: 12px; bottom: 12px; }
  .slip { grid-template-columns: 1fr; grid-template-rows: auto; padding: 8px 8px 22px; }
  .slip h3, .slip > p { grid-column: 1; padding-inline: 14px; }
  .slip__shot { grid-column: 1; grid-row: auto; }
  .define__cards { grid-template-columns: 1fr; margin-top: 40px; gap: 12px; }
  .define__vs { position: relative; left: auto; top: auto; translate: none; justify-self: center; margin-block: -22px; }

  .tiles { grid-template-columns: 1fr; }

  .shift__nums { font-size: 15vw; }
  .versus { margin-top: 40px; row-gap: 40px; }
  .versus__item:nth-child(n) { grid-column: 1 / -1; }
  .versus__nums { font-size: 15vw; }
  .versus__label { font-size: var(--step-small); }

  .quotes { display: grid; gap: 16px; padding-inline: var(--margin); margin-top: 48px; }
  .quote-slip, .quote-slip:nth-child(n) { min-height: 0; transform: none; }
  .quote-slip + .quote-slip { margin-left: 0; }
  .quote-slip:nth-child(odd) { transform: rotate(-1deg); }
  .quote-slip:nth-child(even) { transform: rotate(0.8deg); }

  .spectrum { padding: 28px 22px 0; }
  .spectrum__result { margin-inline: -22px; padding-inline: 22px; }
  .bench__count, .bench__foot .statement { grid-column: 1 / -1; }
  .bench__foot .statement { margin-top: 12px; }
  .principle__from, .principle__text { grid-column: 1 / -1; }
  .principle__text { margin-top: 10px; }

  .final__frame { padding: 8px; border-radius: var(--r-lg); }
  .final__panel img { border-radius: var(--r-md); }

  .js .flow__stage { height: 460px; }
  .flow__stage { border-radius: var(--r-lg); }
  .flow__bar { display: grid; justify-content: stretch; }
  .flow__stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r-lg); }
  .flow__stops button { min-height: 44px; padding: 0 6px; font-size: var(--step-small); }

  .footer { position: relative; padding-top: 72px; }
  .postcard { grid-template-columns: 1fr; gap: 32px; padding: 40px 22px 28px; border-radius: var(--r-lg); }
  .postcard__stamp { width: 76px; }
  .postcard__lines { font-size: var(--step-body); }
}

/* ---------- motion: entrances that always end in the finished state ---------- */

.hero-title .line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: block; }

/* rolling figures: the real number stays in the text for screen readers */
.roll__digits { display: inline-flex; font-variant-numeric: tabular-nums; line-height: 1; }
.roll__col { display: inline-block; height: 1em; overflow: clip; }
.roll__strip { display: block; transform: translateY(calc(var(--d) * -1em)); }
.roll__strip::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9"; display: block; white-space: pre; line-height: 1; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { transform: translateY(108%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 120ms); }
  .js [data-rise] { opacity: 0; translate: 0 18px; animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 380ms); }

  .js [data-reveal] { opacity: 0.25; translate: 0 26px; transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; translate: none; }

  /* slips are dealt onto the table rather than faded in */
  .js [data-reveal="deal"] { translate: 0 40px; rotate: -1.5deg; transition: opacity 600ms var(--ease-out), translate 1000ms var(--ease-expo), rotate 1000ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal="deal"].is-in { rotate: none; }

  /* photographs settle into their frames from a slight scale */
  .settle { overflow: hidden; }
  .js .settle[data-reveal] img { scale: 1.06; transition: scale 1500ms var(--ease-soft); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .settle[data-reveal].is-in img { scale: none; }

  /* the spectrum fills to where the team landed, one layer after another */
  .js [data-reveal="fill"] .track__done { clip-path: inset(0 100% 0 0); transition: clip-path 1200ms var(--ease-expo); }
  .js [data-reveal="fill"] .layer:nth-of-type(2) .track__done { transition-delay: 140ms; }
  .js [data-reveal="fill"] .layer:nth-of-type(3) .track__done { transition-delay: 280ms; }
  .js [data-reveal="fill"].is-in .track__done { clip-path: inset(0 calc(100% - var(--at)) 0 0); }
  .js [data-reveal="fill"] .track__marker { opacity: 0; scale: 0.4; transition: opacity 300ms ease, scale 500ms var(--ease-out); transition-delay: 900ms; }
  .js [data-reveal="fill"].is-in .track__marker { opacity: 1; scale: none; }

  .js .shift__arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .shift.is-in .shift__arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset 800ms var(--ease-out) 600ms; }
  .js .shift.is-in .shift__arrow path + path { transition-delay: 1200ms; transition-duration: 300ms; }
  .roll:not(.is-in) .roll__strip { transform: none; }
  .roll.is-in .roll__strip { transition: transform 1100ms var(--ease-expo) calc(var(--i) * 70ms); }

  [data-ui] .msg { animation: msg-in 320ms var(--ease-out) both; }
  [data-ui] .sva__presence { animation: breathe 3.2s var(--ease-in-out) infinite; }
  [data-ui] .msg--typing span { animation: typing 1s ease-in-out infinite; }
  [data-ui] .msg--typing span:nth-child(2) { animation-delay: 0.15s; }
  [data-ui] .msg--typing span:nth-child(3) { animation-delay: 0.3s; }
  .opening::before { animation: sweep 26s var(--ease-in-out) infinite alternate; }
  .final__panel:not([hidden]) { animation: msg-in 420ms var(--ease-out) both; }
  .flow.is-ready .flow__img { transition: transform 1100ms var(--ease-expo); }
  .flow__note:not([hidden]) { animation: msg-in 420ms var(--ease-out) both; }
}

@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; translate: none; } }
@keyframes msg-in { from { opacity: 0; translate: 0 8px; } }
@keyframes breathe { 50% { scale: 1.2; } }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; translate: 0; } 30% { opacity: 1; translate: 0 -3px; } }
@keyframes sweep { to { transform: translate(6%, 8%) rotate(-8deg); } }

/* ---------- lightbox: the audits and the presence infographic, opened full size ---------- */
.lightbox:not([open]) { display: none; }
.lightbox[open] { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 32px; border: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: rgba(8, 10, 9, 0.88); }
.lightbox::backdrop { background: rgba(8, 10, 9, 0.88); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); width: auto; border-radius: var(--r-md); background: var(--paper); }
.lightbox__close { position: absolute; top: 20px; right: 20px; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); cursor: pointer; }
@media (max-width: 700px) { .lightbox { padding: 16px; } .lightbox img { max-height: calc(100vh - 96px); } }

/* ==========================================================================================
   homepage: the root index.html only. Everything below is scoped to .theme-home or to home-*
   classes, so neither case study changes.
   ========================================================================================== */

/* a neutral theme, so neither project's colour owns the site: ink and paper grounds, plain greys.
   The project colours appear only as each work item's mark, from --xbox-green and --glg-azure. */
.theme-home {
  --ink: #0e0e0e;
  --ink-deep: #050505;
  --ground: #f4f4f2;         /* the light ground */
  --mist: #e8e8e5;
  --muted: #575757;          /* 6.6:1 on the ground, 5.9:1 on mist */
  --on-ink-body: #d6d6d6;    /* 13.3:1 on ink */
  --on-ink-soft: #a8a8a8;    /* 8.1:1 on ink */
  --green-light: #9c9c9c;    /* section names on dark, 7.0:1 */
  --green: #575757;          /* section names and focus on light */
  --green-deep: #2e2e2e;
  --on-green-soft: #e6e6e6;
  --tone-1: #ececea;
  --tone-2: #dededb;
  --tone-3: #cfcfcc;
  --line: #cfcfcc;
  --line-soft: #dededb;
  --legacy: #8a8a8a;
  --legacy-deep: #5c5c5c;
  --green-faint: #a8a8a8;
  --glow: 130 130 130;       /* a grey haze in the opening, not a colour */
  --glass: 14 14 14;
  --shade: 0 0 0;
}

/* opening: the title runs the width of the page; the facts sit under it */
.home-hero .hero__text { grid-column: 1 / -1; }
.home-title { font-size: clamp(2.5rem, 0.6rem + 4.9vw, 5rem); line-height: 0.98; }
.home-title .line { white-space: normal; text-wrap: balance; }
.home-hero .hero-sub { max-width: 62ch; }
.home-facts { padding-bottom: clamp(4.5rem, 2rem + 6vw, 8rem); }

/* selected work: the two written-up projects large, each a picture with its words beside it; the two to come smaller, side by side */
.home-head { align-items: end; }
.home-head .h2 { grid-column: 1 / span 7; }
.home-work__list { display: grid; gap: clamp(4rem, 2rem + 5vw, 8rem); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.home-project--xbox { --field: var(--xbox-green); }
.home-project--glg { --field: var(--glg-azure); }
.home-project { display: block; color: inherit; text-decoration: none; }
.home-project--lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.home-project--lead .home-project__shot { grid-column: 1 / span 8; }
.home-project--lead .home-project__text { grid-column: 9 / span 4; }
.home-project--flip .home-project__shot { grid-column: 5 / span 8; grid-row: 1; }
.home-project--flip .home-project__text { grid-column: 1 / span 4; grid-row: 1; }
/* each picture keeps its own shape, so nothing of the screen is cropped away */
.home-project__shot { margin: 0; overflow: hidden; background: var(--paper); border-radius: var(--r-lg); }
.home-project__shot { transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out); }
.home-project__shot img, .home-project__shot video { display: block; width: 100%; height: auto; }
.home-project[hidden] { display: none; }
.home-project__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.home-project--lead .home-project__title { font-size: clamp(1.75rem, 1rem + 1.8vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; }
/* each outcome runs the whole text column, so it holds to two lines */
.home-project__out { margin-top: 10px; color: var(--on-ink-body); }
/* on a smaller laptop the text takes one more column from the picture, so the outcome still holds to two lines */
@media (min-width: 1101px) and (max-width: 1365px) {
  .home-project--lead .home-project__shot { grid-column: 1 / span 7; }
  .home-project--lead .home-project__text { grid-column: 8 / span 5; }
  .home-project--flip .home-project__shot { grid-column: 6 / span 7; }
  .home-project--flip .home-project__text { grid-column: 1 / span 5; }
}
.home-project__meta { margin-top: 16px; font-family: var(--font-display); font-weight: 500; font-size: var(--step-small); color: var(--on-ink-soft); }
.home-dot { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--field); vertical-align: 0.05em; }
.home-soon { display: inline-block; }
.home-project__go { display: inline-block; margin-top: 28px; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
.home-project__arrow { display: inline-block; transition: transform 300ms var(--ease-out); }
.home-project:focus-visible { outline-offset: 8px; border-radius: var(--r-lg); }
.home-work__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 2rem + 2vw, 4rem) var(--gutter); }
.home-project--soon .home-project__title { margin-top: 24px; }
.home-soon { padding: 3px 12px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.1); color: var(--paper); font-weight: 600; }
/* personalized invites has no screen to show yet, so a drawn fragment of an invite stands in */
.home-project__shot--ui { display: grid; place-items: center; aspect-ratio: 1920 / 1072; padding: clamp(16px, 3vw, 40px); background: var(--tone-2); }
.home-project__shot--ui [data-ui].frag { width: min(100%, 400px); min-height: 0; background: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  /* the whole frame lifts, so a screen that runs edge to edge is never cropped by a zoom */
  a.home-project:hover .home-project__shot { transform: translateY(-10px); box-shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.7); }
  a.home-project:hover .home-project__go { text-decoration-color: currentColor; }
  a.home-project:hover .home-project__arrow { transform: translateX(6px); }
}

/* experience: the heading and the résumé on the left, the roles on the right, set apart by space alone */
.home-exp__head { grid-column: 1 / span 5; }
.home-exp__head .button { margin-top: 36px; }
.home-exp__list { grid-column: 7 / span 6; display: grid; gap: 36px; }
.home-exp__row { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 24px; align-items: baseline; }
.home-exp__years { font-family: var(--font-display); font-weight: 500; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.home-exp__role { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.2; letter-spacing: -0.015em; }
.home-exp__org { margin-top: 2px; }
/* about: tiles on the dark ground, on the page's twelve columns. The portrait tall on the left and the live
   New York clock bottom right stay put; a switch swaps the two tiles between them, how I work and who I am.
   Each side is a subgrid across the whole grid, so its tiles sit on the same lines as the photo and clock. */
.home-switch { margin-top: 32px; background: rgb(255 255 255 / 0.08); }
.home-switch[hidden] { display: none; }
.home-switch button { color: var(--paper); }
.home-switch button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.home-about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(2.5rem, 1.5rem + 2.5vw, 4rem);
}
.home-about__side { grid-column: 1 / -1; grid-row: 1 / span 2; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; pointer-events: none; }
.home-about__side > * { pointer-events: auto; }
/* without script both sides show, the second under the first. Once the switch is live both sides share the same
   rows, and the one not chosen is invisible but keeps its size, so the section never changes height on a switch */
.home-about__side--me { grid-row: 3 / span 2; }
.home-switch:not([hidden]) + .home-about .home-about__side--me { grid-row: 1 / span 2; }
.home-about__side[hidden] { display: grid; visibility: hidden; }
.home-tile { display: flex; flex-direction: column; margin: 0; padding: clamp(22px, 2.2vw, 32px); background: rgb(255 255 255 / 0.06); border-radius: var(--r-lg); }
.home-tile--photo { grid-column: 1 / span 4; grid-row: 1 / span 2; padding: 10px 10px 20px; }
.home-tile--top { grid-column: 5 / span 8; grid-row: 1; }
.home-tile--side { grid-column: 5 / span 5; grid-row: 2; }
.home-tile--clock { grid-column: 10 / span 3; grid-row: 2; justify-content: space-between; gap: 32px; }
/* who I am: two pictures, each a small portrait with its caption beside it */
.home-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.home-pic { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 20px; align-items: end; margin: 0; }
.home-pic__img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-md); background: var(--paper); }
.home-pic__img img { width: 100%; height: 100%; object-fit: cover; }
/* held open until the photo arrives */
.home-pic__img--todo { display: grid; place-items: center; padding: 12px; background: rgb(255 255 255 / 0.05); color: var(--on-ink-soft); }
.home-pic__img--todo .todo { white-space: normal; text-align: center; font-size: var(--step-small); }
.home-into { justify-content: space-between; gap: 28px; }
.home-song { display: flex; gap: 16px; align-items: center; }
.home-song img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); }
.home-song .home-tile__value { margin-top: 4px; }
.home-song .link { display: inline-block; margin-top: 4px; }
.home-tile__img { flex: 1; min-height: 320px; overflow: hidden; border-radius: var(--r-md); background: var(--paper); }
.home-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.home-tile--photo figcaption { padding: 16px 12px 0; }
.home-tile__label { font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); color: var(--on-ink-soft); }
.home-tile__list { display: grid; gap: 10px; margin-top: 18px; }
.home-tile__list li { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.35; }
.home-tile__value { margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; }
.home-tile__note { margin-top: 2px; font-size: var(--step-small); color: var(--on-ink-body); }
.home-clock { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.25rem, 1.4rem + 1.6vw, 3.25rem); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the close: the postcard without its next-up card; the ways to write sit large on the right instead */
/* the name returns at full width to close the page, as the warm homepage did */
.home-contact__name { grid-column: 1 / -1; justify-self: center; padding: 0.06em 0.02em; margin-block: -0.06em; font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 17.8vw, 16rem); line-height: 0.85; min-width: 0; letter-spacing: -0.055em; white-space: nowrap; text-align: center; color: var(--paper); }
/* the sign-off is short, so the hello under it takes the column rather than the heading's width */
.postcard--bare .home-contact__msg { width: auto; }
.home-contact__msg .postcard__hello p { max-width: 36ch; }
/* the ways to reach me, as three rows on a tone step: each says where it goes, and its arrow slides under the hand */
.home-links { grid-column: 7 / -1; grid-row: 1; align-self: center; display: grid; gap: 8px; }
.home-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--r-md); background: rgb(255 255 255 / 0.06); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.015em; transition: background-color var(--t-hover) ease; }
.home-links small { display: block; margin-top: 2px; font-weight: 500; font-size: var(--step-small); letter-spacing: 0; color: var(--on-ink-soft); overflow-wrap: anywhere; }
.home-links__arrow { flex: none; transition: transform 300ms var(--ease-out); }
.home-links a:focus-visible { outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .home-links a:hover { background: rgb(255 255 255 / 0.12); }
  .home-links a:hover .home-links__arrow { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) { .home-links a, .home-links__arrow { transition: none; } }

@media (max-width: 1100px) {
  .home-head .h2 { grid-column: 1 / -1; }
  .home-project--lead .home-project__shot, .home-project--lead .home-project__text,
  .home-project--flip .home-project__shot, .home-project--flip .home-project__text { grid-column: 1 / -1; grid-row: auto; }
  .home-project--lead .home-project__text { margin-top: 24px; }
  .home-project--lead .home-project__out { max-width: 46ch; }
  .home-exp__head, .home-exp__list { grid-column: 1 / -1; }
  .home-exp__list { margin-top: 48px; }
  .home-tile--photo { grid-column: 1 / span 6; grid-row: 1; }
  .home-tile--top { grid-column: 7 / span 6; grid-row: 1; }
  .home-tile--side { grid-column: 1 / span 8; grid-row: 2; }
  .home-tile--clock { grid-column: 9 / span 4; grid-row: 2; }
  .home-pics { grid-template-columns: 1fr; }
  .home-links { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 700px) {
  .home-title { font-size: clamp(2.25rem, 10.5vw, 3rem); }
  .home-work__pair { grid-template-columns: 1fr; }
  .home-exp__row { grid-template-columns: 1fr; }
  .home-about { gap: 10px; }
  .home-tile--photo { grid-column: 1 / span 6; grid-row: 1; }
  .home-tile--clock { grid-column: 7 / span 6; grid-row: 1; }
  .home-about__side { grid-row: 2 / span 2; }
  .home-about__side--me { grid-row: 4 / span 2; }
  .home-switch:not([hidden]) + .home-about .home-about__side--me { grid-row: 2 / span 2; }
  .home-tile--top { grid-column: 1 / -1; grid-row: 1; }
  .home-tile--side { grid-column: 1 / -1; grid-row: 2; }
  .home-pics { grid-template-columns: 1fr 1fr; gap: 12px; }
  .home-pic { grid-template-columns: 1fr; gap: 12px; align-items: start; align-content: start; }
  .home-clock { font-size: 1.75rem; }
  .home-tile__img { min-height: 0; aspect-ratio: 1; flex: none; }
  .home-tile--photo { padding: 8px 8px 16px; }
  .home-tile--photo figcaption { padding: 12px 6px 0; }
  .home-tile { padding: 18px; }
  .home-tile--clock { gap: 20px; }
  .home-links a { padding: 16px 18px; font-size: var(--step-body); }
}

@media (prefers-reduced-motion: reduce) { .home-project__shot, .home-project__arrow { transition: none; } }

/* about switch: feedback under the hand, and the side that comes in rises into place */
@media (hover: hover) and (pointer: fine) {
  .home-switch button:hover:not([aria-selected="true"]) { background: rgb(255 255 255 / 0.14); }
}
@media (prefers-reduced-motion: no-preference) {
  .home-about__side:not([hidden]) > * { animation: msg-in 420ms var(--ease-out) both; }
  .home-about__side:not([hidden]) > * + * { animation-delay: 70ms; }
}

/* ==========================================================================================
   subscription management case study: the opening, the headline beside the shipped screen
   ========================================================================================== */
.hero__stage--shot { align-items: center; }
.hero__shot { grid-column: 6 / span 7; margin: 0; }
.hero__shot img { width: 100%; background: var(--paper); border-radius: var(--r-lg); }
.hero__shot figcaption { margin-top: 12px; font-family: var(--font-display); font-size: var(--step-small); color: var(--on-ink-body); }
@media (max-width: 1100px) {
  .hero__shot { grid-column: 1 / -1; margin-top: 48px; }
}
/* the goal, as one large statement under the problem rather than a second card */
.sub-goal { grid-column: 1 / -1; margin-top: clamp(4rem, 2rem + 5vw, 7rem); align-items: baseline; }
.sub-goal__label { grid-column: 1 / span 4; color: var(--soft); }
.sub-goal__text { grid-column: 5 / span 8; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1rem + 1.9vw, 2.75rem); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; max-width: 26ch; }
@media (max-width: 1100px) {
  .sub-goal__label, .sub-goal__text { grid-column: 1 / -1; }
  .sub-goal__text { margin-top: 12px; }
}
/* research findings: the share of services leads, large and green; the title sits small above it */
.finding.sub-stat { gap: 6px; }
.finding.sub-stat h4 { font-size: var(--step-body); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.sub-stat__num { margin-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: clamp(3.25rem, 2rem + 3.4vw, 5rem); line-height: 1; letter-spacing: -0.05em; color: var(--green); font-variant-numeric: tabular-nums lining-nums; }
.sub-stat__num span { margin-left: 0.04em; font-size: 0.45em; vertical-align: 0.95em; letter-spacing: 0; }
/* lessons: short lines, so the rows sit closer together */
.rows.rows--tight { gap: clamp(1.75rem, 1rem + 1.6vw, 2.75rem); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
/* the note under the overview facts: why design and release are sixteen months apart */
.sub-note { margin-top: 32px; font-size: var(--step-small); color: var(--on-ink-body); }
.sub-note { max-width: calc(var(--max) + 2 * var(--margin)); }
/* solution cards with a title and a sentence only: the sentence takes the right half */
.principle--two .principle__text { grid-column: 7 / span 6; }
@media (max-width: 1100px) { .principle--two .principle__text { grid-column: 1 / -1; margin-top: 12px; } }
/* impact: the figure and its sentence read as one line; the second point is a plain heading and its text */
.sub-impact { grid-column: 7 / span 6; display: grid; gap: clamp(2.5rem, 1.5rem + 2.5vw, 4rem); }
.sub-impact__line { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.sub-impact__num { display: block; margin-bottom: 8px; font-size: clamp(4rem, 2rem + 5.5vw, 7.5rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--green); font-variant-numeric: tabular-nums lining-nums; }
.sub-impact__body { margin-top: 12px; max-width: 46ch; }
@media (max-width: 1100px) { .sub-impact { grid-column: 1 / -1; margin-top: 56px; } }

/* competitive analysis, rebuilt from the original image as a real table: the logos and reference screens are
   cut from the original, the text is live so it stays sharp at any size */
.ca { padding: clamp(24px, 3.4vw, 56px); border-radius: var(--r-lg); color: #fff; font-family: var(--font-display);
  background:
    radial-gradient(55% 40% at 0% 100%, rgba(120, 140, 175, 0.32), transparent 70%),
    radial-gradient(45% 35% at 100% 0%, rgba(255, 255, 255, 0.07), transparent 70%),
    linear-gradient(180deg, #05070a, #090c11); }
.row__figure .ca img { width: auto; background: none; border-radius: 0; box-shadow: none; transition: none; }
.ca__title { font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); letter-spacing: -0.01em; }
.ca__list { margin-top: 6px; font-size: 0.8125rem; line-height: 1.5; color: #a9afb5; }
.ca__card { margin-top: clamp(24px, 3vw, 40px); padding: clamp(18px, 3vw, 44px) clamp(18px, 3.6vw, 56px); border-radius: var(--r-lg);
  background: radial-gradient(70% 55% at 0% 0%, rgba(38, 92, 86, 0.55), transparent 72%), #121417; }
.ca__scroll { overflow-x: auto; scrollbar-width: thin; }
.ca__table { width: 100%; min-width: 900px; border-collapse: collapse; }
.ca__table th, .ca__table td { padding: 18px 14px 18px 0; text-align: left; vertical-align: middle; font-weight: 400; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.ca__table thead th { padding-top: 0; font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: #dde1e4; border-bottom-color: rgba(255, 255, 255, 0.16); }
.ca__table th:nth-child(1) { width: 26%; }
.ca__table th:nth-child(2) { width: 33%; }
.ca__table th:nth-child(3) { width: 12%; }
.ca__mark { display: inline-block; padding-left: 12px; border-left: 2px solid #fff; }
.ca__feature { display: block; font-weight: 500; font-size: 1rem; line-height: 1.3; color: #fff; }
.ca__desc { display: block; margin-top: 4px; font-size: 0.75rem; line-height: 1.45; color: #9fa7ad; }
.ca__logos { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.ca__logos li { display: grid; justify-items: center; gap: 5px; }
.row__figure .ca .ca__logos img { width: 34px; height: 34px; border-radius: 50%; }
.ca__more { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); font-size: 0.75rem; color: #e6e6e6; }
.ca__cap { font-size: 0.625rem; color: #9fa7ad; white-space: nowrap; }
.ca__pct { font-weight: 300; font-size: clamp(1.5rem, 1rem + 1vw, 2rem); letter-spacing: -0.01em; color: #fff; font-variant-numeric: tabular-nums; }
.ca__refs { display: flex; gap: 8px; }
.row__figure .ca .ca__refs img { height: 46px; border-radius: 4px; }
.ca__favs { display: grid; grid-template-columns: 26% repeat(3, minmax(0, 1fr)); min-width: 900px; }
.ca__favs > p { padding: 22px 14px 22px 0; font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: #dde1e4; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.ca__pick { padding: 22px 18px 4px 0; }
.ca__pick:first-of-type { padding-left: 4px; }
.ca__pick-title { font-weight: 500; font-size: 0.9375rem; color: #fff; }
/* the table scrolls inside its card on narrow screens; the figure itself never grows past the column */
.row__figure.ca-figure { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.ca, .ca__card { min-width: 0; }

/* before and after user flows, drawn as diagrams: the real Xbox screens with their captions, the systems behind
   them as dashed boxes, and the lines between. The canvas keeps the drawing's proportions, and its text scales
   with it; below 880px wide the panel scrolls sideways rather than shrinking the type. */
.fl { grid-column: 1 / -1; margin: clamp(3rem, 2rem + 3vw, 5rem) 0 0; --faint: var(--muted); }
.ground-night .fl { --faint: var(--on-ink-soft); }
.fl__title { margin-bottom: 16px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; color: var(--soft); }
.fl__panel { padding: clamp(18px, 2.6vw, 40px); border-radius: var(--r-xl); background: #0d1210; color: #fff; }
.ground-night .fl__panel { background: rgb(255 255 255 / 0.05); }
.fl__scroll { overflow-x: auto; scrollbar-width: thin; }
.fl__canvas { position: relative; min-width: 880px; container-type: inline-size; font-family: var(--font-display); }
.fl__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: rgb(255 255 255 / 0.55); }
.fl__line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fl__line--bad { stroke-dasharray: 6 6; }
.fl__node { position: absolute; margin: 0; }
.fl__node--screen img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14); clip-path: inset(1px round 11px); }
.fl__node b { display: block; font-weight: 600; font-size: clamp(12px, 1.3cqi, 17px); line-height: 1.25; letter-spacing: -0.01em; }
.fl__node span { display: block; margin-top: 2px; font-size: clamp(11px, 1cqi, 13px); line-height: 1.35; color: #b0b8bd; }
.fl__node--screen figcaption { margin-top: 0.7em; }
.fl__node--box { translate: 0 -50%; padding: 0.9em 1em; border-radius: var(--r-md); }
.fl__node--system { border: 1.5px dashed rgb(255 255 255 / 0.45); background: rgb(255 255 255 / 0.03); }
.fl__node--bad { border: 1.5px solid rgb(255 255 255 / 0.18); background: rgb(255 255 255 / 0.06); }
.fl__node--bad b::before { content: "×"; margin-right: 0.4em; color: #e88b7d; }
.fl__node--good { border: 1.5px solid var(--green-light); background: color-mix(in srgb, var(--green) 22%, transparent); }
.fl__label { position: absolute; translate: 0 -50%; padding: 2px 8px; border-radius: var(--r-pill); background: #0d1210; font-size: clamp(11px, 1cqi, 13px); font-weight: 600; color: #dfe5e1; white-space: nowrap; }
.ground-night .fl__label { background: #18201b; }
.fl__label--left { translate: -100% -50%; }
.fl__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-family: var(--font-display); font-size: var(--step-small); color: #b0b8bd; }
.fl__key { display: inline-flex; align-items: center; gap: 8px; }
.fl__key::before { content: ""; width: 18px; height: 12px; border-radius: 3px; }
.fl__key--screen::before { background: #3a4240; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25); }
.fl__key--system::before { border: 1.5px dashed rgb(255 255 255 / 0.55); }
.fl > figcaption { margin-top: 14px; max-width: 100ch; font-size: var(--step-small); color: var(--faint); }
/* the problem heading, with no picture beside it, takes the wider column */
.problem__head.problem__head--wide { grid-column: 1 / span 9; }
.problem__head--wide .statement { max-width: 60ch; }
@media (max-width: 1100px) { .problem__head.problem__head--wide { grid-column: 1 / -1; } }
