/* Work pages: one stylesheet for / and every project page under it.
   Calm editorial base, colour from the projects. 8px spacing grid.
   Shared parts: .w-page .w-hero .w-facts .w-tldr .w-chapter .w-media
   .w-caption .w-pill .w-note .w-next .w-card (see the comments by each).
   Deep case parts: .w-matte .w-split .w-compare .w-stage .w-scrolly
   .w-model .w-metric .w-quote .w-two .w-todo (see "deep case study").
   Desktop parts: .w-browser .w-steprail .w-scrolly--desktop .w-anatomy
   (see "desktop product pages").
   Build log parts: .w-log-actions .w-log-about .w-log-calls .w-log-slots
   .w-log-gallery (see "build log"). */

@font-face {
  font-family: 'Kid Hand';
  src: url('/alt-home/fortune-teller/fonts/kid-hand.woff2') format('woff2');
  font-display: swap;
}

:root {
  --page: #f7f5f0;
  --surface: #ffffff;
  --ink: #16140f;
  --body: #3d3a33;
  --muted: #6b665c;       /* 5.2:1 on --page */
  --hairline: #e4e0d6;
  --pencil: #5b574f;

  /* One accent across lauragao.design: the lavender of Let's chat (Laura, 2026-11-19).
     It is light, so as text it fails WCAG (1.6:1 on the page): fills use --lavender with
     dark text on them (10.6:1), and text, numbers and focus rings use --lavender-text, the
     same hue deep enough to pass (5.6:1 on the page, 6:1 on white, 5.1:1 on the book
     shelf's darker paper). */
  --lavender: #cdbaff;
  --lavender-2: #b8a0ff;
  --lavender-text: #6d47d1;
  --accent: var(--lavender);
  --accent-2: var(--lavender-2);
  --accent-ink: var(--ink);
  --accent-text: var(--lavender-text);

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --hand: 'Kid Hand', 'Comic Sans MS', cursive;

  /* 8px grid */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px;
  --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --measure: 68ch;
  --r-card: 20px;
  --r-media: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 200ms;
  --slow: 300ms;

  --display: clamp(40px, 7.2vw, 88px);
  --h2: clamp(28px, 3.4vw, 44px);
  --h3: clamp(22px, 2vw, 26px);
}

/* Project accents: <body data-project="..."> or a card's data-project. Every project
   uses the one lavender accent (Laura, 2026-11-19; it replaced the per-project Koddi
   blues and purples). --accent fills, --accent-ink is text on the accent, --accent-2 is
   the far end of gradients, --accent-text is the accent as text on the page. */
[data-project] { --accent: var(--lavender); --accent-2: var(--lavender-2); --accent-ink: var(--ink); --accent-text: var(--lavender-text); }
/* The divider under each project's header keeps the project's own colour from before the
   lavender (Laura, 2026-11-19): Koddi indigo, purple or blue. */
:root { --rule-accent: var(--ink); }
[data-project="koddi-mobile"], [data-project="design-system"], [data-project="pipfest"], [data-project="yaoguai-high"] { --rule-accent: #4b5bff; }
[data-project="media-plans"], [data-project="magical-ferry"], [data-project="friend-forest"], [data-project="30-day-chinese"] { --rule-accent: #6a4bff; }
[data-project="reservations-calendar"], [data-project="mapful"], [data-project="doodle-playground"] { --rule-accent: #2f6bff; }
[data-project="sales-pipeline"] { --rule-accent: #4a3bc0; }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.w-page {
  background: var(--page);
  color: var(--body);
  font: 400 18px/1.6 var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.w-page ::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }

:where(.w-page) a { color: inherit; text-decoration: none; }
.w-page :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.w-wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.w-prose { max-width: var(--measure); }
.w-prose p + p { margin-top: var(--s2); }

.w-skip { position: absolute; left: var(--s2); top: -100px; z-index: 10; background: var(--ink); color: var(--page); padding: var(--s1) var(--s2); border-radius: 999px; font-size: 15px; }
.w-skip:focus { top: var(--s2); }

.w-kicker {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0;
  color: var(--muted);
}

.w-h2 { font: 600 var(--h2)/1.05 var(--sans); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
/* .w-hero-phone: the phone at the top of Koddi Mobile. It opens on the .w-ba compare (the old
   web app against the looping flow clip); the button under it swaps in the live prototype
   (.w-hero-phone__phone) and back. See work/js/hero-phone.js. */
.w-hero-phone { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.w-hero-phone__compare { width: 100%; }
.w-hero-phone__compare[hidden], .w-hero-phone__phone[hidden] { display: none; }
/* the flow is the after side of the compare, filling it like a picture */
.w-ba__after > .w-media { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.w-ba__after > .w-media video, .w-ba__after > .w-media img { object-fit: cover; object-position: top center; }
/* a looping animation, not a video to scrub: no player bar */
.w-hero-phone .w-player { display: none; }
/* Media plans and Reservations: the top video is the after side of the compare */
.w-hero-compare .w-player { display: none; }
.w-hero-phone .w-hero-phone__phone { width: min(360px, 88%); }
.w-hero-phone__phone::before { z-index: 3; }
.w-hero-phone__screen { position: relative; aspect-ratio: 9 / 19.5; border-radius: 31px; overflow: hidden; background: #fff; }
.w-hero-phone__frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.w-hero-phone__toggle { min-width: 160px; justify-content: center; }

/* .w-statement: one big bold paragraph that sets up what follows (Koddi Mobile, before the scrolly). */
.w-statement { max-width: 24ch; font: 700 clamp(30px, 4.6vw, 60px)/1.06 var(--sans); letter-spacing: -0.035em; color: var(--ink); text-wrap: pretty; }

/* Link with an underline that draws in. */
.w-link {
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--slow) var(--ease);
}
.w-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- buttons ---------- */

.w-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 var(--s3);
  border-radius: 999px;
  font: 500 16px/1 var(--sans);
  letter-spacing: -0.005em;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.w-btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--slow) var(--ease); }
.w-btn:hover { border-color: #cfc9bb; }
.w-btn:hover svg { transform: translate(2px, -2px); }
.w-btn:active { transform: scale(0.98); }
.w-btn--solid { background: var(--ink); border-color: var(--ink); color: var(--page); }
.w-btn--solid:hover { background: #2b2820; border-color: #2b2820; }
.w-btn__sub { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0.04em; }

/* ---------- hero (.w-hero) ----------
   Index: name, one line, contact. Project pages: kicker, title, thesis, pills. */

.w-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding-block: var(--s3);
  font-size: 15px;
}
.w-back {
  display: inline-flex; align-items: center; gap: var(--s1);
  color: var(--muted);
  transition: color var(--fast) var(--ease);
}
.w-back svg { width: 16px; height: 16px; transition: transform var(--slow) var(--ease); }
.w-back:hover { color: var(--ink); }
.w-back:hover svg { transform: translateX(-3px); }
.w-topbar__meta { font: 500 12px/1 var(--mono); letter-spacing: 0; color: var(--muted); }

/* Pause motion (.w-motion): media.js puts it at the end of every .w-topbar.
   aria-pressed="true" means every clip is paused; the name stays "Pause
   motion", the icon turns to a play triangle. Icon only on phones. */
.w-topbar__meta { margin-left: auto; }
.w-motion {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  flex: none; min-height: 44px; min-width: 44px; padding: 0 16px 0 14px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: 500 14px/1 var(--sans); letter-spacing: -0.005em;
  margin-block: -10px; /* a 44px target without making the topbar taller */
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.w-motion:hover { border-color: #cfc9bb; }
.w-motion[data-paused="true"] { background: var(--lavender); border-color: var(--lavender); color: var(--ink); }
.w-motion__icon { width: 16px; height: 16px; flex: none; }
.w-motion__play { display: none; fill: currentColor; }
.w-motion[data-paused="true"] .w-motion__pause { display: none; }
.w-motion[data-paused="true"] .w-motion__play { display: inline; }
@media (max-width: 559.98px) {
  .w-motion { padding: 0; }
  .w-motion__text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}

.w-hero { padding-bottom: clamp(40px, 6vw, 80px); }
.w-hero__body { padding-top: var(--s2); } /* "All work" sits just above the title (2026-11-19) */
.w-hero__title {
  font: 600 var(--display)/1 var(--sans);
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-left: -0.04em;
}
.w-hero__lead {
  margin-top: var(--s3);
  /* full width (Laura, 2026-11-18): subtitles are one line now, not a paragraph */
  font: 500 clamp(22px, 2.6vw, 34px)/1.22 var(--sans);
  letter-spacing: -0.022em;
  color: var(--muted);
  text-wrap: balance;
}
.w-hero__lead strong { color: var(--ink); font-weight: 500; }
.w-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s5); }

/* ---------- section heads ---------- */

:root { --sec: clamp(56px, 7vw, 88px); }
/* Every divider sits the same distance from what is above it and what is below it, on every
   page (Laura, 2026-11-18): a section is pushed down by --sec, its head's rule comes first,
   and --sec more separates the rule from the heading or content. A head that only holds a
   heading for screen readers adds nothing below. */
.w-section { padding-block: 0; margin-top: var(--sec); }
/* the learnings follow the results directly: no rule, no second gap (Laura, 2026-11-18) */
[data-section="results"] + [data-section="learned"] { margin-top: clamp(40px, 5vw, 56px); }
[data-section="results"] + [data-section="learned"] .w-section__head { border-top: 0; padding-top: 0; margin-bottom: 0; }
.w-section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2);
  padding-top: var(--sec);
  border-top: 1px solid var(--hairline);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.w-section__head:has(> .w-vh:only-child) { margin-bottom: 0; }
.w-section__count { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0.06em; }

/* ---------- work grid ---------- */

.w-work { padding-top: var(--s2); padding-bottom: var(--s8); }
.w-group + .w-group { margin-top: var(--s10); }
.w-group__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); min-height: 40px; margin-bottom: var(--s2); }

.w-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.w-grid > .is-wide { grid-column: 1 / -1; }
@media (min-width: 720px) { .w-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .w-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- card (.w-card) ----------
   <a class="w-card" data-slug data-project href> media, then body:
   .w-card__meta (.w-tag + .w-pill), .w-card__title, .w-card__outcome.
   Title and outcome always show; hover only lifts and plays the loop. */

.w-card {
  --pill-dot: currentColor;
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  padding: 12px;
  border-radius: var(--r-card);
  background: var(--accent);
  color: var(--accent-ink);
  isolation: isolate;
  transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
.w-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(22, 20, 15, 0.04), 0 18px 40px -24px rgba(22, 20, 15, 0.45); }
.w-card:active { transform: translateY(-2px) scale(0.995); }
.w-page .w-card:focus-visible { outline-offset: 4px; border-radius: calc(var(--r-card) + 4px); }

.w-card__media { border-radius: 10px; overflow: hidden; }
.w-card .w-media {
  --ph-bg: color-mix(in srgb, var(--accent-ink) 7%, transparent);
  --ph-line: color-mix(in srgb, var(--accent-ink) 16%, transparent);
  --ph-chip: color-mix(in srgb, var(--accent) 80%, var(--accent-ink) 6%);
  --ph-text: var(--accent-ink);
  border: 0;
}
.w-card .w-media > video, .w-card .w-media > img { transition: transform 600ms var(--ease); }
.w-card:hover .w-media > video, .w-card:hover .w-media > img { transform: scale(1.02); }

.w-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 8px 8px; }
.w-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s1); }
.w-card--feature .w-card__meta { justify-content: flex-start; gap: 12px; }
.w-card__title {
  margin-top: var(--s2);
  font: 600 var(--h3)/1.1 var(--sans);
  letter-spacing: -0.025em;
  color: var(--accent-ink);
}
.w-card__outcome {
  margin-top: var(--s1);
  font-size: 16px; line-height: 1.5;
  color: color-mix(in srgb, var(--accent-ink) 82%, transparent);
  text-wrap: pretty;
}
.w-card__go {
  display: inline-flex; align-items: center; gap: var(--s1);
  margin-top: auto; padding-top: var(--s3);
  font: 500 15px/1 var(--sans);
}
.w-card__go svg { width: 16px; height: 16px; transition: transform var(--slow) var(--ease); }
.w-card:hover .w-card__go svg { transform: translateX(4px); }

