/* LUMI CASE STUDY, "Under the glass" (LUMI ON MY SITE picks, 25 Nov 2026; his review picks the same night, late).
   The big Lumi on the left playing its four looks by itself, the title and lead on its right; on a phone, the words
   on top and Lumi under them. Under it, What makes Lumi: four tabs (Body, Faces, Voice, Brain), one line and one
   picture each. Every rule sits inside #glass, as each section on this page keeps its own. Motion: glass.js and
   makes.js. Tokens only. */
@property --wm-e { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --wm-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

#glass {
  overflow-x: clip;   /* the canvas runs past the stage, and past the screen edge on phones: no sideways scroll */

  .gl2 {
    display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center;
    max-width: var(--container-wide, 80rem); margin: 0 auto; padding-inline: var(--space-600);
  }
  .gl-type { display: contents; }   /* its title and lead place themselves in the grid */
  .gl-title {
    margin: 0; text-align: center; font-family: var(--font-display); font-weight: var(--display-weight);
    font-size: var(--display-section); line-height: var(--line-display); letter-spacing: var(--display-tight); text-wrap: balance;
  }
  .gl-lead { max-inline-size: 46rem;   /* lint-ok: the lead's measure, as Where it lives sets it */
    margin: var(--space-400) 0 0; text-align: center; font-size: var(--size-lg); font-weight: var(--weight-medium); line-height: var(--line-snug); color: var(--color-text-tertiary); text-wrap: pretty; }

  /* the stage. Lumi is drawn at a fixed share of its canvas, so the canvas runs 17.5% past each edge
     (GROW in glass.js) and Lumi fills the stage; the part past the stage fades out (13% = 17.5 of 135) */
  .gl-stage { order: 1; position: relative; aspect-ratio: 1; inline-size: min(100%, 44rem); margin-top: var(--space-600); }   /* lint-ok: 44rem, the stage's width on the approved review page */
  .gl-cv {
    position: absolute; left: -17.5%; top: -17.5%; inline-size: 135%; block-size: 135%; pointer-events: none;
    mask-image: linear-gradient(to right, transparent, black 13%, black 87%, transparent), linear-gradient(to bottom, transparent, black 13%, black 87%, transparent);
    mask-composite: intersect;
  }
  /* the pause control: the stage itself, see-through (the site's one pattern; nothing is ever shown) */
  .gl-pause {
    position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
    background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .gl-pause:focus-visible { outline: var(--space-50) solid var(--color-focus-ring); outline-offset: calc(var(--space-50) * -1); }

  /* the four looks play by themselves, so their tabs show only under Reduce motion, where nothing plays */
  .gl-tabs { position: absolute; left: 0; right: 0; top: calc(94% + var(--space-100)); z-index: 3; display: none; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-400); }
  .gl-tab {
    position: relative; display: inline-flex; align-items: center; min-block-size: var(--space-700); margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: var(--size-base); font-weight: var(--weight-semibold); color: var(--color-text-tertiary); white-space: nowrap;
  }
  .gl-tab[aria-selected="true"] { color: var(--color-text-primary); }
  .gl-tab:focus-visible { outline: var(--border-focus); outline-offset: 4px; border-radius: var(--radius-sm); }
  .gl-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; block-size: 2px; background: var(--color-text-primary); transform: scaleX(0); }
  .gl-tab[aria-selected="true"]::after { transform: scaleX(1); }
  .gl2:not([data-lumi]) .gl-tabs { visibility: hidden; }   /* no Lumi yet (no room for its drawing): nothing over an empty stage */
  @media (prefers-reduced-motion: reduce), (scripting: none) {
    .gl-tabs { display: flex; }
    .gl-pause { display: none; }   /* nothing plays by itself, so there is nothing to pause */
  }

  /* a laptop and up: Lumi on the left, the words on its right; What makes Lumi across the whole width under them */
  @media (min-width: 64em) {
    .gl2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-700); justify-items: start; }
    .gl-stage { grid-column: 1; grid-row: 1 / span 2; margin-top: 0; }
    .gl-title { grid-column: 2; grid-row: 1; align-self: end; text-align: left; }
    .gl-lead { grid-column: 2; grid-row: 2; align-self: start; text-align: left; }
    .wm { grid-column: 1 / -1; justify-self: center; }
    .gl-tabs { gap: 0 var(--space-500); }
  }

  /* ---- What makes Lumi ---- */
  .wm, .wm * { box-sizing: border-box; }
  .wm { order: 2; inline-size: min(100%, 72rem); margin-top: calc(var(--space-700) + var(--space-800)); }   /* lint-ok: the block's width on the approved review page */

  /* the heading. Lumi's name is the one Giving lumi a voice and the Ending use: Work Sans, 1.44 of its heading,
     its own letter gaps, its colours moving (sound.css .s-name) */
  .wm-title { margin: 0; text-align: center; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--size-3xl); line-height: var(--line-display); letter-spacing: var(--display-tight); }
  .wm-name {
    --font-body: "Work Sans", "Work Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-family: var(--font-body); font-weight: var(--weight-medium); letter-spacing: -0.06em;   /* lint-ok: Lumi's name's own tracking, as .s-name */
    font-size: max(1.44em, 1.5rem); line-height: 0;   /* lint-ok: Lumi's name is 1.44 of its own heading, as .s-name */
  }
  .wm-name .k-u { margin-left: 0.015em; }   /* lint-ok: the name's letter gaps, as .s-name */
  .wm-name .k-m, .wm-name .k-i { margin-left: -0.03em; }   /* lint-ok: the name's letter gaps, as .s-name */
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .wm-name {
      margin: -0.08em -0.04em; padding: 0.08em 0.04em;   /* lint-ok: room for the clipped colour round the letters */
      background: linear-gradient(90deg, var(--fx-spectrum-1), var(--fx-spectrum-6), var(--fx-spectrum-5), var(--fx-spectrum-6), var(--fx-spectrum-1)) 0 0 / 200% 100%;
      -webkit-background-clip: text; background-clip: text; color: transparent;
      animation: wm-drift calc(var(--fx-spectrum-spin) * 3) linear infinite;
    }
  }
  .wm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* the tabs, centred underlines as One brain, four jobs sets them */
  .wm-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-600); margin-top: var(--space-500); }
  .wm-tab {
    position: relative; display: inline-flex; align-items: center; min-height: var(--touch-target-min);
    margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: var(--size-lg); font-weight: var(--weight-semibold); line-height: var(--line-title);
    color: var(--color-text-tertiary); white-space: nowrap;
  }
  .wm-tab::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: var(--space-200); height: 2px; background: var(--color-text-primary);
    transform: scaleX(0); transform-origin: left; transition: transform var(--duration-slow) var(--ease-emphasized);
  }
  .wm-tab[aria-selected="true"] { color: var(--color-text-primary); }
  .wm-tab[aria-selected="true"]::after { transform: scaleX(1); }
  .wm-tab:focus-visible { outline: var(--border-focus); outline-offset: 4px; border-radius: var(--radius-sm); }

  /* the line under the tabs, then the picture, both centred */
  .wm-panel { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin-top: var(--space-300); }
  .wm-panel[hidden] { display: none; }
  .wm-say { max-inline-size: 40rem; margin: 0; text-align: center; font-size: var(--size-lg); font-weight: var(--weight-medium); line-height: var(--line-snug); color: var(--color-text-secondary); text-wrap: balance; }   /* lint-ok: the lead's measure */
  .wm-vis { position: relative; inline-size: 100%; min-width: 0; margin-top: var(--space-600); overflow: hidden; border-radius: var(--radius-xl); background: var(--neutral-50); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */

  /* Body and Faces only move: each is the site's pause control, see-through (makes.js adds the button) */
  .wm-pause {
    position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
    background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .wm-pause:focus-visible { outline: var(--space-50) solid var(--color-focus-ring); outline-offset: calc(var(--space-50) * -1); }

  /* ---- Body: Lumi pulled apart into its layers on a grey plate, the glass at the back. The layers pull apart
     evenly either side of the middle plane, so the drawing stays centred all through the spread. ---- */
  .wm-ex {
    --wm-gap: 5.4rem;   /* lint-ok: the room between two layers, his wider spread */
    display: grid; grid-template-columns: minmax(0, 1fr); min-block-size: 38rem;   /* lint-ok: the plate's height, so the layers have room to pull apart */
    background: var(--neutral-200); color: var(--color-text-primary); animation: wm-ex 9s var(--ease-default) infinite paused;   /* lint-ok: one slow pull apart and back */
  }
  .wm-ex[data-run] { animation-play-state: running; }
  .wm-ex::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(color-mix(in oklab, currentColor 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklab, currentColor 7%, transparent) 1px, transparent 1px);
    background-size: var(--space-600) var(--space-600);
  }
  .wm-draw { position: relative; min-block-size: 24rem; perspective: 90rem; }   /* lint-ok: the drawing's own room and its camera */
  .wm-stack { position: absolute; left: 26%; top: 50%; inline-size: min(44%, 30rem); aspect-ratio: 1; translate: 0 -50%; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-32deg); }   /* lint-ok: centred with room for the labels on its right; the drawing's tilt */
  .wm-pl { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--wm-e) * (var(--i) - 1.5) * var(--wm-gap))); }
  .wm-ol { position: absolute; inset: 14%; border: 1px dashed color-mix(in oklab, currentColor 28%, transparent); border-radius: var(--radius-xl); }
  .wm-ol i { position: absolute; inline-size: 1px; block-size: 1px; }
  .wm-ol i:nth-child(1) { left: 0; top: 0; }
  .wm-ol i:nth-child(2) { right: 0; top: 0; }
  .wm-ol i:nth-child(3) { left: 0; bottom: 0; }
  .wm-ol i:nth-child(4) { right: 0; bottom: 0; }
  .wm-art { position: absolute; inset: 0; isolation: isolate; }
  .wm-cv { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; }   /* a live Lumi, drawn by critter.js (makes.js): it breathes, drifts, twinkles and blinks on its own */
  /* the glitter: stronger colour as the layers pull apart, so the specks read on the plate, light or dark */
  .wm-pl[data-l="glitter"] .wm-art { filter: saturate(calc(1 + 2.5 * var(--wm-e, 0))) contrast(calc(1 + 0.6 * var(--wm-e, 0))); }
  /* the labels: placed by makes.js beside each layer's outline, past every outline's right corner */
  .wm-leads { position: absolute; inset: 0; pointer-events: none; }
  .wm-leads i { position: absolute; block-size: 0; border-top: 1px solid color-mix(in oklab, currentColor 45%, transparent); transform-origin: 0 0; }
  .wm-keys { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
  .wm-keys li { position: absolute; display: grid; gap: 0; translate: 0 -0.7em; font-size: var(--size-sm); line-height: var(--line-snug); }   /* lint-ok: the label's first line sits on its lead */
  .wm-keys b { font-family: var(--font-mono); font-size: var(--size-xs); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: var(--tracking-mono); white-space: nowrap; }
  .wm-keys span { white-space: nowrap; color: var(--color-text-secondary); }

  /* ---- Faces: the six moves, two even rows of three, edge to edge ---- */
  .wm-fc ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
  .wm-fc li { position: relative; display: grid; justify-items: center; }
  .wm-fc .wm-cv { position: static; inline-size: 100%; block-size: auto; aspect-ratio: 1; scale: 0.9; }   /* live Lumis (makes.js); a little room, so a laugh or a lean never touches the next one */
  .wm-fc p { position: absolute; left: 0; right: 0; bottom: var(--space-400); margin: 0; text-align: center; font-family: var(--font-mono); font-size: var(--size-xs); font-weight: var(--weight-medium); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--color-text-secondary); }

  /* ---- Voice: one live Lumi talking on the left, the voices on the right; the Sound section's waves behind it ---- */
  .wm-bv { display: grid; grid-template-columns: minmax(0, 1fr); }
  .wm-bub { position: relative; aspect-ratio: 4 / 3; }
  .wm-bub-host { position: absolute; inset: 0; z-index: 1; }
  .wm-wv { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }
  .wm-bub-hit { position: absolute; border: 0; padding: 0; background: none; border-radius: var(--btn-radius); cursor: pointer; }
  .wm-voice { display: grid; align-content: center; justify-items: start; gap: var(--space-400); padding: var(--space-500); }
  .wm-made { display: flex; align-items: center; gap: var(--space-300); margin: 0; font-size: var(--size-sm); color: var(--neutral-600); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-made img { inline-size: 1.6rem; block-size: 1.6rem; object-fit: contain; flex: none; }   /* lint-ok: a logo's size */
  .wm-made b { display: block; font-size: var(--size-base); font-weight: var(--weight-semibold); color: var(--neutral-950); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-count { margin: 0; font-size: var(--size-sm); color: var(--neutral-600); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-count b { font-family: var(--font-mono); font-weight: var(--weight-medium); color: var(--neutral-950); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-vo { display: flex; flex-wrap: wrap; gap: var(--space-200); }
  .wm-vo button {
    position: relative; display: inline-flex; align-items: center; gap: var(--space-100); min-height: var(--btn-sm); padding: 0 var(--space-300);
    border: var(--border-hairline); border-radius: var(--btn-radius); background: var(--neutral-0); cursor: pointer;   /* lint-ok: the approved look's neutral ramp, which follows the theme */
    font: inherit; font-size: var(--size-sm); font-weight: var(--weight-semibold); color: var(--neutral-950);   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  }
  .wm-vo button[aria-pressed="true"] { background: var(--neutral-950); color: var(--neutral-0); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-vo button:focus-visible { outline: var(--border-focus); outline-offset: var(--focus-ring-offset); }
  .wm-vo em { font-style: normal; font-weight: var(--weight-medium); color: var(--neutral-600); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  /* Moxie, the one kept: the site's spectrum (the colours in Lumi's own name) as a turning ring */
  .wm-vo button[data-pick] {
    border: 2px solid transparent;
    background: linear-gradient(var(--neutral-0), var(--neutral-0)) padding-box, conic-gradient(from var(--wm-a), var(--fx-spectrum-1), var(--fx-spectrum-3), var(--fx-spectrum-4), var(--fx-spectrum-5), var(--fx-spectrum-6), var(--fx-spectrum-1)) border-box;   /* lint-ok: the approved look's neutral ramp, which follows the theme */
    animation: wm-turn var(--fx-spectrum-spin) linear infinite;
  }
  .wm-vo button[data-pick] em { color: inherit; }   /* lint-ok: the button's own text colour; solid, so the small word passes 4.5:1 (gradient text was about 3.6:1 on white; his pick 26 Nov 2026) */
  .wm-vo button[data-pick][aria-pressed="true"] { background: var(--neutral-950); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-vo button[data-pick][aria-pressed="true"] em { color: inherit; }
  @media (min-width: 48em) { .wm-bv { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

  /* ---- Brain: the path a question takes, then the page of rules it is read with ---- */
  .wm-br { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-700); padding: var(--space-700) var(--space-500); color: var(--neutral-950); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-br > * { min-width: 0; }
  .wm-path { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-400) var(--space-600); margin: 0; padding: 0; list-style: none; }
  .wm-path li { position: relative; display: grid; justify-items: center; align-content: start; gap: var(--space-100); inline-size: 9rem; text-align: center; }   /* lint-ok: one step's width, so the four sit in one row */
  .wm-path li + li::before { content: ""; position: absolute; right: calc(100% + var(--space-100)); top: 1.1rem; inline-size: calc(var(--space-600) - var(--space-200)); border-top: 1px solid var(--neutral-400); }   /* lint-ok: the connector meets the icons' middle */
  .wm-path img, .wm-path canvas, .wm-dot { display: block; inline-size: 2.2rem; block-size: 2.2rem; object-fit: contain; }   /* lint-ok: a step's icon */
  .wm-dot { display: grid; place-items: center; border-radius: var(--dot-radius); background: var(--neutral-0); box-shadow: var(--glass-shadow); font-weight: var(--weight-semibold); color: var(--neutral-950); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-lumi { scale: 1.6; }   /* lint-ok: the drawing has room round Lumi */
  .wm-path b { margin-top: var(--space-200); font-weight: var(--weight-semibold); }
  .wm-path span:not(.wm-dot) { font-size: var(--size-sm); line-height: var(--line-snug); color: var(--neutral-600); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-sheet { inline-size: min(100%, 26rem); padding: var(--space-500); border-radius: var(--radius-lg); background: var(--neutral-0); box-shadow: var(--glass-shadow); }   /* lint-ok: the sheet's width */
  .wm-sheet h4 { margin: 0; font-size: var(--size-lg); font-weight: var(--weight-semibold); }
  .wm-what { margin: var(--space-100) 0 var(--space-300); font-size: var(--size-sm); line-height: var(--line-snug); color: var(--neutral-600); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-files { display: flex; flex-wrap: wrap; gap: var(--space-200); margin: 0 0 var(--space-300); }
  .wm-files span { padding: var(--space-50) var(--space-200); border-radius: var(--radius-sm); background: var(--neutral-100); font-family: var(--font-mono); font-size: var(--size-xs); color: var(--neutral-700); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-sheet ol { margin: 0; padding: 0; list-style: none; counter-reset: wm; }
  .wm-sheet li { display: grid; grid-template-columns: auto minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: var(--space-300); padding: var(--space-200) 0; border-top: var(--border-hairline); counter-increment: wm; }
  .wm-sheet li::before { content: counter(wm, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--size-xs); font-weight: var(--weight-medium); color: var(--neutral-600); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-sheet li b { font-weight: var(--weight-semibold); }
  .wm-sheet li span { min-width: 0; overflow-wrap: anywhere; font-size: var(--size-sm); color: var(--neutral-600); text-align: right; }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-from { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-300); margin: var(--space-300) 0 0; font-size: var(--size-sm); color: var(--neutral-600); }   /* lint-ok: the approved look's neutral ramp, which follows the theme */
  .wm-from img { block-size: 1.2rem; inline-size: auto; }   /* lint-ok: the guides' logos, one line high */

  @media (min-width: 48rem) { .wm-stack { translate: 0 calc(-50% - 1.3rem); } }   /* lint-ok: the tilt sets the lower plates lower; this lifts the set back to the middle, open or shut */
  /* a phone: the drawing's labels keep to names, the faces in two rows, the path in a grid */
  @media (max-width: 47.99em) {
    .wm-stack { inline-size: 54%; }
    .wm-ex { --wm-gap: 3.6rem; }   /* lint-ok: the wider spread on a phone */
    .wm-keys span { display: none; }
    .wm-fc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wm-path { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-500) var(--space-300); inline-size: 100%; }
    .wm-path li { inline-size: auto; }
    .wm-path li + li::before { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .wm-name, .wm-vo button { animation: none; }
    .wm-ex { animation: none; --wm-e: 1; }
    .wm-pause { display: none; }   /* nothing moves, so there is nothing to pause */
  }
}
@keyframes wm-drift { to { background-position: 200% 0; } }
@keyframes wm-ex { 0%, 14% { --wm-e: 0; } 40%, 84% { --wm-e: 1; } 100% { --wm-e: 0; } }
@keyframes wm-turn { to { --wm-a: 360deg; } }
