/* Schema website.
   Two themes, both from the app: its light mode, and matte graphite from its dark mode, each with the app's accents (Accent.swift).
   The inline script at the top of every page sets data-theme and data-accent before anything paints. With nothing saved, the theme is the system setting and the accent is Aurora in graphite and Pearl in light.
   The Colors button in the top bar (bar.js) saves a choice in this browser, and so do ?theme=dark, ?theme=light and ?theme=auto.
   Light is the default below. Everything graphite changes is in the block marked Graphite.
   The app window keeps the app's own dark tokens from Theme.swift (DESIGN.md §9) on :root in both themes, and so do the Black panel and the previews (.tone-night). The page around them wears .tone-day. */
:root {
  --window: #0a0b0d;
  --panel: rgba(19,20,24,.58);
  --raised: rgba(28,29,35,.78);
  --text: #ecedef;
  --muted: #8b8e96;
  --faint: #8e919a;
  --well: rgba(255,255,255,.05);
  --well-hi: rgba(255,255,255,.10);
  --hover: rgba(255,255,255,.06);
  --hairline: rgba(255,255,255,.10);
  --line: rgba(255,255,255,.06);
  --line-faint: rgba(255,255,255,.035);
  --header-shade: rgba(0,0,0,.14);
  --today: rgba(255,255,255,.055);
  --weekend: rgba(0,0,0,.10);
  --event-base: rgba(42,43,49,.62);
  --event-rim: rgba(255,255,255,.09);
  --accent: #e9e6df;
  --on-accent: #0a0b0d;
  --success: #4fa66a;
  --destructive: #e5534b;
  --focus: #3fb8af;
  --rim: rgba(255,255,255,.14);
  --separator: #46474d;
  /* Event recipe: one-offs ~26% fill, lettering mixed toward white; recurring ~6%. */
  --ev-fill: 26%;
  --ev-rec: 6%;
  --ev-ink: white;
  --ev-mix: 66%;
  /* Field: the "Schema" background preset. */
  --f1: #9ca3af; --f2: #2e313a; --f3: #d1d5db;
  --f-op: .22;
  --f2-op: .48;

  --r-swatch: 4px; --r-chip: 6px; --r-panel: 6.5px; --r-control: 8px; --r-card: 12px; --r-window: 14px;
  --pop: 0 6px 18px rgba(0,0,0,.28);
  --lifted: 0 3px 8px rgba(0,0,0,.25);
  --quick: .14s ease-out;
  --standard: .22s ease-out;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
:root {
  --bg-a: #f6f6f4;   /* soft: the app's light window */
  --bg-b: #e3e4e2;   /* soft: one step down */
  --bold: #2a2b31;   /* Pearl in light mode */
  --on-bold: #fff;
  --ink: 15,16,20;   /* what shadows are made of */
  --out: cubic-bezier(.16, 1, .3, 1);       /* long, soft landing */
  --spring: cubic-bezier(.3, 1.28, .45, 1); /* a small overshoot */
  --gutter: 44px;
}

/* Dark ink on the soft background: the app's light tokens. */
.tone-day {
  --text: #1b1c1f; --muted: #62656d; --faint: #6e717a;
  --well: rgba(0,0,0,.05); --well-hi: #fff; --hover: rgba(0,0,0,.05);
  --hairline: rgba(0,0,0,.1); --line: rgba(0,0,0,.055); --line-faint: rgba(0,0,0,.03);
  --panel: rgba(253,253,252,.76); --raised: #fff; --rim: rgba(255,255,255,.7);
  --card: rgba(255,255,255,.74); --card-rim: rgba(255,255,255,.8);
  --header-shade: rgba(0,0,0,.03); --event-base: rgba(255,255,255,.62); --event-rim: rgba(0,0,0,.08);
  --ev-fill: 20%; --ev-rec: 7%; --ev-ink: black; --ev-mix: 73%;
  --success: #2f8a4f;
  --pop: 0 12px 28px -12px rgba(var(--ink),.2); --lifted: 0 3px 8px rgba(0,0,0,.10);
  --bar: #fff; --bar-rim: rgba(0,0,0,.08);
  --cta: var(--bold); --on-cta: var(--on-bold);
  color: var(--text);
}
/* Light ink: the Black panel and the tour's controls. */
.tone-night {
  --text: #f7f4ee; --muted: rgba(240,238,232,.72); --faint: rgba(240,238,232,.58);
  --well: rgba(255,255,255,.08); --well-hi: rgba(255,255,255,.14); --hover: rgba(255,255,255,.09);
  --hairline: rgba(255,255,255,.17); --line: rgba(255,255,255,.1); --line-faint: rgba(255,255,255,.05);
  --panel: rgba(25,24,22,.6); --raised: rgba(30,29,26,.92); --rim: rgba(255,255,255,.12);
  --bold: var(--accent); --on-bold: var(--on-accent); --cta: var(--bold); --on-cta: var(--on-bold);
  color: var(--text);
}
/* Graphite: matte, no glass, and rims instead of shadows where a shadow can't show on a dark page. */
:root[data-theme="dark"] { color-scheme: dark; --bg-a: #1b1c20; --bg-b: #2b2c31; --bold: #e9e6df; --on-bold: #0a0b0d; --ink: 0,0,0; }
:root[data-theme="dark"] .tone-day {
  --text: #ecedef; --muted: #9a9da5; --faint: #8e919a;
  --well: rgba(255,255,255,.05); --well-hi: #2c2d33; --hover: rgba(255,255,255,.06);
  --hairline: rgba(255,255,255,.1); --line: rgba(255,255,255,.06); --line-faint: rgba(255,255,255,.03);
  --panel: rgba(32,33,38,.8); --raised: #222328; --rim: rgba(255,255,255,.08);
  --card: #222328; --card-rim: rgba(255,255,255,.08);
  --header-shade: rgba(0,0,0,.14); --event-base: rgba(42,43,49,.62); --event-rim: rgba(255,255,255,.09);
  --ev-fill: 26%; --ev-rec: 6%; --ev-ink: white; --ev-mix: 66%;
  --success: #4fa66a;
  --pop: 0 12px 28px -12px rgba(var(--ink),.55); --lifted: 0 3px 8px rgba(0,0,0,.25);
  --bar: #222328; --bar-rim: rgba(255,255,255,.09);
}
:root[data-theme="dark"] .card { box-shadow: inset 0 1px 0 var(--card-rim), 0 0 0 1px rgba(255,255,255,.05); }
:root[data-theme="dark"] .win { box-shadow: 0 0 0 1px rgba(255,255,255,.13), 0 40px 90px -40px rgba(var(--ink),.85); }
:root[data-theme="dark"] .bpanel { background: repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px), linear-gradient(160deg, #2c2d33, #1a1b1f 60%, #141518); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1px rgba(255,255,255,.07); }
/* Accents, from Accent.swift: --accent is the dark value and --bold the light one, with lettering that flips by brightness. The same lines color the swatches in the Colors panel. */
:root[data-accent="pearl"], [data-a="pearl"] { --accent: #e9e6df; --bold: #2a2b31; --on-bold: #fff; }
:root[data-accent="ice"], [data-a="ice"] { --accent: #a9c7e8; --bold: #3a6fa0; --on-bold: #fff; }
:root[data-accent="aurora"], [data-a="aurora"] { --accent: #8391ff; --bold: #4a5bdc; --on-bold: #fff; }
:root[data-accent="violet"], [data-a="violet"] { --accent: #b08cff; --bold: #7a4fd6; --on-bold: #fff; }
:root[data-accent="rose"], [data-a="rose"] { --accent: #f08ab0; --bold: #b83c71; --on-bold: #fff; }
:root[data-accent="ember"], [data-a="ember"] { --accent: #f2a365; --bold: #b0560f; --on-bold: #fff; }
:root[data-accent="gold"], [data-a="gold"] { --accent: #e6c068; --bold: #8a6609; --on-bold: #fff; }
:root[data-accent="mint"], [data-a="mint"] { --accent: #7fd8b4; --bold: #187a54; --on-bold: #fff; }
:root[data-accent="sage"], [data-a="sage"] { --accent: #9fc99a; --bold: #46764d; --on-bold: #fff; }
:root[data-theme="dark"][data-accent], :root[data-theme="dark"] [data-a] { --bold: var(--accent); --on-bold: var(--on-accent); }

* { box-sizing: border-box; }
html { background: var(--bg-a); overscroll-behavior-y: none; interpolate-size: allow-keywords; }
body { margin: 0; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
main, footer { transition: opacity .18s ease-out; }
.jump main, .jump footer { opacity: 0; }

/* The background: one quiet gradient between the two soft colors, fixed so it never repaints, with the corners a little darker so the middle reads as lit.
   The grain is film grain you can actually see, in grey only, and it also stops the glows from banding. */
.sky { position: fixed; left: 0; right: 0; top: 0; height: 100lvh; z-index: -2;
  background: radial-gradient(120% 90% at 50% 38%, transparent 55%, rgba(var(--ink), var(--vignette, .07))), linear-gradient(160deg, var(--bg-a) 10%, var(--bg-b) 100%); }
:root { --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain, .05); background-image: var(--noise); }
/* Light. --glow is what the app window gives off and --shine is the light on the page around it, both the accent by default, a little softer in light mode.
   Pearl's light is the same color as the light page, so there light mode glows a warm neutral grey, never blue. Blue only shows in light when someone picks it. */
:root { --glow: var(--accent); --shine: var(--glow); --glow-k: .8; --grain: .06; }
:root[data-theme="dark"] { --glow-k: 1; --grain: .085; --vignette: .34; }
:root[data-theme="light"][data-accent="pearl"] { --glow: #8a8780; }

/* ——— Top bar ———
   The capsule is its real shape all the time. At the very top the surface fades out and the logo and button slide apart to the page's edges,
   so turning into the capsule is transform and opacity only and runs apart from the scroll. No blur behind it, for the same reason.
   Everything else on it (the pill, the sheet) only moves when you touch it. */
.top { --capw: min(664px, calc(100vw - 20px)); --edge: calc((100vw - var(--capw)) / 2 - var(--gutter)); --grow: 44px;
  position: fixed; z-index: 20; top: 10px; left: 0; right: 0; margin: 0 auto; width: var(--capw); height: 48px; color: var(--text); view-transition-name: bar; }
.shell { position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: 24px; background: var(--bar); border: 1px solid var(--bar-rim); box-shadow: 0 12px 30px -14px rgba(var(--ink),.34);
  transition: opacity .3s ease-out, transform .6s var(--out), left .5s var(--spring), right .5s var(--spring), bottom .5s var(--spring), border-radius .4s var(--out); }
.barrow { position: relative; height: 48px; padding: 0 6px 0 13px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.logo, .links, .barend { transition: transform .6s var(--out); will-change: transform; }
.top:not(.stuck):not(.open) .shell { opacity: 0; transform: scaleX(1.05); }
.top:not(.stuck):not(.open) .logo { transform: translate3d(calc(var(--edge) * -1 - 13px), 8px, 0); }
.top:not(.stuck):not(.open) .links { transform: translate3d(0, 8px, 0); }
.top:not(.stuck):not(.open) .barend { transform: translate3d(calc(var(--edge) + 6px), 8px, 0); }
.logo img { display: block; width: 22px; height: 22px; }
/* Wordmark: heavy, with one slanted glint that passes through the letters only. It runs once, then rests. */
.logo span { font-family: var(--serif); font-weight: 900; font-size: 19px; letter-spacing: -.3px; display: inline-block;
  background: linear-gradient(105deg, var(--text) 0 42%, color-mix(in srgb, var(--text) 40%, white) 48%, #fff 50%, color-mix(in srgb, var(--text) 40%, white) 52%, var(--text) 58% 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo span.glint { animation: wordglint 1.6s ease-in-out; }
@keyframes wordglint { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.links { position: relative; display: flex; align-items: center; font-size: 14px; font-weight: 500; }
.links a { position: relative; z-index: 1; height: 32px; padding: 0 13px; display: inline-flex; align-items: center; color: var(--muted); transition: color .16s ease-out; }
.links a:hover, .links a.on, .links a:focus-visible { color: var(--text); }
.pill { position: absolute; left: 0; top: 50%; height: 32px; margin-top: -16px; width: 60px; border-radius: 16px; background: var(--hover); opacity: 0; transition: transform .38s var(--out), width .38s var(--out), opacity .2s ease-out; pointer-events: none; }
.barend { position: relative; display: flex; align-items: center; gap: 4px; justify-self: end; }
/* Colors: a swatch in the bar on every page, built by bar.js, and the panel it opens. Theme and accent, like Settings → Appearance in the app. */
.lookbtn { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 17px; background: transparent; display: grid; place-items: center; cursor: pointer; transition: background var(--quick); }
.lookbtn:hover, .lookbtn[aria-expanded="true"] { background: var(--hover); }
.lookbtn i { width: 16px; height: 16px; border-radius: 50%; background: var(--bold); box-shadow: 0 0 0 2px var(--bar), 0 0 0 3.5px var(--bold); }
.look { position: absolute; top: calc(100% + 12px); right: 0; width: 264px; padding: 14px; border-radius: 16px; background: var(--raised); border: 1px solid var(--bar-rim); box-shadow: 0 24px 50px -22px rgba(var(--ink),.5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .14s ease-out, transform .3s var(--out), visibility 0s .14s; }
.look.on { opacity: 1; visibility: visible; transform: none; transition: opacity .14s ease-out, transform .3s var(--out); }
.look h6 { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 12px; font-weight: 500; color: var(--faint); }
.look h6 span { color: var(--text); }
.looktabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 2px; margin-bottom: 16px; border-radius: 999px; background: var(--well); }
.looktabs button { height: 28px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; }
.looktabs button[aria-checked="true"] { background: var(--well-hi); color: var(--text); box-shadow: 0 1px 2px rgba(var(--ink),.16); }
.lookdots { display: grid; grid-template-columns: repeat(9, 1fr); }
.lookdots button { height: 26px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.lookdots i { width: 16px; height: 16px; border-radius: 50%; background: var(--bold); transition: box-shadow var(--quick); }
.lookdots button:hover i { box-shadow: 0 0 0 2px var(--raised), 0 0 0 3px var(--hairline); }
.lookdots button[aria-checked="true"] i { box-shadow: 0 0 0 2px var(--raised), 0 0 0 3.5px var(--bold); }
.more { display: grid; place-content: center; gap: 4px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 17px; background: transparent; color: var(--text); cursor: pointer; transition: background-color .16s ease-out; }
.more:hover { background: var(--hover); }
.more i { display: block; width: 14px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .4s var(--out); }
.top.open .more i:first-child { transform: translateY(2.75px) rotate(45deg); }
.top.open .more i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* The sheet: the bar opens out of itself, the way the notch does. */
.top.open .shell { left: calc(var(--grow) * -1); right: calc(var(--grow) * -1); bottom: calc(var(--sheet, 200px) * -1); border-radius: 26px; box-shadow: 0 28px 60px -22px rgba(var(--ink),.5); }
.top.open .logo { transform: translateX(calc(var(--grow) * -1)); }
.top.open .barend { transform: translateX(var(--grow)); }
.sheet { position: absolute; top: 48px; left: calc(var(--grow) * -1); right: calc(var(--grow) * -1); padding: 8px 20px 20px 13px; display: grid; grid-template-columns: 1fr 1fr 148px; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .14s ease-out, transform .3s var(--out), visibility 0s .14s; }
.top.open .sheet { opacity: 1; visibility: visible; transform: none; transition: opacity .28s ease-out .08s, transform .55s var(--out) .04s; }
.sheet h6 { margin: 0 0 4px; font-size: 12px; font-weight: 500; color: var(--faint); }
.sheet div > a { display: block; padding: 5px 0; font-size: 15px; font-weight: 500; transition: color .14s ease-out; }
.sheet div > a:hover, .sheet div > a:focus-visible { color: var(--bold); }
.today { align-self: stretch; display: grid; align-content: center; justify-items: center; text-align: center; padding: 14px 10px; border-radius: 14px; background: var(--well); }
.today .dow { font-size: 12px; font-weight: 600; color: var(--bold); }
.today .dom { font: 600 46px/1.05 var(--serif); }
.today small { margin-top: 6px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.top a:focus-visible, .top button:focus-visible { outline: 2px solid var(--bold); outline-offset: 2px; border-radius: 16px; }

/* Controls. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 17px; border-radius: 999px; font: 500 14px var(--sans); background: var(--well); border: 1px solid var(--hairline); color: var(--text); cursor: pointer; white-space: nowrap;
  transition: background-color .16s ease-out, color .3s ease-out, transform .3s var(--spring), box-shadow .3s ease-out; }
.btn:hover { background: var(--well-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--cta); color: var(--on-cta); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 22px -10px color-mix(in srgb, var(--cta) 75%, transparent); }
.btn.primary:hover { background: color-mix(in srgb, var(--cta) 90%, black); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 30px -10px color-mix(in srgb, var(--cta) 85%, transparent); }
/* The big buttons give off a little of the accent in graphite, and every so often a glint runs across the hero's. */
:root[data-theme="dark"] .btn.primary.big, :root[data-theme="dark"] .wl .btn.primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px color-mix(in srgb, var(--cta) 60%, white), 0 10px 36px -8px color-mix(in srgb, var(--cta) 70%, transparent); }
:root[data-theme="dark"] .btn.primary.big:hover, :root[data-theme="dark"] .wl .btn.primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px color-mix(in srgb, var(--cta) 60%, white), 0 14px 48px -8px var(--cta); }
/* Light mode: the buttons stay dark, and the glow under them is the page's light, so it matches the window. */
:root[data-theme="light"] .btn.primary.big, :root[data-theme="light"] .wl .btn.primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 12px 32px -10px color-mix(in srgb, var(--glow) 75%, transparent); }
:root[data-theme="light"] .btn.primary.big:hover, :root[data-theme="light"] .wl .btn.primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 40px -8px color-mix(in srgb, var(--glow) 90%, transparent); }
.cta .btn.primary { position: relative; overflow: hidden; }
.cta .btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; pointer-events: none; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: ctaglint 9s ease-in-out 2.6s infinite; }
/* Paused while the hero is off screen (script.js). */
.cta.away .btn.primary::after { animation-play-state: paused; }
@keyframes ctaglint { 0% { transform: translateX(-120%) skewX(-20deg); } 11%, 100% { transform: translateX(260%) skewX(-20deg); } }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--well); }
.btn.small { height: 34px; padding: 0 15px; font-size: 13.5px; }
.btn.big { height: 46px; padding: 0 22px; font-size: 15.5px; }
kbd { font: 500 11px var(--sans); padding: 1px 6px; border-radius: var(--r-swatch); background: var(--well); border: 1px solid var(--hairline); color: var(--muted); }

/* ——— Scroll story ———
   A .scene is tall and its .stage sticks to the screen. script.js turns scroll position into progress (0–1) and scrubs the scene with it. */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --band: 156px;
  /* The window is a size, not whatever's left over: always the real window's shape, with room around it, and centered with its caption. */
  --framemax: min(1120px, 70vw); --framew: min(var(--framemax), calc(100vw - 2 * var(--gutter)), calc((100svh - 96px - var(--band)) * 1.595));
  --frameh: calc(var(--framew) / 1.595); --frametop: calc(64px + (100svh - 64px - var(--frameh) - 120px) / 2); }
#story { height: 760vh; }

/* The hero: the app's dictionary headword on the left, the plain explanation on the right, the window rising from below them. */
.intro { position: absolute; left: 0; right: 0; top: 0; padding: clamp(84px, 13vh, 124px) var(--gutter) 0; pointer-events: none; }
.intro .in { will-change: transform, opacity; width: min(1360px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 56px; align-items: end; }
.headword { position: relative; font-family: var(--serif); font-size: clamp(84px, min(15vw, 25vh), 232px); line-height: .92; font-weight: 700; letter-spacing: -.035em; margin: 0; }
.ltr { position: relative; }
.ltr::before { content: ""; position: absolute; left: .015em; right: .015em; top: .1em; bottom: .05em; border-radius: .075em; transform: scaleY(0); pointer-events: none;
  background: var(--bold); box-shadow: inset .035em 0 0 color-mix(in srgb, var(--bold) 74%, black); }
/* A copy of each letter, blurred, in the light color. It sits behind the letter and only shows in the opening (see .opening .ltr::after). */
.ltr::after { content: attr(data-l); position: absolute; left: 0; top: 0; z-index: -1; line-height: normal; color: var(--shine); filter: blur(.08em); opacity: 0; pointer-events: none; }
.pron { margin-top: 12px; font-family: var(--serif); font-size: clamp(16px, 1.5vw, 21px); color: var(--muted); display: flex; gap: 14px; align-items: baseline; }
.pron em { color: var(--text); }
.pitch { padding-bottom: 6px; pointer-events: auto; }
.tagline { font-size: clamp(28px, 3vw, 42px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; margin: 0; }
.tagline em { font-family: var(--serif); font-weight: 600; color: var(--bold); }
/* Only in the hero: the closing headline clips itself for its slide-up, which would cut this glow into a box. */
:root[data-theme="dark"] .pitch .tagline em { text-shadow: 0 0 .7em color-mix(in srgb, var(--bold) 45%, transparent); }
:root[data-theme="light"] .pitch .tagline em { text-shadow: 0 0 .6em color-mix(in srgb, var(--glow) 55%, transparent); }
.def { margin: 12px 0 0; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.45; color: var(--muted); max-width: 460px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tourbtn svg { width: 12px; height: 12px; fill: currentColor; flex: none; }
.tourbtn .i-pause, .touring .tourbtn .i-play { display: none; }
.touring .tourbtn .i-pause { display: block; }

.frame { position: absolute; left: 50%; top: var(--frametop); height: var(--frameh); width: var(--framew); transform-origin: 50% 0; will-change: transform; --rw: calc(var(--r-window) * var(--scale, 1));
  --u: calc(var(--scale, .66) * 1.5px); }   /* one unit of glow: 1px with a 1000-wide window, so the light keeps its proportions at every size */
/* The window gives off light. .halo sits behind it: one even glow in --glow, the same on every side, in three soft rings. Light mode adds a shadow
   under it, because light alone doesn't show on a light page. script.js turns it down a little once the window has risen into place.
   It's its own layer, so the window repainting never repaints the glow. */
.halo { position: absolute; inset: 0; border-radius: var(--rw); pointer-events: none; will-change: opacity; }
.halo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 calc(70 * var(--u)) calc(4 * var(--u)) color-mix(in srgb, var(--glow) calc(var(--glow-k) * 30%), transparent),
    0 0 calc(200 * var(--u)) calc(30 * var(--u)) color-mix(in srgb, var(--glow) calc(var(--glow-k) * 17%), transparent),
    0 0 calc(440 * var(--u)) calc(90 * var(--u)) color-mix(in srgb, var(--glow) calc(var(--glow-k) * 8%), transparent); }
:root[data-theme="light"] .halo::before {
  box-shadow: 0 0 calc(70 * var(--u)) calc(4 * var(--u)) color-mix(in srgb, var(--glow) calc(var(--glow-k) * 30%), transparent),
    0 0 calc(200 * var(--u)) calc(30 * var(--u)) color-mix(in srgb, var(--glow) calc(var(--glow-k) * 17%), transparent),
    0 0 calc(440 * var(--u)) calc(90 * var(--u)) color-mix(in srgb, var(--glow) calc(var(--glow-k) * 8%), transparent),
    0 calc(50 * var(--u)) calc(110 * var(--u)) calc(-30 * var(--u)) rgba(var(--ink), .2); }
/* The same grain as the page, laid over the glow, so the light looks like it's on film too and never bands. */
.halo i { position: absolute; inset: -55% -38%; opacity: calc(var(--grain, .05) * 1.2); background-image: var(--noise);
  -webkit-mask: radial-gradient(closest-side, #000 45%, transparent); mask: radial-gradient(closest-side, #000 45%, transparent); }
/* A rim of light on the window's edge, brightest across the top, as if the glow were catching it. */
.frame::after { content: ""; position: absolute; inset: 0; border-radius: var(--rw); padding: 1px; pointer-events: none;
  background: radial-gradient(46% 70px at 50% 0, rgba(255,255,255,.62), transparent), linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.05) 26%, rgba(255,255,255,.02) 70%, rgba(255,255,255,.07));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
:root[data-theme="light"] .frame::after { opacity: .7; }
/* Captions sit on the page under the window, like subtitles. */
.caps { position: absolute; left: 50%; top: calc(var(--frametop) + var(--frameh) + 36px); transform: translateX(-50%); width: var(--framew); z-index: 6; pointer-events: none; }
.cap { position: absolute; left: 2px; top: 0; max-width: 760px; opacity: 0; transform: translateY(10px); transition: opacity .3s ease-out, transform .5s var(--out); }
.cap.on { opacity: 1; transform: none; }
.cap b { display: block; font-size: clamp(21px, 2vw, 27px); font-weight: 600; letter-spacing: -.5px; line-height: 1.2; }
.cap span { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.35; margin-top: 3px; }

/* Chapter marks in the right margin. Click to jump. */
.rail { position: absolute; left: calc(50% + var(--framew) / 2 + 18px); top: calc(50% - 30px); transform: translateY(-50%); display: grid; gap: 2px; z-index: 7; opacity: 0; transition: opacity .22s; }
.rail.on { opacity: 1; }
.rail button { all: unset; position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 18px; height: 24px; }
.rail button::after { content: ""; width: 5px; height: 5px; border-radius: 3px; background: var(--text); opacity: .3; transition: height var(--standard), opacity var(--quick); }
.rail button:hover::after { opacity: .7; }
.rail button.on::after { height: 18px; opacity: 1; }
.rail button:focus-visible { outline: 2px solid var(--text); border-radius: 4px; }
.rail button span { position: absolute; right: 26px; white-space: nowrap; padding: 3px 9px; border-radius: var(--r-chip); background: var(--raised); box-shadow: var(--pop); font-size: 12px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity var(--quick); }
.rail button:hover span { opacity: 1; }

/* ———————————————————— The app window ————————————————————
   A scale model of the real thing. It's laid out in the app's own points, as a 1512 × 948 window (a 14-inch MacBook Pro), using the sizes in Theme.swift,
   then the whole picture is scaled to fit (--scale, script.js). Change the size here and WINDOW_WIDTH there together. The window buttons only show under the pointer. */
.win { position: relative; width: 1512px; height: 948px; transform: scale(var(--scale, 1)); transform-origin: 0 0; container-type: size; overflow: hidden; display: grid; grid-template-columns: 264px 1fr; padding: 8px 8px 8px 0;
  border-radius: var(--r-window); border: 1px solid var(--hairline); box-shadow: 0 64px 110px -50px rgba(var(--ink),.6), 0 18px 40px -20px rgba(var(--ink),.3);
  --today: rgba(255,255,255,.028); --ev-mix: 45%;
  background: radial-gradient(30% 44% at 6% 44%, rgba(180,180,182,.13), transparent), radial-gradient(40% 46% at 0% 100%, rgba(0,0,0,.42), transparent), radial-gradient(60% 84% at 46% 66%, rgba(168,168,182,.52), transparent), radial-gradient(44% 44% at 100% 0%, rgba(0,0,0,.24), transparent), radial-gradient(60% 34% at 62% 0%, rgba(0,0,0,.24), transparent), #343537; }
.ic { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Sidebar sits on the field. */
.side { padding: 0 16px 0; font-size: 13px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.side .head { flex: none; height: 56px; display: flex; align-items: center; }
.side .wm { font-family: var(--serif); font-weight: 900; font-size: 26px; letter-spacing: -.4px; }
.newev { flex: none; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--well-hi); border: 1px solid var(--hairline); box-shadow: inset 0 1px 0 var(--rim); font-weight: 500; font-size: 12px; }
.newev .key { margin-left: auto; color: var(--muted); font-size: 11px; }
.newev .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-left: 6px; }
.newev .ic { width: 9px; height: 9px; color: var(--muted); }
.newev .ic:first-child { width: 11px; height: 11px; color: var(--text); }
.mon { flex: none; margin-top: 20px; }
.mh { height: 24px; display: flex; align-items: center; gap: 12px; padding: 0 4px; font-size: 12px; font-weight: 500; }
.mh .ic { color: var(--muted); width: 10px; height: 10px; }
.mh .ic:first-of-type { margin-left: auto; }
.mg { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 2px; font-size: 11.5px; text-align: center; font-variant-numeric: tabular-nums; }
.mg b { height: 20px; line-height: 20px; font-size: 11px; font-weight: 400; color: var(--muted); }
.mg span { position: relative; height: 23px; line-height: 23px; }
.mg .o { color: var(--muted); opacity: .55; }
.mg .w { background: var(--well-hi); }
.mg .ws { border-radius: 7px 0 0 7px; }
.mg .we { border-radius: 0 7px 7px 0; }
.mg .ws.we { border-radius: 7px; }
.mg .t { color: var(--on-accent); font-weight: 600; z-index: 0; }
.mg .t::before { content: ""; position: absolute; left: 50%; top: 50%; width: 21px; height: 21px; margin: -10.5px; border-radius: 50%; background: var(--accent); z-index: -1; }
.todo { flex: none; display: flex; align-items: center; gap: 8px; height: 28px; margin-top: 16px; padding: 0 4px; font-size: 12px; color: var(--muted); }
.todo b { font-weight: 500; color: #f0817a; margin-left: 2px; }
.todo .ic:last-child { margin-left: auto; }
.side .sec { flex: none; margin-top: 16px; }
.side .sec h5 { margin: 0 0 2px; padding: 0 4px; height: 22px; display: flex; align-items: center; gap: 5px; font: 600 11px var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.side .sec h5 .ic { width: 9px; height: 9px; }
.row { height: 26px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: var(--r-chip); color: var(--text); white-space: nowrap; }
.row.sel { background: var(--well-hi); }
.row .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.row .sw.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.row .end { margin-left: auto; color: var(--muted); font-size: 11px; }
.row .box { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--muted); flex: none; }
.row .due { margin-left: auto; font-size: 10px; font-weight: 600; color: var(--destructive); }
.frame .row { height: 28px; gap: 10px; padding: 0 4px; font-size: 13px; }
.frame .row .sw { width: 12px; height: 12px; border-radius: 4px; }
.frame .row.q { color: var(--muted); }
.frame .row.q .ic { width: 12px; height: 12px; opacity: .7; }
.frame .row.hid .ic { width: 9px; height: 9px; margin: 0 1.5px; }
.side .stat { flex: none; display: flex; align-items: center; gap: 6px; height: 28px; margin-top: 16px; padding: 0 4px; font-size: 12px; color: var(--muted); }
.side .stat b { font-size: 13px; font-weight: 600; color: var(--text); }
.side .stat .ic { width: 9px; height: 9px; margin-left: auto; }
.spaces { margin-top: auto; flex: none; display: flex; align-items: center; height: 40px; padding-bottom: 8px; color: var(--muted); }
.spaces span { width: 34px; height: 26px; display: grid; place-items: center; border-radius: var(--r-control); }
.spaces span.on { background: var(--well-hi); color: var(--text); }
.spaces .ic { width: 14px; height: 14px; }
.spaces i { flex: 1; }

/* Calendar panel: glass, thin tint, one rim highlight, the shared shadow. */
.cal { position: relative; border-radius: var(--r-panel); background: var(--panel); border: 1px solid var(--hairline); box-shadow: var(--pop), inset 1px 1px 0 var(--rim); overflow: hidden; min-width: 0; }
.tb { flex: none; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--hairline); }
.tb .title { font-size: 26px; font-weight: 600; letter-spacing: -.6px; white-space: nowrap; }
.chipb { height: 22px; padding: 0 8px; display: flex; align-items: center; gap: 5px; border-radius: var(--r-chip); background: var(--well); font-size: 12px; font-weight: 500; color: var(--muted); }
.chipb .ic { width: 11px; height: 11px; }
.nav3 { display: flex; align-items: center; font-size: 12px; font-weight: 500; }
.nav3 span { padding: 0 8px; }
.nav3 .ic { width: 28px; height: 11px; color: var(--muted); }
.tabs { margin-left: auto; display: flex; font-size: 12px; font-weight: 500; color: var(--muted); }
.tabs span { height: 24px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; }
.tabs .on { background: var(--well-hi); color: var(--text); }
.tb .ico { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.tb .ico .ic { width: 14px; height: 14px; }

.fbar { flex: none; }
.grid7 { flex: 1; min-height: 0; display: grid; grid-template-columns: 72px repeat(7, 1fr); position: relative; }
.gut, .day { position: relative; }
.day { border-left: 1px solid var(--line); min-width: 0; }
.day.wk { background: var(--weekend); }
.day.now { background: var(--today); }
.dh { height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 1; }
.dh small { font-size: 13px; font-weight: 500; color: var(--muted); }
.dh b { font-size: 24px; font-weight: 600; }
.day.now .dh small { color: var(--text); }
.day.now .dh b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 16px; }
.ad { height: 36px; position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(var(--header-shade), transparent); }
.gut .ad { font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; }
.body { --h: 64px; position: relative; height: calc(var(--h) * 12); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(var(--h) / 2), var(--line-faint) calc(var(--h) / 2) calc(var(--h) / 2 + 1px), transparent calc(var(--h) / 2 + 1px) var(--h)); }
.gut .body { background: none; }
.gut .body span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }

.chip { position: absolute; top: 7px; left: 2px; right: 2px; height: 20px; border-radius: var(--r-swatch); padding: 0 6px 0 9px; display: flex; align-items: center; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden;
  background: color-mix(in srgb, var(--c) 13%, transparent); box-shadow: inset 3px 0 0 var(--c); color: color-mix(in srgb, var(--c) var(--ev-mix), var(--ev-ink)); z-index: 2; }
.chip.span2 { right: calc(-100% - 1px); }

/* Events. --k is how much color they have (0 = grey), --r how far they have receded into routine (1 = recurring). The story scrubs both. */
.ev { --k: 1; --r: 0; --cc: color-mix(in srgb, var(--c) calc(var(--k) * 100%), #7d8089);
  position: absolute; left: 2px; right: 2px; top: calc(var(--s) * var(--h)); height: calc(var(--d) * var(--h) - 1px); border-radius: var(--r-control); padding: 4px 6px 4px 9px; overflow: hidden;
  font-size: 11px; line-height: 1.3; font-weight: 500;
  color: color-mix(in srgb, color-mix(in srgb, var(--cc) var(--ev-mix), var(--ev-ink)) calc(100% - var(--r) * 100%), var(--muted));
  --fp: calc(var(--ev-fill) * (1 - var(--r)) + var(--ev-rec) * var(--r));
  background: linear-gradient(color-mix(in srgb, var(--cc) var(--fp), transparent), color-mix(in srgb, var(--cc) var(--fp), transparent)), var(--event-base);
  box-shadow: inset calc(3px - var(--r) * 1px) 0 0 var(--cc), inset 0 0 0 1px var(--event-rim); transition: filter var(--quick); }
.ev:hover { filter: brightness(1.12); }
.ev small { display: block; font: 10.5px var(--mono); opacity: .8; }
.ev.short { white-space: nowrap; text-overflow: ellipsis; }
.ev.short small { display: inline; margin-left: 5px; }
.ev.rec { --r: 1; }
.ev.sel { outline: 1.5px solid var(--cc); outline-offset: -1px; font-weight: 700; box-shadow: inset 3px 0 0 var(--cc), var(--lifted); z-index: 3; }
.ev.task { height: 20px; display: flex; align-items: center; gap: 5px; padding: 0 6px; box-shadow: none; border: 1px dashed color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 10%, var(--event-base)); white-space: nowrap; }
.ev.task i { width: 9px; height: 9px; border-radius: 3px; border: 1.3px solid currentColor; flex: none; }
/* In the window, events are painted as EventPaint and EventCard paint them in EventViews.swift, which is ahead of DESIGN.md §5: a quiet base, the color at 19%, a 4pt bar cut by the
   card's corners, no rim, and the title 55% of the way to white. Muting a repeating event only changes its color (ColorMath.muted, --m), so --r moves --cc and nothing else. */
.frame .ev { --cc: color-mix(in srgb, color-mix(in srgb, var(--m, var(--c)) calc(var(--r) * 100%), var(--c)) calc(var(--k) * 100%), #7d8089); padding: 4px 8px 4px 12px; font-size: 13px; line-height: 1.25; font-weight: 600; white-space: nowrap; text-overflow: ellipsis;
  color: color-mix(in srgb, var(--cc) 45%, white); background: linear-gradient(color-mix(in srgb, var(--cc) 19%, transparent) 0 0), rgba(42,43,49,.31); box-shadow: none; }
.frame .ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cc); }
.frame .ev small { display: block; margin-top: 1px; font: 400 11px var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); opacity: 1; overflow: hidden; text-overflow: ellipsis; }
.frame .ev.short { padding-block: 0; line-height: calc(var(--d) * var(--h) - 1px); }
.frame .ev.short small { display: inline; margin-left: 4px; }
.frame .ev.task { height: 24px; gap: 6px; padding: 0 8px; font-size: 12px; border-radius: 6px; border-color: color-mix(in srgb, var(--cc) 70%, transparent); background: color-mix(in srgb, var(--cc) 10%, var(--event-base)); }
.frame .ev.task::before { display: none; }
.frame .ev.task i { width: 12px; height: 12px; border-radius: 50%; border-width: 1.5px; }
.nowl { position: absolute; left: 3px; right: 3px; top: calc(var(--t) * var(--h)); height: 1.5px; border-radius: 2px; background: var(--accent); }
.nowl::before { content: ""; position: absolute; left: -1px; top: -3px; width: 7.5px; height: 7.5px; border-radius: 50%; background: var(--accent); }
.nowtag { position: absolute; right: 4px; top: calc(var(--t) * var(--h)); transform: translateY(-50%); height: 18px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; display: grid; place-items: center; z-index: 2; }

/* ⌘K over the window. */
.pal .q { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
.pal .q .k { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: var(--r-chip); background: var(--well-hi); color: var(--text); }
.pal .r { display: flex; align-items: center; gap: 8px; height: 30px; margin: 4px 6px; padding: 0 8px; border-radius: var(--r-chip); color: var(--muted); }
.pal .r.sel { background: var(--well-hi); color: var(--text); }
.pal .r kbd { margin-left: auto; }
.caret { width: 1.5px; height: 16px; background: var(--accent); flex: none; }
.kpal.open .caret, .peek .caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kpal { position: absolute; left: 50%; top: 18%; width: min(520px, 84%); transform: translateX(-50%); z-index: 5; opacity: 0; pointer-events: none; }
.kpal .pop { max-width: none; }
.kpal .q { font-size: 17px; padding: 14px 16px; }
.kpal .r { height: 34px; font-size: 13px; }
.warm .dim { will-change: opacity; }
.warm .kpal { will-change: opacity, transform; }
.dim { position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 4; opacity: 0; pointer-events: none; border-radius: inherit; }
.ev.new { z-index: 3; opacity: 0; }

/* Focus, as the app draws it: FocusPanelBar slides in under the top bar and pushes the calendar down (FocusViews.swift),
   and a ring of ticks inset from the window edge drains clockwise from the top, drawn in the same layers as FocusEdge.swift. */
.fbar { height: 0; overflow: hidden; }
.fb { margin: 12px 12px 4px; display: flex; align-items: center; gap: 24px; padding: 16px 24px; border-radius: var(--r-card); background: var(--well); border: 1px solid var(--separator); }
.fb .tz { display: flex; align-items: center; gap: 16px; }
.fb .lab { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; color: var(--accent); }
.fb .clk { font: 600 52px/1.05 ui-rounded, "SF Pro Rounded", var(--sans); font-variant-numeric: tabular-nums; color: var(--accent); margin-top: 4px; }
.fb .pb { height: 3px; border-radius: 2px; background: var(--hairline); margin-top: 4px; overflow: hidden; }
.fb .pb i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; }
.fb .play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.fb .play svg { width: 16px; height: 16px; fill: var(--on-accent); }
.fb .task { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fb .task b { font-size: 15px; font-weight: 500; }
.fb .task span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.fb .task i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.fb .ib { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--well-hi) 70%, transparent); display: grid; place-items: center; flex: none; }
.fb .ib svg { width: 11px; height: 11px; fill: var(--muted); }
.edge { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; opacity: 0; pointer-events: none; overflow: visible; }

/* Wait, as the app draws it (StandBy.swift): your field under a scrim, tinted from the right by the current event,
   two 420-wide columns centred as one block. --u is one app point, scaled to the window. */
.wait { --u: min(1px, .1cqw, .15cqh); --tint: #3fb8af; position: absolute; inset: 0; z-index: 6; opacity: 0; border-radius: inherit; overflow: hidden; color: var(--text);
  display: grid; grid-template-columns: calc(420 * var(--u)) calc(420 * var(--u)); gap: calc(48 * var(--u)); justify-content: center; align-content: center; align-items: start;
  background: radial-gradient(60% 80% at 100% 50%, color-mix(in srgb, var(--tint) 20%, transparent), transparent 70%), var(--wait-scrim),
    radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--f1) 45%, transparent), transparent 70%), radial-gradient(60% 80% at 100% 100%, color-mix(in srgb, var(--f3) 30%, transparent), transparent 70%), color-mix(in srgb, var(--window) 70%, var(--f2)); }
:root { --wait-scrim: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.42)); }
.wait .faint { opacity: .45; } .wait .medium { opacity: .6; }
.wait .wd { font-size: calc(18 * var(--u)); font-weight: 600; letter-spacing: calc(3 * var(--u)); }
.wait .md { font-size: calc(44 * var(--u)); font-weight: 600; margin-top: calc(14 * var(--u)); line-height: 1.1; }
.wait .clock { font: 700 calc(168 * var(--u))/1 ui-rounded, "SF Pro Rounded", var(--sans); letter-spacing: calc(-7 * var(--u)); margin: calc(28 * var(--u)) 0 0 calc(-6 * var(--u)); }
.wait .lbl { font-size: calc(11 * var(--u)); font-weight: 700; letter-spacing: calc(2 * var(--u)); }
.wait .allday { margin-top: calc(34 * var(--u)); display: grid; gap: calc(8 * var(--u)); }
.wait .allday div { display: flex; align-items: center; gap: 10px; font-size: calc(18 * var(--u)); opacity: .8; }
.wait .allday i { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: var(--c); }
.wait .right { display: grid; gap: calc(40 * var(--u)); }
.wait .now { display: grid; gap: calc(18 * var(--u)); }
.wait .tag { display: flex; align-items: center; gap: 10px; font-size: calc(13 * var(--u)); font-weight: 700; letter-spacing: calc(3 * var(--u)); color: var(--tint); }
.wait .tag i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); border-radius: 50%; background: var(--tint); box-shadow: 0 0 calc(8 * var(--u)) var(--tint); }
.wait .title { font-size: calc(64 * var(--u)); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.wait .range { font: 500 calc(26 * var(--u)) ui-rounded, "SF Pro Rounded", var(--sans); }
.wait .prog { display: grid; gap: calc(10 * var(--u)); }
.wait .prog b { display: block; height: 4px; border-radius: 2px; background: color-mix(in srgb, currentColor 10%, transparent); overflow: hidden; }
.wait .prog b i { display: block; height: 100%; width: 40%; border-radius: 2px; background: var(--tint); }
.wait .prog span { font-size: calc(18 * var(--u)); font-weight: 500; }
.wait .later { display: grid; gap: 4px; }
.wait .later .lbl { margin-bottom: 2px; }
.wait .later div { display: flex; align-items: center; gap: calc(14 * var(--u)); padding: calc(3 * var(--u)) 0; font-size: calc(18 * var(--u)); font-weight: 500; }
.wait .later div::before { content: ""; width: 4px; height: calc(24 * var(--u)); border-radius: 2px; background: var(--c); }
.wait .later em { font: 500 calc(18 * var(--u)) ui-rounded, "SF Pro Rounded", var(--sans); font-variant-numeric: tabular-nums; width: calc(86 * var(--u)); opacity: .6; }

/* ——— Sections ——— */
section { padding: clamp(100px, 15vh, 168px) 0 0; }
h2 { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -.025em; font-weight: 600; margin: 0; }
.head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px 64px; align-items: end; }
.head.solo { display: block; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 0; max-width: 460px; }
.dia { display: inline-block; width: 9px; height: 9px; margin: 0 2px 1px; background: var(--bold); border-radius: 1.3px; transform: rotate(45deg); }

/* Headlines slide up from behind a line, everything else rises and settles. */
.js .rise { overflow: clip; padding-bottom: .16em; margin-bottom: -.16em; }
.js .rise > span { display: block; transform: translateY(112%); transition: transform 1s var(--out); }
.js .rise.in > span { transform: none; }
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .7s ease-out var(--delay, 0ms), translate 1s var(--out) var(--delay, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }
/* script.js adds .pre a screen ahead of a reveal and takes it off after, so the layer only exists around the move. */
.js .reveal.pre { will-change: opacity, translate; }
.js .rise.pre > span { will-change: transform; }

/* Feature cards. Solid, with one soft wash of color each, and a size that follows how much there is to show. */
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 52px; }
.chapters { display: none; }
.card { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; background: var(--card); box-shadow: inset 0 1px 0 var(--card-rim), 0 24px 44px -30px rgba(var(--ink),.4); }
/* Cards catch the light: a soft wash from the top, a pool of the accent under the pointer, and the edge lighting up nearest it. script.js sets --mx and --my. */
.card::before, .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease-out; }
.card::before { z-index: -1; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0), color-mix(in srgb, var(--shine) calc(var(--glow-k) * 18%), transparent), transparent 70%); }
.card::after { z-index: 2; padding: 1px; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0), color-mix(in srgb, var(--glow) 70%, white), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@media (hover: hover) { .card:hover::before { opacity: 1; } .card:hover::after { opacity: .75; } }
:root[data-theme="dark"] .card { background: linear-gradient(rgba(255,255,255,.035), transparent 45%), var(--card); }
:root[data-theme="light"] .card::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0), color-mix(in srgb, var(--glow) 80%, transparent), transparent 70%); }
.feat { display: flex; flex-direction: column; grid-column: span 5; }
.feat.w7 { grid-column: span 7; }
.feat .vig { height: 264px; position: relative; display: grid; place-items: center; overflow: hidden; padding: 20px; font-size: 12px; }
.feat .txt { padding: 18px 26px 26px; }
.feat h3 { margin: 0 0 5px; font-size: 20px; font-weight: 600; letter-spacing: -.35px; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; max-width: 460px; }

