/* LUMI CASE STUDY, the page-wide rules. Every section's own styles live in case/<section>.css, written
   inside its own id (#hero { ... }) so no class can reach another section.
   Where a rule here has to outrank a section's own, it starts html:root (the weight of one class and one
   element more than the section's rule), never !important. */

html { overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); background: var(--color-surface); color: var(--color-text-primary); }

/* Each section is the container its own picture measures against. The page is white;
   a section paints its own ground, edge to edge, or a card. */
.row { container: row / inline-size; overflow-x: clip; position: relative; padding-block: var(--section-padding); }

/* ONE SECTION PADDING. Every section pads its top and its bottom by the site's own --section-padding
   (tokens.css; the home page's rhythm, design-system.md "Unified section rhythm"). It is set here, once.
   A section never sets a margin or a padding of its own around its picture. On its <section>:
     data-rhythm="none"   the hero: it owns its own layout
     data-band            a section with its own ground, edge to edge (grey, black). It paints that
                          ground on its own id (#thinks { background }), so the padding sits inside
                          the colour
     data-seam="top"      a seamless join: this edge has no padding and blends into its neighbour
                          ("bottom", or "top bottom", the same way)
   The white side beside a band doubles, as the home page does, because a band's own padding hides
   inside its colour. */
.row[data-rhythm="none"] { padding-block: 0; }
.row[data-seam~="top"] { padding-top: 0; }
.row[data-seam~="bottom"] { padding-bottom: 0; }
.row:not([data-band], [data-rhythm="none"], [data-seam~="bottom"]):has(+ .row[data-band]) { padding-bottom: calc(var(--section-padding) * 2); }
.row[data-band] + .row:not([data-band], [data-rhythm="none"], [data-seam~="top"]) { padding-top: calc(var(--section-padding) * 2); }

/* TYPE. The whole page's type comes from --font-display and --font-body (tokens.css, never changed
   there). This case study sets them to the device's own system font: SF Pro on a Mac or iPhone,
   Helvetica Neue or Arial elsewhere, used as it is, with the heading weight, tracking and line height
   Apple's own pages use (600, -1.44 px at 96 px, 100 px lines). */
:root {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --display-weight: 600; --display-tight: -0.015em; --line-display: 1.05; /* lint-ok: Apple's own heading weight; the page's system font is drawn for it */
  /* SIDE AIR (WIDE CASE picks, 25 Nov 2026). The air beside the framed sections, the Builder and the Ending:
     4% of the width (between --space-400 and --space-900) up to the page column's full width, the width at
     which every other section of the site stops growing (--container-wide / 0.92, 1826 px); past it the air
     grows, so the sections hold at that column and sit centred. Up to about 1990 wide nothing moves.
     Counted where it is used (cqw is that section's own width). */
  --cs-side: max(clamp(var(--space-400), 4cqw, var(--space-900)), (100cqw - var(--container-wide) / 0.92) / 2); /* lint-ok: 0.92 undoes --container-wide's 92vw, as sections.css's hero does */
}

/* Lumi's own name keeps its own font: Work Sans, set lower case and tight, as its chat window sets it.
   The hero's eyebrow is that wordmark in a light weight; Lumi's name in the Sound and Ending headings
   stays in Work Sans too. The light weight comes from Google Fonts' own file, as the site's Work Sans does. */