/* Auggie leads: full width, words left, phone right. */
.w-card--feature { background: linear-gradient(115deg, var(--accent) 0%, var(--accent) 38%, var(--accent-2) 100%); overflow: hidden; padding: 0; }
.w-card--feature .w-card__body { padding: var(--s4) var(--s3) var(--s3); }
.w-card--feature .w-card__title { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; margin-top: var(--s4); }
.w-card--feature .w-card__outcome { font-size: clamp(17px, 1.5vw, 20px); max-width: 30ch; margin-top: var(--s2); }
.w-card__stage { display: flex; justify-content: center; align-items: flex-start; padding: var(--s4) var(--s3) 0; height: 340px; overflow: hidden; }
.w-phone {
  position: relative;
  width: min(220px, 64%);
  padding: 9px;
  border-radius: 40px;
  background: color-mix(in srgb, var(--ink) 88%, var(--accent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-ink) 22%, transparent), var(--float);
  transition: transform 600ms var(--ease);
}
.w-phone::before { /* the island */
  content: ''; position: absolute; z-index: 2; top: 19px; left: 50%;
  width: 30%; height: 20px; border-radius: 999px; transform: translateX(-50%);
  background: color-mix(in srgb, var(--ink) 92%, var(--accent));
}
.w-phone .w-media { border-radius: 31px; }
.w-phone .w-media::after { top: 44px; bottom: auto; }
.w-card:hover .w-phone { transform: translateY(-8px); }
@media (min-width: 860px) {
  .w-card--feature { display: grid; grid-template-columns: 5fr 6fr; min-height: 460px; }
  .w-card--feature .w-card__body { order: -1; padding: var(--s5); }
  .w-card__stage { height: auto; padding: var(--s5) var(--s5) 0; align-items: flex-start; }
  .w-card--feature .w-phone { width: 270px; margin-bottom: -120px; }
}

/* Confidential card: dark and quiet, no screens. */
.w-card__sealed {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 10px),
    rgba(255, 255, 255, 0.04);
  color: color-mix(in srgb, var(--accent-ink) 70%, transparent);
}
.w-card__sealed svg { width: 40px; height: 40px; }

/* ---------- tag and pill (.w-pill) ---------- */

.w-tag { font: 500 12px/1 var(--mono); letter-spacing: 0; opacity: 0.86; }

.w-pill {
  --pill-dot: #1f9d62;
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 11px 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.w-card .w-pill { --pill-dot: currentColor; }
.w-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pill-dot); }
.w-pill--shipped::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pill-dot) 22%, transparent); }
.w-pill--confidential::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
/* built, not deployed yet: a half-filled dot */
.w-pill--ready { --pill-dot: #9a6a12; }
.w-pill--ready::before { background: linear-gradient(90deg, var(--pill-dot) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--pill-dot); }
/* a working prototype, not in the product: a dashed ring */
.w-pill--prototype::before { width: 7px; height: 7px; background: transparent; border: 1.5px dashed currentColor; box-sizing: border-box; }
/* not out yet (the Writing row): a hollow dot, muted, beside a title */
.w-pill--soon { color: var(--muted); vertical-align: 0.15em; margin-left: var(--s1); }
.w-pill--soon::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- pencil note (.w-note) ----------
   The only handwriting on these pages. Small, tilted, pencil grey. */

.w-note {
  display: inline-flex; align-items: flex-end; gap: 4px;
  font: 400 22px/1 var(--hand);
  color: var(--pencil);
  transform: rotate(-4deg);
  transform-origin: right bottom;
  user-select: none;
}
.w-note svg { width: 44px; height: 34px; flex: none; color: var(--pencil); margin-bottom: -10px; }

/* ---------- media slot (.w-media) ----------
   Hatched placeholder showing data-label until media.js swaps in the clip.
   data-ratio sets the shape (common ones below work without JS). */

.w-media {
  --ph-bg: var(--surface);
  --ph-line: var(--hairline);
  --ph-chip: var(--surface);
  --ph-text: var(--muted);
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-media);
  border: 1px solid var(--hairline);
  background: repeating-linear-gradient(45deg, var(--ph-line) 0 1px, transparent 1px 11px), var(--ph-bg);
}
.w-media[data-ratio="16:10"] { aspect-ratio: 16 / 10; }
.w-media[data-ratio="4:3"] { aspect-ratio: 4 / 3; }
.w-media[data-ratio="3:2"] { aspect-ratio: 3 / 2; }
.w-media[data-ratio="1:1"] { aspect-ratio: 1 / 1; }
.w-media[data-ratio="4:5"] { aspect-ratio: 4 / 5; }
.w-media[data-ratio="9:16"] { aspect-ratio: 9 / 16; }
.w-media[data-ratio="9:19.5"] { aspect-ratio: 9 / 19.5; }
.w-media[data-ratio="21:9"] { aspect-ratio: 21 / 9; }
.w-media::after {
  content: attr(data-label);
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  width: fit-content; max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--ph-chip);
  box-shadow: 0 0 0 1px var(--ph-line);
  color: var(--ph-text);
  font: 500 11.5px/1.45 var(--mono);
  letter-spacing: 0.01em;
}
.w-media > video, .w-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-media[data-state="video"], .w-media[data-state="image"] { background: var(--ph-bg); }
.w-media[data-state="video"]::after, .w-media[data-state="image"]::after { content: none; }
/* clip found but no poster: keep the hatch and label until it really plays */
.w-media[data-state="placeholder"] > video { opacity: 0; }

.w-caption {
  margin-top: 12px;
  max-width: 60ch;
  font-size: 15px; line-height: 1.5;
  color: var(--muted);
}

/* ---------- project page parts ---------- */

/* .w-facts: <dl class="w-facts"> with five <div><dt/><dd/></div> cells:
   Role, Team, Timeline, Status, Impact. Add .w-facts__impact to the last. */
.w-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3) var(--s3);
  padding-top: var(--s3);
  border-top: 2px solid var(--rule-accent); /* the project's own colour (Laura, 2026-11-19) */
}
.w-facts dt { font: 500 12px/1.4 var(--mono); letter-spacing: 0; color: var(--muted); }
.w-facts dd { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.w-facts .w-facts__impact { grid-column: 1 / -1; }
.w-facts .w-facts__impact dd { font: 600 clamp(32px, 4vw, 48px)/1 var(--sans); letter-spacing: -0.03em; color: var(--accent-text); }
/* a placeholder sentence is not a number: keep it at reading size until Laura fills it in */
.w-facts .w-facts__impact dd .w-facts__sub { display: block; margin-top: 8px; font: 500 16px/1.45 var(--sans); letter-spacing: 0; color: var(--body); }
.w-facts .w-facts__impact dd .w-todo { font: 500 16px/1.45 var(--sans); letter-spacing: 0; }
@media (min-width: 900px) {
  .w-facts { grid-template-columns: repeat(4, 1fr) 1.4fr; }
  .w-facts .w-facts__impact { grid-column: auto; }
}
/* .w-facts--even: four equal columns, and an Impact written as a sentence reads at
   the same size as the other cells (Koddi Mobile, 2026-11-18). */
/* same type as Role, Team and Timeline (Laura, 2026-11-18) */
.w-facts--even .w-facts__impact dd { font: 400 16px/1.45 var(--sans); letter-spacing: 0; color: var(--ink); }
@media (min-width: 900px) {
  .w-facts--even { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3) var(--s4); }
  .w-facts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* .w-team: a face stack and the names, for the Team fact.
   <span class="w-team"><span class="w-team__faces">
     <span class="w-team__face" data-name="Full Name"><img src="/media/team/<name>.jpg" alt="" width="40" height="40"></span>
     <a class="w-team__face" data-name="Full Name" href="<LinkedIn>" target="_blank" rel="noopener" aria-label="Full Name on LinkedIn"><img ...></a>
   </span><span class="w-team__names">Me and ...</span></span>. Photos are square crops with the face centered.
   work/js/team-faces.js swells the faces toward the pointer, like a dock, and adds the name tip. */
.w-team { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.w-team__faces { position: relative; display: inline-flex; align-items: flex-end; flex: none; }
.w-team__face {
  position: relative; display: block; border-radius: 50%;
  transform-origin: 50% 100%;
  transition: transform 420ms cubic-bezier(0.24, 1.34, 0.38, 1);
}
.w-team__face + .w-team__face { margin-left: -10px; }
/* Laura's face on top, each next face tucked under the one before (Laura, 2026-11-18);
   the face under the pointer rises above the rest while it is enlarged */
.w-team__face:nth-child(1) { z-index: 3; }
.w-team__face:nth-child(2) { z-index: 2; }
.w-team__face:nth-child(3) { z-index: 1; }
.w-team__face.is-near { z-index: 4; }
.w-team__face:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.w-team__faces img {
  display: block;
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--page);
  background: var(--hairline);
}
/* one dark tip under the stack: slides to the face under the pointer and fits the name */
.w-team__tip {
  /* below the stack (Laura, 2026-11-18); faces grow upward from their base, so it never covers one */
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 3;
  height: 30px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 999px; background: var(--ink); color: var(--page);
  font: 500 13px/30px var(--sans); white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), width 160ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.w-team__tip > span { flex: none; }
.w-team__tip.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .w-team__face, .w-team__tip { transition: opacity 160ms ease; } }
/* who did what, on its own line under the faces and names */
.w-team__roles { flex-basis: 100%; font-size: 15px; line-height: 1.45; color: var(--body); }

/* .w-tldr: three short lines. */
.w-tldr { display: grid; gap: 0; max-width: var(--measure); counter-reset: tldr; }
.w-tldr li {
  counter-increment: tldr;
  display: grid; grid-template-columns: 56px 1fr; gap: var(--s2);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--hairline);
  font: 500 clamp(19px, 1.8vw, 22px)/1.4 var(--sans);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.w-tldr li::before { content: counter(tldr); font: 600 clamp(40px, 4vw, 52px)/0.9 var(--sans); letter-spacing: -0.04em; color: var(--accent-text); }

/* .w-chapter: numbered decision. Headline, two or three sentences, media, caption. */
.w-chapters { counter-reset: chapter; }
.w-chapter {
  counter-increment: chapter;
  display: grid; gap: var(--s3);
  padding-block: var(--s8);
  border-top: 1px solid var(--hairline);
}
.w-chapter::before { content: counter(chapter); font: 600 clamp(48px, 5vw, 72px)/0.9 var(--sans); letter-spacing: -0.04em; color: var(--accent-text); }
.w-chapter h3 { font: 600 clamp(26px, 2.8vw, 36px)/1.1 var(--sans); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; max-width: 24ch; }
.w-chapter p { max-width: var(--measure); }
@media (min-width: 960px) {
  .w-chapter { grid-template-columns: 4fr 7fr; column-gap: var(--s8); align-items: start; }
  .w-chapter::before { grid-column: 1 / -1; }
  .w-chapter > figure { grid-column: 2; grid-row: 2 / span 3; }
}