/* Vignettes: real pieces of the app, each doing its one thing as the card arrives. */
.pop { border-radius: var(--r-card); background: var(--raised); border: 1px solid var(--hairline); box-shadow: var(--pop); width: 100%; max-width: 340px; }
.tasks { width: 100%; max-width: 300px; padding: 8px; }
.tasks .row { height: 30px; font-size: 13px; }
.tasks h5 { margin: 4px 0 2px; padding: 0 8px; font: 600 11px var(--sans); color: var(--muted); }
.tasks .done .box { transition: background-color .2s ease-out .85s, border-color .2s ease-out .85s; }
.tasks .done .lbl { transition: color .3s ease-out .9s, background-size .45s ease-out .9s; background: linear-gradient(currentColor, currentColor) 0 56% / 0% 1px no-repeat; }
.in .tasks .done .box { background: var(--success); border-color: var(--success); }
.in .tasks .done .lbl { color: var(--muted); background-size: 100% 1px; }
.views { position: relative; width: 100%; max-width: 270px; padding: 8px; }
.views .row { position: relative; height: 32px; font-size: 13px; }
.views::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 32px; border-radius: var(--r-chip); background: var(--well); transition: translate .55s var(--spring) .85s; }
.in .views::before { translate: 0 32px; }
.drag { position: relative; width: 190px; height: 170px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 42px); }
.drag .ev { --h: 42px; }
.drag .ghost { opacity: .35; }
.drag .ev.sel { translate: 0 -42px; transition: translate .9s var(--out) .6s; }
.in .drag .ev.sel { translate: 0 0; }
.readout { position: absolute; right: -58px; top: 60px; font: 600 10.5px var(--mono); padding: 2px 7px; border-radius: 999px; background: var(--cta); color: var(--on-cta); opacity: 0; transition: opacity .3s ease-out 1.1s; }
.in .readout { opacity: 1; }
.gsync { position: absolute; left: 20px; bottom: 16px; display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.gsync i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.acct { width: 280px; height: 160px; border-radius: 14px; position: relative; padding: 18px 20px; color: #f2f3f5; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px), linear-gradient(160deg, #3a3c42, #1d1e22 60%, #121316); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.5), 0 18px 36px -14px rgba(15,25,50,.6); }
.acct b { font-size: 21px; font-weight: 600; letter-spacing: -.3px; display: block; }
.acct .u { font: 12px var(--mono); color: #a9c7e8; }
.acct .tier { position: absolute; left: 20px; bottom: 15px; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: rgba(255,255,255,.55); }
.acct .sig { position: absolute; right: 18px; bottom: 15px; display: flex; gap: 3px; align-items: flex-end; height: 38px; }
.acct .sig i { width: 5px; border-radius: 2px; background: var(--c); opacity: .9; transform-origin: 50% 100%; transform: scaleY(.12); transition: transform .7s var(--spring) calc(.55s + var(--n) * 55ms); }
.in .acct .sig i { transform: none; }

/* The notch opens as it arrives. */
.notchvig { padding: 0; align-items: start; }
.notchv { width: min(520px, 100%); height: 196px; background: #000; color: #f4f4f4; border-radius: 0 0 28px 28px; display: flex; align-items: center; gap: 28px; padding: 14px 34px;
  clip-path: inset(0 32% 74% 32% round 0 0 16px 16px); transition: clip-path .9s var(--out) .5s; }
.in .notchv { clip-path: inset(0 0 0 0 round 0 0 28px 28px); }
.nlist { display: grid; gap: 1px; font-size: 14px; min-width: 0; }
.nlist span { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: #3fb8af; }
.nlist span.nx { color: rgba(255,255,255,.45); margin-top: 8px; }
.nlist b { font-weight: 600; }
.nlist em { font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.6); }
/* A tiny tick ring: lit ticks in the accent, the elapsed part dimmed. */
.bring { position: relative; width: 136px; height: 136px; flex: none; display: grid; place-items: center; text-align: center; }
.bring::before, .bring::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, transparent 83%, #000 84% 97%, transparent 98%); mask: radial-gradient(closest-side, transparent 83%, #000 84% 97%, transparent 98%); }
.bring::before { background: repeating-conic-gradient(var(--accent) 0 1.4deg, transparent 1.4deg 6deg); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 70%, transparent)); }
.bring::after { background: conic-gradient(#000 0 37%, transparent 37%); opacity: .8; }
.bring b { display: block; font: 600 27px/1 ui-rounded, "SF Pro Rounded", var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.bring small { font-size: 11px; color: rgba(255,255,255,.6); }

/* Background and accent: a little window you can actually change. */
.vig.pick { display: flex; align-items: center; justify-content: center; gap: 30px; }
.mini { flex: 0 1 320px; min-width: 0; height: 192px; border-radius: 11px; overflow: hidden; display: grid; grid-template-columns: 44px 1fr; padding: 5px 5px 5px 0; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 22px 40px -18px rgba(15,25,50,.6);
  background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--f1) 62%, transparent), transparent 70%), radial-gradient(60% 80% at 100% 100%, color-mix(in srgb, var(--f3) 44%, transparent), transparent 70%), color-mix(in srgb, #14161c 66%, var(--f2)); }
.mside { padding: 30px 0 0; display: grid; gap: 9px; justify-items: center; align-content: start; }
.mside i { width: 11px; height: 11px; border-radius: 3px; background: var(--c); }
.mcal { border-radius: 7px; background: rgba(16,17,21,.62); border: 1px solid rgba(255,255,255,.1); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.mtop { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 9px; border-bottom: 1px solid rgba(255,255,255,.08); color: #ecedef; font-size: 10.5px; }
.mtop span { width: 26px; height: 9px; border-radius: 5px; background: var(--accent); }
.mgrid { position: relative; flex: 1; --cw: 25%; --rh: 22%; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 25%); }
.mgrid i { position: absolute; left: calc(var(--x) * var(--cw) + 2px); width: calc(var(--cw) - 4px); top: calc(var(--y) * var(--rh) + 4%); height: calc(var(--l) * var(--rh) - 4px); border-radius: 4px; background: color-mix(in srgb, var(--c) 34%, rgba(42,43,49,.7)); box-shadow: inset 2px 0 0 var(--c); }
.mgrid s { position: absolute; left: 2px; right: 2px; top: 57%; height: 1.5px; border-radius: 2px; background: var(--accent); }
.pickers { flex: none; display: grid; gap: 7px; }
.hint { font-size: 12px; font-weight: 500; color: var(--muted); }
.hint + .looks, .hint + .accents { margin-bottom: 8px; }
.looks { display: grid; grid-template-columns: repeat(2, 66px); gap: 8px; }
.looks .tile { width: 66px; height: 42px; padding: 0; border-radius: 9px; border: 1px solid var(--hairline); background: var(--g); cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; transition: transform var(--quick), outline-color var(--quick); }
.looks .tile.on { outline-color: var(--cta); }
.accents { display: flex; gap: 8px; }
.accents button { width: 18px; height: 18px; padding: 0; border-radius: 50%; background: var(--c); border: 1px solid var(--hairline); cursor: pointer; transition: transform var(--quick); }
.accents button.on { box-shadow: 0 0 0 2px var(--raised), 0 0 0 3.5px var(--cta); }
.looks .tile:hover, .accents button:hover { transform: translateY(-1px); }
.looks .tile:focus-visible, .accents button:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

/* The full list: words, not tiles. */
.list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; margin-top: 48px; }
.list h3 { margin: 0; padding-bottom: 12px; font-size: 14px; font-weight: 600; border-bottom: 1.5px solid var(--text); }
.list ul { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0 13px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.list li b { display: block; color: var(--text); font-weight: 600; }
.list .dia { width: 7px; height: 7px; margin-left: 4px; }

/* Setup: three numbers on one line. */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; padding: 0; border-top: 1.5px solid var(--text); }
.steps li { counter-increment: step; padding: 24px 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--hairline); }
.steps li::before { content: counter(step); display: block; font: 600 72px/1 var(--serif); letter-spacing: -.02em; color: var(--bold); margin-bottom: 26px; }
.steps h3 { margin: 0 0 5px; font-size: 20px; font-weight: 600; letter-spacing: -.35px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }

/* Black: a sample Nexus card on brushed graphite, and its tier mark is cut into it live (CardTierMark.swift). script.js runs the cut.
   Without it, or with Reduce Motion, this is the finished card. */
.bpanel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: clamp(30px, 5vw, 68px); border-radius: 28px; color: #f2f3f5;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px), linear-gradient(160deg, #3a3c42, #1d1e22 60%, #121316);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.5), 0 44px 80px -44px rgba(var(--ink),.75); }
.bfx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.bleft, .bpanel ul { position: relative; z-index: 2; }
/* The card, from AccountCard.swift: 440 × 250 app points, with --pt as one point so every size below is the app's own number. --c and --c2 are the member's colors: silver here, so it reads as a black card. */
.ncard { --c: #aeb2bc; --c2: #6f7380; position: relative; width: min(100%, 520px); aspect-ratio: 440 / 250; container-type: inline-size; }
.nplate { --pt: calc(100cqw / 440); position: absolute; inset: 0; border-radius: calc(22 * var(--pt)); box-shadow: 0 calc(26 * var(--pt)) calc(44 * var(--pt)) calc(-14 * var(--pt)) rgba(0,0,0,.75); }
.nplate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: calc(1.4 * var(--pt)); pointer-events: none; background: linear-gradient(to bottom right, rgba(255,255,255,.7), rgba(255,255,255,.06), rgba(0,0,0,.5), rgba(255,255,255,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.nmetal { position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: radial-gradient(circle calc(330 * var(--pt)) at 100% 100%, color-mix(in srgb, var(--c) 42%, transparent), transparent), radial-gradient(circle calc(260 * var(--pt)) at 0 0, color-mix(in srgb, var(--c2) 22%, transparent), transparent), linear-gradient(to bottom right, #333 0, #161616 38%, #292929 62%, #121212 100%); }
.nmetal::after { content: ""; position: absolute; inset: calc(2 * var(--pt)); border-radius: calc(20 * var(--pt)); border: calc(.6 * var(--pt)) solid rgba(0,0,0,.35); }
.nbrush { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: overlay; }
.nshine { position: absolute; inset: -30% -60%; background: linear-gradient(to bottom right, transparent 42%, rgba(255,255,255,.26) 50%, transparent 58%); mix-blend-mode: plus-lighter; transform: translateX(-70%); }
.bpanel.landed .nshine { animation: nshine 7s ease-in-out 1.5s infinite; }
/* Paused while the card is off screen (script.js). */
.bpanel:not(.vis) .nshine { animation-play-state: paused; }
@keyframes nshine { 0% { transform: translateX(-70%); } 27%, 100% { transform: translateX(70%); } }
.nface { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(22 * var(--pt)) calc(26 * var(--pt)); color: #fff; text-shadow: 0 calc(-.6 * var(--pt)) 0 rgba(0,0,0,.55); }
.ntop { display: flex; align-items: center; justify-content: space-between; }
.nword { font-size: calc(17 * var(--pt)); font-weight: 800; letter-spacing: calc(-.5 * var(--pt)); opacity: .92; line-height: 1.2; }
.nname { margin-top: auto; font-size: calc(38 * var(--pt)); font-weight: 600; letter-spacing: calc(-1.1 * var(--pt)); line-height: 1.2; white-space: nowrap; }
.nuser { margin-top: calc(2 * var(--pt)); font: 500 calc(15 * var(--pt))/1.2 var(--mono); color: color-mix(in srgb, var(--c) 45%, white); text-shadow: none; }
.nsig { position: absolute; right: calc(26 * var(--pt)); bottom: calc(22 * var(--pt)); display: flex; align-items: flex-end; gap: calc(7 * var(--pt)); opacity: .9; }
.nsig i { display: grid; gap: calc(3 * var(--pt)); }
.nsig b { width: calc(7 * var(--pt)); height: calc(var(--l) * var(--pt)); border-radius: 99px; --k: color-mix(in srgb, var(--c) 70%, white); background: linear-gradient(color-mix(in srgb, var(--k) 90%, white), color-mix(in srgb, var(--k) 85%, black)); }
.nsig b.z { --k: color-mix(in srgb, var(--c2) 70%, white); }
.bmark { all: unset; position: relative; display: inline-flex; font-size: calc(9 * var(--pt)); padding: .55em 1em; border-radius: 999px; cursor: pointer; z-index: 1; text-shadow: none; }
.bmark::after { content: ""; position: absolute; inset: -14px; }   /* It's small on the card: this is the part you can click. */
.bmark:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.bplate { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: linear-gradient(135deg, rgba(44,45,52,.92), rgba(19,20,24,.9)); box-shadow: inset 0 1.2px 1px rgba(0,0,0,.55), inset 0 -1.2px 1px rgba(255,255,255,.16), 0 0 0 .6px rgba(255,255,255,.3), 0 calc(var(--h, 0) * 18px) calc(var(--h, 0) * 14px) rgba(0,0,0,calc(var(--h, 0) * .6)); }
.bflash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.bglyphs, .bhot { position: relative; display: inline-flex; align-items: center; gap: .55em; font: 700 1em/1 var(--mono); letter-spacing: .29em; margin-right: -.29em; }
.bglyphs { background: linear-gradient(#f2f3f7, #a9abb6); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 -.6px 0 rgba(0,0,0,.55)); }
.bdia { width: .5em; height: .5em; flex: none; margin: 0 .06em; border-radius: .07em; transform: rotate(45deg); background: linear-gradient(135deg, #f2f3f7, #a9abb6); }
.bhot { position: absolute; left: 1em; top: .55em; color: #fff; opacity: 0; pointer-events: none; filter: blur(1.5px); --from: 0%; --to: 0%;
  -webkit-mask-image: linear-gradient(90deg, transparent var(--from), #fff var(--to), transparent calc(var(--to) + .2%)); mask-image: linear-gradient(90deg, transparent var(--from), #fff var(--to), transparent calc(var(--to) + .2%)); }
.bhot .bdia { background: #fff; }
.bside .lede { margin-top: 30px; max-width: 440px; font-size: 17px; }
.soon { display: inline-block; margin-top: 18px; padding: 4px 13px; border-radius: 999px; border: 1px solid var(--hairline); font-size: 13px; font-weight: 500; }
.bpanel ul { list-style: none; padding: 0; margin: 0; }
.bpanel li { display: flex; gap: 14px; align-items: center; min-height: 44px; padding: 8px 0; line-height: 1.3; color: #eceae4; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.bpanel li:last-child { border-bottom: 0; }
.bpanel li::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 1.2px; background: var(--bold); transform: rotate(45deg); }
/* Waiting to be cut: bare metal. What Black adds rises in once the plate has landed. */
.bpanel.ready .bside, .bpanel.ready li { opacity: 0; translate: 0 12px; }
.bpanel.landed .bside, .bpanel.landed li { opacity: 1; translate: 0 0; transition: opacity .5s ease-out calc(.1s + var(--n, 0) * 70ms), translate .8s var(--out) calc(.1s + var(--n, 0) * 70ms); }

/* FAQ */
#faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; }
#faq h2 { position: sticky; top: 90px; }
.faq { border-top: 1px solid var(--hairline); }
details { border-bottom: 1px solid var(--hairline); }
details::details-content { block-size: 0; overflow: clip; transition: block-size .32s var(--out), content-visibility .32s allow-discrete; }
details[open]::details-content { block-size: auto; }
details summary { cursor: pointer; font-size: 17px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 2px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; flex: none; width: 11px; height: 11px; background: linear-gradient(var(--muted), var(--muted)) 50% 50% / 100% 1.5px no-repeat, linear-gradient(var(--muted), var(--muted)) 50% 50% / 1.5px 100% no-repeat; transition: transform .32s var(--out); }
details[open] summary::after { transform: rotate(135deg); }
details p { color: var(--muted); margin: -4px 30px 22px 2px; font-size: 15.5px; }
details a { text-decoration: underline; text-underline-offset: 2px; }

/* The last screen. */
.finale { position: relative; isolation: isolate; min-height: 90svh; display: grid; place-items: center; text-align: center; padding: 120px 16px 72px; }
/* The page ends the way it starts: lit, this time from behind the words. */
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 34% at 50% 42%, color-mix(in srgb, var(--shine) calc(var(--glow-k) * 20%), transparent), transparent 72%),
    radial-gradient(22% 16% at 50% 40%, color-mix(in srgb, var(--shine) calc(var(--glow-k) * 14%), transparent), transparent 70%); }
.finale > div { width: min(1000px, 100%); }
.finale .tagline { font-family: var(--sans); font-size: clamp(50px, 8.4vw, 118px); letter-spacing: -.04em; line-height: 1; }
.finale .lede { margin: 20px auto 28px; }

/* Waitlist: email + button in one pill, download below it. */
.wl { display: flex; gap: 6px; max-width: 440px; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--well); border: 1px solid var(--hairline); transition: border-color var(--quick), opacity .24s ease-out, transform .24s ease-out; }
.wl:focus-within { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.wl input { flex: 1; min-width: 0; height: 36px; padding: 0 14px; border: 0; background: none; color: var(--text); font: 15px var(--sans); outline: none; }
.wl input::placeholder { color: var(--faint); }
.wl .btn { height: 36px; flex: none; }
.wl.done { display: none; }
.wl .hp, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wlmsg { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.wlmsg.ok { color: var(--text); font-size: 16px; font-weight: 500; }
.wlmsg.err { color: #e5534b; }
.dl { margin-top: 40px; display: grid; justify-items: center; }
.dl .fine { line-height: 1.6; }
@media (max-width: 520px) {
  .wl { flex-direction: column; border-radius: var(--r-card); padding: 6px; }
  .wl .btn { justify-content: center; }
}
.wl { background: var(--raised); box-shadow: 0 14px 30px -18px rgba(var(--ink),.4); }
.wl:focus-within { border-color: var(--bold); }
.wl .btn { height: 38px; }
.dl .fine, .fine { color: var(--muted); font-size: 13px; margin-top: 12px; }
footer { padding: 22px 0 34px; color: var(--muted); font-size: 13px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 2px; }
.foot nav a { padding: 4px 10px; border-radius: var(--r-control); transition: color .16s ease-out; }
.foot nav a:hover { color: var(--text); }

/* Legal pages */
.doc { max-width: 720px; padding: 112px 0 60px; } .doc h1 { font-size: 40px; font-weight: 600; letter-spacing: -1px; margin: 0 0 6px; } .doc h2 { font-family: var(--sans); font-size: 20px; letter-spacing: -.3px; margin: 36px 0 8px; line-height: 1.2; } .doc p, .doc li { color: var(--muted); } .doc .meta { color: var(--faint); }
.doc .note { border: 1px solid var(--hairline); background: var(--well); border-radius: var(--r-card); padding: 14px 18px; font-size: 14px; }
.doc .note p, .doc .note ul { margin: 4px 0; } .doc .note strong { color: var(--text); }
.doc h3 { font-size: 16px; margin: 22px 0 6px; } .doc h2, .doc h3 { scroll-margin-top: 80px; } .doc strong { color: var(--text); font-weight: 600; }
.doc a { text-decoration: underline; text-underline-offset: 2px; } .doc a:hover { color: var(--text); }
.doc .toc { margin: 28px 0 8px; padding: 14px 18px; border: 1px solid var(--hairline); border-radius: var(--r-card); font-size: 14px; } .doc .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; } .doc .toc li { break-inside: avoid; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }
.doc .headword { font-size: clamp(64px, 12vw, 140px); }

/* ——— Tour: the page plays itself ——— */
.tourbar { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 21; pointer-events: none; opacity: 0; transition: opacity .22s ease-out; }
.tourbar i { display: block; height: 100%; width: 0; background: var(--bold); }
.touring .tourbar { opacity: 1; }
.player { position: fixed; right: 20px; bottom: 20px; z-index: 22; display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 6px; border-radius: 999px;
  background: var(--raised); backdrop-filter: blur(30px) saturate(1.3); -webkit-backdrop-filter: blur(30px) saturate(1.3); border: 1px solid var(--hairline); box-shadow: var(--pop), inset 1px 1px 0 var(--rim);
  opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden; transition: opacity .22s ease-out, transform .22s ease-out, visibility 0s .22s; }   /* hidden = no blur to keep up with */
.touring .player { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.player button { all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background var(--quick); }
.player button:hover { background: var(--hover); }
.player button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.player svg { width: 13px; height: 13px; fill: currentColor; }
.player .pp { width: 34px; height: 34px; background: var(--accent); color: var(--on-accent); }
.player .pp:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.player .pp .i-play, .tour-paused .player .pp .i-pause { display: none; }
.tour-paused .player .pp .i-play { display: block; }
.segs { display: flex; gap: 3px; width: 220px; margin: 0 8px 0 10px; }
.segs button { all: unset; cursor: pointer; flex: var(--w) 1 0; height: 16px; display: flex; align-items: center; }
.segs button i { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--well-hi); overflow: hidden; transition: height var(--quick); }
.segs button:hover i { height: 6px; }
.segs button i b { display: block; height: 100%; width: var(--f, 0%); background: var(--accent); }
.player .chap { width: 92px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .speed { width: 40px; border-radius: 999px; font: 600 12px var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.player .speed:hover { color: var(--text); }
.player .pp { background: var(--bold); color: var(--on-bold); }
.player .pp:hover { background: color-mix(in srgb, var(--bold) 90%, black); }
.segs button i b { background: var(--bold); }

/* ——— The opening: six events drop in side by side and turn into the letters. All CSS, and the same end state as the page. ——— */
.opening .ltr { animation: letter 1.1s linear both; animation-delay: calc(.12s + var(--i) * 70ms); }
@keyframes letter { 0%, 46% { color: transparent; } 47%, 100% { color: var(--text); } }
.opening .ltr::before { animation: block 1.1s both; animation-delay: calc(.12s + var(--i) * 70ms);
  box-shadow: inset .035em 0 0 color-mix(in srgb, var(--bold) 74%, black), 0 0 .06em color-mix(in srgb, var(--glow) 70%, transparent), 0 0 .32em color-mix(in srgb, var(--glow) calc(var(--glow-k) * 55%), transparent); }
/* The blocks give off light as they fall, and each letter flashes with it as it forms, then settles to plain ink. */
.opening .ltr::after { animation: letterglow 1.7s ease-out both; animation-delay: calc(.12s + var(--i) * 70ms + .5s); will-change: opacity; }
@keyframes letterglow { 0% { opacity: 0; } 9% { opacity: .95; } 100% { opacity: 0; } }
@keyframes block {
  0% { transform: scaleY(0); transform-origin: 50% 0; animation-timing-function: cubic-bezier(.2, .9, .3, 1); }
  46% { transform: scaleY(1); transform-origin: 50% 0; animation-timing-function: steps(1); }
  47% { transform: scaleY(1); transform-origin: 50% 100%; animation-timing-function: cubic-bezier(.6, 0, .2, 1); }
  100% { transform: scaleY(0); transform-origin: 50% 100%; }
}
.opening .pron, .opening .tagline, .opening .def, .opening .cta { animation: settle .9s var(--out) both; }
.opening .pron { animation-delay: .85s; } .opening .tagline { animation-delay: .95s; } .opening .def { animation-delay: 1.03s; } .opening .cta { animation-delay: 1.11s; }
@keyframes settle { from { opacity: 0; translate: 0 16px; } }
.opening .top { animation: bardrop .9s var(--out) .95s both; }
@keyframes bardrop { from { opacity: 0; translate: 0 -16px; } }
.opening .frame { animation: windowup 1.3s var(--out) .95s both; }
@keyframes windowup { from { translate: 0 42vh; opacity: 0; } 30% { opacity: 1; } }
/* The window rises dark and lights up as it lands. */
.opening .halo { animation: ignite 1.4s ease-out 1.55s both; }
@keyframes ignite { from { opacity: 0; } }
.opening .grid7 .ev:not(.new) { animation: evdrop .5s var(--out) both; animation-delay: calc(1.25s + var(--i) * 26ms); }
@keyframes evdrop { from { opacity: 0; scale: .96; } }

.top, .links a, .btn { -webkit-tap-highlight-color: transparent; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ——— Full list previews: one dark card, a small working piece of the app, next to whatever you're on ——— */
.list li[data-peek] { cursor: default; outline: none; transition: color .14s ease-out; }
.list li[data-peek] b { transition: color .14s ease-out; }
.list li[data-peek]:hover b, .list li[data-peek]:focus-visible b, .list li.peeking b { color: var(--bold); }
.touch-only { display: none; }
@media (hover: none) { .hover-only { display: none; } .touch-only { display: inline; } }
.peek { --x: 0px; --y: 0px; position: fixed; left: 0; top: 0; z-index: 15; width: 300px; height: 186px; border-radius: 16px; overflow: hidden; color: #ecedef; font-size: 12px; pointer-events: none; opacity: 0; visibility: hidden;
  background: linear-gradient(160deg, #26272c, #141518); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 26px 50px -18px rgba(var(--ink),.62); transform: translate3d(var(--x), var(--y), 0); scale: .96; transition: opacity .14s ease-out, scale .28s var(--out), visibility 0s .14s; }
.peek.on { opacity: 1; visibility: visible; scale: 1; transition: opacity .14s ease-out, scale .28s var(--out); }
.peek.on.slide { transition: opacity .14s ease-out, scale .28s var(--out), transform .36s var(--out); }
.peek [data-p] { display: none; height: 100%; padding: 16px; }
.peek [data-p].show { display: grid; place-items: center; align-content: center; gap: 10px; }
.peek .bring::after { background: conic-gradient(#1d1e22 0 37%, transparent 37%); }
.peek .bring { width: 128px; height: 128px; }
/* The same previews on a phone's chapter cards. Each one starts when its card scrolls in, so its animation isn't over before anyone sees it. */
.peek.inline { position: relative; z-index: auto; width: 100%; max-width: 310px; opacity: 1; visibility: visible; transform: none; scale: 1; transition: none; }
.peek.inline [data-p].show { display: none; }
.in .peek.inline [data-p].show { display: grid; }
.pv-col { width: 100%; display: grid; gap: 6px; }
.pe { --n: 0; position: relative; display: block; padding: 5px 9px 6px 11px; border-radius: 7px; font-size: 12px; font-weight: 500; line-height: 1.25; color: color-mix(in srgb, var(--c) 62%, white); background: color-mix(in srgb, var(--c) 26%, #2a2b31); box-shadow: inset 3px 0 0 var(--c); }
.pe small { display: block; font: 10.5px var(--mono); opacity: .8; }
.pe.still { filter: saturate(.2); opacity: .7; }
.pe.quiet { animation: pequiet .7s ease-out .7s both; }
@keyframes pequiet { to { filter: saturate(.2); opacity: .7; } }
.pe.tint { animation: petint .5s ease-out both; animation-delay: calc(.5s + var(--n) * .28s); }
@keyframes petint { from { filter: saturate(0) brightness(.8); } }
.pv-rule { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 7px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.65); white-space: nowrap; }
.pv-rule b { color: #fff; font-weight: 500; } .pv-rule i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pv-views { width: 100%; display: grid; gap: 8px; }
.pv-tabs { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); padding: 2px; border-radius: 8px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); text-align: center; font-size: 11.5px; }
.pv-tabs span { position: relative; padding: 3px 0; z-index: 1; }
.pv-tabs::before { content: ""; position: absolute; left: 2px; top: 2px; bottom: 2px; width: calc((100% - 4px) / 5); border-radius: 6px; background: rgba(255,255,255,.16); animation: tabs 4s var(--out) infinite; }
@keyframes tabs { 0%, 18% { transform: translateX(0); } 22%, 38% { transform: translateX(100%); } 42%, 58% { transform: translateX(200%); } 62%, 78% { transform: translateX(300%); } 82%, 100% { transform: translateX(400%); } }
.pv-cal { position: relative; height: 104px; border-radius: 7px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px calc(100% / 7)), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 26px); }
.pv-cal i { position: absolute; left: calc(var(--x) * 100% / 7 + 2px); width: calc(100% / 7 - 4px); top: calc(var(--y) * 26px + 2px); height: calc(var(--l) * 26px - 4px); border-radius: 4px; background: color-mix(in srgb, var(--c) 34%, #2a2b31); box-shadow: inset 2px 0 0 var(--c); }
.pv-tz { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 12px; border-radius: 9px; background: rgba(255,255,255,.05); font-size: 13px; }
.pv-tz b { font-weight: 500; } .pv-tz span { font: 500 13px var(--mono); color: rgba(255,255,255,.7); }
.pv-tz.on { background: rgba(255,255,255,.14); } .pv-tz.on span { color: #fff; }
.pv-split { display: flex; align-items: center; gap: 20px; width: 100%; }
.pv-pie { width: 112px; height: 112px; flex: none; border-radius: 50%; background: conic-gradient(#8391ff 0 40%, #a06bdb 40% 69%, #4fa66a 69% 86%, #3fb8af 86% 100%); -webkit-mask: radial-gradient(closest-side, transparent 54%, #000 56%); mask: radial-gradient(closest-side, transparent 54%, #000 56%); animation: piein .7s var(--out) both; }
@keyframes piein { from { transform: rotate(-70deg) scale(.86); opacity: 0; } }
.pv-legend { flex: 1; display: grid; gap: 7px; font-size: 12.5px; }
.pv-legend div { display: flex; align-items: center; gap: 7px; } .pv-legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); } .pv-legend b { margin-left: auto; font: 500 12px var(--mono); color: rgba(255,255,255,.7); }
.pv-tt { position: relative; width: 100%; height: 148px; border-radius: 7px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 20%); }
.pv-tt i { position: absolute; left: calc(var(--x) * 20% + 2px); width: calc(20% - 4px); top: calc(var(--y) * 25% + 2px); height: calc(25% - 4px); border-radius: 5px; background: color-mix(in srgb, var(--c) 40%, #2a2b31); box-shadow: inset 2px 0 0 var(--c); animation: ttin .36s var(--out) both; animation-delay: calc(.12s + var(--n) * 90ms); }
@keyframes ttin { from { opacity: 0; transform: translateY(-6px) scale(.9); } }
.pv-pal { width: 100%; border-radius: 11px; background: rgba(255,255,255,.08); overflow: hidden; }
.pv-pal .q { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.pv-pal .q em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.14); }
.pv-pal .tp { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; font: 13px var(--mono); animation: typein 1.1s steps(14) .2s forwards; }
@keyframes typein { to { width: 14ch; } }
.pv-pal .r { display: flex; align-items: center; justify-content: space-between; margin: 6px; padding: 7px 8px; border-radius: 7px; background: rgba(255,255,255,.1); animation: rowin .3s ease-out 1.25s both; }
@keyframes rowin { from { opacity: 0; translate: 0 -4px; } }
.pv-pal .day { padding: 7px 12px 2px; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.55); }
.pv-pal .hit { position: relative; margin: 2px 8px 0 12px; padding: 2px 0 2px 9px; font-size: 12.5px; }
.pv-pal .hit::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--c); }
.pv-pal .hit:last-child { margin-bottom: 8px; }
.pv-drag { position: relative; width: 170px; height: 150px; background: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 37px); border-inline: 1px solid rgba(255,255,255,.08); }
.pv-drag .pe { position: absolute; left: 3px; right: 3px; height: 50px; }
.pv-drag .ghost { top: 8px; opacity: .3; }
.pv-drag .live { top: 8px; outline: 1.5px solid #4c8ddb; outline-offset: -1px; animation: dragdown 1.8s var(--out) .3s infinite alternate; }
@keyframes dragdown { to { transform: translateY(82px); } }
.pv-lock { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.pv-lock svg { width: 14px; height: 14px; fill: currentColor; color: var(--bold); }
.pv-site { display: flex; justify-content: space-between; height: 30px; align-items: center; padding: 0 10px; border-radius: 7px; background: rgba(255,255,255,.06); font-size: 12.5px; }
.pv-site span { font-size: 11px; color: #f08a73; }
.pv-tasks .t { position: relative; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 12.5px; }
.pv-tasks .t > i { width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.5); flex: none; }
.pv-tasks .t span { margin-left: auto; font-size: 11px; font-weight: 600; color: #f08a73; } .pv-tasks .t em { margin-left: auto; font-style: normal; font-size: 11px; color: rgba(255,255,255,.6); }
.pv-tasks .tick > i { animation: tickbox .2s ease-out .55s both; } @keyframes tickbox { to { background: #4fa66a; border-color: #4fa66a; } }
.pv-tasks u { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 56% / 0 1px no-repeat; animation: strike .4s ease-out .6s both; } @keyframes strike { to { background-size: 100% 1px; color: rgba(255,255,255,.5); } }
.pv-wait { display: flex; align-items: center; gap: 22px; }
.pv-wait > b { font: 700 62px/1 ui-rounded, "SF Pro Rounded", var(--sans); letter-spacing: -3px; }
.pv-wait div { display: grid; gap: 1px; font-size: 19px; font-weight: 700; }
.pv-wait span { font-size: 10px; letter-spacing: 2px; color: #3fb8af; } .pv-wait small { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.6); }
[data-p="notch"] { padding: 0 !important; align-content: start !important; }
.pv-notch { display: flex; align-items: center; gap: 14px; width: 270px; height: 130px; padding: 8px 16px; color: #fff; background: #000; border-radius: 0 0 22px 22px; animation: notchout .7s var(--out) .1s both; }
.pv-notch .bring { width: 88px; height: 88px; } .pv-notch .bring b { font-size: 18px; } .pv-notch .bring::after { background: conic-gradient(#000 0 37%, transparent 37%); }
.pv-notch > div:last-child b { display: block; font-size: 13.5px; font-weight: 600; } .pv-notch small { color: rgba(255,255,255,.6); font-size: 11px; }
@keyframes notchout { from { clip-path: inset(0 30% 74% 30% round 0 0 12px 12px); } to { clip-path: inset(0 0 0 0 round 0 0 22px 22px); } }
.pv-glance { position: relative; width: 100%; height: 152px; }
.pv-glance .strip { display: flex; align-items: center; justify-content: flex-end; gap: 6px; height: 24px; padding: 0 10px; border-radius: 7px; background: rgba(255,255,255,.1); font-size: 11.5px; font-weight: 500; }
.pv-glance .strip i { width: 6px; height: 6px; border-radius: 50%; background: #3fb8af; }
.pv-glance .drop { position: absolute; right: 0; top: 30px; width: 210px; padding: 6px; border-radius: 11px; background: rgba(255,255,255,.1); animation: rowin .3s ease-out .25s both; }
.pv-glance .drop div { position: relative; display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 8px 0 13px; font-size: 12.5px; }
.pv-glance .drop div::before { content: ""; position: absolute; left: 4px; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: var(--c); }
.pv-glance .drop b { font-weight: 500; } .pv-glance .drop span { font-size: 11px; color: rgba(255,255,255,.6); }
.pv-sync { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 13px; font-weight: 600; }
.pv-sync .wire { position: relative; flex: 1; height: 2px; border-radius: 1px; background: rgba(255,255,255,.14); }
.pv-sync .wire i { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #4fa66a; box-shadow: 0 0 8px #4fa66a; animation: wire 1.5s ease-in-out infinite; }
@keyframes wire { from { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.pv-synced { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12.5px; }
.pv-synced i { width: 7px; height: 7px; border-radius: 50%; background: #4fa66a; }
.pv-conn { width: 100%; display: grid; gap: 10px; }
.pv-conn .who { display: grid; grid-template-columns: 40px 1fr; column-gap: 11px; align-items: center; }
.pv-conn .who i { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; background: #8391ff; color: #101218; }
.pv-conn .who b { font-size: 14px; font-weight: 600; align-self: end; } .pv-conn .who span { font: 11.5px var(--mono); color: #a9c7e8; align-self: start; }
.pv-conn .stat { display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 0 12px; border-radius: 9px; background: rgba(255,255,255,.07); } .pv-conn .stat b { font: 600 13px var(--mono); }

@media (max-width: 1100px) {
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --gutter: 22px; }
  .stage { --framemax: 100vw; }
  .intro .in { grid-template-columns: 1fr; gap: 14px; }
  .headword { font-size: clamp(76px, min(19vw, 15vh), 150px); }
  .def { max-width: 560px; margin-top: 8px; }
  .cta { margin-top: 16px; }
  .rail { display: none; }
  .feat, .feat.w7 { grid-column: span 6; }
  .head { grid-template-columns: 1fr; }
  .bpanel { grid-template-columns: 1fr; gap: 28px; }
  #faq { grid-template-columns: 1fr; } #faq h2 { position: static; }
  .bpanel li { min-height: 40px; font-size: 15px; }
}
@media (max-width: 720px) {
  /* Phones: the capsule is the logo, the button and the sheet. */
  .top { --grow: 0px; }
  .barrow { grid-template-columns: 1fr auto; }
  .links { display: none; }
  .sheet { grid-template-columns: 1fr 1fr; padding: 6px 16px 18px 13px; }
  .today { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 10px; }
  .intro { padding: 76px 20px 0; }
  .features { margin-top: 36px; gap: 12px; }
  .feat, .feat.w7 { grid-column: 1 / -1; }
  .feat .vig { height: 232px; }
  .vig.pick { height: auto; flex-direction: column; gap: 18px; padding: 20px; } .mini { flex: none; width: 100%; max-width: 320px; height: 170px; }
  .looks { grid-template-columns: repeat(4, 66px); }
  .list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0 22px; border-left: 0; border-bottom: 1px solid var(--hairline); }
  .steps li::before { font-size: 52px; margin-bottom: 12px; }
  .notchv { padding: 12px 20px; gap: 18px; } .bring { width: 110px; height: 110px; } .bring b { font-size: 22px; }
  /* The tour's controls move to the top, under the bar and clear of the captions. */
  .player { left: 12px; right: 12px; top: 66px; bottom: auto; justify-content: space-between; transform: translateY(-8px); }
  .segs { flex: 1; width: auto; margin: 0 6px; }
  .player .chap { display: none; }
}
/* Phones, either way up: the window can't fit, so there isn't one. The hero is part of the page and the story's chapters are cards (.chapters).
   script.js checks the same query, so keep the two in step. The hero's scroll fade is written inline, which is why these win with !important. */
@media (max-width: 640px), (max-height: 480px) {
  #story { height: auto; }
  .stage { position: static; height: auto; overflow: visible; }
  .intro { position: static; }
  .intro .in { opacity: 1 !important; visibility: visible !important; transform: none !important; will-change: auto; }
  .frame, .caps, .rail { display: none; }
  .chapters { display: grid; margin-top: 34px; }
  .wl input { font-size: 16px; }   /* Under 16px, iPhones zoom the page in when the field is tapped. */
  .wl .btn { height: 44px; }
  /* Fingers need more room than a pointer. The button's hit area grows, not the button. */
  .more { position: relative; }
  .more::after { content: ""; position: absolute; inset: -6px; }
  .sheet div > a { padding-block: 11px; }
  .foot nav a { padding: 12px 10px; }
}
@media (min-width: 641px) and (max-height: 480px) { .chapters .feat { grid-column: span 6; } }

/* Reduce Motion: nothing slides or scales, and there is no opening. The story still follows the scroll. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { translate: none; }
  .js .rise > span { transform: none; }
  .cap { transform: none !important; }
  .notchv { clip-path: none; }
  .pv-pal .tp { width: 14ch; }
  .pe.quiet { filter: saturate(.2); opacity: .7; }
  .nshine { display: none; }
}