@font-face { font-family: "TT Lumi"; src: url("https://fonts.gstatic.com/s/worksans/v24/QGYsz_wNahGAdqQ43Rh_fKDptfpA4Q.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
html:root #hero .h-eb {
  font-family: "TT Lumi", "Work Sans", sans-serif; font-weight: 300;   /* lint-ok: light; the token scale starts at regular */
  font-size: calc(1.4 * var(--ebz, calc(1.667 * var(--u)))); letter-spacing: var(--tracking-tight); text-transform: lowercase;
}
/* The name: the square L beside lumi (his pick, 19 Nov 2026: "tighter and better with the smaller
   icon"). The L is the Lumi app icon, drawn as the Work card's .lumi-mark (assets/sections.css): a
   bold l on ink, a 26% corner, a hairline edge. --mk is the lockup's size: the icon is 0.72 of it,
   the word 0.5625. The word is black (the hero's ink), no longer the light grey eyebrow. */
html:root #hero .h-name {
  --mk: calc(4.4 * var(--u));
  display: flex; align-items: center; gap: calc(0.2 * var(--mk));
  font-weight: var(--weight-medium); font-size: calc(0.5625 * var(--mk)); line-height: 1;
  letter-spacing: var(--tracking-tight); color: var(--ink);
}
html:root #hero .h-mark {
  display: inline-grid; place-items: center; flex: none;
  width: calc(0.72 * var(--mk)); height: calc(0.72 * var(--mk)); border-radius: 26%; /* lint-ok: the app icon's own corner */
  background: var(--brand-ink); color: var(--color-static-white);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / var(--alpha-500)); /* lint-ok: the icon's hairline edge, so it shows on the black room */
  font-weight: var(--weight-extrabold); font-size: calc(0.54 * var(--mk)); text-shadow: none;
}
@container row (max-width: 1000px) { html:root #hero .h-name { --mk: calc(9 * var(--u)); } }
html:root :is(.s-name, .e-name) { --font-body: "Work Sans", "Work Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* The real product parts keep the site's own fonts: Lumi's chat window (the site's chat kit) and the
   next study's card are natemills.me as it ships. */
html:root :is(.ccs, .ccs-win, .e-next) {
  --font-display: "Anton", Impact, "Haettenschweiler", sans-serif;
  --font-body: "Work Sans", "Work Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-weight: var(--weight-regular); --display-tight: -0.0176em; --line-display: 1.05;
  font-family: var(--font-body); font-variation-settings: normal;
}

/* WIDTH. The sections draw inside a frame 100 units wide (--edge is the screen beyond it, --pad the air
   inside it). On a computer every framed section runs that frame out to the Ending's own side air
   (--cs-side, above), so its words and picture spread as the Ending's do, and stop at the page column on
   a wide screen. Sizes stay counted in units. On a phone every section already runs edge to edge. */
@container row (min-width: 1001px) {
  html:root :is(#brief .b2, #thinks .t3, #sound .s11, #rulebook .r5) {
    --edge: calc(var(--cs-side) - var(--pad));
  }
}

/* LIGHT AND DARK. The site has a dark switch (data-theme="dark" on <html>, tokens.css), and every
   section has a dark version. The sections set their ink and grounds straight from the neutral ramp
   (--neutral-950 words, --neutral-100 bands), which a dark switch never reaches. In dark, inside every
   section but the hero (it has its own dark room), the ramp is read the other way round: light steps
   become dark ones and dark become light, each mapped to the step the site's own dark tokens use (words
   --neutral-150, page --neutral-850, grey and cards one step up, --neutral-800; quiet words
   --neutral-500). The real chat windows keep the site's own dark (they read the site's dark tokens
   already), so the ramp is put back inside them. The ramp's own values are kept first under --cs-n*, at
   the root, so nothing refers to itself. */
html[data-theme="dark"] {
  --cs-n0: var(--neutral-0);
  --cs-n50: var(--neutral-50);
  --cs-n100: var(--neutral-100);
  --cs-n150: var(--neutral-150);
  --cs-n200: var(--neutral-200);
  --cs-n300: var(--neutral-300);
  --cs-n400: var(--neutral-400);
  --cs-n500: var(--neutral-500);
  --cs-n550: var(--neutral-550);
  --cs-n600: var(--neutral-600);
  --cs-n700: var(--neutral-700);
  --cs-n800: var(--neutral-800);
  --cs-n850: var(--neutral-850);
  --cs-n900: var(--neutral-900);
  --cs-n950: var(--neutral-950);
}
html[data-theme="dark"] .row:not(#hero) { --neutral-0: var(--cs-n850); --neutral-50: var(--cs-n800); --neutral-100: var(--cs-n800); --neutral-150: var(--cs-n800); --neutral-200: var(--cs-n700); --neutral-300: var(--cs-n700); --neutral-400: var(--cs-n600); --neutral-500: var(--cs-n500); --neutral-550: var(--cs-n550); --neutral-600: var(--cs-n500); --neutral-700: var(--cs-n300); --neutral-800: var(--cs-n200); --neutral-850: var(--cs-n100); --neutral-900: var(--cs-n50); --neutral-950: var(--cs-n150); }
html[data-theme="dark"] .row:not(#hero) :is(.ccs, .ccs-win, .hc-win, .b-win-m, .t-win-m, .r-win-m) { --neutral-0: var(--cs-n0); --neutral-50: var(--cs-n50); --neutral-100: var(--cs-n100); --neutral-150: var(--cs-n150); --neutral-200: var(--cs-n200); --neutral-300: var(--cs-n300); --neutral-400: var(--cs-n400); --neutral-500: var(--cs-n500); --neutral-550: var(--cs-n550); --neutral-600: var(--cs-n600); --neutral-700: var(--cs-n700); --neutral-800: var(--cs-n800); --neutral-850: var(--cs-n850); --neutral-900: var(--cs-n900); --neutral-950: var(--cs-n950); }
/* The Ending's two training marks are one flat black: in dark they turn white, as the site's own dark
   rule does for these same marks (assets/sections.css, img[data-logo="anthropic"], "tafe": invert). */
html[data-theme="dark"] #ending .c-creds img { filter: invert(1); }

/* LUMI IN THE DARK: the Konami code, or pressing and holding Lumi's name in the hero, flips the page
   between light and dark (case/page.js). The flip is a cross-fade from the browser's own view
   transitions, at the site's slow duration; with Reduce motion it is instant. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--duration-slow); animation-timing-function: var(--ease-default); }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* Screen-reader only: read out, never seen. */
.cs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* LUMI'S NAME IN A HEADING. Sound and the Ending both say lumi in a heading, in Lumi's font with its
   moving colours. One setting for both, Sound's: 1.44 of the heading, spacing -0.06, the gaps L to U
   +0.015, U to M -0.03, M to I -0.03 (case/sound.css, .s-name). */
html:root #ending .e-name { font-size: max(1.44em, 1.5rem); letter-spacing: -0.06em; } /* lint-ok: Lumi's name is 1.44 of its own heading, not a step on the type scale (see .s-name) */
html:root #ending .e-name .k-u { margin-left: 0.015em; }
html:root #ending .e-name :is(.k-m, .k-i) { margin-left: -0.03em; }

/* HAVE A PLAY: its heading is the size every section heading shares (the Builder's own unit and
   counts: 6.72 on a computer, 12 on a phone). */
html:root #play .pp-h { font-size: calc(6.72 * min(1cqw, calc(clamp(40rem, 100svh, 54rem) / 60))); } /* lint-ok: the case study's shared section heading unit, the Builder's own count */
@container row (max-width: 1000px) {
  html:root #play .pp-h { font-size: calc(12 * min(1cqw, calc(clamp(48rem, 122svh, 76rem) / 230))); } /* lint-ok: the same heading unit, phone count */
}

/* THE SITE'S HEADER is fixed on top, as on natemills.me, so the page starts under it. --site-head-h is
   its height, set by case/page.js. A jump to a section lands below it, and Sound's sticky Lumi on a
   phone stops under it instead of sliding behind it. */
html:root body { padding-top: var(--site-head-h, 0px); }
html:root { scroll-padding-top: var(--site-head-h, 0px); }
@media (min-height: 600px) { html:root #sound .s-seathold { top: var(--site-head-h, 0px); } }

/* THE CHAT WINDOWS. The site's chat kit makes .ccs a size container that a host must size; on this page each
   window sizes itself from its own content, so .ccs goes back to a plain box (zero weight, as the kit's rule is). */
:where(.row .ccs) { position: static; container-type: normal; }

/* With JavaScript off the sections cannot draw: one plain line says so. */
.cs-noscript { margin: 0; padding: var(--space-800) var(--space-500); text-align: center; color: var(--color-text-secondary); }

/* LUMI'S TRIP AND THE PAGE'S ONE GROUND (case/trip.js; his picks 19 Nov 2026, chat CASE STUDY SCROLL).
   The seat Lumi is in now shows; the others wait unseen (never cropped, only not drawn) and are not there
   to play with. In the air, the traveller's own section rides over its neighbours, under the header. */
html[data-cs-trip="on"] #top canvas[data-cs-off] { opacity: 0; pointer-events: none; }
/* Lumi's two band colours, mixed with the section's own white so the dark theme's swap (above) is in them.
   Set on every section, so the shared ground engine (assets/scroll-ground.js) reads the same colour inside
   any section; One brain four jobs paints the blue, One page of rules the green. */
#top .row { --cs-blue: color-mix(in oklab, var(--fx-spectrum-5) 14%, var(--neutral-0)); --cs-green: color-mix(in oklab, var(--fx-spectrum-4) 16%, var(--neutral-0)); }
html:root #top .row[data-cs-air] { z-index: 3; }
/* It speaks for me, One brain four jobs and the Ending bring their own Lumi in when first seen; on the trip it is already there */
html[data-cs-trip="on"] #brief .b2 .b-lumi:not([data-cs-off]),
html[data-cs-trip="on"] #thinks .t3 .t-lumi:not([data-cs-off]) { opacity: 1; transform: none; visibility: visible; }
html[data-cs-trip="on"] #ending .e10 .e-lumi:not([data-cs-off]) { opacity: 1; }
/* The whole page fades, as monks.com/careers does: one ground under every section, so there is never an
   edge. The bands go clear and the body carries the colour (--cs-g, set by the shared engine from each
   block's arrival). Have a play's two drifting tints are one layer fixed behind the page (#cs-wash), shown only
   while that section is on screen, at its arrival (--cs-pq). Reduce motion: data-cs-fade="today", each
   band paints its own colour (reel.css, thinks.css, rulebook.css), hard edges. */
html[data-cs-fade="page"] body { background-color: var(--cs-g); }
html[data-cs-fade="page"] main > :is(#film, #thinks, #rulebook) { background: none; }
/* the hero's own ground (hero.css) is the page's fading colour too: the film's blue starts while the hero is
   still on screen, and a white hero over it drew a hard line at the hero's foot (his report 24 Nov 2026) */
html[data-cs-fade="page"] #hero .hero { --ground: var(--cs-g); }
html[data-cs-fade="page"][data-cs-wash] :is(#cs-wash, #sound .s-seathold, #builder .lbd-view) {
  --cs-tints: linear-gradient(135deg,
    color-mix(in oklab, var(--pp-a) calc(var(--cs-pq, 0) * 100%), transparent),
    color-mix(in oklab, var(--pp-b) calc(var(--cs-pq, 0) * 100%), transparent));
}
#cs-wash { display: none; }
html[data-cs-fade="page"][data-cs-wash] #cs-wash { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; animation: pp-shift 24s linear infinite; background-image: var(--cs-tints); } /* lint-ok: Have a play's own drift timing (play.css) */
/* the tints mix with the sections' own white, which the dark theme swaps inside every section (above) */
html[data-theme="dark"] #cs-wash { --neutral-0: var(--cs-n850); }