/* .w-next: the next project link at the end of a page. Its rule keeps the same --sec either side. */
[data-section="next"] { margin-top: var(--sec); }
.w-next {
  display: block;
  padding-block: var(--sec) var(--s10);
  border-top: 1px solid var(--hairline);
}
.w-next__title {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin-top: 0;
  font: 600 clamp(36px, 5.6vw, 72px)/1 var(--sans);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.w-next__title svg { width: 0.6em; height: 0.6em; transition: transform var(--slow) var(--ease); }
.w-next:hover .w-next__title svg { transform: translateX(8px); }

/* .w-nextup: "Next up:" with a folder of three projects, built by next-up.js in place of .w-next.
   Same rule and padding as .w-next. */
.w-nextup {
  display: grid; gap: var(--s4); align-items: center;
  padding-block: var(--sec) var(--s10);
  border-top: 1px solid var(--hairline);
}
@media (min-width: 960px) { .w-nextup { grid-template-columns: 5fr 7fr; gap: var(--s8); } }
.w-nextup__title {
  position: relative;
  margin: 0;
  font: 600 clamp(36px, 5.6vw, 72px)/1.05 var(--sans);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.w-nextup__name {
  display: block; min-height: 2.1em; color: var(--accent-text);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease), filter 280ms var(--ease);
}
/* the name always holds two lines, so the heading and name sit centred on the folder as one
   block whatever the name, and nothing moves when it changes */
.w-nextup__name.is-in { animation: w-nextup-name 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes w-nextup-name { from { opacity: 0; transform: translateY(0.2em); filter: blur(6px); } }

/* folder: every card turns about one point far below the folder, so position and tilt agree */
.w-nextup__fdr { position: relative; display: grid; justify-items: center; }
.w-nextup__stage { position: relative; width: 340px; height: 330px; scale: 1.15; transform-origin: 50% 60%; margin-block: 24px; }
.w-nextup__back {
  position: absolute; left: 50px; top: 168px; width: 240px; height: 162px;
  border-radius: 6px 20px 20px 20px; background: #b9a6ee;
}
.w-nextup__back::before {
  content: ""; position: absolute; left: 0; top: -16px; width: 84px; height: 22px;
  border-radius: 10px 10px 0 0; background: inherit;
}
.w-nextup__card {
  position: absolute; left: calc(50% - 84px); top: 140px; width: 168px; height: 112px;
  border-radius: 14px; overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 2px rgba(22, 20, 15, 0.12);
  transform-origin: 50% 404px;
  transform: rotate(var(--shut)) translateY(0);
  transition:
    transform 600ms cubic-bezier(0.24, 1.34, 0.38, 1) var(--d),
    translate 420ms cubic-bezier(0.22, 1, 0.36, 1),
    scale 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.w-nextup__card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.w-nextup__fdr[data-open] .w-nextup__card { transform: rotate(var(--fan)) translateY(-118px); }
.w-nextup__card[data-lift] { translate: 0 -12px; scale: 1.04; }
.w-nextup__card:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.w-nextup__front {
  position: absolute; left: 42px; top: 204px; width: 256px; height: 126px; z-index: 30;
  border-radius: 14px; background: rgba(226, 216, 251, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  transform-origin: 50% 100%;
  transition: transform 600ms cubic-bezier(0.24, 1.34, 0.38, 1);
  pointer-events: none;
}
.w-nextup__fdr[data-open] .w-nextup__front { transform: perspective(520px) rotateX(-24deg); }
/* "Open it!" in pencil, to the left of the folder, arrow at its front; gone once it opens */
.w-nextup__hint {
  position: absolute; z-index: 40; right: calc(50% + 158px); top: 50%;
  font-size: 28px; transform: rotate(-6deg); transition: opacity 260ms var(--ease);
  pointer-events: none;
}
.w-nextup__hint svg { width: 50px; height: 40px; margin: 0 0 -26px; }
.w-nextup__fdr[data-open] .w-nextup__hint { opacity: 0; }
@media (max-width: 599.98px) { .w-nextup__hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .w-nextup__card, .w-nextup__front, .w-nextup__name { transition: none; animation: none; }
}


/* ---------- deep case study ----------
   Page order: .w-hero (data-section="hero"), .w-facts, hero media in a
   .w-matte, .w-tldr, problem (.w-split + .w-compare), .w-chapters, the
   .w-scrolly signature moment, .w-model (agentic pages), results
   (.w-metrics + .w-quote), .w-two (learned / next), .w-next, footer.
   Each top level block carries data-section so tests can check the order. */

.w-hero__kicker { margin-bottom: var(--s3); }
.w-hero__tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s4); color: var(--ink); }
.w-hero__tags .w-pill { --pill-dot: var(--accent); }

.w-case-facts { padding-bottom: clamp(40px, 6vw, 64px); }

/* .w-todo: copy Laura replaces. Brackets plus a faint accent wash. */
.w-todo {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border-radius: 4px;
  padding: 0 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Screens float on the page by themselves, no coloured mount (Laura, Nov 18):
   a soft lifted shadow on every browser frame, phone and bare clip. */
/* softer, wider shadows under every screen (Laura, 2026-11-19) */
:root { --float: 0 1px 2px rgba(22, 20, 15, 0.04), 0 16px 40px -20px rgba(22, 20, 15, 0.14), 0 44px 100px -44px rgba(22, 20, 15, 0.18); }
/* .w-matte: the hero clip, floating. */
.w-matte { padding: 0; }
.w-matte > .w-media { box-shadow: var(--float); }
.w-matte .w-media { border: 0; }

/* .w-split: headline and prose left, media right. */
.w-split { display: grid; gap: var(--s4); }
.w-split .w-prose { margin-top: var(--s3); }
@media (min-width: 960px) {
  .w-split { grid-template-columns: 5fr 6fr; column-gap: var(--s8); align-items: start; }
}

/* .w-compare: two people side by side, each a short ranked list. */
.w-compare { display: grid; gap: var(--s3); margin-top: clamp(40px, 6vw, 64px); }
/* an extra full-width shot at the end of the problem section */
.w-problem-shot { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: var(--s2); }
@media (min-width: 960px) {
  .w-problem-shot { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s8); align-items: center; }
  .w-problem-shot > figcaption { order: -1; font-size: 18px; line-height: 1.55; color: var(--body); max-width: 36ch; }
}
.w-compare__col { padding: var(--s3); border: 1px solid var(--hairline); border-radius: var(--r-card); background: var(--surface); }
.w-compare__who { font: 600 20px/1.2 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
/* a user avatar beside each role: one colour per person, Koddi blue and purple */
.w-compare__head { display: flex; align-items: center; gap: 12px; }
.w-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; }
.w-avatar svg { width: 24px; height: 24px; }
.w-avatar--blue { background: #2f6bff; color: #ffffff; }
.w-avatar--purple { background: #8a4bff; color: #ffffff; }
.w-compare__col .w-kicker { margin-top: 4px; }
.w-compare__col ol { margin-top: var(--s2); counter-reset: ask; }
.w-compare__col li {
  counter-increment: ask;
  display: grid; grid-template-columns: 32px 1fr; gap: var(--s1); align-items: baseline;
  padding-block: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 16px; line-height: 1.45; color: var(--ink);
}
.w-compare__col li::before { content: counter(ask); font: 600 24px/1 var(--sans); letter-spacing: -0.02em; color: var(--accent-text); }
@media (min-width: 720px) { .w-compare { grid-template-columns: 1fr 1fr; } }

/* .w-stage: a soft accent-tinted mount for a phone or small screen. */
.w-stage {
  display: flex; justify-content: center; align-items: center;
  padding: var(--s3) 0;
}
.w-stage .w-phone { width: min(260px, 72%); }

/* ---------- scrolly (.w-scrolly), the pinned signature moment ----------
   Markup and behaviour: see work/js/scrolly.js. Base styles below are the
   stacked layout (phones, reduced motion, no JS): each frame sits in its own
   gradient mount above its step. Wide screens with motion pin the stage:
   thesis on top, the device below, frames crossfading as steps pass.
   --device-ratio is the frame's width / height (phone by default). */

.w-scrolly { --device-ratio: 0.47; display: grid; gap: var(--s6); }
.w-scrolly__thesis {
  font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--sans);
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 24ch;
  text-wrap: balance;
}
.w-scrolly mark {
  color: inherit;
  background: linear-gradient(var(--accent-text), var(--accent-text)) 0 94% / 100% 0.1em no-repeat;
  transition: color var(--slow) var(--ease), background-size 600ms var(--ease);
}
.w-scrolly__device { display: grid; gap: var(--s3); }
.w-scrolly.is-stacked .w-scrolly__device { display: none; }
.w-scrolly__frame {
  display: flex; justify-content: center;
  padding: var(--s3) 0;
}
.w-scrolly__frame .w-phone { width: min(240px, 70%); }
.w-scrolly__frame .w-phone .w-media { border-color: transparent; }
.w-scrolly__steps { display: grid; gap: var(--s8); }
.w-scrolly__steps > li { display: grid; gap: var(--s2); align-content: start; }
.w-scrolly__steps > li > .w-scrolly__frame { margin-bottom: var(--s1); }
.w-scrolly__num { font: 600 clamp(48px, 5vw, 72px)/0.9 var(--sans); letter-spacing: -0.04em; color: var(--accent-text); }
.w-scrolly__steps h3 { font: 600 clamp(26px, 2.6vw, 34px)/1.1 var(--sans); letter-spacing: -0.03em; color: var(--ink); }
.w-scrolly__steps p { max-width: 46ch; }
.w-scrolly-note { display: none; margin-left: auto; }
/* stacked on a wide screen (reduced motion): two steps per row */
@media (min-width: 768px) {
  .w-scrolly.is-stacked .w-scrolly__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8) var(--s4); }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .w-scrolly-note { display: inline-flex; }
  .w-scrolly:not(.is-stacked) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 0 clamp(40px, 6vw, 96px);
    align-items: start;
  }
  .w-scrolly:not(.is-stacked) .w-scrolly__stage {
    grid-column: 2; grid-row: 1;
    position: sticky; top: var(--s2);
    height: calc(100svh - var(--s4)); max-height: 980px;
    display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s4);
    padding: var(--s3) 0 var(--s4);
    overflow: visible;
  }
  .w-scrolly:not(.is-stacked) .w-scrolly__thesis { color: var(--ink); font-size: clamp(22px, 2vw, 30px); max-width: 26ch; }
  .w-scrolly:not(.is-stacked) mark {
    color: var(--muted);
    background-image: linear-gradient(var(--accent-text), var(--accent-text));
    background-size: 0 0.1em;
  }
  .w-scrolly:not(.is-stacked) mark.is-on { color: var(--ink); background-size: 100% 0.1em; }
  .w-scrolly:not(.is-stacked) .w-scrolly__device { display: block; position: relative; container-type: size; }
  .w-scrolly:not(.is-stacked) .w-scrolly__frame {
    position: absolute; top: 50%; left: 50%;
    height: min(100cqh, 760px, calc(100cqw / var(--device-ratio)));
    aspect-ratio: var(--device-ratio);
    padding: 0; border-radius: 0; background: none;
    opacity: 0;
    visibility: hidden; /* after the fade, so only the shown frame can be reached */
    transform: translate(-50%, -50%);
    transition: opacity var(--slow) var(--ease), visibility 0s linear var(--slow);
  }
  .w-scrolly:not(.is-stacked):not([data-active]) .w-scrolly__frame:first-child,
  .w-scrolly:not(.is-stacked) .w-scrolly__frame.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
  .w-scrolly:not(.is-stacked) .w-scrolly__frame .w-phone { width: 100%; height: 100%; }
  .w-scrolly:not(.is-stacked) .w-scrolly__frame .w-phone .w-media { height: 100%; }
  .w-scrolly:not(.is-stacked) .w-scrolly__frame .w-browser { width: 100%; height: 100%; display: flex; flex-direction: column; }
  .w-scrolly:not(.is-stacked) .w-scrolly__frame .w-browser .w-media { flex: 1; min-height: 0; aspect-ratio: auto; }
  .w-scrolly:not(.is-stacked) .w-scrolly__steps { grid-column: 1; grid-row: 1; gap: 0; }
  .w-scrolly:not(.is-stacked) .w-scrolly__steps > li {
    min-height: 86svh;
    align-content: center;
    padding-block: var(--s8);
    color: var(--muted);
    transition: color var(--slow) var(--ease);
  }
  /* the last step ends at the bottom of the screen, so the stage stays pinned while it reads */
  .w-scrolly:not(.is-stacked) .w-scrolly__steps > li:last-child { min-height: 100svh; }
  .w-scrolly:not(.is-stacked) .w-scrolly__steps h3 { color: var(--muted); transition: color var(--slow) var(--ease); }
  .w-scrolly:not(.is-stacked) .w-scrolly__num { color: var(--muted); transition: color var(--slow) var(--ease); }
  .w-scrolly:not(.is-stacked) .w-scrolly__steps > li.is-active { color: var(--body); }
  .w-scrolly:not(.is-stacked) .w-scrolly__steps > li.is-active h3 { color: var(--ink); }
  .w-scrolly:not(.is-stacked) .w-scrolly__steps > li.is-active .w-scrolly__num { color: var(--accent-text); }
}

/* ---------- desktop product pages ----------
   .w-browser: a desktop browser frame around a 16:10 .w-media.
     <div class="w-browser"><div class="w-browser__bar" aria-hidden="true"><i></i><i></i><i></i><span></span></div>
       <div class="w-media" data-ratio="16:10" ...></div></div>
   Works in a .w-matte, a .w-stage, or a scrolly frame (with .w-scrolly--desktop).
   .w-steprail: the product's stepper as a row on the pinned scrolly stage,
     between the thesis and the device. aria-hidden: the steps carry the words.
     <ol class="w-steprail" aria-hidden="true"><li class="w-steprail__item" data-step="0">
       <span class="w-steprail__num">01</span>Name</li> ...</ol>
     scrolly.js sets .is-active on the current item and .is-done before it.
   .w-scrolly--desktop: wider stage for a 16:10 browser frame, room for the rail.
   .w-anatomy: a nested outline of how a thing is built (one level per <li>). */

.w-browser {
  --bar: 30px;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent), var(--float);
}
.w-browser__bar {
  display: flex; align-items: center; gap: 6px;
  height: var(--bar); padding: 0 12px;
  background: #f1eee7;
  border-bottom: 1px solid var(--hairline);
}
.w-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcd7cb; flex: none; }
.w-browser__bar span { /* the address field */
  width: min(42%, 260px); height: 16px; margin-inline: auto; transform: translateX(-16px);
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline);
}
.w-browser .w-media { border: 0; border-radius: 0; }
.w-stage .w-browser { width: 100%; }

.w-scrolly--desktop { --device-ratio: 1.5; }
.w-scrolly__frame .w-browser { width: 100%; }
.w-scrolly--desktop .w-scrolly__frame { padding: var(--s3) clamp(12px, 3vw, 32px); }
.w-steprail { display: none; }
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .w-scrolly--desktop:not(.is-stacked) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  /* A wide frame is limited by the stage's width, so a 1fr device row left a
     band of empty panel under it. Instead the stage is a column that centres
     thesis, rail and frame together: the device is exactly as tall as the
     frame (stage width / ratio, cqw of the stage), and shrinks when the
     screen is short so nothing overflows. */
  .w-scrolly--desktop:not(.is-stacked) .w-scrolly__stage {
    display: flex; flex-direction: column; justify-content: center; gap: var(--s3);
    container-type: inline-size;
  }
  .w-scrolly--desktop:not(.is-stacked) .w-scrolly__device {
    flex: 0 1 auto; min-height: 0;
    height: min(calc(100cqw / var(--device-ratio)), 760px);
  }
  .w-scrolly--desktop:not(.is-stacked) .w-scrolly__thesis { max-width: 34ch; }
  .w-scrolly:not(.is-stacked) .w-steprail {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px;
  }
  .w-steprail__item {
    display: grid; align-content: start; gap: 2px;
    padding-top: 10px;
    border-top: 2px solid color-mix(in srgb, var(--accent-ink) 26%, transparent);
    font: 500 12px/1.3 var(--sans);
    letter-spacing: -0.005em;
    color: color-mix(in srgb, var(--accent-ink) 58%, transparent);
    transition: color var(--slow) var(--ease), border-color var(--slow) var(--ease);
  }
  .w-steprail__num { font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; }
  .w-steprail__item.is-done { border-top-color: color-mix(in srgb, var(--accent-ink) 70%, transparent); color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
  .w-scrolly:not([data-active]) .w-steprail__item:first-child,
  .w-steprail__item.is-active { border-top-color: var(--accent-ink); color: var(--accent-ink); }
}
/* narrow pinned stage: below 1200px six names in a row run into each other
   ("Ad groups and targeting" meets "Creatives" at 1060), so two rows of three */
@media (min-width: 768px) and (max-width: 1199.98px) and (prefers-reduced-motion: no-preference) {
  .w-scrolly:not(.is-stacked) .w-steprail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
}

/* .w-anatomy: soft slab cards, one per level, each indented under the one it belongs to
   (after Bencho's Load cards, Pro licence; Laura, 2026-11-18). On first view each card
   arrives as a skeleton (bars with a light running over them) and then develops: the bars
   blur away and the name and text come into focus where they were. work/js/anatomy.js adds
   the skeletons and data-phase (out, wait, in); reduced motion and no JS show the cards as
   they are. .w-anatomy--dark is the dark version. */
.w-anatomy { display: grid; gap: 10px; }
.w-anatomy ol { display: grid; gap: 10px; margin: 10px 0 0 clamp(24px, 5vw, 56px); padding: 0; border: 0; }
.w-anatomy li { padding: 0; }
.w-anatomy__node {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface);
  --skel: color-mix(in srgb, var(--ink) 8%, var(--surface));
  --shine: color-mix(in srgb, var(--surface) 70%, transparent);
}
.w-anatomy__name { font: 500 17px/1.3 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.w-anatomy__node p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.w-anatomy__skel { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .w-anatomy.is-armed .w-anatomy__node {
    opacity: 0; filter: blur(6px); translate: 0 8px; scale: 0.97;
    transition: opacity 420ms ease, filter 420ms cubic-bezier(0.22, 1, 0.36, 1), translate 520ms cubic-bezier(0.22, 1, 0.36, 1), scale 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .w-anatomy.is-armed .w-anatomy__node:not([data-phase="out"]) { opacity: 1; filter: none; translate: 0 0; scale: 1; }
  /* the skeleton: the content's own lines, as bars */
  .w-anatomy.is-armed .w-anatomy__skel {
    position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
    padding: 21px 20px; pointer-events: none;
    transition: opacity 320ms ease, filter 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .w-anatomy__skel i { position: relative; display: block; height: 14px; border-radius: 7px; overflow: hidden; background: var(--skel); }
  .w-anatomy__skel i:first-child { width: 34%; }
  .w-anatomy__skel i:last-child { width: 72%; height: 12px; border-radius: 6px; }
  .w-anatomy__skel i::after {
    content: ''; position: absolute; inset: 0; translate: -100% 0;
    background: linear-gradient(90deg, transparent, var(--shine), transparent);
    animation: w-anatomy-shine 1.3s ease-in-out infinite;
  }
  .w-anatomy.is-armed .w-anatomy__node[data-phase="in"] .w-anatomy__skel { opacity: 0; filter: blur(6px); }
  /* the content develops where the bars were: the name first, the text a beat later */
  .w-anatomy.is-armed .w-anatomy__name, .w-anatomy.is-armed .w-anatomy__node p {
    opacity: 0; filter: blur(6px); translate: 0 8px;
    transition: opacity 520ms ease, filter 600ms cubic-bezier(0.22, 1, 0.36, 1), translate 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .w-anatomy.is-armed .w-anatomy__node[data-phase="in"] .w-anatomy__name { opacity: 1; filter: none; translate: 0 0; transition-delay: 80ms; }
  .w-anatomy.is-armed .w-anatomy__node[data-phase="in"] p { opacity: 1; filter: none; translate: 0 0; transition-delay: 200ms; }
}
@keyframes w-anatomy-shine { to { translate: 100% 0; } }
/* dark slabs */
.w-anatomy--dark .w-anatomy__node {
  background: #1b1a17;
  --skel: rgba(247, 245, 240, 0.1);
  --shine: rgba(247, 245, 240, 0.16);
}
.w-anatomy--dark .w-anatomy__name { color: #f7f5f0; }
.w-anatomy--dark .w-anatomy__node p { color: rgba(247, 245, 240, 0.62); }

/* ---------- designing for the model (.w-model) ----------
   Dark band. <ol class="w-model__grid"> of five <li class="w-model__slot"
   data-slot>: media, tag, h3, one or two sentences. */

.w-model {
  --on: rgba(247, 245, 240, 0.8);
  background: var(--ink);
  color: var(--on);
  padding-block: clamp(72px, 10vw, 128px);
}
.w-model .w-kicker { color: rgba(247, 245, 240, 0.62); }
.w-model .w-h2 { color: var(--page); margin-top: var(--s2); max-width: 18ch; }
.w-model__lead { margin-top: var(--s3); max-width: 58ch; font-size: clamp(18px, 1.5vw, 20px); }
.w-model .w-todo { background: rgba(255, 255, 255, 0.08); }
.w-model__grid { display: grid; gap: var(--s3); margin-top: clamp(40px, 6vw, 72px); }
.w-model__slot {
  display: flex; flex-direction: column; gap: 12px;
  padding: 10px 10px var(--s3);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.w-model__slot > :not(.w-media) { padding-inline: 14px; }
.w-model__slot > .w-media { margin-bottom: var(--s1); }
.w-model__tag { font: 500 12px/1.4 var(--mono); letter-spacing: 0; color: color-mix(in srgb, var(--accent) 45%, #ffffff); }
.w-model__slot h3 { font: 600 22px/1.15 var(--sans); letter-spacing: -0.02em; color: var(--page); text-wrap: balance; }
.w-model__slot p { font-size: 16px; line-height: 1.55; }
.w-model .w-media {
  --ph-bg: rgba(255, 255, 255, 0.025);
  --ph-line: rgba(255, 255, 255, 0.085);
  --ph-chip: #24211b;
  --ph-text: rgba(247, 245, 240, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
@media (min-width: 720px) {
  .w-model__grid { grid-template-columns: repeat(2, 1fr); }
  .w-model__slot:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .w-model__grid { grid-template-columns: repeat(6, 1fr); }
  .w-model__slot { grid-column: span 2; }
  .w-model__slot:nth-child(-n+2) { grid-column: span 3; }
  .w-model__slot:last-child { grid-column: span 2; }
}

/* ---------- results (.w-metric, .w-quote) and .w-two ---------- */

.w-metrics { display: grid; gap: var(--s3); }
/* plain numbers, no cards (Laura, 2026-11-18); work/js/countup.js counts them up on first view */
.w-metric { padding: 0; }
/* a ticker, not a headline (Laura, 2026-11-18): light, even-width digits, smaller */
.w-metric__num { font: 300 clamp(32px, 3.4vw, 44px)/1.05 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.w-metric__label { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--body); }
@media (min-width: 720px) {
  .w-metrics { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; }
  /* numbers share one row and labels the next, so labels line up even when a number wraps */
  .w-metric { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; }
}
/* a quieter second row under the headline numbers: no card, a hairline on top */
.w-metrics--minor { margin-top: var(--s4); }
.w-metrics--minor .w-metric { padding: var(--s2) 0 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: none; }
.w-metrics--minor .w-metric__num { font-size: clamp(28px, 2.6vw, 34px); letter-spacing: -0.03em; }
.w-metrics--minor .w-metric__label { margin-top: 8px; font-size: 15px; color: var(--muted); }

.w-quote { margin-top: clamp(48px, 7vw, 88px); }
.w-quote blockquote { margin: 0; max-width: 26ch; font: 500 clamp(26px, 3vw, 40px)/1.2 var(--sans); letter-spacing: -0.025em; color: var(--ink); text-wrap: pretty; }
.w-quote figcaption { margin-top: var(--s3); font: 500 12px/1.4 var(--mono); letter-spacing: 0; color: var(--muted); }

.w-two { display: grid; gap: var(--s6); }
.w-two h3 { font: 600 var(--h3)/1.15 var(--sans); letter-spacing: -0.025em; color: var(--ink); margin-bottom: var(--s2); }
@media (min-width: 960px) { .w-two { grid-template-columns: 1fr 1fr; column-gap: var(--s8); } }

.w-next > .w-kicker { display: block; }
.w-section__head + .w-chapters > .w-chapter:first-child { border-top: 0; padding-top: var(--s2); }
.w-next__sub { display: block; margin-top: var(--s2); max-width: 46ch; color: var(--muted); }

/* ---------- about strip ---------- */

.w-about { display: grid; gap: var(--s4); }
.w-about__text { font: 500 clamp(22px, 2.3vw, 30px)/1.3 var(--sans); letter-spacing: -0.02em; color: var(--ink); max-width: 30ch; text-wrap: pretty; }
.w-about__facts { display: grid; gap: 0; margin-top: var(--s5); max-width: 560px; }
.w-about__facts div { display: grid; grid-template-columns: 96px 1fr; gap: var(--s2); padding-block: 12px; border-top: 1px solid var(--hairline); font-size: 16px; }
.w-about__facts dt { font: 500 12px/1.9 var(--mono); letter-spacing: 0; color: var(--muted); }
.w-about__facts dd { color: var(--ink); }
.w-about__line { display: block; }
.w-about__line + .w-about__line { margin-top: 6px; }
.w-about__photo { width: min(100%, 320px); }
@media (min-width: 960px) {
  .w-about { grid-template-columns: 3fr 7fr 3fr; column-gap: var(--s6); align-items: start; }
  .w-about__photo { width: 100%; }
}

/* ---------- archive list ---------- */

.w-archive { border-bottom: 1px solid var(--hairline); }
.w-archive li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s3);
  align-items: baseline;
  padding-block: 20px;
  border-top: 1px solid var(--hairline);
}
.w-archive__name { font: 500 20px/1.3 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.w-archive__what { grid-column: 1 / -1; font-size: 16px; color: var(--muted); }
.w-archive__type, .w-archive__year { font: 500 12px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.w-archive__type { display: none; }
@media (min-width: 760px) {
  .w-archive li { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2fr) 80px; }
  .w-archive__what { grid-column: auto; }
  .w-archive__type { display: block; }
  .w-archive__year { text-align: right; }
}

/* ---------- footer ---------- */

.w-footer {
  position: relative;
  isolation: isolate;
  margin-top: var(--s4);
  padding-block: var(--s5); /* just the row of links now (the big line went 2026-11-19) */
  border-top: 1px solid var(--hairline);
}
.w-footer::before { /* faint ruled paper */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in srgb, var(--hairline) 55%, transparent) 31px 32px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, rgba(0, 0, 0, 0.8));
  mask-image: linear-gradient(to bottom, transparent 10%, rgba(0, 0, 0, 0.8));
}
.w-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); font-size: 15px; color: var(--muted); }
.w-footer__links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.w-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); background-position: 0 calc(50% + 0.75em); }
.w-footer__links a:hover { background-position: 100% calc(50% + 0.75em); }

/* ---------- live calendar (.w-cal) ----------
   The reservations calendar's signature moment, built by work/js/cal-demo.js
   (markup there). The product's own colours inside a calm white card:
   blue for targeted reservations and the selection, purple for takeovers,
   traffic-light dots for availability. .w-cal-legend is the static key used
   in the problem section. .w-vh hides text visually but keeps it for screen
   readers (the live region). */

.w-vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.w-cal-note { display: none; margin-left: auto; }
@media (min-width: 768px) { .w-cal-note { display: inline-flex; } }

.w-cal-intro { display: grid; gap: var(--s2); margin-bottom: clamp(24px, 4vw, 40px); }
.w-cal-intro > p:last-child { max-width: 58ch; }
@media (min-width: 960px) {
  .w-cal-intro { grid-template-columns: 5fr 6fr; column-gap: var(--s8); align-items: end; }
}

.w-cal-stage { padding: 0; } /* the calendar floats on the page, no tinted mount (2026-11-18) */
.w-cal-stage .w-cal { box-shadow: 0 0 0 1px var(--hairline), var(--float); }
.w-cal-hint {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 4px var(--s2);
  font-size: 15px; line-height: 1.45;
  color: var(--body);
}
.w-cal-hint svg { width: 20px; height: 20px; flex: none; margin-top: 0; color: var(--ink); }
.w-cal-hint strong { font-weight: 600; color: var(--ink); margin-right: 6px; }
.w-cal-hint__keys, .w-cal-hint__touch { color: var(--muted); }
.w-cal-hint__touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .w-cal-hint__keys { display: none; }
  .w-cal-hint__touch { display: inline; }
}
.w-cal-fallback { padding: var(--s4); font-size: 16px; color: var(--muted); }

.w-cal {
  --cal-blue: #3566e8;      /* white text on it: 5.0:1 */
  --cal-blue-ink: #2f5fe0;
  --cal-purple: #9a3df0;    /* white text on it: 4.9:1 */
  --cal-sel: #3566e8;
  --cal-line: #eceae4;
  --cal-today: #f6f8fe;
  --cal-label: 188px;
  --cal-day: 70px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent), var(--float);
  font-size: 14px; line-height: 1.3;
  color: var(--ink);
}
@media (max-width: 767.98px) {
  .w-cal { --cal-label: 118px; --cal-day: 74px; }
  .w-cal .w-cal__corner, .w-cal .w-cal__label { padding: 0 10px 0 14px; }
  .w-cal .w-cal__corner { padding-bottom: 10px; }
  .w-cal__count { font-size: 13px; }
  .w-cal__bar { padding: 14px 14px 12px; }
  .w-cal__key { padding-inline: 14px; }
}

.w-cal__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px var(--s2);
  padding: 16px 20px;
  border-bottom: 1px solid var(--cal-line);
}
.w-cal__title { font: 600 17px/1.25 var(--sans); letter-spacing: -0.015em; }
.w-cal__sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.w-cal__range {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border: 1px solid var(--cal-line); border-radius: 8px;
  font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums;
}

.w-cal__scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-padding-left: var(--cal-label);
  scrollbar-width: thin;
  scrollbar-color: #d6d2c8 transparent;
}
.w-cal__body { position: relative; min-width: calc(var(--cal-label) + var(--days, 14) * var(--cal-day)); }
.w-cal__grid { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

.w-cal__row {
  display: grid;
  grid-template-columns: var(--cal-label) repeat(var(--days, 14), minmax(var(--cal-day), 1fr));
  grid-template-rows: 34px 30px 30px 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cal-line);
}
.w-cal__row:last-child { border-bottom: 0; }
/* the dates header scrolls the calendar sideways, and still lets the page scroll */
.w-cal__row--head { grid-template-rows: 62px; padding-bottom: 0; touch-action: pan-x pan-y; }

.w-cal__corner, .w-cal__label {
  position: sticky; left: 0; z-index: 4;
  grid-column: 1; grid-row: 1 / -1;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 0 14px 0 20px;
  background: var(--surface);
  border-right: 1px solid var(--cal-line);
}
.w-cal__corner { justify-content: flex-end; padding-bottom: 10px; }
.w-cal__count { font-weight: 600; font-size: 14px; }
.w-cal__month { font-size: 12px; color: var(--muted); }
.w-cal__name { font-weight: 500; font-size: 14.5px; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.w-cal__surface { font-size: 12px; color: var(--muted); }

.w-cal__dh {
  grid-row: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-left: 1px solid var(--cal-line);
}
.w-cal__dh:nth-child(2) { border-left: 0; }
.w-cal__wd { font-size: 12px; color: var(--muted); }
.w-cal__dn {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.w-cal__dh.is-today { background: var(--cal-today); }
.w-cal__dh.is-today .w-cal__wd { color: var(--cal-blue-ink); }
.w-cal__dh.is-today .w-cal__dn { background: var(--cal-blue); color: #fff; }

.w-cal__cell {
  position: relative;
  grid-row: 1 / -1;
  display: flex; justify-content: center;
  padding-top: 9px;
  border-left: 1px solid var(--cal-line);
  cursor: cell;
  touch-action: pan-y;
  outline: none;
  transition: background-color var(--fast) var(--ease);
}
.w-cal__row .w-cal__cell[data-col="0"] { border-left: 0; }
.w-cal__cell.is-today { background: var(--cal-today); }
@media (hover: hover) { .w-cal__cell:hover { background: #f3f5fb; } }
.w-page .w-cal__cell:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; border-radius: 8px; z-index: 5; }

.w-cal__avail {
  display: inline-flex; align-items: center; gap: 6px; height: 18px;
  font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: opacity var(--fast) var(--ease);
}
.w-cal__avail.is-none { color: #6f6b62; }
.w-cal__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: #b9b5ab; }
.w-cal__dot.is-open { background: #12a150; }
.w-cal__dot.is-limited { background: #e8a50b; }
.w-cal__dot.is-tight { background: #f0632a; }
.w-cal__dot.is-none { background: #a8a49b; }
.w-cal__dot.is-oversold { background: #ec3662; }

.w-cal__res {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  min-width: 0; height: 26px; margin: 2px 4px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  background: var(--cal-blue);
  color: #fff;
  font-size: 12.5px; line-height: 1; white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}
.w-cal__res b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.w-cal__res .w-cal__per, .w-cal__res .w-cal__pace { opacity: 0.88; flex: none; }
/* like the product, the label drops pieces as the bar narrows: the advertiser
   always shows (truncating last), then impressions per day, then pacing */
.w-cal__res { container-type: inline-size; }
@container (max-width: 170px) { .w-cal__res .w-cal__per { display: none; } }
@container (max-width: 280px) { .w-cal__res .w-cal__pace { display: none; } }
.w-cal__res .w-cal__pace::before { content: '\00b7'; margin-right: 6px; }
.w-cal__res.is-takeover { background: var(--cal-purple); }
.w-cal__res.is-draft { background: var(--surface); color: var(--cal-blue-ink); outline: 1.5px dotted var(--cal-blue); outline-offset: -1.5px; }
.w-cal__res.is-clip-start { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 10px; }
.w-cal__res.is-clip-end { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.w-cal__icon { display: inline-flex; flex: none; }
.w-cal__icon svg { width: 12px; height: 12px; }

.w-cal__more {
  grid-row: 4; z-index: 2;
  justify-self: center; align-self: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1efea;
  font-size: 12px; font-weight: 500; color: var(--body); white-space: nowrap;
  pointer-events: none;
}

/* the selection: a blue box over the chosen days, the bars under it washed out */
.w-cal__sel {
  grid-row: 1 / -1; z-index: 3;
  margin: 2px 0 -4px;
  border: 2px solid var(--cal-sel);
  border-radius: 12px;
  background: color-mix(in srgb, #e3ebfd 78%, transparent);
  pointer-events: none;
  animation: w-cal-in var(--fast) var(--ease);
}
.w-cal__cell.is-selected .w-cal__avail { opacity: 0.45; }
.w-cal.is-dragging, .w-cal.is-dragging .w-cal__cell { cursor: col-resize; }

.w-cal__pop {
  position: absolute; z-index: 6;
  display: grid; justify-items: center; gap: 4px;
  width: max-content; max-width: min(320px, calc(100% - 16px));
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(22, 20, 15, 0.07), 0 16px 36px -12px rgba(22, 20, 15, 0.32);
  text-align: center;
  animation: w-cal-pop var(--slow) var(--ease);
}
.w-cal__pop[hidden] { display: none; }
.w-cal__poptotal { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.w-cal__poptotal b { font-weight: 600; font-variant-numeric: tabular-nums; }
.w-cal__popmeta { max-width: 32ch; font-size: 12.5px; color: var(--muted); text-wrap: balance; }
.w-cal__actions { display: flex; gap: 8px; margin-top: 6px; }
.w-cal__btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #dcd8ce;
  background: var(--surface);
  color: var(--ink);
  font: 500 14.5px/1 var(--sans);
  cursor: pointer;
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.w-cal__btn:hover { border-color: #bdb8ac; }
.w-cal__btn:active { transform: scale(0.97); }
.w-cal__btn--solid { background: var(--cal-blue); border-color: var(--cal-blue); color: #fff; }
.w-cal__btn--solid:hover { background: #2a58d6; border-color: #2a58d6; }
.w-page .w-cal__btn:focus-visible { outline-offset: 2px; border-radius: 999px; }

.w-cal__toast {
  position: absolute; left: 50%; bottom: 16px; z-index: 8;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-size: 14px; font-weight: 500; text-align: center;
  opacity: 0; transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.w-cal__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.w-cal__key {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--cal-line);
  font-size: 12.5px; color: var(--muted);
}
.w-cal__key li { display: inline-flex; align-items: center; gap: 7px; }
.w-cal__swatch { width: 18px; height: 8px; border-radius: 999px; background: var(--cal-blue); }
.w-cal__swatch.is-takeover { background: var(--cal-purple); }
.w-cal__swatch.is-draft { background: var(--surface); outline: 1.5px dotted var(--cal-blue); outline-offset: -1.5px; }

@keyframes w-cal-in { from { opacity: 0; } }
@keyframes w-cal-pop { from { opacity: 0; transform: translateY(4px) scale(0.98); } }

/* the static key in the problem section */
.w-cal-legend {
  display: grid;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.w-cal-legend li {
  display: grid; grid-template-columns: 96px 1fr; gap: 2px var(--s2); align-items: baseline;
  padding: 14px var(--s3);
  border-top: 1px solid var(--hairline);
}
.w-cal-legend li:first-child { border-top: 0; }
.w-cal-legend__num {
  grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 16px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.w-cal-legend__num .w-cal__dot { width: 7px; height: 7px; }
.w-cal-legend__name { font: 600 16px/1.3 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.w-cal-legend__rule { font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ---------- build log ----------
   The side project page: shorter than a case study, proof that it shipped.
   <body class="w-page w-log" data-project="...">. Each block carries
   data-section, in this order:
   hero        .w-hero with .w-hero__title, .w-hero__lead and .w-log-actions
               (Try it live .w-btn--accent in a new tab, Shipped pill, dates)
   hero-media  .w-matte > .w-browser > .w-media, caption
   about       .w-log-about: What it is (.w-log-about__lead), What I built
               (.w-log-built), Stack (.w-log-stack: <li><strong/><span/></li>)
   claude      "How I made it with Claude": .w-log-intro, .w-log-calls of
               three .w-log-call (tag Decided / Rejected / Fixed, h3, p), then
               .w-log-slots: .w-log-prompt, .w-log-decisions, .w-log-ba
               (each a .w-log-slot figure with data-slot)
   media       .w-log-gallery of 3 to 5 figures (.w-media + .w-caption)
   people      "What people did with it": .w-metrics + .w-quote
   next        .w-next */

.w-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.w-btn--accent:hover { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
/* where a live link will go once it exists: dashed, not a link */
.w-btn--todo { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 55%, var(--hairline)); background: transparent; color: var(--ink); font-size: 15px; cursor: default; }
.w-btn--todo:hover, .w-btn--todo:active { border-color: color-mix(in srgb, var(--accent) 55%, var(--hairline)); transform: none; }

.w-log-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s5); }
.w-log-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--ink); }
.w-log-dates { font: 500 12px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--muted); }

.w-log-about {
  display: grid; gap: var(--s5);
  padding-top: var(--s3);
  border-top: 2px solid var(--rule-accent); /* the project's own colour (Laura, 2026-11-19) */
}
.w-log-about h2 { margin-bottom: var(--s2); }
.w-log-about__lead p { font: 500 clamp(19px, 1.7vw, 22px)/1.45 var(--sans); letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.w-log-built li, .w-log-stack li { padding-block: 12px; border-top: 1px solid var(--hairline); font-size: 16px; line-height: 1.5; }
.w-log-built li:first-child, .w-log-stack li:first-child { border-top: 0; padding-top: 0; }
.w-log-built li { position: relative; padding-left: 20px; color: var(--body); }
.w-log-built li::before { content: ''; position: absolute; left: 2px; top: calc(12px + 0.62em); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.w-log-built li:first-child::before { top: 0.62em; }
.w-log-stack { display: grid; }
.w-log-stack li { display: grid; gap: 2px; }
.w-log-stack strong { font: 500 13px/1.5 var(--mono); letter-spacing: 0.01em; color: var(--ink); }
.w-log-stack span { font-size: 15px; line-height: 1.45; color: var(--muted); }
@media (min-width: 720px) and (max-width: 1039.98px) {
  .w-log-about { grid-template-columns: 1fr 1fr; column-gap: var(--s6); }
  .w-log-about > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .w-log-about { grid-template-columns: 5fr 4fr 3fr; column-gap: var(--s6); }
}

/* How I made it with Claude: the page's one signature block. Three calls in
   a row, then the evidence on a soft accent bench: the prompt as a dark
   terminal card, the decision log, and a before/after pair. */
.w-log-intro { display: grid; gap: var(--s2); margin-bottom: clamp(32px, 5vw, 56px); }
.w-log-intro .w-h2 { max-width: 20ch; }
.w-log-intro > p:last-child { max-width: 58ch; }
@media (min-width: 960px) {
  .w-log-intro { grid-template-columns: 5fr 6fr; column-gap: var(--s8); align-items: end; }
}

.w-log-calls { display: grid; gap: var(--s2); }
.w-log-call {
  display: grid; align-content: start; gap: var(--s1);
  padding: var(--s3);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.w-log-call__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1.4 var(--mono); letter-spacing: 0;
  color: var(--accent-text);
}
.w-log-call__tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.w-log-call h3 { margin-top: 4px; font: 600 20px/1.2 var(--sans); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.w-log-call p { font-size: 16px; line-height: 1.55; }
@media (min-width: 900px) { .w-log-calls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); } }

/* A 9:16 clip, phone-sized rather than card-sized: in a decision card (220px)
   and beside a trailer note (300px, with a lifted shadow). */
.w-portrait { width: min(100%, var(--portrait-w, 220px)); margin-inline: auto; }
.w-portrait .w-media { border-radius: var(--portrait-r, 16px); overflow: hidden; }

/* A vertical trailer clip beside a short note (side-project case studies). */
.w-trailer {
  display: grid; gap: var(--s3); align-items: center;
  margin: var(--s4) 0 0;
}
.w-trailer .w-portrait { --portrait-w: 300px; --portrait-r: 20px; }
.w-trailer .w-portrait .w-media { box-shadow: 0 0 0 1px var(--hairline), var(--float); }
.w-trailer__text { display: flex; flex-direction: column; gap: var(--s2); max-width: 44ch; }
.w-trailer__text p { font-size: 17px; line-height: 1.55; color: var(--body); }
@media (min-width: 768px) { .w-trailer { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s5); } }

.w-log-slots {
  display: grid; gap: var(--s2);
  margin-top: var(--s3);
  padding: clamp(12px, 3vw, 32px);
  border-radius: 24px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.w-log-slot {
  display: flex; flex-direction: column; gap: var(--s2);
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent);
}
.w-log-slot__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.w-log-slot__hint { font: 500 12px/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); }
.w-log-slot .w-caption { margin-top: auto; }
@media (min-width: 960px) {
  .w-log-slots { grid-template-columns: 5fr 7fr; gap: var(--s3); }
  .w-log-ba { grid-column: 1 / -1; }
  /* phone before/after: a tall pair beside the prompt and the log, not a wide band */
  .w-log-slots--phone { grid-template-columns: 7fr 5fr; }
  .w-log-slots--phone .w-log-ba { grid-column: 2; grid-row: 1 / span 2; }
}

.w-log-prompt { background: var(--ink); box-shadow: none; color: rgba(247, 245, 240, 0.84); }
.w-log-prompt .w-kicker, .w-log-prompt .w-log-slot__hint, .w-log-prompt .w-caption { color: rgba(247, 245, 240, 0.62); }
.w-log-prompt .w-todo { background: rgba(255, 255, 255, 0.1); }
.w-log-prompt__text {
  display: grid; grid-template-columns: 16px 1fr; gap: var(--s1);
  font: 500 14px/1.65 var(--mono);
  letter-spacing: 0;
}
.w-log-prompt__text::before { content: '>'; color: color-mix(in srgb, var(--accent) 60%, #ffffff); }
pre.w-log-prompt__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- versions strip (.w-versions), side project case studies ----------
   A dated row of what each version looked like and what changed. Wide screens:
   a sideways scroll-snap row that scrolls on its own axis (the page never
   scrolls sideways). Phones: one column. */
.w-versions {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px);
  gap: var(--s3);
  margin: var(--s4) calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) var(--s2);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  list-style: none;
}
.w-versions:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: var(--r-media); }
.w-versions__item { display: grid; align-content: start; gap: var(--s1); scroll-snap-align: start; min-width: 0; }
.w-versions__item time { font: 500 12px/1.4 var(--mono); letter-spacing: 0; color: var(--accent-text); }
.w-versions__title { font: 600 18px/1.25 var(--sans); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.w-versions__item .w-media { border-radius: var(--r-media); }
@media (max-width: 767.98px) {
  .w-versions { grid-auto-flow: row; grid-auto-columns: auto; margin-inline: 0; padding-inline: 0; overflow-x: visible; gap: var(--s4); }
}
/* phone apps: each version is a phone, narrower columns on wide screens, and a
   phone that never fills the screen when stacked */
.w-versions:has(.w-phone) { grid-auto-columns: minmax(200px, 220px); }
.w-versions .w-phone { width: min(200px, 100%); }
@media (max-width: 767.98px) {
  .w-versions .w-phone { width: min(240px, 70vw); }
}
/* a phone frame for apps that draw their own top bar: no island over it */
.w-phone--bare::before { content: none; }
.w-phone--bare .w-media::after { top: auto; bottom: 10px; }

.w-log-decisions { justify-content: flex-start; }
.w-log-decisions ol { display: grid; }
.w-log-decisions li {
  display: grid; gap: 4px;
  padding-block: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 15px; line-height: 1.45; color: var(--ink);
}
.w-log-decisions__when { font: 500 12px/1.6 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.w-log-decisions__call { color: var(--body); }
@media (min-width: 600px) {
  .w-log-decisions li { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s2); }
}

.w-log-ba { gap: var(--s3); }
.w-log-ba__pair { display: grid; gap: var(--s2); }
.w-log-ba__side { display: grid; gap: var(--s1); align-content: start; min-width: 0; }
.w-log-ba__tag { font: 500 12px/1.4 var(--mono); letter-spacing: 0; color: var(--muted); }
.w-log-ba__side + .w-log-ba__side .w-log-ba__tag { color: var(--accent-text); }
@media (min-width: 600px) { .w-log-ba__pair { grid-template-columns: 1fr 1fr; gap: var(--s3); } }
/* phone screenshots stay side by side, and never taller than they need be */
.w-log-ba--phone .w-log-ba__pair { grid-template-columns: 1fr 1fr; width: 100%; max-width: 520px; margin-inline: auto; }

/* 3 to 5 captioned clips, two to a row; with an odd count the first runs wide */
.w-log-gallery { display: grid; gap: var(--s5) var(--s3); }
.w-log-gallery .w-media { --ph-bg: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
@media (min-width: 720px) {
  .w-log-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-log-gallery > figure:first-child:nth-last-child(2n + 1) { grid-column: 1 / -1; }
}

/* ---------- password gate (.w-gate) ----------
   A sealed case study's public page: hero copy, then one field. unlock.js
   swaps <main> for the decrypted page; nothing here describes the project. */

.w-gate__form { margin-top: var(--s5); max-width: 520px; }
.w-gate__label { display: block; margin-bottom: var(--s1); }
.w-gate__row { display: flex; gap: var(--s1); }
.w-gate__input {
  flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 var(--s2);
  border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface);
  font: 400 17px/1 var(--sans); color: var(--ink);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.w-gate__input:hover { border-color: #cfc9bb; }
.w-gate__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.w-gate__input[aria-invalid="true"] { border-color: #b3261e; }
.w-gate__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.14); }
.w-gate .w-btn { min-height: 52px; flex: none; }
.w-gate .w-btn--accent:disabled { opacity: 0.6; cursor: progress; }
.w-gate__error { margin-top: var(--s1); font-size: 15px; color: #b3261e; }
.w-gate__status { margin-top: var(--s1); font-size: 15px; color: var(--muted); }
.w-gate__status:empty { display: none; }
/* a sealed slot showing its decrypted poster while the clip waits (unlock.js) */
.w-media[data-sealed="poster"]::after { content: none; }
.w-gate__ask { margin-top: var(--s3); font-size: 16px; color: var(--muted); }
.w-gate__ask .w-link { margin-left: 0.25em; }
.w-gate__lock { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s3); border-radius: 14px; background: var(--accent); color: var(--accent-ink); }
.w-gate__lock svg { width: 22px; height: 22px; }
@media (max-width: 479.98px) {
  .w-gate__row { flex-direction: column; }
  .w-gate .w-btn { justify-content: center; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .w-page *, .w-page *::before, .w-page *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .w-card:hover, .w-card:active, .w-card:hover .w-phone,
  .w-card:hover .w-media > video, .w-card:hover .w-media > img { transform: none; }
  /* scroll moments: nothing pinned, every frame stacked in order (scrolly.js
     also adds .is-stacked; the pinned rules only apply with motion allowed) */
  .w-scrolly__stage { position: static; }
  .w-scrolly-note { display: none; }
}

/* ---------- before / after (.w-ba) ----------
   Markup and behaviour: see work/js/compare.js. A drag anywhere on the
   picture moves the split; before on the left, after on the right.
   --ba-ratio: the pictures' width / height. .w-ba--phone: a phone sized pair. */
.w-ba { margin: 0; display: grid; gap: var(--s2); }
.w-ba__frame {
  --pos: 30%;
  position: relative;
  aspect-ratio: var(--ba-ratio, 16 / 10);
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent), var(--float);
  touch-action: pan-y;
  user-select: none;
}
.w-ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; }
.w-ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.w-ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent);
  pointer-events: none;
}
/* the knob (Bencho's .cmp-knob, with this site's tokens: --card is --surface,
   --fill-on is --ink, --signal is --accent-text, --font-ui is --sans) */
.w-ba__handle::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; translate: -50% -50%;
  border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M5 1 1 5l4 4M11 1l4 4-4 4' fill='none' stroke='%2316140f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 10px no-repeat;
  box-shadow: 0 0 0 2px rgba(22, 20, 15, 0.55), 0 2px 12px rgba(23, 24, 26, 0.3);
  transition: scale 220ms cubic-bezier(0.24, 1.34, 0.38, 1);
}
.w-ba__frame:hover .w-ba__handle::after { scale: 1.08; }
.w-ba__frame[data-held] .w-ba__handle::after { scale: 0.9; }
/* live (JS): the line is drawn, so it can bend; the handle keeps only the knob.
   [Bencho] a 2px white curve with a soft glow, over the whole block */
.w-ba__frame.is-live .w-ba__handle { left: 0; background: none; box-shadow: none; }
.w-ba__frame.is-live .w-ba__after { clip-path: none; }
.w-ba__line {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}
.w-ba__line path { fill: none; stroke: #fff; stroke-width: 2.5; }
/* a dark hairline under the white line so it shows on white screens too */
.w-ba__line { filter: drop-shadow(0 0 1px rgba(22, 20, 15, 0.6)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)); }
.w-ba__tag {
  position: absolute; bottom: 12px; /* bottom corners: app headers and logos sit at the top */
  padding: 4px 12px; border-radius: 999px;
  font: 600 14px/1.4 var(--sans);
  color: #fff; background: rgba(23, 24, 26, 0.62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  pointer-events: none;
}
.w-ba__tag--before { left: 12px; }
.w-ba__tag--after { right: 12px; }
.w-ba__frame { cursor: ew-resize; touch-action: pan-y; } /* vertical swipes still scroll the page on phones */
/* the range input is for keyboard and screen readers; the frame handles the pointer */
.w-ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.w-ba__frame:has(.w-ba__range:focus-visible) { box-shadow: 0 0 0 2px var(--accent-text); }
.w-ba__img { -webkit-user-drag: none; }
.w-ba--phone .w-ba__frame { width: min(340px, 100%); margin-inline: auto; border-radius: 28px; }
/* the phone pair inside a phone mockup (Koddi Mobile) */
.w-ba__phone { width: min(360px, 100%); margin-inline: auto; }
.w-ba__phone .w-ba__frame { width: 100%; border-radius: 31px; box-shadow: none; }
.w-ba__phone .w-ba__frame:has(.w-ba__range:focus-visible) { box-shadow: 0 0 0 2px var(--accent-text); }
.w-ba__phone .w-ba__tag { bottom: 20px; }
.w-ba__phone .w-ba__tag--before { left: 18px; }
.w-ba__phone .w-ba__tag--after { right: 18px; }
/* Before reads as the past: faded, darker at the edges. The before picture is
   the frame's own <img>; the after layer sits on top and covers this on the right. */
.w-ba__frame > .w-ba__img { filter: grayscale(0.85) brightness(0.86) contrast(0.92); }
.w-ba__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(22, 20, 15, 0.42) 100%);
}
.w-ba__tag--before { background: rgba(23, 24, 26, 0.5); color: rgba(255, 255, 255, 0.86); }
.w-ba__tag--after { background: var(--accent); color: var(--accent-ink); }

/* The pencil hint, right above the slider: an arrow from the words down to the
   line. Armed by compare.js (so without JS it is just there), it writes itself
   in when the slider comes into view, then the arrow draws. */
.w-ba__hint {
  display: flex; align-items: flex-start; gap: 6px;
  /* the arrow's tip lands on the line, which starts 30% from the left (Laura, 2026-11-18) */
  margin: 0 0 2px; padding-left: calc(30% - 10px);
  transform: none;
}
.w-ba__hint svg { width: 40px; height: 50px; margin: 0; }
/* in a phone the line is 30% across the phone's screen, which sits centred and 9px inside the frame */
.w-ba--phone .w-ba__hint { padding-left: calc(50% - min(360px, 100%) * 0.2 - 6.4px); }
.w-ba__hint span { display: block; margin-top: -2px; transform: rotate(-4deg); transform-origin: left bottom; min-width: 0; }
.w-ba__hint.is-armed span { clip-path: inset(-30% 100% -30% 0); }
.w-ba__hint.is-armed path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.w-ba__hint.is-drawn span { clip-path: inset(-30% 0 -30% 0); transition: clip-path 900ms cubic-bezier(0.5, 0, 0.3, 1); }
.w-ba__hint.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 520ms cubic-bezier(0.4, 0, 0.2, 1) 820ms; }
.w-ba__hint.is-drawn path + path { transition-delay: 1300ms; transition-duration: 220ms; }
.w-ba-section .w-ba { margin-top: var(--s4); }

/* .w-alts: two or three ruled-out directions side by side, each a picture and a short reason. */
.w-alts { display: grid; gap: var(--s4); margin-top: var(--s5); }
.w-alts figure { margin: 0; display: grid; gap: var(--s2); align-content: start; }
.w-alts img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border-radius: var(--r-media); box-shadow: 0 0 0 1px var(--hairline); background: var(--surface); }
.w-alts__verdict { font: 500 12px/1 var(--mono); letter-spacing: 0; color: var(--muted); }
.w-alts__verdict--yes { color: var(--accent-text); }
.w-alts h3 { font: 600 20px/1.2 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
@media (min-width: 720px) { .w-alts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
/* each direction's screen floats in a portrait box: a phone shown whole, or a crop of a desktop shot */
.w-alts__stage { aspect-ratio: 4 / 5; display: flex; justify-content: center; align-items: center; container-type: size; }
.w-alts__stage .w-phone { width: calc((100cqh - 18px) * 720 / 1560 + 18px); border-radius: 32px; }
.w-alts__stage .w-phone::before { top: 14px; height: 16px; }
.w-alts .w-alts__stage .w-phone img { aspect-ratio: 720 / 1560; border-radius: 24px; box-shadow: none; display: block; }
.w-alts .w-alts__stage .w-alts__shot { height: 100%; box-shadow: 0 0 0 1px var(--hairline), var(--float); }

/* a still Figma frame inside a scrolly browser frame shows from the top */
.w-scrolly__frame .w-media img { object-fit: cover; object-position: top center; }

/* the version rail (.w-scrolly--evolution) holds any number of versions */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .w-scrolly--evolution:not(.is-stacked) .w-steprail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
.w-scrolly__steps .w-caption { margin-top: var(--s1); }

/* a square hero (a phone and its widget) stays a comfortable size on wide screens */
.w-matte--square { max-width: 860px; margin-inline: auto; }

/* .w-cone: the forecast range, drawn (Koddi Mobile, decision 3). The spent line draws,
   a single confident line appears, then it gives way to the range it really is.
   Reduced motion: the finished chart, still. */
.w-cone { aspect-ratio: 9 / 19.5; border-radius: 31px; overflow: hidden; background: #f4f5f8; }
.w-scrolly:not(.is-stacked) .w-scrolly__frame .w-phone .w-cone { height: 100%; aspect-ratio: auto; }
.w-cone svg { display: block; width: 100%; height: 100%; font-family: -apple-system, "Helvetica Neue", sans-serif; }
.w-cone .sb { font-size: 15px; font-weight: 600; fill: #111; }
.w-cone .card { fill: #fff; stroke: #e5e7ee; }
.w-cone .h { font-size: 15px; font-weight: 600; fill: #111; }
.w-cone .pill { fill: #fdf0dc; } .w-cone .pillt { font-size: 11px; font-weight: 600; fill: #9a5b00; }
.w-cone .gapl { stroke: #9a5b00; stroke-width: 1.6; } .w-cone .gapt { font-size: 11.5px; font-weight: 700; fill: #9a5b00; }
.w-cone .t { font-size: 20px; font-weight: 650; fill: #111; letter-spacing: -0.01em; }
.w-cone .s { font-size: 12.5px; fill: #5b6070; }
.w-cone .g { stroke: #eef0f4; } .w-cone .axis { stroke: #c9ccd6; } .w-cone .key { stroke: #2f6fe0; stroke-width: 3.2; stroke-linecap: round; } .w-cone .ax { font-size: 11px; fill: #7a7f8c; }
.w-cone .budget { stroke: #3a3d46; stroke-width: 1.6; stroke-dasharray: 6 5; }
.w-cone .bl { font-size: 11.5px; font-weight: 600; fill: #3a3d46; }
.w-cone .today { stroke: #c9ccd6; stroke-dasharray: 2 4; } 
.w-cone .spent { fill: none; stroke: #2f6fe0; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.w-cone .one { fill: none; stroke: #2f6fe0; stroke-width: 2; stroke-dasharray: 4 4; }
.w-cone .band { fill: rgba(226, 64, 110, 0.32); stroke: #e2406e; stroke-width: 1.4; }
.w-cone .labbg { fill: #16140f; } .w-cone .labt { font-size: 12.5px; font-weight: 700; fill: #fff; } .w-cone .labs { font-size: 10.5px; fill: #f3c4d2; }
.w-cone .lg { font-size: 11.5px; fill: #5b6070; }
@media (prefers-reduced-motion: no-preference) {
  .w-cone .spent { stroke-dasharray: 400; animation: w-cone-draw 8s var(--ease) infinite; }
  .w-cone .one { animation: w-cone-one 8s linear infinite; }
  .w-cone path.band { transform-box: fill-box; transform-origin: left center; animation: w-cone-band 8s var(--ease) infinite; }
  .w-cone .lab, .w-cone .gap { animation: w-cone-lab 8s linear infinite; }
}
@keyframes w-cone-draw { 0% { stroke-dashoffset: 400; } 14%, 100% { stroke-dashoffset: 0; } }
@keyframes w-cone-one { 0%, 16% { opacity: 0; } 22%, 40% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes w-cone-band { 0%, 40% { transform: scaleX(0); opacity: 0; } 41% { opacity: 1; } 56%, 100% { transform: scaleX(1); opacity: 1; } }
@keyframes w-cone-lab { 0%, 56% { opacity: 0; } 62%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* A stage with no thesis line above the device gives the device the whole stage (Laura,
   2026-11-18: the phone takes up more room); decisions pages always worked this way */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .w-scrolly--decisions:not(.w-scrolly--desktop):not(.is-stacked) .w-scrolly__stage,
  .w-scrolly:not(.is-stacked) .w-scrolly__stage:not(:has(.w-scrolly__thesis)) { grid-template-rows: minmax(0, 1fr); }
  .w-scrolly:not(.w-scrolly--desktop):not(.is-stacked) .w-scrolly__stage:not(:has(.w-scrolly__thesis)) .w-scrolly__frame { height: min(100cqh, 900px, calc(100cqw / var(--device-ratio))); }
}

/* Desktop screens need room: a whole app shown 600 px wide turns its text to mush.
   The sections that pin a desktop frame run wider than the reading column, the text
   column narrows, and the green mount hugs the frame (2026-11-17 review). */
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .w-section:has(> .w-scrolly--desktop) { max-width: calc(1440px + 2 * var(--gutter)); }
  .w-scrolly--desktop:not(.is-stacked) { grid-template-columns: minmax(280px, 3fr) minmax(0, 9fr); gap: 0 clamp(32px, 4vw, 64px); }
  .w-scrolly--desktop:not(.is-stacked) .w-scrolly__stage { padding: clamp(16px, 1.6vw, 24px); }
  .w-scrolly--desktop:not(.is-stacked) .w-scrolly__device { height: min(calc(100cqw / var(--device-ratio)), 900px); }
}

/* the Koddi Mobile hero: the phone alone, large, centred in its mount */
.w-matte--phone { display: flex; justify-content: center; padding-block: clamp(32px, 5vw, 64px); }
.w-matte--phone .w-phone { width: min(400px, 78%); }

/* ---------- callouts (.w-annot + .w-callout) ----------
   A label pointing at one detail of a screenshot, drawn by the page (not baked
   into the picture) so it stays sharp and editable. Deep indigo across every
   Koddi page; no circles or boxes: a small dot on the detail, a thin line, and
   a label that floats a few pixels.
   <div class="w-annot" style="--iw:2880;--ih:1800">  (picture's pixel size; --ox/--oy: its object-position, default .5 / 0)
     <div class="w-media" ...> or <img>
     <span class="w-callout" style="--x:772;--y:726;--dx:64px;--dy:-46px">  (x, y in picture pixels; label offset)
       <i class="w-callout__dot"></i><i class="w-callout__line"></i><span class="w-callout__label">Words</span></span>
   --ax: -50% centres the label on its end point (default: the line meets its left edge). */
:root { --callout: #3b36b0; }
.w-annot { position: relative; container-type: size; aspect-ratio: var(--iw) / var(--ih); }
.w-annot > .w-media, .w-annot > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.w-scrolly:not(.is-stacked) .w-scrolly__frame .w-browser .w-annot { flex: 1; min-height: 0; aspect-ratio: auto; }
.w-annot--card { height: 100%; aspect-ratio: 4 / 5; }
.w-callout {
  --s: max(100cqw / var(--iw), 100cqh / var(--ih));
  position: absolute; z-index: 2; width: 0; height: 0; pointer-events: none;
  left: calc((100cqw - var(--iw) * var(--s)) * var(--ox, 0.5) + var(--x) * var(--s));
  top: calc((100cqh - var(--ih) * var(--s)) * var(--oy, 0) + var(--y) * var(--s));
}
.w-callout__dot {
  position: absolute; left: 0; top: 0; width: 9px; height: 9px; translate: -50% -50%;
  border-radius: 50%; background: var(--callout);
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 7px color-mix(in srgb, var(--callout) 18%, transparent), 0 2px 6px rgba(30, 27, 90, 0.35);
}
.w-callout__line {
  position: absolute; left: 0; top: 0; height: 1.5px; margin-top: -0.75px;
  width: hypot(calc(var(--dx) * var(--k, 1)), calc(var(--dy) * var(--k, 1))); rotate: atan2(var(--dy), var(--dx)); transform-origin: 0 50%;
  background: var(--callout); border-radius: 1px;
}
.w-callout__label {
  position: absolute; left: calc(var(--dx) * var(--k, 1)); top: calc(var(--dy) * var(--k, 1)); translate: var(--ax, 0) -50%;
  white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  font: 600 13px/1.2 var(--sans); letter-spacing: -0.005em; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--callout) 88%, #ffffff), var(--callout));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 24px -10px rgba(30, 27, 110, 0.6), 0 2px 6px -2px rgba(30, 27, 110, 0.35);
}
@media (prefers-reduced-motion: no-preference) {
  .w-callout__label { animation: w-callout-float 3.6s ease-in-out infinite; }
  .w-callout + .w-callout .w-callout__label { animation-delay: -1.8s; }
  @keyframes w-callout-float { 50% { transform: translateY(-3px); } }
}
@media (min-width: 1200px) { .w-callout__label { font-size: 14px; padding: 9px 16px; } }
/* Pause motion (the page's toggle) stops the float too */
html:has([data-motion-toggle][aria-pressed="true"]) .w-callout__label { animation-play-state: paused; }

/* ---------- clip controls (.w-player, work/js/player.js) ----------
   Under the looping first clip of each project page: play/pause, a scrubber, time. */
.w-player {
  display: flex; align-items: center; gap: 14px;
  width: min(560px, 100%); margin: var(--s3) auto 0;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline), 0 8px 24px -16px rgba(22, 20, 15, 0.35);
}
.w-player__btn {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}
.w-player__btn:hover { transform: scale(1.06); }
.w-player__btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.w-player__btn svg { width: 14px; height: 14px; fill: currentColor; }
.w-player__seek {
  --p: 0%;
  flex: 1; min-width: 0; height: 20px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.w-player__seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--p) 100% no-repeat, color-mix(in srgb, var(--ink) 12%, transparent); }
.w-player__seek::-moz-range-track { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.w-player__seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.w-player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--accent), 0 2px 6px rgba(22, 20, 15, 0.25); transition: transform 140ms var(--ease); }
.w-player__seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--accent), 0 2px 6px rgba(22, 20, 15, 0.25); }
.w-player__seek:hover::-webkit-slider-thumb, .w-player__seek:active::-webkit-slider-thumb { transform: scale(1.2); }
.w-player__seek:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 4px; }
.w-player__time { flex: none; font: 500 12px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 82px; text-align: right; }
@media (max-width: 480px) { .w-player__time { min-width: 0; } }
.w-player__btn--sound { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.w-player__btn--sound[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.w-player__btn--sound svg { width: 16px; height: 16px; }

/* ---------- live calendar: forecast, reserve, sold out (work/js/cal-demo.js) ---------- */
.w-cal__cell:has(.w-cal__avail.is-none) { cursor: not-allowed; }
.w-cal__cell.is-bump { animation: w-cal-bump 360ms cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes w-cal-bump { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.w-cal__avail.is-ticking { color: var(--accent-text); transition: color 400ms var(--ease); }

/* the new reservation grows out of the selection, then settles */
.w-cal__res.is-new {
  transform-origin: left center;
  animation: w-cal-land 720ms cubic-bezier(0.2, 0.9, 0.25, 1.15) both, w-cal-glow 1400ms ease-out both;
}
@keyframes w-cal-land { from { transform: scaleX(0.04) translateY(-8px); opacity: 0; } 55% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes w-cal-glow { 0%, 40% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .w-cal__res.is-new, .w-cal__cell.is-bump { animation: none; } }

.w-fc {
  width: min(880px, calc(100vw - 32px)); max-height: calc(100svh - 48px);
  padding: 0; border: 0; border-radius: 20px; overflow: auto;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(22, 20, 15, 0.5), 0 0 0 1px var(--hairline);
}
.w-fc[open] { animation: w-fc-in 260ms var(--ease) both; }
@keyframes w-fc-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.w-fc::backdrop { background: rgba(22, 20, 15, 0.36); backdrop-filter: blur(2px); }
.w-fc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s2); padding: var(--s3) var(--s3) var(--s2); border-bottom: 1px solid var(--hairline); }
.w-fc__title { font: 600 20px/1.2 var(--sans); letter-spacing: -0.015em; }
.w-fc__sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.w-fc__x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.w-fc__x:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.w-fc__x svg { width: 16px; height: 16px; }
.w-fc__body { display: grid; gap: var(--s3); padding: var(--s3); }
@media (min-width: 720px) { .w-fc__body { grid-template-columns: minmax(0, 1fr) 280px; } }
.w-fc__label { font: 600 14px/1.3 var(--sans); color: var(--ink); }
.w-fc__hint { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 46ch; }
.w-fc__groups { display: grid; gap: var(--s2); margin-top: var(--s2); }
.w-fc__group { border: 0; padding: 0; margin: 0; }
.w-fc__group legend { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; padding: 0; }
.w-fc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.w-fc__chip {
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  font: 500 13px/1.2 var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.w-fc__chip:hover { border-color: var(--accent); }
.w-fc__chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.w-fc__chip:focus-visible, .w-fc__link:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.w-fc__link { margin-top: var(--s2); padding: 0; border: 0; background: none; font: 500 13px/1 var(--sans); color: var(--accent-text); cursor: pointer; }
.w-fc__summary { align-self: start; padding: var(--s3); border-radius: 16px; background: color-mix(in srgb, var(--accent) 5%, var(--page)); box-shadow: inset 0 0 0 1px var(--hairline); }
.w-fc__big { display: block; margin-top: 6px; font: 600 34px/1.05 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; transition: color 300ms var(--ease); }
.w-fc__num { font: 600 16px/1 var(--sans); font-variant-numeric: tabular-nums; transition: color 300ms var(--ease); }
.w-fc__big.is-down, .w-fc__num.is-down { color: var(--accent-text); }
.w-fc__big.is-up, .w-fc__num.is-up { color: #15803d; }
.w-fc__line { margin-top: 6px; font-size: 12px; color: var(--muted); }
.w-fc__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--hairline); font-size: 14px; color: var(--body); }
.w-fc__foot { display: flex; justify-content: flex-end; gap: 10px; padding: var(--s2) var(--s3) var(--s3); border-top: 1px solid var(--hairline); }
/* phones: the numbers stay pinned above the chips so every tap visibly moves them,
   and Create reservation stays reachable at the bottom */
@media (max-width: 719.98px) {
  .w-fc__body { padding-top: var(--s2); }
  .w-fc__summary {
    order: -1; position: sticky; top: 0; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; padding: 14px 16px;
    box-shadow: inset 0 0 0 1px var(--hairline), 0 10px 18px -14px rgba(22, 20, 15, 0.35);
  }
  .w-fc__summary > .w-fc__label, .w-fc__big, .w-fc__line { grid-column: 1 / -1; }
  .w-fc__big { font-size: 28px; }
  .w-fc__row { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 8px; padding-top: 8px; font-size: 12px; }
  .w-fc__foot { position: sticky; bottom: 0; background: var(--surface); }
}

/* small pictures (phones, narrow cards): shorter lines, smaller labels, so a label stays inside the picture */
@container (max-width: 520px) {
  .w-callout { --k: 0.45; }
  .w-callout__label { font-size: 11px; padding: 5px 9px; }
  .w-callout__dot { width: 7px; height: 7px; }
}

/* a clip the phone would not start by itself (iPhone Low Power Mode; media.js): a tap plays it */
.w-tap-play {
  position: absolute; left: 50%; top: 50%; z-index: 6; /* above a compare's drag slider */ transform: translate(-50%, -50%);
  width: 56px; height: 56px; padding: 0 0 0 3px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgb(255 255 255 / .92); color: #16140f;
  box-shadow: 0 2px 6px rgb(0 0 0 / .12), 0 12px 28px -10px rgb(0 0 0 / .35);
}
.w-tap-play:focus-visible { outline: 2px solid #16140f; outline-offset: 3px; }
