/* Avistry site: Layered Cat system

   Idea: the logo is a face on two stacked layers. On the site, layers ("plates") mark the thing you act on or the
   thing we show you. Everything else is flat and quiet. The hero is the one bold moment: a full-width picture behind
   the text, with the compare seam, and cut-outs that step off the page over the plates.
   Meaning: violet = the original (what stays underneath), cyan = the new result and the action, coral = the small
   accent (first plate, the dot). Dark is the default theme; light is [data-theme="light"].

   TOKENS (:root, then the light override, then .surface-dark)
     colour   --bg --bg-2 --surface --surface-2 --stage --ink --ink-2 --line --line-strong
              --cyan --coral --violet --on-cyan --on-violet --link --hl --accent-text --mark --focus --ok --warn
     radius   --r-xs 8 | --r-sm 12 | --r-md 16 | --r-lg 20 | --r-xl 28 | --r-pill
     type     --font-display (Fredoka 600/500: headings, buttons, numbers) and --font-body (Figtree 400/600)
     space    --gutter 16/24/32/48, --section 64/96/clamp(96,7vw,160), --band (how far a pop-out may hang over an edge)

   PLATES (box-shadows, no blur, always down-right: coral first, violet second at double the offset)
     .plate                 base; combine with a size:
     .plate--xs | --sm | --md | --lg     offset per layer 2 | 3-4 | 5-8 | 6-14 px (smaller on phones)
     .plate--live           for things you click: hover lifts the face, press drops it onto the coral layer, keyboard
                            focus folds the layers away and shows a ring instead
     .plate--solo           violet layer only
     .btn-plate / .btn-primary  cyan action button with live plates (use .btn-lg or .btn-sm for size)
     .btn-outline  .btn-quiet   secondary actions (outline shows plates on hover only; quiet never does)
     .frame                 media frame: stage-dark face, bezel, rounded; add .plate .plate--md|sm|lg (three plates)
     .card                  flat surface card, no plates
     Plates reserve their own overhang with a margin, so they never cause horizontal scroll.
     Never put plates on plain text blocks, tables, inputs, FAQ rows or the footer.

   HERO AND POP-OUTS
     .hero                  full-bleed dark island. .hero-bg holds the original and saved pictures (.art boxes),
                            .hero-pop holds the keyed cut-outs of the same camera and canvas, so the pixels line up.
                            The hero's own box-shadow is its two plates. --band is how far the cut-outs reach below it.
     .art                   a picture box sized from --hero-h, --band and --R (the art ratio); never object-fit.
     .cutout                an UI crop (alpha) that overlaps the corner of a frame; add .plate .plate--sm
     .frame--open           the dashed "your look here" frame (no plates: nothing is there yet)

   TEXT COLOUR (like the A in the logo)
     ink on cyan, white on violet. The only coral text is the full stop of a display heading: .h-display and
     .accent-dot (app.js wraps the last "." or "。"). Links use --link and stay underlined. Cyan and coral are never
     text on the light theme (use --link / --accent-text).

   LAYOUT: .wrap (max 1120 + gutters), .wrap--wide (max clamp(1120, 86vw, 1680) + gutters), .sec (section rhythm),
   .split (heading left, content right), .surface-dark (a dark island that keeps dark tokens in both themes).
   Contrast pairs were checked against WCAG AA. Only transform and opacity animate. */

/* Metric-matched fallbacks so the swap to Fredoka and Figtree does not move the page */
@font-face { font-family: "Fredoka Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); font-weight: 400 500;
  size-adjust: 102%; ascent-override: 95%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "Fredoka Fallback"; src: local("Arial Bold"), local("Helvetica Bold"), local("Roboto"); font-weight: 600 800;
  size-adjust: 102%; ascent-override: 95%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); font-weight: 400 500;
  size-adjust: 101%; ascent-override: 94%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; src: local("Arial Bold"), local("Helvetica Bold"), local("Roboto"); font-weight: 600 800;
  size-adjust: 101%; ascent-override: 94%; descent-override: 25%; line-gap-override: 0%; }

/* registered so the hero plates can slide out (everything else falls back to no animation) */
@property --pl { syntax: "<length>"; inherits: true; initial-value: 6px; }

:root {
  --bg: #141218;
  --bg-2: #1A1724;
  --surface: #1D1830;
  --surface-2: #272043;
  --stage: #0E0C12;
  --ink: #F3F1F6;
  --ink-2: #BAB3CC;
  --line: #342E4D;
  --line-strong: #8077A0;
  --cyan: #43DCFF;
  --coral: #FF6F91;
  --violet: #6B4EFF;
  --on-cyan: #1A1033;
  --on-violet: #FFFFFF;
  --link: #43DCFF;
  --hl: #43DCFF;
  --accent-text: #FF6F91;
  --violet-text: #A99BFF;
  --mark: #FF6F91;
  --focus: #43DCFF;
  --cyan-edge: #43DCFF;
  --bezel: #1D1830;
  --ok: #5EE0A0;
  --warn: #FFC857;
  --plate-1: var(--coral);
  --plate-2: var(--violet);
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --gutter: 16px;
  --section: 64px;
  --band: clamp(32px, 6vw, 120px);
  --plf: 6px;
  --wmax: clamp(1120px, 86vw, 1680px);
  --font-display: "Fredoka", "Fredoka Fallback", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3F1F6;
  --bg-2: #E9E5F0;
  --surface: #FFFFFF;
  --surface-2: #EDE9F5;
  --ink: #1A1033;
  --ink-2: #4B4363;
  --line: #D6D0E3;
  --line-strong: #7A7192;
  --link: #5A3BE6;
  --hl: #5A3BE6;
  --accent-text: #B91F49;
  --violet-text: #5A3BE6;
  --mark: #6B4EFF;
  --focus: #5A3BE6;
  --cyan-edge: #1A1033;
  --bezel: #141218;
  --ok: #1B7A45;
  --warn: #8F5B00;
  color-scheme: light;
}
/* a dark island: keeps the dark values in both themes (hero, final call to action) */
.surface-dark {
  --bg: #141218; --surface: #1D1830; --surface-2: #272043; --ink: #F3F1F6; --ink-2: #BAB3CC; --line: #342E4D;
  --line-strong: #8077A0; --link: #43DCFF; --hl: #43DCFF; --accent-text: #FF6F91; --mark: #FF6F91;
  --focus: #43DCFF; --cyan-edge: #43DCFF; --bezel: #1D1830;
  color: var(--ink);
}

/* the picked look tints the site: its colours take over the accents (plates, dots, brush marks, gradients, links,
   heading full stops). Original keeps ours. Every pair keeps the contrast of the colour it replaces. */
:root[data-tint="crimson"], :root[data-tint="crimson"] .surface-dark {
  --cyan: #FF5A5F; --coral: #F2A541; --violet: #8A5414; --link: #FF7A7F; --hl: #FF7A7F; --accent-text: #F2A541;
  --violet-text: #E0A45A; --mark: #F2A541; --focus: #FF7A7F; --cyan-edge: #FF5A5F;
}
:root[data-tint="frost"], :root[data-tint="frost"] .surface-dark {
  --cyan: #8FD3FF; --coral: #DCE8F7; --violet: #3F6FA8; --link: #8FD3FF; --hl: #8FD3FF; --accent-text: #BFE3FF;
  --violet-text: #A9C8EE; --mark: #8FD3FF; --focus: #8FD3FF; --cyan-edge: #8FD3FF;
}
:root[data-tint="venom"], :root[data-tint="venom"] .surface-dark {
  --cyan: #3CDC78; --coral: #B8F25C; --violet: #6A35B8; --link: #3CDC78; --hl: #3CDC78; --accent-text: #B8F25C;
  --violet-text: #B48CF0; --mark: #B8F25C; --focus: #3CDC78; --cyan-edge: #3CDC78;
}
:root[data-theme="light"][data-tint="crimson"] { --link: #B3121B; --hl: #B3121B; --accent-text: #8A5414; --violet-text: #8A5414; --mark: #B3121B; --focus: #B3121B; --cyan-edge: #1A1033; }
:root[data-theme="light"][data-tint="frost"] { --coral: #8FD3FF; --link: #1F5F99; --hl: #1F5F99; --accent-text: #2E5A8C; --violet-text: #2E5A8C; --mark: #3F6FA8; --focus: #1F5F99; --cyan-edge: #1A1033; }
:root[data-theme="light"][data-tint="venom"] { --coral: #7CC63A; --link: #12703A; --hl: #12703A; --accent-text: #5B2A9E; --violet-text: #5B2A9E; --mark: #6A35B8; --focus: #12703A; --cyan-edge: #1A1033; }

@media (min-width: 640px) { :root { --plf: 10px; } }
@media (min-width: 768px) { :root { --gutter: 24px; --section: 96px; } }
@media (min-width: 1024px) { :root { --plf: 14px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }
@media (min-width: 1440px) { :root { --section: clamp(96px, 7vw, 160px); } }
@media (min-width: 1920px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; overflow-x: clip; touch-action: manipulation; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: break-word;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
/* the CJK font is appended after the Latin family, so Latin letters stay Fredoka and Figtree */
:root:lang(ja) {
  --font-display: "Fredoka", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-body: "Figtree", "M PLUS Rounded 1c", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}
:root:lang(ko) {
  --font-display: "Fredoka", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
:root:lang(zh-CN) {
  --font-display: "Fredoka", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
body:lang(ja), body:lang(ko), body:lang(zh-CN) { line-height: 1.8; }
body:lang(ja), body:lang(zh-CN) { word-break: auto-phrase; }
body:lang(ko) { word-break: keep-all; }

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
small, .small { font-size: 0.875rem; }
code, .mono { font-family: var(--mono); font-size: 0.875em; }
.tnum { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent-text); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 8px; top: -64px; z-index: 100; padding: 10px 18px; border-radius: var(--r-md);
  background: var(--cyan); color: var(--on-cyan); font-family: var(--font-display); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--wmax) + 2 * var(--gutter)); }

/* ---------- type ---------- */
.h-display, h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(2.75rem, 1.2rem + 4vw, 6rem); line-height: 1; letter-spacing: -0.01em; max-width: 12ch; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.5rem); line-height: 1.08; max-width: 22ch; text-wrap: balance; }
h3, .h3 { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem); font-weight: 500; line-height: 1.2; text-wrap: balance; }
h4 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; line-height: 1.3; }
.accent-dot { color: var(--accent-text); }
.lead { font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); max-width: 56ch; margin-top: 16px; }
@media (min-width: 768px) { .lead { font-size: 1.25rem; } }
@media (min-width: 1920px) { .lead { font-size: 1.375rem; } }
p { max-width: 64ch; }
:lang(ja) h1, :lang(ko) h1, :lang(zh-CN) h1 { font-size: clamp(2.25rem, 1rem + 3.2vw, 4.5rem); line-height: 1.2; letter-spacing: 0; max-width: 14em; }
:lang(ja) h2, :lang(ko) h2, :lang(zh-CN) h2 { line-height: 1.3; }
:lang(ja) h3, :lang(ko) h3, :lang(zh-CN) h3, :lang(ja) .h3, :lang(ko) .h3, :lang(zh-CN) .h3 { line-height: 1.4; }

.sec { margin-top: var(--section); }
.sec--hero-next { margin-top: max(64px, calc(var(--band) + 24px)); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 2px solid transparent; border-radius: var(--r-md);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; background: none; color: var(--ink); word-spacing: 0.06em;
}
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }
@media (min-width: 1100px) { .btn-lg { min-height: 56px; font-size: 1.125rem; } }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.9375rem; border-radius: var(--r-sm); }
.btn-sm::after { content: ""; position: absolute; inset: -4px 0; }
.btn-primary, .btn-plate { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan-edge); }
.btn-primary.btn-sm, .btn-plate.btn-sm { --s: 2px; }
/* ---------- pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pills li {
  display: inline-flex; align-items: center; min-height: 32px; padding: 2px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--ink);
}

/* ---------- frames, cut-outs, shots ---------- */
.shot, .frame { padding: 8px; background: var(--bezel); border-radius: var(--r-md); }
.frame { border-radius: var(--r-lg); }
@media (min-width: 640px) { .frame { padding: 10px; } }
@media (min-width: 1440px) { .frame { border-radius: 24px; } }
.shot img { width: 100%; height: auto; border-radius: var(--r-xs); }
.shot-link { display: block; cursor: zoom-in; border-radius: var(--r-xs); }
.card { padding: 24px; background: var(--surface); border-radius: var(--r-lg); }
/* one pop-out per frame, always the top-right corner, same offset and the same scale */
.cutout { position: absolute; z-index: 4; right: -8px; top: -24px; width: clamp(170px, 30%, 280px); height: auto; margin: 0; background: var(--surface); border-radius: var(--r-sm); pointer-events: none; }
.cutout-inline { height: auto; background: var(--surface); border-radius: var(--r-sm); max-width: min(100%, 420px); }
.vwrap { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--stage); }
.vwrap video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vwrap--wide { padding: 8px; background: var(--bezel); border-radius: var(--r-lg); overflow: visible; }
.vwrap--wide video { aspect-ratio: var(--ar, 16 / 9); border-radius: var(--r-sm); }
.pp {
  position: absolute; left: 14px; bottom: 14px; margin: 0; width: 44px; height: 44px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--cyan); border: 2px solid var(--cyan);
}
.vwrap--wide .pp { left: 20px; bottom: 20px; }
.pp::before { content: ""; width: 10px; height: 14px; border-left: 3px solid var(--on-cyan); border-right: 3px solid var(--on-cyan); }
.pp.is-paused::before { width: 0; height: 0; border: 0; border-left: 12px solid var(--on-cyan); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.marked { margin-top: 12px; display: grid; gap: 10px; }
.marked li { display: flex; align-items: baseline; gap: 12px; font-size: 0.9375rem; line-height: 1.5; }
.marked li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); transform: translateY(1px); }

/* ---------- how it works ---------- */
.how-grid { margin-top: 28px; display: grid; gap: 20px; }
.how-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; order: 2; }
.how-step button {
  display: grid; justify-items: center; gap: 2px; width: 100%; min-height: 64px; padding: 8px 4px; border: 2px solid var(--line-strong); border-radius: var(--r-md);
  background: none; color: var(--ink-2); font: inherit; cursor: pointer; text-align: center;
}
.how-step .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.how-step .st { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.how-step .sb { display: none; }
.how-step.is-on button { background: var(--surface-2); border-color: var(--cyan); color: var(--ink); }
.how-step.is-on .num { color: var(--hl); }
.how-step.is-done .num { color: var(--ok); }
.how-media { position: relative; order: 1; }
.how-cap { margin-top: 12px; color: var(--ink-2); font-size: 0.9375rem; min-height: 3em; order: 3; }
html:not(.js) .how-cap { display: none; }
html:not(.js) .how-step .sb { display: block; }
html:not(.js) .how-steps { grid-template-columns: 1fr; }
html:not(.js) .how-step button { cursor: default; justify-items: start; text-align: left; }
.how-frame .vwrap video { aspect-ratio: 4 / 5; }
@media (min-width: 640px) { .how-frame .vwrap video { aspect-ratio: 16 / 9; } }
@media (max-width: 1023px) { .cutout--tabs { display: none; } }

@media (min-width: 1024px) {
  .how-grid { margin-top: 48px; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: 56px; align-items: center; }
  .how-steps { order: 1; grid-template-columns: 1fr; gap: 0; position: relative; padding-left: 0; }
  .how-steps::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 3px; border-radius: 2px; background: var(--line); }
  .how-steps::after { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 3px; border-radius: 2px; background: var(--cyan); transform: scaleY(var(--p, 0)); transform-origin: top; }
  .how-media, .how-plate { order: 2; }
  .how-cap { display: none; }
  .how-step button {
    grid-template-columns: 44px 1fr; justify-items: start; text-align: left; gap: 0 16px; padding: 14px 8px 14px 0; border: 0; border-radius: 0; background: none; min-height: 0; color: var(--ink-2);
  }
  .how-step .num { grid-row: 1 / span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line); font-size: 1.25rem; color: var(--ink-2); }
  .how-step .st { font-size: 1.25rem; align-self: center; }
  .how-step .sb { grid-column: 2; display: none; font-size: 1rem; line-height: 1.5; max-width: 34ch; color: var(--ink-2); margin-top: 4px; }
  .how-step.is-on .sb { display: block; }
  .how-step.is-on button { background: none; color: var(--ink); }
  .how-step.is-on .num { border-color: var(--cyan); color: var(--hl); }
  .how-step.is-done .num { border-color: var(--ok); }
  .how-step button:hover .st { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
  html:not(.js) .how-steps { grid-template-columns: 1fr; }
  html:not(.js) .how-step .sb { display: block; }
}

.count { margin-top: clamp(56px, 6vw, 96px); }
.count-task { margin-top: 8px; color: var(--ink-2); }
.count-cols { margin-top: 24px; display: grid; gap: 28px; }
.count-col { padding-top: 14px; border-top: 3px solid var(--line-strong); }
.count-col--av { border-top-color: var(--cyan); }
.count-col h4 { font-size: 1.25rem; }
.count-col ol { margin-top: 12px; counter-reset: c; display: grid; gap: 8px; }
.count-col li { counter-increment: c; position: relative; padding-left: 34px; font-size: 0.9375rem; line-height: 1.5; max-width: 62ch; }
.count-col li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 24px; text-align: right; font-family: var(--font-display); font-weight: 600; color: var(--hl); font-variant-numeric: tabular-nums; }
.count-col li[hidden] { display: none; }
.count-more { margin-top: 12px; }
.count-note { margin-top: 24px; color: var(--ink-2); font-size: 0.9375rem; max-width: 62ch; }
@media (min-width: 1024px) { .count-cols { grid-template-columns: 5fr 7fr; gap: 56px; } }
.how-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.how-cta p { color: var(--ink-2); font-size: 1rem; }

/* ---------- tools ---------- */
.tool { margin-top: var(--section); }
.tool > h3 { max-width: 28ch; }
.tool-list { margin-top: 36px; display: grid; gap: 0 48px; border-top: 1px solid var(--line); }
.tool-list > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tool-list dt { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; }
.tool-list dd { color: var(--ink-2); font-size: 0.9375rem; max-width: 56ch; }
.tool-aside { margin-top: 20px; color: var(--ink-2); max-width: 62ch; font-size: 0.9375rem; }
@media (min-width: 768px) { .tool-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1440px) { .tool-list { grid-template-columns: 1fr 1fr 1fr; } }

.link-demo { margin-top: 32px; }
.link-wrap { position: relative; max-width: min(100%, 1040px); margin-inline: auto; }
.link-frame { position: relative; }
.link-pair { display: none; gap: 10px; }
.link-demo[data-ready] .link-pair { display: grid; }
.link-demo[data-ready] .link-still { display: none; }
.link-still { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--r-lg) - 10px); }
.link-panel { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--r-lg) - 10px); background: var(--stage); }
.link-panel > img, .lp-hl img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.lp-hl img { opacity: 0; transition: opacity 120ms ease-out; pointer-events: none; }
.lp-hl img.is-lit { opacity: 1; }
.lp-hit { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-hit polygon { fill: transparent; cursor: pointer; pointer-events: visiblePainted; }
.piece-chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-label { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); margin-right: 6px; }
.piece-chips button {
  min-height: 44px; padding: 0 16px; border: 2px solid var(--line-strong); border-radius: var(--r-pill); background: none; color: var(--ink);
  font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.piece-chips button.is-lit, .piece-chips button[aria-pressed="true"] { background: #FF8A3D; color: var(--on-cyan); border-color: #FF8A3D; }
.link-hint { margin-top: 10px; color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 640px) { .link-pair { grid-template-columns: 1fr 1fr; gap: 14px; } }

/* paint controls showcase */
.ctl { margin-top: 32px; display: grid; gap: 24px; }
.ctl-side { min-width: 0; }
.ctl-side .ctl-tabs { margin-top: 0; flex-wrap: wrap; overflow: visible; gap: 4px; }
.ctl-side .ctl-tabs button { padding-inline: 12px; }
.ps-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chips .chip-t {
  min-height: 44px; padding: 0 16px; border: 2px solid var(--line-strong); border-radius: var(--r-pill); background: none; color: var(--ink);
  font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.ps-chips .chip-t[aria-pressed="true"] { background: var(--surface-2); border-color: var(--cyan); }
.ps-chips .chip-t.is-more { border-style: dashed; color: var(--ink-2); }
@media (hover: hover) { .ps-chips .chip-t:not([aria-pressed="true"]):hover { background: var(--surface); } }
.ps-card { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.ps-card.is-wait { opacity: .6; }
.pc-title { font-size: 1.375rem; }
.pc-desc { color: var(--ink-2); font-size: 0.9375rem; max-width: 48ch; }
.pc-shot img { width: 100%; height: auto; border-radius: var(--r-sm); background: var(--stage); }
.pc-ctl { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.ps-btn {
  min-height: 44px; padding: 0 16px; border: 2px solid var(--line-strong); border-radius: var(--r-sm); background: none; color: var(--ink);
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 500; cursor: pointer; line-height: 1.2;
}
.ps-btn[aria-pressed="true"] { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
@media (hover: hover) { .ps-btn:not([aria-pressed="true"]):hover { background: var(--surface-2); } }
.pc-field { display: grid; gap: 4px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.pc-sel { min-height: 44px; padding: 0 10px; background: var(--surface); color: var(--ink); border: 2px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: 0.9375rem; }
.pc-line { color: var(--ink-2); font-size: 0.9375rem; }
.pc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.9375rem; margin-top: 4px; }
.pc-facts dt { color: var(--ink-2); }
.sw-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 0 1.5px var(--line-strong); }
.pc-more summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; }
.pc-more summary::-webkit-details-marker { display: none; }
.pc-more summary::before { content: "+"; display: inline-flex; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); align-items: center; justify-content: center; line-height: 1; padding-bottom: 2px; }
.pc-more[open] summary::before { content: "\2212"; }
.pc-more img { margin-top: 8px; width: 100%; max-width: 280px; height: auto; border-radius: var(--r-xs); }
.ctl-static { color: var(--ink-2); font-size: 0.9375rem; }
.js .ctl-static { display: none; }
.js .ctl-static.is-on { display: block; }
.ctl-board { position: relative; order: -1; }
.paint-stage { background: #15111F; }
.ps-view {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: calc(var(--r-lg) - 10px);
  background: radial-gradient(ellipse 60% 55% at 50% 40%, #2B2350 0%, #181326 62%, #110D1B 100%);
}
.ps-canvas, .ps-static { position: absolute; top: 0; left: -10.4%; width: 118.5%; height: 100%; max-width: none; object-fit: fill; }
.ps-canvas { cursor: pointer; touch-action: pan-y; }
.ps-loading { position: absolute; z-index: 3; left: 12px; bottom: 12px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--cyan); color: var(--on-cyan); font-weight: 600; font-size: 0.875rem; }
.ps-note { margin-top: 12px; color: var(--ink-2); font-size: 0.875rem; max-width: 60ch; }
@media (min-width: 1024px) {
  .ctl { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 56px; align-items: center; }
  .ctl-board { position: sticky; top: 80px; order: 0; }
}
@media (min-width: 2000px) { .ctl { grid-template-columns: 480px minmax(0, 1060px); } }



/* material and light */
.mat-grid { margin-top: 32px; display: grid; gap: 28px; }
.mat-media { position: relative; }
.light-frame { position: relative; }
.light-view { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: calc(var(--r-lg) - 10px); background: var(--stage); }
@media (min-width: 640px) { .light-view { aspect-ratio: 16 / 9; } }
.light-shot { position: absolute; inset: 0; opacity: 0; transition: opacity 200ms ease-out; }
.light-shot.is-on { opacity: 1; }
.light-shot img { width: 100%; height: 100%; object-fit: cover; }
.light-radios { position: absolute; z-index: 2; left: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.light-radios button {
  min-height: 44px; padding: 0 16px; border: 2px solid var(--line-strong); border-radius: var(--r-pill); background: rgb(10 8 15 / .78); color: #F3F1F6;
  font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.light-radios button[aria-checked="true"] { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
.mat-cap { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; }
.mat-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mat-list li { display: grid; gap: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); }
.mat-list strong { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; color: var(--ink); }
.mat-copy { margin-top: 18px; max-width: 46ch; }
.mat-only { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 640px) { .mat-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1024px) {
  .mat-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: center; }
  .mat-list { grid-template-columns: 1fr; }
}

.all-features { margin-top: var(--section); border-top: 1px solid var(--line); }
.all-features > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 64px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.all-features > summary::-webkit-details-marker { display: none; }
.all-features > summary::after { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); line-height: 1; padding-bottom: 2px; }
.all-features[open] > summary::after { content: "\2212"; background: var(--cyan); border-color: var(--cyan-edge); color: var(--on-cyan); }
.box-groups { display: grid; gap: 32px; padding: 8px 0 8px; }
.box-groups h4 { padding-bottom: 8px; border-bottom: 3px solid var(--line-strong); display: inline-block; }
@media (min-width: 768px) { .box-groups { grid-template-columns: 1fr 1fr; gap: 40px 48px; } }
@media (min-width: 1440px) { .box-groups { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- one makeover ---------- */
.mk-grid { margin-top: 32px; display: grid; gap: 24px; align-items: start; }
.mk-media { min-width: 0; }
.mk-speed { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }
.mk-chapters { display: grid; gap: 0; counter-reset: ch; border-top: 1px solid var(--line); }
.mk-chapters li button {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 8px 12px 8px 16px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--ink-2); font: inherit; font-size: 1rem; text-align: left; cursor: pointer;
}
.mk-chapters li button::before { content: counter(ch); counter-increment: ch; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 1.5ch; color: var(--ink-2); }
.mk-chapters li button::after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: transparent; }
.mk-chapters li[aria-current="step"] button { color: var(--ink); background: var(--surface); }
.mk-chapters li[aria-current="step"] button::after { background: var(--mark); }
.mk-chapters li[aria-current="step"] button::before { color: var(--hl); }
@media (min-width: 1024px) { .mk-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; } }

/* ---------- safe ---------- */
.undo { margin-top: 40px; display: grid; gap: 28px; align-items: start; }
.undo-frame { position: relative; }
.undo-view { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: calc(var(--r-lg) - 10px); background: var(--stage); }
@media (min-width: 640px) { .undo-view { aspect-ratio: 16 / 9; } }
.undo-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 120ms ease-out; }
.undo-view img.is-on { opacity: 1; }
.undo-bar { margin-top: 12px; display: grid; gap: 6px; }
.undo-bar input[type="range"], .pc-range input { width: 100%; height: 44px; accent-color: var(--cyan); background: none; cursor: pointer; }
.undo-bar output { font-size: 0.9375rem; font-weight: 600; }
.undo-side h3 { margin-bottom: 8px; }
.undo-side > p { color: var(--ink-2); max-width: 46ch; }
.hist-list { margin-top: 16px; max-height: 288px; overflow-y: auto; border-top: 1px solid var(--line); }
.hist-list li button {
  position: relative; display: flex; width: 100%; min-height: 48px; align-items: center; gap: 12px; padding: 6px 12px 6px 16px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--ink-2); font: inherit; font-size: 0.9375rem; text-align: left; cursor: pointer;
}
.hist-list li button .hn { font-variant-numeric: tabular-nums; min-width: 2ch; opacity: .7; }
.hist-list li.is-cur button { background: var(--surface-2); color: var(--ink); }
.hist-list li.is-cur button::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--mark); }
.hist-still { margin-top: 16px; display: grid; gap: 10px; justify-items: start; }
.undo[data-ready] .hist-still { display: none; }
.undo[data-ready] .undo-frame .undo-view { display: block; }
.undo:not([data-ready]) .undo-frame { display: none; }
.undo:not([data-ready]) { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .undo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }
.undo:not([data-ready]) .undo-side > p { display: none; }
@media (min-width: 900px) {
  .undo:not([data-ready]) .undo-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 0 48px; align-items: center; }
  .undo:not([data-ready]) .undo-side h3 { grid-column: 1; grid-row: 1; margin: 0; }
  .undo:not([data-ready]) .hist-still { grid-column: 2; grid-row: 1; margin-top: 0; }
}

.safe-two { margin-top: clamp(56px, 6vw, 96px); display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .safe-two { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.files > p, .report > p { margin-top: 8px; color: var(--ink-2); max-width: 46ch; }
.fwin { margin-top: 20px; padding: 14px 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.fwin-title { font-size: 0.8125rem; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.frow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; }
.frow code { background: var(--surface-2); padding: 6px 12px; border-radius: var(--r-xs); overflow-wrap: anywhere; }
.fmark { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; }
.fmark i { width: 12px; height: 12px; border-radius: 50%; background: var(--violet); }
.fwin-new { margin-top: 18px; display: grid; gap: 12px; padding: 14px 16px; background: var(--surface-2); border-radius: var(--r-sm); }
.fwin-new li { display: grid; gap: 4px; font-size: 0.875rem; color: var(--ink-2); }
.fwin-new code { justify-self: start; padding: 4px 10px; border-radius: var(--r-xs); background: var(--cyan); color: var(--on-cyan); font-weight: 600; overflow-wrap: anywhere; }
.js #files.is-armed .fwin-new li { opacity: 0; transform: translateY(-12px); }
.js #files.is-armed.is-in .fwin-new li { opacity: 1; transform: none; transition: opacity 250ms cubic-bezier(.2, .8, .2, 1), transform 250ms cubic-bezier(.2, .8, .2, 1); }
.js #files.is-armed.is-in .fwin-new li:nth-child(2) { transition-delay: 120ms; }
.js #files.is-armed.is-in .fwin-new li:nth-child(3) { transition-delay: 240ms; }
.files-foot { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ff-note { font-size: 0.875rem; color: var(--ink-2); }

.rcard { margin-top: 20px; padding: 18px 18px 14px; background: var(--surface); border-radius: var(--r-lg); }
.rcard-head { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; }
.rcard-counts { margin-top: 2px; color: var(--ink-2); font-size: 0.9375rem; }
.rcard-rows { margin-top: 12px; border-top: 1px solid var(--line); }
.rcard-rows li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 0 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rcard-rows .icon { margin: 0; grid-column: 1; }
.rcard-rows strong { font-size: 0.9375rem; }
.rstat { font-size: 0.875rem; color: var(--ink-2); text-align: right; }
.rcard-rows details { grid-column: 2 / -1; }
.rcard-rows summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; font-size: 0.875rem; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.rcard-rows summary::-webkit-details-marker { display: none; }
.rcard-also-h { margin-top: 18px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.rcard-also { margin-top: 6px; }
.rcard-also li { grid-template-columns: 1fr; }
.rcard-also details { grid-column: 1; }
.rcard-rows details p { padding: 4px 0 8px; font-size: 0.875rem; color: var(--ink-2); max-width: 54ch; }
.rcard-still { display: none; margin-top: 14px; }
.report:not([data-ready]) .rstat { display: none; }
.report:not([data-ready]) .rcard-still { display: block; }
.js .report:not([data-ready]) .rcard-rows details { display: none; }
@media (min-width: 640px) { .rcard { padding: 22px 24px 16px; } }
.rcard-rows .icon.is-ok, .rcard-rows .icon.is-warn { stroke-width: 2.2; }

/* ---------- learn ---------- */
.learn-banner { display: grid; gap: 24px; padding: 24px; background: var(--surface); border-radius: var(--r-lg); align-items: center; }
.lb-text p { margin-top: 12px; max-width: 52ch; color: var(--ink-2); }
.lb-title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.lb-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 16px; }
.lb-shot img { width: 100%; height: auto; border-radius: var(--r-xs); }
.lb-shot { padding: 6px; background: var(--bezel); border-radius: var(--r-md); }
.learn-b { margin-top: 56px; display: grid; gap: 24px; align-items: center; }
.learn-text p { margin-top: 8px; max-width: 60ch; color: var(--ink-2); }
@media (min-width: 1024px) {
  .learn-banner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 40px; }
  .learn-b { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 48px; margin-top: 72px; }
}

/* ---------- split sections: heading left, content right ---------- */
.split { display: grid; gap: 24px; }
.band { background: var(--bg-2); padding-block: var(--section); }
.band + .sec { margin-top: var(--section); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
  .split > h2 { position: sticky; top: 88px; font-size: clamp(2rem, 1.3rem + 1.6vw, 2.75rem); }
}
@media (min-width: 960px) { #install .split-body, #trust .split-body, #faq .split-body { max-width: 780px; } }

/* ---------- install ---------- */
.prog { display: flex; gap: 0; align-items: center; margin-bottom: 20px; }
.prog li { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.prog li + li::before { content: ""; width: 28px; height: 2px; background: var(--line-strong); margin-right: 8px; }
.prog i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); transition: transform 240ms ease-out, background-color 240ms; }
.prog li.is-on { color: var(--ink); }
.prog li.is-on i { background: var(--cyan); border-color: var(--cyan); transform: scale(1.15); }
.prog li.is-done i { background: var(--ok); border-color: var(--ok); }
.tabs { margin-top: 8px; display: flex; gap: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  position: relative; flex: none; min-height: 48px; padding: 0 0 4px; border: 0; margin-bottom: -1px;
  background: none; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 2px; background: transparent; }
.tab:hover { color: var(--ink); }
.tab:focus-visible { outline-offset: -3px; border-radius: var(--r-xs); }
@media (max-width: 479px) { .tab { font-size: 0.9375rem; } .tabs { gap: 16px; } }
@media (min-width: 768px) { .tabs { gap: 28px; } }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { background: var(--mark); }
.panel { padding-top: 24px; }
.steps-list { counter-reset: s; display: grid; gap: 14px; margin-bottom: 24px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 36px; max-width: 62ch; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.125em; color: var(--hl); font-variant-numeric: tabular-nums; }
.path { font-weight: 600; padding: 1px 8px; border-radius: var(--r-xs); background: var(--surface-2); }
code { background: var(--surface-2); padding: 1px 8px; border-radius: var(--r-xs); }
.field-label { display: block; font-size: 0.875rem; font-weight: 600; margin: 20px 0 6px; color: var(--ink-2); }
.urlrow { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; max-width: 640px; }
.field {
  flex: 1; min-width: 0; min-height: 44px; padding: 8px 14px; background: var(--surface); border: 2px solid var(--line-strong);
  border-radius: var(--r-sm); color: var(--ink); font-size: 0.875rem;
}
@media (max-width: 480px) { .field { font-size: 0.75rem; padding-inline: 10px; } }
.vcc-help { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }
.first-edit { margin-top: 20px; font-weight: 600; }
.req { margin-top: 12px; color: var(--ink-2); font-size: 1rem; }

/* ---------- trust ---------- */
.rel { display: grid; gap: 4px; margin-bottom: 20px; }
.rel p { max-width: none; }
.helpbox { font-size: 0.9375rem; }
html.js #release-fallback[data-wait] { display: none; }
.more summary { position: relative; padding-right: 28px; list-style: none; min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; width: fit-content; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; position: absolute; right: 4px; font-size: 1.25rem; line-height: 1; }
.more[open] summary::after { content: "\2212"; }
.more-body { display: grid; gap: 8px; padding-top: 8px; }
.more-row { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; }
.more-row a, .audit td a, .link-inline { display: inline-flex; align-items: center; min-height: 44px; }
#rel-sha { color: var(--ink); background: var(--surface-2); }
.audit { width: 100%; margin-top: 8px; border-collapse: collapse; }
.audit th, .audit td { padding: 16px 16px 16px 0; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); font-weight: 400; }
.audit tbody th { font-weight: 600; }
.audit tbody tr:first-child th, .audit tbody tr:first-child td { border-top: 1px solid var(--line); }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 10px; vertical-align: -2px; }
.is-ok { color: var(--ok); }
.is-neutral { color: var(--ink-2); }
.is-warn { color: var(--warn); }
.hash-fold { margin-top: 24px; }
.hash-fold summary, .faq summary { list-style: none; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.hash-fold summary { min-height: 48px; width: fit-content; }
.hash-fold summary::-webkit-details-marker, .faq summary::-webkit-details-marker, .faq-more > summary::-webkit-details-marker { display: none; }
.hash-fold summary::after, .faq summary::after, .faq-more > summary::after {
  content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line-strong); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1; padding-bottom: 2px;
}
.hash-fold[open] summary::after, .faq details[open] summary::after, .faq-more[open] > summary::after { content: "\2212"; background: var(--cyan); border-color: var(--cyan-edge); color: var(--on-cyan); }
.hash-body { padding-top: 8px; }
.note { margin-top: 24px; color: var(--ink-2); font-size: 1rem; }
.made-h { margin-top: clamp(48px, 5vw, 72px); }
.made-list { margin-top: 16px; display: grid; gap: 24px 32px; }
.made-list li { position: relative; padding-top: 16px; }
.made-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: var(--ink); }
.made-list p { margin-top: 4px; color: var(--ink-2); font-size: 0.9375rem; }
.made-links { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
@media (min-width: 768px) { .made-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) {
  .audit, .audit tbody, .audit tr, .audit th, .audit td { display: block; }
  .audit tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .audit tbody tr:first-child { border-top: 1px solid var(--line); }
  .audit th, .audit td, .audit tbody tr:first-child th, .audit tbody tr:first-child td { border: 0; padding: 2px 0; }
  .audit td:empty { display: none; }
  .audit tbody th { white-space: normal; }
}
.audit td a { white-space: nowrap; }

/* ---------- faq ---------- */
.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; justify-content: space-between; gap: 16px; padding: 14px 4px 14px 0; min-height: 56px; font-size: 1.0625rem; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--r-xs); }
@media (hover: hover) { .faq summary:hover { background: var(--surface); } }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }
.faq-more { margin-top: 16px; }
.faq-more > summary { list-style: none; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 12px; min-height: 48px; width: fit-content; }

/* ---------- made with Avistry ---------- */
.gal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.gal > * { min-width: 0; }
.gal-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: thin; }
.gal-row > li { flex: 0 0 min(260px, 70vw); scroll-snap-align: start; display: flex; }
.gal-card { display: grid; gap: 6px; align-content: start; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.gal-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--stage); }
.gal-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease-out; }
@media (hover: hover) { .gal-card:hover .gal-img img { transform: scale(1.03); } }
.gal-name { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; margin-top: 4px; }
.gal-by { font-size: 0.875rem; color: var(--ink-2); }
.gal-open {
  width: 100%; min-height: 325px; display: grid; gap: 14px; place-content: center; justify-items: center; text-align: center; padding: 20px;
  border: 2px dashed var(--line-strong); border-radius: var(--r-md);
}
.gal-open-t { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; }
.gal-rules { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 1024px) {
  .gal { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: center; }
  .gal-row { margin-inline: 0; padding-inline: 4px; }
  .gal-row > li { flex: 1 1 0; min-width: 0; }
  .gal-open { min-height: 0; height: 100%; aspect-ratio: auto; }
}

/* ---------- misc ---------- */
.pill--orig, .pill--new { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--r-pill); font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.pill--orig { background: var(--violet); color: var(--on-violet); }
.pill--new { background: var(--cyan); color: var(--on-cyan); }
.stage { background: var(--stage); color: var(--ink); border-radius: 0 0 var(--r-xl) var(--r-xl); }
:root:not([data-theme="light"]) .stage { background: #0A080F; border-bottom: 3px solid var(--line); }
.toggle { display: none; }
.sub { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .plate, .btn-primary, .btn-plate, .seg, .cmp-handle, .hero { box-shadow: none; border: 2px solid CanvasText; }
  .cutout, .hero-pop { display: none; }
  .cmp-label, .pill--orig, .pill--new, .seam-tag { border: 1px solid CanvasText; }
}

/* ---------- glossary and skill tree pages ---------- */
.pg-hero-in { padding-block: 40px 48px; }
@media (min-width: 768px) { .pg-hero-in { padding-block: 64px 64px; } }
.pg-hero h1 { max-width: 18ch; }
.pg-hero .sub { margin-top: 18px; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.pg-hero .hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 22px; }
.pg-tools { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.pg-search { display: block; flex: 1 1 280px; max-width: 460px; }
.pg-search input {
  width: 100%; min-height: 48px; padding: 0 16px; background: var(--surface); color: var(--ink); border: 2px solid var(--line-strong);
  border-radius: var(--r-sm); font: inherit; font-size: 1rem;
}
.pg-search input::placeholder { color: var(--ink-2); opacity: 1; }
.pg-count { margin-top: 14px; font-size: 0.9375rem; color: var(--ink-2); min-height: 1.5em; }
.pg-note { margin-bottom: 24px; padding: 12px 16px; border: 2px solid var(--line-strong); border-radius: var(--r-sm); color: var(--ink-2); font-size: 0.9375rem; max-width: 70ch; }
.pg-empty { margin-top: 24px; color: var(--ink-2); }
.pg-cta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 14px 22px; }

.gl-head { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 40px; max-width: none; line-height: 1.15; }
.gl-sub { margin-top: 4px; color: var(--ink-2); font-size: 1rem; }
.gl-group:first-child .gl-head { margin-top: 0; }
.gl-group > .term:first-of-type { margin-top: 16px; border-top: 1px solid var(--line); }
.term { border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.term summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 4px 12px 0; }
.term summary::-webkit-details-marker { display: none; }
.term summary::after {
  content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line-strong); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1; padding-bottom: 2px;
}
.term[open] summary::after { content: "\2212"; background: var(--cyan); border-color: var(--cyan-edge); color: var(--on-cyan); }
.term summary:focus-visible { outline-offset: -3px; border-radius: var(--r-xs); }
@media (hover: hover) { .term summary:hover { background: var(--surface); } }
.t-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.t-name { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.t-tip { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.t-tier { display: none; flex: none; padding: 2px 12px; border: 2px solid var(--line); border-radius: var(--r-pill); font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; }
@media (min-width: 900px) { .t-tier { display: inline-flex; } }
.t-body { padding: 0 0 28px; max-width: 70ch; }
.t-def { font-size: 1.0625rem; color: var(--ink); }
.t-dl { margin: 18px 0 0; display: grid; gap: 4px 20px; }
.t-dl dt { font-weight: 600; color: var(--ink-2); font-size: 0.9375rem; margin-top: 10px; }
.t-dl dd { margin: 0; }
@media (min-width: 700px) { .t-dl { grid-template-columns: 9.5rem 1fr; } .t-dl dt { margin-top: 0; } }
.t-also, .t-rel { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }
.t-rel a { display: inline-block; min-height: 24px; }

.sk-how h2 { max-width: 20ch; }
.sk-steps { margin-top: 28px; }
.sk-fine { margin-top: 20px; color: var(--ink-2); max-width: 62ch; }
.sk-tiers { display: grid; gap: 64px; }
.sk-head { display: flex; gap: 20px; align-items: flex-start; }
.sk-num { font-family: var(--font-display); font-weight: 600; font-size: 3.5rem; line-height: 1; color: var(--hl); font-variant-numeric: tabular-nums; min-width: 1ch; }
.sk-name { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.1; max-width: 22ch; }
.sk-blurb { margin-top: 6px; color: var(--ink-2); }
.sk-medal { display: inline-flex; margin-top: 12px; padding: 2px 14px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 0.875rem; }
.sk-medal--big { margin-top: 0; font-size: 1rem; padding: 4px 18px; background: var(--cyan); color: var(--on-cyan); }
.sk-cards { margin: 24px 0 0 22px; padding-left: 28px; border-left: 3px solid var(--line); display: grid; }
.sk-card { position: relative; padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 6px 32px; }
.sk-card:first-child { border-top: 0; }
.sk-card::before { content: ""; position: absolute; left: -36px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.sk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; align-content: start; }
.sk-top .h3 { flex-basis: 100%; font-size: 1.25rem; }
.sk-lv, .sk-bonus { padding: 1px 10px; border: 2px solid var(--line-strong); border-radius: var(--r-pill); font-size: 0.8125rem; color: var(--ink-2); }
.sk-bonus { background: var(--violet); border-color: var(--violet); color: var(--on-violet); }
.sk-tip { color: var(--ink); }
.sk-after, .sk-try { color: var(--ink-2); font-size: 0.9375rem; }
.sk-try strong { color: var(--ink); }
.sk-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; }
.ps-views { display: inline-flex; border: 2px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.ps-views .ps-btn { border: 0; border-radius: 0; }
.sk-card, .sk-name { scroll-margin-top: 84px; }

/* one honest line under the pictures that carry showcase shader values */
.media-note { max-width: 72ch; margin: 14px 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }


/* =====================================================================================================
   Site v4: shell, layout, plates and pages
   ===================================================================================================== */

/* the seam is a number so a CSS animation can move it (the one-time hint in the hero) */
@property --seam { syntax: "<number>"; inherits: true; initial-value: 40; }

:root {
  --fs-h1: clamp(2.5rem, 1.35rem + 3.4vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 1.7vw, 2.75rem);
  --fs-body: 1.125rem;
  --fs-cap: 0.875rem;
  --section: 56px;
  --hdr-h: 56px;
  --measure: 62ch;
  --wmax: 1200px;
  --band: clamp(24px, 4vw, 56px);
}
@media (min-width: 768px) { :root { --fs-body: 1.0625rem; --section: 96px; } }
@media (min-width: 1440px) { :root { --section: 96px; } }
html { scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { font-size: var(--fs-body); }
body.sub-page { padding-top: var(--hdr-h); }

/* ---------- type: four sizes ---------- */
h1, .h-display { font-size: var(--fs-h1); line-height: 1.04; max-width: 16ch; }
h2 { font-size: var(--fs-h2); line-height: 1.1; max-width: 24ch; }
h3, .h3, h4 { font-family: var(--font-display); font-size: var(--fs-body); font-weight: 600; line-height: 1.3; }
:lang(ja) h1, :lang(ko) h1, :lang(zh-CN) h1 { font-size: var(--fs-h1); max-width: 14em; }
.lead { font-size: var(--fs-body); max-width: var(--measure); margin-top: 16px; }
p { max-width: var(--measure); }
.tag, .plate-cap, .note, .small, small, .media-note, .count-note, .mk-note, .staged-tag, .pending { font-size: var(--fs-cap); }
.tag {
  display: inline-block; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-2);
  font-family: var(--mono); font-size: var(--fs-cap); line-height: 1.5; letter-spacing: 0.02em; white-space: nowrap;
}
.note-lg { margin-top: 16px; color: var(--ink-2); max-width: var(--measure); }
.note-list { margin: 12px 0 0; padding-left: 1.2em; color: var(--ink-2); max-width: var(--measure); display: grid; gap: 6px; font-size: 0.95em; }
.wrap { max-width: calc(var(--wmax) + 2 * var(--gutter)); }
.wrap--wide { max-width: calc(var(--wmax) + 2 * var(--gutter)); }
.sec { margin-top: var(--section); }
.accent-dot { color: var(--accent-text); }

/* ---------- buttons: accent only on the primary one ---------- */
.btn-primary { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan-edge); transition: transform 120ms ease-out, filter 120ms ease-out; }
.btn-primary:hover { text-decoration: none; }
@media (hover: hover) { .btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); } }
.btn-primary:active { transform: none; filter: none; }
.btn-outline, .btn-quiet { border-color: var(--line-strong); color: var(--ink); background: none; transition: background-color 120ms ease-out, border-color 120ms ease-out; }
@media (hover: hover) { .btn-outline:hover, .btn-quiet:hover { background: var(--surface); border-color: var(--ink); } }
.btn.copy { min-width: 88px; min-height: 44px; }
.btn-lg { min-height: 52px; }
.link-alt, .link-arrow, .more-link a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--line-strong);
}
.link-alt:hover, .link-arrow:hover, .more-link a:hover { text-decoration-color: var(--ink); }
.ic-lg { width: 32px; height: 32px; stroke-width: 1.5; }
.ic-sun { display: block; }
.ic-moon { display: none; }
:root[data-theme="light"] .ic-sun { display: none; }
:root[data-theme="light"] .ic-moon { display: block; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.marked li::before { background: var(--ink-2); }

/* ---------- header: see-through on the home hero, solid everywhere else ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--hdr-h);
  background: var(--bg); border-bottom: 1px solid var(--line); transition: background-color 200ms ease-out, border-color 200ms ease-out;
}
.hdr-in {
  height: 100%; display: flex; align-items: center; gap: 8px;
  max-width: calc(var(--wmax) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; flex: none; margin-right: auto; }
.lockup { flex: none; display: block; width: 116px; height: 36px; }
.lockup-light { display: none; }
:root[data-theme="light"] .lockup-dark { display: none; }
:root[data-theme="light"] .lockup-light { display: block; }
.hdr.is-clear { background: transparent; border-bottom-color: transparent; color: #F3F1F6; --ink: #F3F1F6; --ink-2: #BAB3CC; --line-strong: #8077A0; }
.hdr.is-clear .lockup-dark { display: block; }
.hdr.is-clear .lockup-light { display: none; }
.nav { display: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink-2); font-weight: 600; text-decoration: none;
  border-radius: var(--r-pill);
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--line-strong); }
.brand-ic { display: block; flex: none; width: 22px; height: 22px; fill: currentColor; }
.hdr-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink-2); transition: color 160ms ease-out, background-color 160ms ease-out;
}
.hdr-icon:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.hdr-icon--dc:hover { color: #7983F5; }
.hdr-icon:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hdr-icon--dc { margin-right: 4px; }
/* too narrow for them next to Get it and Menu: they live in the phone menu instead */
@media (max-width: 519px) { .hdr-icon { display: none; } }
.menu-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: none; color: var(--ink); font-family: var(--font-display); font-size: var(--fs-body); font-weight: 500; cursor: pointer;
}
.menu-btn::after { content: "+"; margin-left: 8px; }
.menu-btn[aria-expanded="true"]::after { content: "\2212"; }
@media (max-width: 399px) { .lockup { width: 96px; height: 30px; } .menu-btn { padding: 0 10px; } }
/* phones: Menu is a round + button, so the bar fits next to the look buttons in every language
   (the word stays for screen readers) */
@media (max-width: 519px) {
  .menu-btn { width: 44px; flex: none; padding: 0; justify-content: center; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu-btn::after { margin-left: 0; font-size: 1.25em; }
}
@media (min-width: 768px) {
  .hdr-in { gap: 12px; }
  .brand { margin-right: 24px; }
  .nav { display: flex; gap: 4px; margin-right: auto; }
  .menu-btn { display: none; }
}

/* home: the painted name at the top (app.js adds .has-word and .is-big); scrolling folds it into the logo */
.hdr-word { display: none; }
.hdr.has-word { transition: background-color 200ms ease-out, border-color 200ms ease-out, height 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
.hdr.has-word .brand { position: relative; }
.hdr.has-word .hdr-word {
  display: block; position: absolute; left: 0; top: 50%; transform-origin: 0 50%; transform: translateY(-50%) scale(0.5); opacity: 0; pointer-events: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1; padding: 0.06em 0.06em 0.2em 0; letter-spacing: -0.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.2px rgb(255 255 255 / 0.4);
  background: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--coral)) no-repeat 0 0 / 100% 100%; -webkit-background-clip: text; background-clip: text;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
/* the dot is drawn as a real circle in our coral, sitting on the baseline (the font's full stop is squarish) */
.hdr-word span, .foot-mark span { display: inline-block; width: 0.17em; height: 0.17em; margin-left: 0.05em; border-radius: 50%; overflow: hidden; color: transparent; background: var(--coral); -webkit-text-stroke: 0; }
.hdr.has-word .lockup { transform-origin: 0 50%; transition: opacity 0.21s ease 0.12s, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
.hdr.is-big .hdr-word { transform: translateY(-50%); opacity: 1; transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.21s ease 0.08s; animation: word-paint 0.91s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both; }
.hdr.is-big .hdr-word span { animation: word-dot 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.91s both; display: inline-block; }
.hdr.is-big .lockup { opacity: 0; transform: scale(1.6); transition: opacity 0.15s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes word-paint { from { background-size: 0% 100%; } }
/* over the picture: a soft shade behind the whole bar, and a shadow under the links, the icons and the name */
.hdr.has-word::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(100% + 56px); pointer-events: none; opacity: 0;
  background: linear-gradient(rgb(10 8 15 / 0.78), rgb(10 8 15 / 0.4) 55%, transparent); transition: opacity 0.2s ease;
}
.hdr.has-word.is-clear::before { opacity: 1; }
.hdr.is-clear .nav a { text-shadow: 0 1px 2px rgb(10 8 15 / 0.9), 0 0 16px rgb(10 8 15 / 0.85); }
.hdr.is-clear .hdr-icon { filter: drop-shadow(0 1px 2px rgb(10 8 15 / 0.9)) drop-shadow(0 0 10px rgb(10 8 15 / 0.7)); }
.hdr.has-word .hdr-word { filter: blur(0) drop-shadow(0 3px 14px rgb(10 8 15 / 0.7)); }
.hdr.has-word .brand { -webkit-tap-highlight-color: transparent; }
.hdr.has-word .brand:focus:not(:focus-visible) { outline: none; }
@keyframes word-dot { 0% { transform: translateY(-1.4em) scale(0.5); opacity: 0; } 60% { transform: translateY(0.06em) scale(1.2); opacity: 1; } 100% { transform: none; } }
/* home, first load (index.html adds .is-intro, app.js takes it off after 1.7 s) */
.hdr-word::after {
  content: ""; position: absolute; left: 0.02em; right: 0.35em; bottom: 0.1em; height: 0.08em; border-radius: 0.04em; pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--coral)); transform: scaleX(0); transform-origin: 0 50%; opacity: 0;
}
.hdr.is-intro .hdr-word { animation: word-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both, word-paint 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both; }
.hdr.is-intro .hdr-word::after { animation: word-swipe 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.25s both; }
.hdr.is-intro .hdr-word span { animation: word-dot 0.42s cubic-bezier(0.34, 1.4, 0.64, 1) 0.85s both; }
.hdr.is-intro::before { animation: fade-in 0.5s ease both; }
.hdr.is-intro .nav a, .hdr.is-intro .hdr-icon, .hdr.is-intro .menu-btn { animation: hdr-drop 0.42s cubic-bezier(0.16, 1, 0.3, 1) both; }
/* one wave from the first link to the last icon (up to six links) */
.hdr.is-intro .nav a:nth-child(1) { animation-delay: 0.35s; }
.hdr.is-intro .nav a:nth-child(2) { animation-delay: 0.39s; }
.hdr.is-intro .nav a:nth-child(3) { animation-delay: 0.43s; }
.hdr.is-intro .nav a:nth-child(4) { animation-delay: 0.47s; }
.hdr.is-intro .nav a:nth-child(5) { animation-delay: 0.51s; }
.hdr.is-intro .nav a:nth-child(6) { animation-delay: 0.55s; }
.hdr.is-intro .hdr-icon { animation-name: hdr-pop; animation-delay: 0.57s; }
.hdr.is-intro .hdr-icon--dc { animation-delay: 0.61s; }
.hdr.is-intro .menu-btn { animation-name: hdr-pop; animation-delay: 0.39s; }
/* the other three entrances: the name drops in and drips its colour down, glitches in, or stamps down and paints from
   the right; the links rise, flicker or grow in to match */
.hdr.is-intro.intro-2 .hdr-word { animation: word-drop 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) both, word-drip 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.25s both; }
.hdr.is-intro.intro-3 .hdr-word { animation: word-glitch 0.6s steps(1, end) both, word-paint 0.5s steps(5, end) 0.1s both; }
.hdr.is-intro.intro-4 .hdr-word { animation: word-stamp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both, word-paint-r 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both; }
.hdr.is-intro.intro-2 .nav a { animation-name: hdr-rise; }
.hdr.is-intro.intro-3 .nav a, .hdr.is-intro.intro-3 .hdr-icon, .hdr.is-intro.intro-3 .menu-btn { animation-name: hdr-flicker; animation-timing-function: steps(1, end); }
.hdr.is-intro.intro-4 .nav a { animation-name: hdr-grow; }
@keyframes word-drop { 0% { opacity: 0; transform: translateY(calc(-50% - 60px)) rotate(-4deg); } 60% { opacity: 1; transform: translateY(calc(-50% + 6px)) rotate(1deg); } 100% { transform: translateY(-50%); } }
@keyframes word-drip { from { background-size: 100% 0%; } }
@keyframes word-glitch {
  0% { opacity: 0; }
  10% { opacity: 1; transform: translateY(-50%) translateX(-8px) skewX(-8deg); clip-path: inset(0 0 55% 0); filter: drop-shadow(4px 0 color-mix(in srgb, var(--coral) 90%, transparent)) drop-shadow(-4px 0 color-mix(in srgb, var(--cyan) 90%, transparent)); }
  25% { transform: translateY(-50%) translateX(6px); clip-path: inset(40% 0 0 0); }
  40% { transform: translateY(-50%) translateX(-3px); clip-path: inset(20% 0 30% 0); filter: drop-shadow(-3px 0 color-mix(in srgb, var(--coral) 80%, transparent)) drop-shadow(3px 0 color-mix(in srgb, var(--cyan) 80%, transparent)); }
  55% { transform: translateY(-50%); clip-path: inset(0); filter: drop-shadow(2px 0 color-mix(in srgb, var(--coral) 60%, transparent)) drop-shadow(-2px 0 color-mix(in srgb, var(--cyan) 60%, transparent)); }
  70% { transform: translateY(-50%) translateX(2px); }
  100% { transform: translateY(-50%); clip-path: inset(0); }
}
@keyframes word-stamp { 0% { opacity: 0; transform: translateY(-50%) scale(1.7); filter: blur(10px) drop-shadow(0 3px 14px rgb(10 8 15 / 0)); } 70% { opacity: 1; transform: translateY(-50%) scale(0.96); } 100% { transform: translateY(-50%); } }
@keyframes word-paint-r { from { background-size: 0% 100%; background-position: 100% 0; } }
@keyframes hdr-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes hdr-flicker { 0% { opacity: 0; } 20% { opacity: 1; } 35% { opacity: 0.2; } 50% { opacity: 1; } 65% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes hdr-grow { from { opacity: 0; transform: scale(0.8); } }
@keyframes word-in { from { opacity: 0; transform: translateY(-50%) translateX(-22px); letter-spacing: 0.1em; filter: blur(8px) drop-shadow(0 3px 14px rgb(10 8 15 / 0)); } }
@keyframes word-swipe { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hdr-drop { from { opacity: 0; transform: translateY(-12px); } }
@keyframes hdr-pop { 0% { opacity: 0; transform: scale(0.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 399px) { .hdr.has-word .hdr-word { font-size: 1.6rem; } }
@media (min-width: 768px) {
  .hdr.is-big { height: 104px; }
  .hdr.has-word .hdr-word { font-size: clamp(2.6rem, 5vw, 4.6rem); transform: translateY(-50%) scale(0.28); }
  .hdr.is-big .hdr-word { transform: translateY(-50%); }
  .hdr.has-word .nav { transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
  .hdr.is-big .nav { transform: translateX(var(--nav-x, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .hdr.has-word, .hdr.has-word .hdr-word, .hdr.has-word .lockup, .hdr.has-word .nav { transition: none; }
  .hdr.is-big .hdr-word, .hdr.is-big .hdr-word span { animation: none; }
}

.sheet { position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 55; background: var(--bg); overflow-y: auto; border-top: 1px solid var(--line); }
.sheet-in { padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: grid; gap: 24px; }
.sheet-nav a {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); color: var(--ink);
  font-family: var(--font-display); font-size: var(--fs-body); font-weight: 600; text-decoration: none;
}
.sheet-nav a[aria-current] { color: var(--ink-2); }
.sheet-ext .brand-ic { width: 20px; height: 20px; margin-right: 12px; color: var(--ink-2); }
html.sheet-open { overflow: hidden; }
@media (min-width: 768px) { .sheet { display: none; } }

.tools { display: grid; gap: 16px; justify-items: start; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs button, .theme-toggle, .perf-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: none; color: var(--ink); font-family: var(--font-display); font-size: var(--fs-body); font-weight: 500; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (hover: hover) { .langs button:not([aria-pressed="true"]):hover, .theme-toggle:hover, .perf-toggle:not([aria-pressed="true"]):hover { background: var(--surface); } }
.perf-toggle .ic { fill: currentColor; stroke: none; }
.perf-toggle[aria-pressed="true"] { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
/* performance mode: no drawing canvases, doodles or blur; animations and transitions jump to their end */
html.perf .paint-fx, html.perf .doodle { display: none; }
html.perf *, html.perf *::before, html.perf *::after {
  animation-timeline: auto !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* ---------- sticky phone bar ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; align-items: center; gap: 16px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
  transform: translateY(110%); visibility: hidden; transition: transform 200ms ease-out, visibility 0s linear 200ms;
}
.cta-bar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.cta-bar .btn-primary { flex: 1; min-height: 48px; }
.cta-alt { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 767px) { .cta-bar { display: flex; } body:has(.looks--page, .jump, .dl-board) .cta-bar { display: none; } }

/* ---------- footer ---------- */
.foot { margin-top: var(--section); background: var(--bg-2); padding: 48px 0 56px; font-size: var(--fs-body); border-radius: 0; }
@media (max-width: 767px) { .foot { padding-bottom: 104px; } }
.foot-in { display: grid; gap: 24px; }
.foot-cols { display: grid; gap: 8px 48px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; align-content: start; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration-color: transparent; }
.foot-links a:hover { text-decoration-color: var(--ink); }
.foot-promise { color: var(--ink); font-weight: 600; }
.foot .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 899px) { .foot { padding-top: 36px; } .foot-in { gap: 18px; } .foot .theme-toggle, .foot .perf-toggle { padding: 0 14px; } }
.foot-small { color: var(--ink-2); font-size: var(--fs-cap); }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 2fr 1fr; } .foot .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; } }

/* ---------- plates: one frame for every still and loop ---------- */
.plate {
  position: relative; margin: 0; min-width: 0; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.03), 0 14px 32px -20px rgb(0 0 0 / 0.55);
  --lift: 0px; transform: none;
}
:root[data-theme="light"] .plate { box-shadow: 0 14px 32px -22px rgb(26 16 51 / 0.35); }
.plate-body { position: relative; display: block; background: var(--stage); }
.plate-cap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border-top: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); line-height: 1.4;
}
.plate-cap .tag { flex: none; }
.plate-body.still img, .plate-body.still picture { display: block; width: 100%; height: auto; }
.plate--bleed { border-radius: 0; border-inline: 0; box-shadow: none; }
.plate--lg { width: 100%; }
.plate--md { width: 100%; max-width: 800px; }
.plate--sm { width: 100%; max-width: 392px; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 32px; align-items: start; }
.grid12 > * { grid-column: 1 / -1; max-width: none; }
@media (min-width: 900px) {
  .grid12 > .plate--md { grid-column: span 8; }
  .grid12 > .plate--sm { grid-column: span 4; }
  .grid12 > .plate--lg { grid-column: 1 / -1; }
}
.grid12 > .plate--md, .grid12 > .plate--sm { max-width: none; }

/* a loop or still that has no file yet: the still stays, with a quiet note */
.pending { display: none; position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 6px; background: rgb(10 8 15 / 0.78); color: #F3F1F6; line-height: 1.4; z-index: 2; pointer-events: none; }
.is-pending .pending { display: block; }
.is-pending .pp { display: none; }
.plate.is-pending .still:not(:has(img[src])) { min-height: 200px; }

/* videos */
.vwrap { position: relative; overflow: hidden; background: var(--stage); }
.vwrap video { display: block; width: 100%; aspect-ratio: var(--ar-m, var(--ar, 16 / 9)); object-fit: cover; background: var(--stage); }
@media (min-width: 640px) { .vwrap video { aspect-ratio: var(--ar, 16 / 9); } }
.vwrap--contain video { object-fit: contain; }
.pp {
  position: absolute; left: 12px; bottom: 12px; margin: 0; width: 44px; height: 44px; border-radius: 50%; padding: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgb(10 8 15 / 0.72); border: 1px solid rgb(255 255 255 / 0.45);
}
.pp::before { content: ""; width: 10px; height: 14px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.pp.is-paused::before { width: 0; height: 0; border: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
@media (hover: hover) { .pp:hover { background: rgb(10 8 15 / 0.9); } }
.loop-plate .plate-body.vwrap { min-height: 120px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips button, .jump a, .looks button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: none; color: var(--ink); font-family: var(--font-display); font-size: var(--fs-body); font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.chips button[aria-pressed="true"], .jump a[aria-current="true"], .looks button[aria-checked="true"] { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
@media (hover: hover) {
  .chips button[aria-pressed="false"]:hover, .jump a:not([aria-current="true"]):hover, .looks button[aria-checked="false"]:hover { background: var(--surface); }
}
.looks { display: flex; gap: 8px; align-items: center; }
.looks button { position: relative; padding-left: 10px; }
.look-ic { display: block; flex: none; width: 22px; height: 22px; filter: drop-shadow(0 1px 1.5px rgb(10 8 15 / 0.55)); transition: transform 0.21s cubic-bezier(0.34, 1.56, 0.64, 1); }
.looks button[aria-checked="true"] .look-ic { transform: scale(1.12) rotate(-8deg); filter: drop-shadow(0 0 1px rgb(10 8 15 / 0.95)) drop-shadow(0 1px 2px rgb(10 8 15 / 0.7)); }
/* while a look loads, its swatch paints itself in, half by half */
.looks button.is-loading .look-ic { animation: look-load 0.9s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes look-load { 0%, 100% { transform: scale(0.85) rotate(0); opacity: 0.6; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
@keyframes swatch-fill { 60%, 100% { background-size: 100% 100%; } }

/* the held frame of a look loop while the new look loads (app.js holdFrame): a seam waits at the left edge in the new
   look's colours, then sweeps across and paints the old look away */
@property --wipe { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.v-hold { position: absolute; z-index: 1; pointer-events: none; --wipe: 0%; }
.v-hold canvas { display: block; width: 100%; height: 100%; clip-path: inset(0 0 0 var(--wipe)); }
.v-hold i {
  position: absolute; top: 0; bottom: 0; left: var(--wipe); width: 4px; margin-left: -2px; border-radius: 2px;
  background: linear-gradient(var(--a, var(--cyan)), var(--cyan) 50%, var(--b, var(--violet)));
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--a, var(--cyan)) 70%, transparent); animation: hold-wait 1s ease-in-out infinite alternate;
}
@keyframes hold-wait { to { box-shadow: 0 0 6px 1px color-mix(in srgb, var(--a, var(--cyan)) 50%, transparent); } }
.v-hold.is-wipe { transition: --wipe 0.5s cubic-bezier(0.65, 0, 0.35, 1); --wipe: 100%; }
.v-hold.is-wipe i { animation: none; opacity: 0; transition: opacity 0.2s ease 0.39s; }

/* ---------- optional pages ---------- */
.opt-strip { background: var(--bg-2); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-cap); }
.opt-strip p { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.opt-strip a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font-weight: 600; }
.opt-strip .ic { width: 16px; height: 16px; }
.page-head { padding-top: 48px; }
.page-head h1 { max-width: 18ch; }
.jump { position: sticky; top: var(--hdr-h); z-index: 40; margin-top: 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
.jump ul { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a { font-size: var(--fs-cap); }
.look-bar { position: sticky; top: var(--hdr-h); z-index: 40; margin-top: 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
.looks--page { overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.looks--page::-webkit-scrollbar { display: none; }
.tick-list { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 24px; color: var(--ink-2); }
.tick-list li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.tick-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.list-card li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.list-card li:first-child { border-top: 1px solid var(--line); }
.list-card strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.mat-list { margin-top: 32px; }
.note { margin-top: 16px; max-width: var(--measure); }
.grid-3 > .plate--sm { max-width: none; }
@media (min-width: 900px) { .grid12.grid-2 > .plate--sm { grid-column: span 6; } }
.safe-two { margin-top: var(--section); }
.undo { margin-top: 32px; }
.rcard { background: var(--surface); }
.undo-frame .undo-view { border-radius: 0; }
.learn-banner { margin-top: 32px; padding: 0; background: none; border-radius: 0; }
.learn-banner .lb-shot { padding: 0; }
.lb-title { font-size: var(--fs-h2); line-height: 1.1; }
.learn-b { margin-top: 48px; }
.all-features { margin-top: 64px; }
.mk-grid { margin-top: 32px; }
.count { margin-top: var(--section); }

/* ---------- compare sliders (wings, close-ups) ---------- */
.cmp { position: relative; --seam: 50; }
.cmp-view {
  position: relative; width: 100%; aspect-ratio: var(--ar-m, 4 / 5); overflow: hidden; background: var(--stage); cursor: ew-resize; touch-action: pan-y;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.wings .cmp-view { max-height: min(86svh, 900px); }
@media (min-width: 640px) { .cmp-view { aspect-ratio: var(--ar-d, 3 / 2); } }
.cmp-view picture { position: absolute; inset: 0; display: block; }
.cmp-view img { width: 100%; height: 100%; max-width: none; object-fit: cover; -webkit-user-drag: none; }
.cmp-view .cmp-orig { clip-path: inset(0 calc(100% - var(--seam) * 1%) 0 0); }
.cmp-label {
  position: absolute; top: 12px; z-index: 2; display: inline-flex; align-items: center; padding: 3px 12px; border-radius: var(--r-pill);
  background: rgb(10 8 15 / 0.78); color: #F3F1F6; font-size: var(--fs-cap); font-weight: 600; line-height: 1.4; pointer-events: none;
}
.cmp-label-orig { left: 12px; opacity: calc((var(--seam) - 8) / 10); }
.cmp-label-saved { right: 12px; opacity: calc((92 - var(--seam)) / 10); }
.cmp-seam { position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(var(--seam) * 1%); width: 48px; margin-left: -24px; pointer-events: none; }
.cmp-seam::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--cyan); box-shadow: 0 0 0 1.5px #0A080F; }
.cmp-handle { position: absolute; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 2px #0A080F; }
.cmp-handle::before, .cmp-handle::after { content: ""; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.cmp-handle::before { left: 8px; border-right-color: var(--on-cyan); border-right-width: 7px; }
.cmp-handle::after { right: 8px; border-left-color: var(--on-cyan); border-left-width: 7px; }
.cmp-seam .cmp-handle { left: 0; top: 50%; width: 48px; height: 48px; margin-top: -24px; }
.cmp-range { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; margin: 0; }
.cmp-range:focus-visible ~ .cmp-seam .cmp-handle, .cmp-view:has(.cmp-range:focus-visible) .cmp-handle { outline: 3px solid var(--focus); outline-offset: 3px; }
.cu.is-pending .cmp-view { background: var(--stage); }
.cu.is-pending .cmp-view picture, .cu.is-pending .cmp-label, .cu.is-pending .cmp-seam { display: none; }
.cu.is-pending .cmp-view { cursor: default; }
.cu.is-pending .pending { left: 12px; bottom: auto; top: 12px; }
.staged-tag {
  position: absolute; z-index: 2; top: 12px; left: 12px; padding: 3px 12px; border-radius: var(--r-pill);
  background: rgb(10 8 15 / 0.78); color: #F3F1F6; font-weight: 600; line-height: 1.4; pointer-events: none;
}
.spin-plate { max-width: min(100%, 720px); }
.gal-share { margin-top: 24px; color: var(--ink-2); max-width: var(--measure); }
.gal-share a { color: var(--ink); font-weight: 600; }

/* ---------- home: hero ---------- */
.hero {
  --R: 0.8; --hero-h: clamp(420px, 60svh, 640px); --zone-l: 0px; --hy: 56%; --seam: 25;
  --aw: max(100%, calc((var(--hero-h) + var(--band)) * var(--R)));
  --seamx: calc(var(--seam) * 1%);
  position: relative; isolation: isolate; background: #0A080F; color: var(--ink); padding-bottom: 40px;
  border-bottom: 1px solid #342E4D;
}
.hero.is-hint { animation: seam-hint 1.33s ease-in-out 1 both; }
@keyframes seam-hint { 0%, 100% { --seam: 40; } 50% { --seam: 60; } }
@media (min-width: 640px) { .hero { --R: 1.7778; --hero-h: calc(100vw / var(--R)); --hy: 52%; padding-bottom: 48px; } }
@media (min-width: 1024px) and (min-aspect-ratio: 2/1) { .hero { --R: 2.3337; } }
.hero-pic { position: relative; height: var(--hero-h); }
.hero-pic::before {
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 132px; pointer-events: none;
  background: linear-gradient(180deg, rgb(10 8 15 / 0.82), transparent);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: clip; background: #0A080F; pointer-events: none; }
.hl-saved, .hl-orig, .pop-saved { position: absolute; inset: 0; }
.hl-orig { clip-path: inset(0 calc(100% - var(--seamx)) 0 0); }
.art, .turn { position: absolute; display: block; bottom: calc(-1 * var(--band)); width: var(--aw); aspect-ratio: var(--R); left: calc((100% - var(--aw)) * var(--ax, 0.6)); }
.art img { display: block; width: 100%; height: 100%; max-width: none; object-fit: fill; -webkit-user-drag: none; user-select: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, #0A080F 0, rgb(10 8 15 / 0.55) 14%, transparent 34%); }
.hero-pop { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* switching looks: the picture jumps sideways with a colour split for a third of a second, scan bars flicker over it */
.hero.is-glitch .hero-bg, .hero.is-glitch .hero-pop { animation: hero-glitch 0.32s steps(1, end) both; }
.hero.is-glitch .hero-pop { animation-direction: reverse; }
.hero.is-glitch .hero-drag { overflow: hidden; }
.hero.is-glitch .hero-drag::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(transparent 21%, color-mix(in srgb, var(--cyan) 32%, transparent) 21% 24%, transparent 24% 57%, color-mix(in srgb, var(--coral) 30%, transparent) 57% 59%, transparent 59% 78%, rgb(140 100 230 / 0.32) 78% 79.5%, transparent 79.5%);
  animation: hero-scan 0.32s steps(1, end) both;
}
@keyframes hero-glitch {
  0% { transform: translateX(-7px); filter: drop-shadow(5px 0 color-mix(in srgb, var(--coral) 75%, transparent)) drop-shadow(-5px 0 color-mix(in srgb, var(--cyan) 75%, transparent)); }
  25% { transform: translateX(6px) skewX(-2deg); filter: drop-shadow(-4px 0 color-mix(in srgb, var(--coral) 70%, transparent)) drop-shadow(4px 0 color-mix(in srgb, var(--cyan) 70%, transparent)); }
  50% { transform: translateX(-3px); filter: drop-shadow(2px 0 color-mix(in srgb, var(--coral) 60%, transparent)) drop-shadow(-2px 0 color-mix(in srgb, var(--cyan) 60%, transparent)); }
  75% { transform: translateX(1px); filter: none; }
  100% { transform: none; filter: none; }
}
@keyframes hero-scan {
  0% { transform: translateY(0); opacity: 1; }
  25% { transform: translateY(-9%); opacity: 0.8; }
  50% { transform: translateY(12%); opacity: 0.6; }
  75% { transform: translateY(3%); opacity: 0.3; }
  100% { opacity: 0; }
}
.pop-saved { clip-path: inset(0 0 calc(-1 * var(--band)) var(--seamx)); }
/* the turning hero: one canvas per layer over the still, same box; the cut-outs are drawn for the still's angle only */
.turn { opacity: 0; transition: opacity 240ms ease-out; }
.turn.is-on { opacity: 1; }
.hero.is-turn .hero-pop { visibility: hidden; }
/* phones where tilt needs a tap to allow it (iOS); app.js adds it only there. Bottom right stays clear of the seam tags
   and, from 640px, sits level with the credit, above the look chips. */
.hero-tilt {
  position: absolute; z-index: 4; right: var(--gutter); bottom: 14px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 0.3); border-radius: var(--r-pill); background: rgb(10 8 15 / 0.68); color: #F3F1F6;
  font-family: var(--font-display); font-size: var(--fs-body); font-weight: 500; white-space: nowrap; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (min-width: 640px) { .hero-tilt { bottom: 72px; } }
.hero-tilt[hidden] { display: none; }
.hero-tilt:disabled { opacity: 0.6; cursor: default; }
.hero-tilt:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hero-seam { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.seam-line { position: absolute; top: 0; bottom: 0; left: var(--seamx); width: 3px; margin-left: -1.5px; background: var(--cyan); box-shadow: 0 0 0 1.5px #0A080F; }
/* from 640px the picture runs under the see-through bar: the seam fades out before it reaches the bar */
@media (min-width: 640px) {
  .seam-line { -webkit-mask-image: linear-gradient(transparent 0, transparent 96px, #000 170px); mask-image: linear-gradient(transparent 0, transparent 96px, #000 170px); }
}
.hero-seam .cmp-handle { left: var(--seamx); top: var(--hy); width: 48px; height: 48px; margin: -24px 0 0 -24px; }
@media (max-width: 639px) { .seam-line { bottom: 130px; } }
.seam-tag { position: absolute; top: calc(var(--hy) - 56px); padding: 3px 12px; border-radius: var(--r-pill); background: rgb(10 8 15 / 0.78); color: #F3F1F6; font-size: var(--fs-cap); font-weight: 600; line-height: 1.4; }
.seam-tag-o { right: calc(100% - var(--seamx) + 14px); opacity: calc((var(--seam) - 8) / 10); }
.seam-tag-s { left: calc(var(--seamx) + 14px); opacity: calc((92 - var(--seam)) / 10); }
.hero-drag { position: absolute; z-index: 2; left: 0; right: 0; top: 0; bottom: 0; cursor: ew-resize; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; }
html:not(.js) .hero-drag, html:not(.js) .looks, html:not(.js) .seam-tag { display: none; }
.hero .cmp-range:focus-visible ~ .hero-seam .cmp-handle { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero .looks { position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100% - 2 * var(--gutter)); }
.hero .looks button { background: rgb(10 8 15 / 0.68); border-color: rgb(255 255 255 / 0.3); color: #F3F1F6; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .looks button[aria-checked="true"] { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
.hero .looks button:focus-visible { outline-color: #fff; }
.credit { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); background: rgb(10 8 15 / 0.72); color: #F3F1F6; font-size: var(--fs-cap); font-weight: 500; line-height: 1.4; max-width: none; }
.credit a { color: #F3F1F6; display: inline-block; padding: 8px 2px; margin: -8px 0; }
.hero-credit { position: absolute; z-index: 4; left: var(--gutter); bottom: 72px; margin: 0; }
.hero-copy { position: relative; z-index: 3; padding: calc(var(--band) + 8px) var(--gutter) 0; }
.hero-title { font-size: var(--fs-h1); max-width: 14ch; color: var(--ink); text-shadow: 0 2px 24px rgb(10 8 15 / 0.55); }
.hero-copy .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 24px; }
.hero-copy .btn-primary { width: 100%; min-height: 48px; }
.hero-free { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-cap); }
@media (min-width: 640px) {
  .hero-copy { padding-top: calc(var(--band) + 24px); }
  .hero-copy .btn-primary { width: auto; min-height: 52px; }
  .hero-credit { bottom: 14px; left: var(--gutter); }
}
@media (min-width: 1024px) {
  .hero {
    --hero-h: clamp(560px, calc(100vw / var(--R)), 92svh); --text-w: clamp(420px, 38vw, 560px);
    --text-left: max(var(--gutter), calc((100% - var(--wmax)) / 2)); --zone-l: calc(var(--text-left) + var(--text-w) + 24px); --hy: 50%;
    padding-bottom: 0; height: var(--hero-h);
  }
  .hero-copy { position: absolute; left: var(--text-left); top: 0; height: var(--hero-h); width: var(--text-w); padding: var(--hdr-h) 0 0; display: flex; flex-direction: column; justify-content: center; }
  /* the seam reaches under the text too (the avatar's turned wing sits there); only the links keep the pointer */
  .hero-copy { pointer-events: none; }
  .hero-copy a, .hero-copy button { pointer-events: auto; }
  .hero-copy > * { transform: translateY(-4vh); }
  .hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgb(10 8 15 / 0.8) 0, rgb(10 8 15 / 0.5) 34%, transparent 62%); }
  .hero-credit { left: max(var(--gutter), calc((100% - var(--wmax)) / 2)); bottom: 18px; }
  .hero .looks { left: calc(var(--zone-l) + (100% - var(--zone-l)) / 2); bottom: 18px; }
  /* tall screens cap the hero at 92svh, so the full-width picture is taller than the frame: crop the legs, never the head */
  .hero-pic { container-type: inline-size; }
  .art, .turn { bottom: min(calc(-1 * var(--band)), calc(var(--hero-h) - 100cqw / var(--R))); }
}
@media (max-width: 639px) { .hero .art, .hero .turn { --ax: 0.38; } }

/* ---------- home: proof, steps, wings, safe ---------- */
.proof-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.proof-list a {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); line-height: 1.25;
  color: var(--ink); font-size: var(--fs-cap); font-weight: 600; text-decoration: none;
}
.proof-list .ic { width: 18px; height: 18px; color: var(--ink-2); }
@media (hover: hover) { .proof-list a:hover { background: var(--surface); border-color: var(--line-strong); } }
@media (min-width: 1024px) { .proof-list { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.how-grid { margin-top: 32px; gap: 24px; }
.how-plate { max-width: none; }
.how-plate .vwrap video { aspect-ratio: 4 / 5; }
@media (min-width: 640px) { .how-plate .vwrap video { aspect-ratio: 16 / 9; } }
.how-cap { color: var(--ink-2); font-size: var(--fs-cap); min-height: 0; }
@media (min-width: 1024px) {
  .how-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; margin-top: 48px; }
  .how-cap { display: none; }
}
.how-step .st { font-size: var(--fs-cap); }
@media (min-width: 1024px) { .how-step .st { font-size: var(--fs-body); } .how-step .sb { font-size: var(--fs-body); } }
.how-step .num { font-size: var(--fs-body); }
.how-step.is-on button { border-color: var(--cyan); }
@media (max-width: 1023px) { .how-step .num { font-size: var(--fs-body); } }

.stage-sec { background: #0A080F; color: var(--ink); padding-block: var(--section); margin-top: var(--section); }
.wings { padding-bottom: calc(var(--section) * 0.75); }
.wings .plate--bleed { margin-top: 32px; max-width: none; }
.wings-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 24px; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 420px; }
.thumbs a { display: grid; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; font-size: var(--fs-cap); font-weight: 600; text-align: center; }
.thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 14px; border: 1px solid var(--line); background: var(--stage); }
@media (hover: hover) { .thumbs a:hover img { border-color: var(--ink); } }

.safe-grid { display: grid; gap: 32px; margin-top: 32px; align-items: center; }
.facts { display: grid; gap: 24px; }
.facts li { display: grid; grid-template-columns: 32px 1fr; gap: 0 16px; align-items: start; }
.facts li p { color: var(--ink); max-width: 36ch; }
.facts h3 { grid-column: 2; }
.facts--3 { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
.facts--3 li { grid-template-columns: 1fr; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.facts--3 h3 { grid-column: 1; }
.facts--3 p { color: var(--ink-2); }
.safe-plate .plate-body, .files-plate .files-mock { padding: 16px; }
.safe-plate .safe-shot { margin: -16px; }
.safe-plate.has-still .plate-body { padding: 0; }
.safe-plate.has-still .fwin { display: none; }
.safe-plate.has-still .safe-shot { display: block; margin: 0; }
.safe-plate .safe-shot img { width: 100%; height: auto; }
.fwin { margin-top: 0; }
@media (min-width: 900px) { .safe-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } .facts--3 { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
@media (min-width: 640px) and (max-width: 899px) { .facts--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- install strip ---------- */
.inst-head { max-width: var(--measure); }
.inst-head .tag { margin-bottom: 16px; }
.inst-grid { display: grid; gap: 24px; margin-top: 32px; }
.inst-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); min-width: 0; }
.inst-card--main { border-color: var(--line-strong); }
.inst-card .steps-list { margin-bottom: 0; }
.inst-card .btn-lg { width: 100%; }
.inst-card .urlrow { margin-bottom: 0; }
.inst-card .field-label { margin: 0 0 6px; }
.more-ways summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; }
.more-ways[open] summary { margin-bottom: 8px; }
.inst-meta { margin-top: 24px; color: var(--ink-2); font-size: var(--fs-cap); max-width: none; }
.inst-meta a { color: var(--ink-2); }
/* the small card on the other pages: VCC and the way to the Download page */
.inst-quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.inst-quick .btn { flex: 1 1 220px; justify-content: center; }
@media (min-width: 640px) { .inst-quick .btn { flex: 0 1 auto; } }
.vcc-help { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-cap); }

/* ---------- Download page ---------- */
.dl-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.dl-stat { display: grid; gap: 4px; align-content: start; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: 4px 4px 0 var(--coral), 8px 8px 0 var(--violet); min-width: 0; }
.dl-stat[hidden] { display: none; }
.dl-k { color: var(--ink-2); font-size: var(--fs-cap); }
.dl-v { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.dl-s { color: var(--ink-2); font-size: var(--fs-cap); }
.dl-latest .inst-grid { margin-top: 40px; }
.dl-rel { margin-top: 32px; }

.dl-list { display: grid; gap: 12px; margin-top: 32px; padding: 0; list-style: none; }
.dl-row { display: grid; gap: 8px 24px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.dl-row.is-latest { border-color: var(--line-strong); }
.dl-row-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.dl-row-v { font-family: var(--font-display); font-size: 1.25rem; }
.dl-row-d, .dl-row-n { color: var(--ink-2); font-size: var(--fs-cap); }
.dl-row-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dl-row-notes { font-size: var(--fs-cap); }
.tag--new { border-color: var(--cyan); background: var(--cyan); color: var(--on-cyan); }
@media (min-width: 768px) {
  .dl-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .dl-row-a { justify-content: flex-end; }
}

.dl-dev-steps { display: grid; gap: 16px; margin-top: 32px; padding: 0; list-style: none; counter-reset: dl; }
.dl-dev-steps li { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); min-width: 0; counter-increment: dl; }
.dl-dev-steps li::before { content: counter(dl); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cyan); color: var(--on-cyan); font-family: var(--font-display); font-weight: 600; box-shadow: 2px 2px 0 var(--coral), 4px 4px 0 var(--violet); }
.dl-dev-steps p { color: var(--ink-2); }
.dl-dev-steps .urlrow { margin-bottom: 0; max-width: none; }
.dl-dev-steps .btn { align-self: flex-start; margin-top: auto; }
@media (min-width: 900px) { .dl-dev-steps { grid-template-columns: repeat(3, 1fr); } }
.share-pc { display: none; margin-top: 24px; gap: 8px; }
.qa { display: grid; gap: 20px; margin-top: 40px; }
.qa dt { font-family: var(--font-display); font-weight: 600; }
.qa dd { color: var(--ink-2); margin-top: 2px; }
.more-link { margin-top: 24px; }
.more { margin-top: var(--section); }
.more-cards { display: grid; gap: 16px; margin-top: 16px; }
.more-card { display: grid; gap: 4px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; height: 100%; }
.mc-t { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body); }
.mc-b { color: var(--ink-2); }
@media (hover: hover) { .more-card:hover { background: var(--surface); border-color: var(--ink); } }
@media (max-width: 767px) { .qa, .install .more { display: none; } .share-pc.is-on { display: grid; } .inst-card .btn-primary { min-height: 48px; } }
@media (min-width: 768px) { .steps-fold > summary { display: none; } }
.community {
  display: grid; grid-template-columns: 1fr; justify-items: start; align-items: center; gap: 12px 20px; margin-top: 40px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg);
}
.community-ic { width: 40px; height: 40px; color: #7983F5; }
.community-text h3 { margin: 0; }
.community-text p { margin: 4px 0 0; color: var(--ink-2); max-width: 60ch; }
.community-btn { justify-self: start; }
@media (min-width: 768px) { .community { grid-template-columns: auto 1fr auto; padding: 24px 32px; } }
@media (min-width: 900px) { .inst-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .qa { grid-template-columns: repeat(2, 1fr); gap: 32px; } .more-cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- about ---------- */
.faq-group { margin: 32px 0 8px; color: var(--ink-2); font-size: var(--fs-cap); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.faq-group:first-child { margin-top: 0; }
.faq { margin-top: 0; }
.faq summary { font-size: var(--fs-body); }
.faq details:target, .faq details.is-target { background: var(--surface); }
.made-links { align-items: center; gap: 12px 16px; }
.made-links .btn { margin: 0; }
.made-h { margin-top: 48px; }
.audit { margin-top: 8px; }

/* ---------- misc ---------- */
@media (forced-colors: active) {
  .plate, .btn-primary, .cmp-handle { border: 2px solid CanvasText; box-shadow: none; }
  .hero-pop { display: none; }
}

/* phones: inline text links get a 44px tall tap area without moving the text (padding on an inline box does not change the line) */
@media (max-width: 767px) {
  .credit a, .js-vt, .helpbox a, details > p a, .made-links a:not(.btn), .foot-small a { padding-block: 14px; }
  .credit a { margin-block: -14px; }
}

@media (min-width: 1024px) {
  .thumbs { gap: 20px; max-width: 540px; }
  .thumbs a { font-size: 1rem; }
  .wings-more .link-arrow { font-size: 1.125rem; }
}

/* gallery: on desktop the spin plate stands on the right (the close-ups below start on the left), the heading beside it */
@media (min-width: 1024px) {
  #spin .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; grid-template-rows: 1fr auto auto 1fr; align-items: start; }
  #spin .spin-plate { grid-column: 2; grid-row: 1 / span 4; max-width: none; margin: 0; }
  #spin #spin-title { grid-column: 1; grid-row: 2; }
  #spin .lead { grid-column: 1; grid-row: 3; }
}
/* the spin has no frame: the avatar turns in a soft pool of her own stage light that fades into the page */
#spin .spin-plate { border: 0; background: none; box-shadow: none; overflow: visible; }
#spin .spin-plate .plate-body { background: none; border-radius: 0; overflow: visible; }
#spin .spin-plate video, #spin .spin-plate .v-hold {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, rgb(0 0 0 / 0.6) 75%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, rgb(0 0 0 / 0.6) 75%, transparent 100%);
}
#spin .spin-plate .plate-cap { justify-content: center; border: 0; background: none; padding-top: 0; }
#spin .spin-plate .pp { opacity: 0.55; }
@media (hover: hover) { #spin .spin-plate:hover .pp { opacity: 1; } }
@media (min-width: 1024px) { #spin .spin-plate { margin-block: -40px -24px; } }
/* no title of its own: on wide screens the avatar turns on the right and the close-ups title comes up beside it */
@media (min-width: 1024px) {
  #spin .wrap { display: block; }
  #spin .spin-plate { width: min(56%, 720px); margin: -40px 0 -24px auto; }
  #spin + #closeups { margin-top: -150px; }
  #spin + #closeups > .wrap { position: relative; z-index: 1; }
  #spin + #closeups > .wrap > * { max-width: min(40%, 480px); }
}
@media (max-width: 1023px) { #spin .spin-plate { margin-top: -16px; } }
/* look loops glitch for a moment when the look changes */
.vwrap.is-glitch > video, .vwrap.is-glitch > .v-hold { animation: loop-glitch 0.56s linear both; }
.vwrap.is-glitch::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(transparent 22%, color-mix(in srgb, var(--cyan) 30%, transparent) 22% 24.5%, transparent 24.5% 52%, color-mix(in srgb, var(--coral) 28%, transparent) 52% 53.5%, transparent 53.5% 74%, color-mix(in srgb, var(--violet) 30%, transparent) 74% 75.5%, transparent 75.5%);
  -webkit-mask-image: radial-gradient(ellipse 46% 48% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 46% 48% at 50% 50%, #000 55%, transparent 100%);
  animation: loop-scan 0.56s ease-out both;
}
/* the jolt fades out instead of stopping dead: big split first, then smaller and smaller */
@keyframes loop-glitch {
  0% { transform: translateX(-8px); filter: brightness(1.35) drop-shadow(6px 0 color-mix(in srgb, var(--coral) 75%, transparent)) drop-shadow(-6px 0 color-mix(in srgb, var(--cyan) 75%, transparent)); }
  12% { transform: translateX(7px) skewX(-2.5deg); filter: brightness(1.25) drop-shadow(-5px 0 color-mix(in srgb, var(--coral) 70%, transparent)) drop-shadow(5px 0 color-mix(in srgb, var(--cyan) 70%, transparent)); }
  24% { transform: translateX(-4px) skewX(1.5deg); filter: brightness(1.15) drop-shadow(3px 0 color-mix(in srgb, var(--coral) 60%, transparent)) drop-shadow(-3px 0 color-mix(in srgb, var(--cyan) 60%, transparent)); }
  38% { transform: translateX(2px); filter: drop-shadow(-2px 0 color-mix(in srgb, var(--coral) 45%, transparent)) drop-shadow(2px 0 color-mix(in srgb, var(--cyan) 45%, transparent)); }
  55% { transform: translateX(-1px); filter: drop-shadow(1px 0 color-mix(in srgb, var(--coral) 25%, transparent)); }
  100% { transform: none; filter: none; }
}
@keyframes loop-scan { 0% { transform: translateY(-6%); opacity: 1; } 30% { transform: translateY(10%); opacity: 0.75; } 60% { transform: translateY(2%); opacity: 0.35; } 100% { transform: translateY(0); opacity: 0; } }
/* the close-ups and the light pictures glitch as the new look lands, with scan bars in its colours */
.cmp.is-glitch picture, [data-light].is-glitch picture { animation: hero-glitch 0.36s steps(1, end) both; }
.cmp.is-glitch::after, [data-light].is-glitch::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(transparent 18%, color-mix(in srgb, var(--cyan) 34%, transparent) 18% 21%, transparent 21% 55%, color-mix(in srgb, var(--coral) 32%, transparent) 55% 57%, transparent 57% 80%, color-mix(in srgb, var(--violet) 34%, transparent) 80% 81.5%, transparent 81.5%);
  animation: hero-scan 0.36s steps(1, end) both;
}
[data-light] { position: relative; }

/* home bands: the proof, steps, safe and install sections sit one step off the page colour, so they read as bands between the two dark stages */
.proof, #how, #safe, #install { background: var(--bg-2); margin-top: 0; padding-block: var(--section); }
/* a slim strip, so the next section (the tour video) shows up sooner */
.proof { padding-block: 24px; }
#how, #install { padding-top: calc(var(--section) * 0.6); }
/* the band below starts flush, so the last plain section needs its own air (gallery) */
#honest { padding-bottom: calc(var(--section) * 0.6); }
#wings { margin-top: 0; }


/* ---------- one look for the whole site: Original shows the plain pictures, no compare ---------- */
.cmp.is-single .cmp-orig { clip-path: none; }
.cmp.is-single .cmp-label, .cmp.is-single .cmp-seam, .cmp.is-single .cmp-range { display: none; }
.cmp.is-single .cmp-view { cursor: default; touch-action: auto; }
.hero.is-single .hl-saved, .hero.is-single .hero-pop, .hero.is-single .hero-seam, .hero.is-single .hero-drag, .hero.is-single .cmp-range { display: none; }
.hero.is-single .hl-orig { clip-path: none; }
.sec[id] { scroll-margin-top: 64px; }

/* ---------- phones: nothing sits on top of a picture ---------- */
@media (max-width: 639px) {
  .hero .looks { gap: 6px; flex-wrap: nowrap; justify-content: center; width: calc(100% - 2 * var(--gutter)); max-width: none; }
  .hero .looks button { flex: 1 1 auto; justify-content: center; min-height: 40px; padding: 0 8px; gap: 6px; font-size: 0.8125rem; }
  .hero .looks button .look-ic { width: 18px; height: 18px; }
}

@media (max-width: 639px) {
  .seam-line { top: 0; bottom: 0; }
  /* the picture starts under the header, so the menu never covers the face; labels sit in the picture's top corners,
     chips and credit below the picture */
  /* the frame is as tall as the picture (plus a little air), so the head and horns are never cut at the top;
     on short screens the picture shrinks instead */
  .hero { padding-top: var(--hdr-h); --hero-h: min(calc(100vw / var(--R) - var(--band) + 12px), 78svh);
    --aw: min(100%, calc((var(--hero-h) + var(--band) - 12px) * var(--R))); }
  .hero .art, .hero .turn { --ax: 0.5; }
  .hero-pic::before { display: none; }
  .seam-tag { top: 10px; }
  .seam-tag-o { right: auto; left: var(--gutter); }
  .seam-tag-s { left: auto; right: var(--gutter); }
  .hero-pic { margin-bottom: 112px; }
  .hero .looks { bottom: auto; top: calc(100% + 12px); }
  .hero-credit { bottom: auto; top: calc(100% + 64px); }
  .hero-copy { padding-top: 12px; }
}
@media (max-width: 639px) {
  .looks--page { overflow-x: visible; gap: 6px; }
  .looks--page button { flex: 1 1 auto; justify-content: center; min-height: 40px; padding: 0 8px; gap: 6px; font-size: 0.8125rem; }
  .looks--page button .look-ic { width: 18px; height: 18px; }
}


/* ===== layers and modes, held full screen while you scroll =====
   The stage pins under the header; the scroll walks a strip of names. The current one lights up, the rest fade. */
@property --lift { syntax: "<length>"; inherits: false; initial-value: 0px; }
.stack-band, .modes-band { background: #0A080F; padding-block: var(--section); margin-top: var(--section); }
.modes-band { margin-top: 0; padding-top: 0; }
.stack-head h2, .modes-head h2 { max-width: 18ch; }
.stack-head .lead, .modes-head .lead { max-width: 52ch; }
.stack-track, .modes-track { position: relative; }
.stack-stage, .modes-stage { position: relative; height: var(--stage-h, 560px); overflow: clip; }
.stack[data-pin] .stack-stage, .modes[data-pin] .modes-stage { position: sticky; top: var(--pin-top, 76px); }
.stack[data-state="ready"] .stack-still { display: none; }
.stack:not([data-state="ready"]) .stack-still { margin-top: 24px; }

/* the stack: big pile on the left, the strip of layer names on the right (under it on phones) */
.stack-stage .stack-head { position: absolute; z-index: 3; top: 0; left: 0; right: 0; padding-top: clamp(8px, 2svh, 24px); pointer-events: none;
  transition: opacity 210ms ease, transform 210ms ease; }
.stack.is-deep .stack-stage .stack-head { opacity: 0; transform: translateY(-12px); }
.stack-scene { position: absolute; inset: 0; perspective: 1800px; perspective-origin: 50% 35%; }
.pile { position: absolute; left: 50%; top: 58%; width: 0; height: 0; transform-style: preserve-3d; }
.sl {
  position: absolute; width: var(--lw); height: var(--lw); margin: calc(var(--lw) / -2) 0 0 calc(var(--lw) / -2);
  transform: rotateX(56deg) rotateZ(-38deg) translateZ(calc(var(--i) * var(--gap) * var(--e, 0) + var(--lift)));
  border-radius: 6px; will-change: transform, opacity; opacity: var(--vo, 1);
  transition: opacity 220ms ease, filter 220ms ease, --lift 290ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease;
}
.sl img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sl--base { background: var(--surface-2); box-shadow: 0 0 0 2px var(--line-strong); }
.stack.is-focusing .sl { opacity: calc(var(--vo, 1) * 0.14); filter: saturate(0.35) brightness(0.7); }
.stack.is-focusing .sl.is-focus { opacity: var(--vo, 1); filter: brightness(1.3) saturate(1.2) drop-shadow(0 0 18px color-mix(in srgb, var(--cyan) 70%, transparent)); --lift: 40px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cyan) 45%, transparent), inset 0 0 0 9999px color-mix(in srgb, var(--cyan) 5%, transparent); }
.stack-labels { position: absolute; z-index: 2; overflow: hidden; opacity: var(--lab, 0); --row: 54px;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.stack-labels li { position: absolute; top: 50%; white-space: nowrap; will-change: transform, opacity; color: var(--ink-2);
  font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.3;
  transform: translate(var(--lx, 0), calc(var(--d, 0) * var(--row) - 50%)) scale(var(--s, 1)); transform-origin: var(--lo, 0) 50%; }
.stack-labels li.is-near { color: #fff; font-weight: 600; text-shadow: 0 0 24px color-mix(in srgb, var(--cyan) 60%, transparent); }
.stack-labels li.is-near::before { content: ""; position: absolute; left: -18px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.stack-count, .modes-count { position: absolute; z-index: 2; margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1; color: #fff; font-size: clamp(2.5rem, 6vw, 5rem); opacity: var(--lab, 1); }
.stack-count small, .modes-count small { font-size: 0.32em; color: var(--ink-2); font-weight: 500; margin-left: 6px; }
@media (min-width: 900px) {
  .stack .pile { left: 38%; top: 66%; }
  .stack-labels { right: var(--gutter); top: 18%; bottom: 10%; width: min(36%, 440px); }
  .stack-labels li { left: 26px; }
  .stack-count { left: var(--gutter); bottom: 4%; }
}
@media (max-width: 899px) {
  .stack .pile { top: 52%; }
  .stack-labels { left: 0; right: 0; bottom: 6%; height: 30%; --row: 44px; }
  .stack-labels li { left: 50%; --lx: -50%; --lo: 50%; font-size: 1rem; }
  .stack-labels li.is-near::before { display: none; }
  .stack-count { left: var(--gutter); top: 16px; font-size: 2.25rem; transition: opacity 0.21s; }
  /* the count shares the top with the heading: show it only once the heading has faded */
  .stack:not(.is-deep) .stack-count { opacity: 0; }
}
/* reduced motion: no pin, a calm picture and a plain list */
.stack:not([data-pin]) .stack-stage { height: auto; overflow: visible; }
.stack:not([data-pin]) .stack-stage .stack-head { position: static; }
.stack:not([data-pin]) .stack-scene { position: relative; height: clamp(320px, 80vw, 480px); }
.stack:not([data-pin]) .stack-labels { position: static; opacity: 1; height: auto; -webkit-mask-image: none; mask-image: none; display: flex; flex-direction: column; gap: 6px; padding-inline: var(--gutter); }
.stack:not([data-pin]) .stack-labels li { position: static; transform: none; }
.stack:not([data-pin]) .stack-count { display: none; }

/* every blend mode and adjustment: a big picture, the names beside it */
.modes-head { margin-bottom: 24px; }
.modes-stage { display: grid; align-items: center; gap: 24px; padding-inline: var(--gutter); }
.modes-view { position: relative; aspect-ratio: 1; height: min(100%, 76svh); max-width: 100%; justify-self: center; border-radius: var(--r-md); overflow: hidden;
  background: var(--stage); box-shadow: 0 0 0 1px #342E4D, 0 30px 80px rgb(0 0 0 / 0.5); }
.modes-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 180ms ease, transform 360ms cubic-bezier(.2, .8, .2, 1); }
.modes-view img.is-on { opacity: 1; transform: none; }
.modes-name { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; padding: 48px 20px 16px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 3.25rem); line-height: 1; color: #fff; background: linear-gradient(transparent, rgb(10 8 15 / 0.85)); }
.modes-side { position: relative; height: 100%; min-height: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.modes-kind { margin: 0; padding-top: 12px; color: var(--cyan); font-weight: 600; }
.modes-list { position: relative; overflow: hidden; --row: 46px;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.modes-list li { position: absolute; top: 50%; left: 22px; white-space: nowrap; color: var(--ink-2); font-family: var(--font-display); font-weight: 500; font-size: 1.125rem;
  transform: translateY(calc(var(--d, 0) * var(--row) - 50%)) scale(var(--s, 1)); transform-origin: 0 50%; will-change: transform, opacity; }
.modes-list li small { color: var(--ink-2); font-family: var(--font-body); font-weight: 400; font-size: 0.75em; margin-left: 10px; opacity: 0.8; }
.modes-list li.is-near { color: #fff; font-weight: 600; text-shadow: 0 0 24px color-mix(in srgb, var(--coral) 55%, transparent); }
.modes-list li.is-near::before { content: ""; position: absolute; left: -20px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.modes-count { position: static; padding-bottom: 12px; }
@media (min-width: 900px) {
  .modes-stage { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); padding-block: 12px; max-width: calc(var(--wmax) + 2 * var(--gutter)); margin-inline: auto; }
}
@media (max-width: 899px) {
  .modes-stage { grid-template-rows: minmax(0, 58%) minmax(0, 1fr); align-items: stretch; gap: 8px; }
  .modes-view { height: 100%; width: auto; }
  .modes-side { grid-template-rows: auto 1fr; grid-template-columns: 1fr auto; }
  .modes-kind { grid-column: 1; }
  .modes-count { grid-column: 2; grid-row: 1; padding: 8px 0 0; font-size: 2rem; text-align: right; }
  .modes-list { grid-column: 1 / -1; --row: 40px; }
  .modes-list li { font-size: 1rem; }
}
.modes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.modes-grid figure { margin: 0; }
.modes-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); display: block; }
.modes-grid figcaption { margin-top: 6px; font-size: 0.8125rem; color: var(--ink-2); }
.modes-grid h3 { grid-column: 1 / -1; margin: 16px 0 0; }
.modes-video { margin-top: var(--section); }
.modes-video .plate { background: #15111F; border-color: #342E4D; max-width: 880px; margin-inline: auto; }

/* short statements between sections, left then right; they slide in with the scroll */
.says { display: grid; gap: 28px; margin-top: var(--section); }
.say { margin: 0; max-width: 26ch; }
.say-t { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.9vw, 2.625rem); line-height: 1.06; color: var(--ink); text-wrap: balance; }
.say-p { display: block; margin-top: 10px; max-width: 34ch; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.say--r { justify-self: end; text-align: right; }
.say--r .say-p { margin-left: auto; }
@media (min-width: 900px) { .says { grid-template-columns: 1fr 1fr; align-items: start; } .say--r { margin-top: 96px; } }
.js .says.is-live .say { transform: translate3d(var(--sx, 0), 0, 0); opacity: var(--so, 1); will-change: transform, opacity; }

/* tiny logo marks drifting behind the page */
.bg-marks { position: fixed; z-index: 0; left: 0; right: 0; top: 0; height: calc(100% + 640px); pointer-events: none;
  background: url("media/bg-marks.svg") 0 0 / 640px 640px repeat; opacity: 0.06; will-change: transform; }
:root[data-theme="light"] .bg-marks { opacity: 0.1; }
body.has-marks { background: transparent; }
body.has-marks > main, body.has-marks > footer { position: relative; z-index: 1; }

/* video buttons sit top right (the window's own menus are on the left), with a button to open the loop larger */
.vwrap .pp { left: auto; right: 12px; top: 12px; bottom: auto; }
.vwrap--wide .pp { left: auto; right: 20px; top: 20px; bottom: auto; }
.vz { position: absolute; z-index: 3; top: 12px; right: 64px; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: rgb(10 8 15 / 0.72); border: 1px solid rgb(255 255 255 / 0.45); color: #fff; }
.vwrap--wide .vz { top: 20px; right: 72px; }
.vz svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .vz:hover { background: rgb(10 8 15 / 0.9); } }
.is-pending .vz { display: none; }
.vbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(12px, 3vw, 40px); border: 0; background: transparent; color: #fff; }
.vbox::backdrop { background: rgb(6 5 10 / 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vbox[open] { display: flex; align-items: center; justify-content: center; }
.vbox-in { position: relative; max-width: 100%; max-height: 100%; animation: vbox-in 180ms cubic-bezier(.2, .8, .2, 1); }
.vbox video { display: block; max-width: calc(100vw - 2 * clamp(12px, 3vw, 40px)); max-height: calc(100svh - 2 * clamp(12px, 3vw, 40px)); width: auto; height: auto; border-radius: var(--r-md); background: #000; box-shadow: 0 30px 90px rgb(0 0 0 / 0.6); }
.vbox .pp { position: absolute; top: 12px; right: 12px; left: auto; bottom: auto; }
.vbox .vz { top: 12px; right: 64px; }
.vbox-cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); margin: 0; padding: 6px 12px; border-radius: 8px; background: rgb(10 8 15 / 0.72); font-size: 0.875rem; }
@keyframes vbox-in { from { opacity: 0; transform: scale(0.94); } }
@media (prefers-reduced-motion: reduce) { .vbox-in { animation: none; } .sl, .modes-view img { transition: none; } }

/* the full tour video: our own controls (native ones without JS), sound on demand */
.tour-plate { margin-top: 28px; }
/* the tour grows with the screen: as wide as the window allows while the whole video, its control bar (53px) and
   the scroll hint under it (44px) still fit under the header (tour.js keeps --vw at the width without the scrollbar) */
/* centred with margins, not a half-width shift: a half pixel would blur the control bar */
.tour .tour-plate {
  --tw: min(calc(var(--vw, 100vw) - 2 * var(--gutter)), max(320px, calc((100svh - var(--hdr-h) - 16px - var(--tour-head, 110px) - 53px - 44px - 12px) * 16 / 9)));
  width: var(--tw); max-width: none; margin-left: calc((100% - var(--tw)) / 2);
}
.tour-plate .plate-body { background: #000; }
.tour-plate video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* tour player (tour.js): the language switch sits on the video; the same video moves into a mini player that keeps
   playing on every page. Colours are fixed: the video is always on black. */
.tvid { position: relative; container-type: inline-size; background: #000; }
.tvid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.tvid.is-back { animation: tvid-back 200ms cubic-bezier(.2, .8, .2, 1); }
@keyframes tvid-back { from { opacity: 0.4; transform: scale(0.97); } }
.tv-hold { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: opacity 160ms ease-out; }
.tlang {
  position: absolute; z-index: 2; top: 12px; right: 12px; display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill);
  background: rgb(10 8 15 / 0.74); border: 1px solid rgb(255 255 255 / 0.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity 220ms ease-out;
}
.tlang button {
  min-width: 40px; min-height: 32px; margin: 0; padding: 0 11px; border: 0; border-radius: var(--r-pill); background: none; color: #F3F1F6;
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; line-height: 1; cursor: pointer;
  transition: background-color 140ms ease-out, color 140ms ease-out;
}
.tlang button[aria-pressed="true"] { background: var(--cyan); color: var(--on-cyan); }
.tlang button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (hover: hover) { .tlang button:not([aria-pressed="true"]):hover { background: rgb(255 255 255 / 0.16); } }
.tlang .l-short { display: none; }
.tvid.is-idle .tlang:not(:focus-within) { opacity: 0; pointer-events: none; }
@media (hover: hover) { .tvid.is-idle:hover .tlang { opacity: 1; pointer-events: auto; } }
@container (max-width: 479px) {
  .tlang { top: 6px; right: 6px; padding: 2px; }
  .tlang button { min-width: 30px; min-height: 26px; padding: 0 7px; font-size: 0.75rem; }
  .tlang .l-long { display: none; }
  .tlang .l-short { display: inline; }
}

/* the control bar sits under the picture, never on it: the subtitles are part of the video's bottom edge */
.tv-box { position: relative; }
.tv-box video { cursor: pointer; transition: filter 270ms ease-out, scale 270ms ease-out; }
/* the tape-stop: the picture loses its colour as it winds down and stays dim while paused */
.tvid.is-held video { filter: saturate(0.45) brightness(0.72) contrast(1.06); scale: 0.985; }
/* the glitch between languages: drawn small and scaled up without smoothing; the picture shakes for a moment */
.tv-glitch { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.tv-box.is-shake { animation: tv-shake 170ms steps(1) both; }
@keyframes tv-shake { 20% { translate: -4px 1px; } 40% { translate: 3px -2px; } 60% { translate: -2px 2px; } 80% { translate: 2px 0; } 100% { translate: 0 0; } }
/* the console under the language switch: what the player just did, typed in and gone again */
.tv-term {
  position: absolute; z-index: 3; top: 58px; right: 12px; width: min(300px, calc(100% - 24px)); overflow: hidden; pointer-events: none;
  /* see-through: the video stays visible behind it; a text shadow keeps the lines readable */
  border: 1px solid color-mix(in srgb, var(--cyan) 22%, transparent); border-radius: 10px; background: rgb(10 8 15 / 0.3); color: #DCD6EA;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: 11px; line-height: 1.55;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.9), 0 0 6px rgb(0 0 0 / 0.6); box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
  opacity: 0; transform: translateY(-6px); transition: opacity 160ms ease-out, transform 160ms ease-out;
}
.tv-term.is-on { opacity: 1; transform: none; }
.tt-bar { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-bottom: 1px solid rgb(255 255 255 / 0.1); color: #BAB3CC; font-size: 10px; }
.tt-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.tt-bar i:nth-child(2) { background: var(--violet); }
.tt-bar i:nth-child(3) { background: var(--cyan); }
.tt-bar span { margin-left: 4px; }
.tt-body { padding: 5px 9px 6px; }
.tt-line {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; clip-path: inset(0 100% 0 0);
  animation: tt-type calc(var(--n, 20) * 5ms + 40ms) steps(var(--n, 20), end) forwards;
}
.tt-line::before { content: "› "; color: #9D8BFF; }
.tt-cmd { color: #F3F1F6; font-weight: 700; }
.tt-cmd::before { content: "$ "; color: var(--cyan); }
.tt-ok { color: var(--cyan); }
.tt-ok::before { content: "✓ "; color: var(--cyan); }
@keyframes tt-type { to { clip-path: inset(0 0 0 0); } }
@container (max-width: 479px) {
  .tv-term { top: 42px; right: 6px; width: min(210px, calc(100% - 12px)); font-size: 10px; line-height: 1.45; }
  /* the last four lines only, so it stays clear of the subtitles */
  .tt-line:nth-last-child(n+5) { display: none; }
}
@container (max-width: 339px) { .tv-term { display: none; } }
/* full screen on a computer: picture on top, the bar under it, the logo in the corner */
.tv-logo { display: none; }
.tvid.is-fs { display: flex; flex-direction: column; width: 100%; height: 100%; background: #000; }
.tvid.is-fs .tv-box { flex: 1; min-height: 0; }
.tvid.is-fs video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.tvid.is-fs .tctl { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
.tvid.is-fs .tv-logo {
  display: block; position: absolute; z-index: 2; top: 20px; left: 24px; width: auto; height: 34px; opacity: 0.92; pointer-events: none;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.6)); transition: opacity 210ms ease-out;
}
.tvid.is-fs.is-idle .tv-logo { opacity: 0.4; }
.tvid.is-fs.is-idle video { cursor: none; }
.tvid.is-fs .i-fs, .tvid:not(.is-fs) .i-fsx { display: none; }
.tctl {
  display: flex; align-items: center; gap: 2px; padding: 6px 8px; background: #1D1830; color: #F3F1F6;
  border-top: 1px solid #342E4D; user-select: none; -webkit-user-select: none;
}
.tc-mid { order: 0; display: flex; align-items: center; }
.tc-mid .tc-play { order: -1; }
.tc-seek { order: 1; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.tc-end { order: 2; display: flex; align-items: center; }
.tc-vol { display: flex; align-items: center; }
.tc-btn {
  position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0;
  border-radius: var(--r-xs); background: none; color: inherit; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms ease-out, color 140ms ease-out, transform 140ms ease-out, box-shadow 140ms ease-out;
}
/* our dot: a small coral one under the button the pointer is on */
.tc-btn::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--coral);
  transform: scale(0); transition: transform 140ms ease-out; pointer-events: none;
}
@media (hover: hover) { .tc-btn:hover { background: color-mix(in srgb, var(--violet) 20%, transparent); color: #fff; } .tc-btn:hover::after { transform: scale(1); } }
.tc-btn:active { background: color-mix(in srgb, var(--violet) 32%, transparent); }
/* play is the action: a cyan button on its two plates, pressed down onto them */
.tctl .tc-play { width: 34px; height: 34px; border-radius: 50%; background: var(--cyan); color: var(--on-cyan); box-shadow: 2px 2px 0 var(--coral), 4px 4px 0 var(--violet); margin: 0 8px 0 4px; }
.tctl .tc-play svg { width: 18px; height: 18px; }
.tctl .tc-play::after { display: none; }
@media (hover: hover) { .tctl .tc-play:hover { background: color-mix(in srgb, var(--cyan) 80%, #fff); color: var(--on-cyan); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--coral), 6px 6px 0 var(--violet); } }
.tctl .tc-play:active { background: var(--cyan); transform: translate(2px, 2px); box-shadow: 0 0 0 var(--coral), 2px 2px 0 var(--violet); }
.tctl svg, .tc-big svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tctl svg.f, .tc-big svg { fill: currentColor; stroke: none; }
.tctl svg text { fill: currentColor; stroke: none; font-family: var(--font-body), system-ui, sans-serif; font-weight: 700; font-size: 7.5px; }
.tvid.is-playing .tc-play .i-play, .tvid:not(.is-playing) .tc-play .i-pause { display: none; }
.tvid.is-muted .tc-mute .i-vol, .tvid:not(.is-muted) .tc-mute .i-mute { display: none; }
.tc-speed { width: auto; min-width: 48px; height: 30px; margin: 0 4px; padding: 0 9px; border: 1px solid #342E4D; border-radius: var(--r-pill); }
.tc-speed::after { bottom: -5px; }
@media (hover: hover) { .tc-speed:hover { border-color: var(--cyan); } }
.tc-speed span, .tc-time { font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tc-time { flex: none; color: #BAB3CC; }
.tc-cur { display: flex; align-items: center; gap: 7px; color: #F3F1F6; }
/* the coral dot by the time glows while the tour plays */
.tc-cur::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); opacity: 0.45; transition: opacity 200ms ease-out; }
.tvid.is-playing .tc-cur::before { opacity: 1; animation: tc-live 1.6s ease-in-out infinite; }
@keyframes tc-live { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 25%, transparent); } }
.tctl :focus-visible, .tc-big:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.tc-track { position: relative; flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; cursor: pointer; touch-action: pan-y; }
.tctl .tc-track:focus-visible { outline-offset: 2px; border-radius: 6px; }
.tc-rail { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.14); overflow: hidden; transition: height 120ms ease-out; }
.tc-buf, .tc-fill { position: absolute; inset: 0; transform-origin: 0 50%; }
.tc-buf { background: color-mix(in srgb, var(--violet) 55%, transparent); transform: scaleX(var(--tb, 0)); }
.tc-fill { background: var(--cyan); transform: scaleX(var(--tp, 0)); }
/* the knob is our coral dot on a violet plate; it grows while the pointer is on the line */
.tc-knob {
  position: absolute; top: 50%; left: calc(var(--tp, 0) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--coral); border: 2px solid #fff; box-shadow: 2px 2px 0 var(--violet); transform: scale(0.72); transition: transform 120ms ease-out; pointer-events: none;
}
.tc-vtrack { flex: none; width: 76px; margin: 0 8px 0 2px; }
.tc-vtrack .tc-buf { display: none; }
.tc-vtrack .tc-fill { transform: scaleX(var(--tv, 1)); }
.tc-vtrack .tc-knob { left: calc(var(--tv, 1) * 100%); }
.tc-track:hover .tc-rail, .tc-track:focus-visible .tc-rail, .tc-track.is-drag .tc-rail { height: 6px; }
.tc-track:hover .tc-knob, .tc-track:focus-visible .tc-knob, .tc-track.is-drag .tc-knob { transform: scale(1.15); }
@media (pointer: coarse) {
  .tc-track { height: 36px; }
  .tc-knob { transform: scale(1); }
}
.tc-big {
  position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  padding: 0 0 0 4px; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 50%; background: rgb(10 8 15 / 0.62); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 3px 3px 0 var(--coral), 6px 6px 0 var(--violet);
  transition: opacity 160ms ease-out, transform 160ms ease-out, background-color 140ms ease-out, color 140ms ease-out, visibility 0s;
}
.tc-big svg { width: 32px; height: 32px; }
@media (hover: hover) { .tc-big:hover { background: var(--cyan); color: var(--on-cyan); } }
.tvid.is-playing .tc-big { opacity: 0; visibility: hidden; transform: scale(0.9); transition-delay: 0s, 0s, 0s, 0s, 160ms; }
/* under 640px: the time line gets its own row */
@container (max-width: 639px) {
  .tctl { flex-wrap: wrap; padding: 2px 6px 6px; }
  .tc-seek { order: 0; flex: 1 0 100%; padding: 0 6px; }
  .tc-mid { order: 1; }
  .tc-mid .tc-play { order: 0; }
  .tc-end { order: 2; margin-left: auto; }
  .tc-big { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .tc-big svg { width: 26px; height: 26px; }
}
/* a phone: the time line, then big play and skip buttons in the middle, then volume, speed and full screen */
@container (max-width: 439px) {
  .plate-body .tc-mid { flex: 1 0 100%; justify-content: center; gap: 20px; }
  .plate-body .tc-mid .tc-btn { width: 52px; height: 52px; }
  .plate-body .tc-mid svg { width: 28px; height: 28px; }
  .plate-body .tc-mid .tc-play { width: 46px; height: 46px; }
  .plate-body .tc-mid .tc-play svg { width: 22px; height: 22px; }
  .plate-body .tc-end { flex: 1 0 100%; margin-left: 0; }
  .plate-body .tc-vol { flex: 1; min-width: 0; }
  .plate-body .tc-vtrack { flex: 1; width: auto; margin-right: 12px; }
  .plate-body .tc-btn { width: 44px; height: 44px; }
  /* the mini player keeps one row: play, the time line, sound and full screen */
  .tdock .tctl { flex-wrap: nowrap; padding: 2px 4px; gap: 0; }
  .tdock .tc-seek { order: 1; flex: 1; padding: 0 6px; }
  .tdock .tc-mid { order: 0; }
  .tdock .tc-end { order: 2; margin-left: 0; }
  .tdock .tc-time, .tdock .tc-back, .tdock .tc-fwd, .tdock .tc-vtrack, .tdock .tc-speed { display: none; }
  .tdock .tc-btn { width: 36px; height: 36px; }
  .tdock .tctl .tc-play { width: 32px; height: 32px; margin: 0 4px 0 2px; box-shadow: 1px 1px 0 var(--coral), 2px 2px 0 var(--violet); }
  .tdock .tctl .tc-play svg { width: 18px; height: 18px; }
  .tdock .tc-big { width: 48px; height: 48px; margin: -24px 0 0 -24px; box-shadow: none; }
  .tdock .tc-big svg { width: 22px; height: 22px; }
}

/* the note at the bottom of the screen while the tour plays in the page: scrolling is fine, the video keeps playing
   in the corner. A small plate with the three dots */
.tour-more {
  position: fixed; z-index: 60; left: 50%; bottom: calc(max(var(--lift, 0px), env(safe-area-inset-bottom, 0px)) + 14px); translate: -50% 0;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 40px); margin: 0; padding: 10px 10px 10px 16px;
  border: 1px solid #342E4D; border-radius: var(--r-md); background: #1D1830; color: #F3F1F6; text-align: left; cursor: pointer;
  box-shadow: 3px 3px 0 var(--coral), 6px 6px 0 var(--violet), 0 0 36px color-mix(in srgb, var(--cyan) 32%, transparent);
  opacity: 0; transform: translateY(14px); transition: opacity 200ms ease-out, transform 200ms cubic-bezier(.2, .8, .2, 1), border-color 140ms ease-out;
}
.tour-more::before {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -14px; width: min(100vw, 760px); height: 72px; translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cyan) 22%, transparent), transparent); pointer-events: none;
}
.tour-more.is-on { opacity: 1; transform: none; }
.tm-dots { flex: none; display: flex; gap: 5px; }
.tm-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: tm-hop 1.5s ease-in-out infinite; }
.tm-dots i:nth-child(2) { background: var(--violet); animation-delay: 0.15s; }
.tm-dots i:nth-child(3) { background: var(--cyan); animation-delay: 0.21s; }
@keyframes tm-hop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
.tm-txt { display: grid; gap: 1px; min-width: 0; }
.tm-txt b { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; }
.tm-txt small { font-family: var(--font-body); font-size: 0.8125rem; line-height: 1.3; color: #BAB3CC; }
.tm-go { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cyan); color: var(--on-cyan); }
.tm-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: more-bob 1.6s ease-in-out infinite; }
@keyframes more-bob { 50% { transform: translateY(3px); } }
@media (hover: hover) { .tour-more:hover { border-color: var(--cyan); } }
.tour-more:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
html.sheet-open .tour-more { visibility: hidden; }

/* while the video plays in the corner its room shows a stand-in of the same size (picture and control bar), so the
   page does not move: the poster, blurred and drifting, scanlines, a little equaliser and the progress */
.tour-ph { position: relative; display: flex; flex-direction: column; background: #0A080F; container-type: inline-size; }
.tour-ph-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; }
.tour-ph-bg {
  position: absolute; inset: -30px; z-index: -2; background: center / cover no-repeat; filter: blur(16px) saturate(1.4) brightness(0.55);
  animation: ph-drift 14s ease-in-out infinite alternate;
}
@keyframes ph-drift { from { transform: scale(1.15) translateX(-3%); } to { transform: scale(1.25) translateX(3%); } }
/* scanlines rolling down and a light sweep every few seconds */
.tour-ph-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 3px), radial-gradient(closest-side, rgb(10 8 15 / 0.2), rgb(10 8 15 / 0.75));
  animation: ph-roll 1.2s linear infinite;
}
@keyframes ph-roll { to { background-position: 0 3px, 0 0; } }
.tour-ph-stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--cyan) 16%, transparent) 48%, color-mix(in srgb, var(--coral) 10%, transparent) 52%, transparent 65%);
  transform: translateX(-100%); animation: ph-sweep 3.6s ease-in-out 0.6s infinite;
}
@keyframes ph-sweep { 60%, 100% { transform: translateX(100%); } }
.tour-ph-in {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px; color: #F3F1F6; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 2.2cqi, 1.375rem);
}
.tour-ph-in p { margin: 0; animation: ph-glitch 4.2s steps(1) infinite; }
@keyframes ph-glitch {
  0%, 92%, 100% { text-shadow: none; translate: 0 0; }
  93% { text-shadow: -2px 0 var(--coral), 2px 0 var(--cyan); translate: 2px 0; }
  95% { text-shadow: 2px 0 var(--coral), -2px 0 var(--cyan); translate: -1px 0; }
  97% { text-shadow: -1px 0 var(--violet), 1px 0 var(--cyan); translate: 0 0; }
}
.tour-ph-eq { display: inline-flex; align-items: flex-end; gap: 4px; height: 26px; }
.tour-ph-eq i { width: 6px; height: 100%; border-radius: 3px; background: var(--cyan); transform-origin: 50% 100%; animation: ph-eq 0.9s ease-in-out infinite alternate; }
.tour-ph-eq i:nth-child(2) { background: var(--coral); animation-duration: 0.49s; animation-delay: -0.21s; }
.tour-ph-eq i:nth-child(3) { background: var(--violet); animation-duration: 0.77s; animation-delay: -0.35s; }
.tour-ph-eq i:nth-child(4) { animation-duration: 0.56s; animation-delay: -0.2s; }
@keyframes ph-eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
/* where the control bar was: its time line, still moving */
.tour-ph-foot { position: relative; flex: none; height: var(--foot, 53px); background: #1D1830; border-top: 1px solid #342E4D; }
.tour-ph-foot::before, .tour-ph-prog { position: absolute; left: 16px; right: 16px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; }
.tour-ph-foot::before { content: ""; background: rgb(255 255 255 / 0.12); }
.tour-ph-prog { background: var(--cyan); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.tour-ph.is-new .tour-ph-stage { animation: ph-in 290ms ease-out; }
@keyframes ph-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tour-ph-bg, .tour-ph-stage::before, .tour-ph-stage::after, .tour-ph-in p, .tour-ph-eq i, .tour-ph.is-new .tour-ph-stage, .tm-dots i, .tm-go svg { animation: none; }
}

/* scrolling past the tour: the plate tips back and fades as it leaves the top of the screen, and comes back the same
   way (tied to the scroll, so it never moves on its own; browsers without scroll timelines just scroll) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tour .tour-plate { transform-origin: 50% 100%; animation: tour-out linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
  }
}
@keyframes tour-out { to { transform: perspective(1400px) rotateX(16deg) scale(0.84); opacity: 0.25; } }

.tdock {
  position: fixed; left: 0; top: 0; z-index: 70; width: var(--w, 360px); transform: translate3d(var(--x, 0), var(--y, 0), 0);
  border: 1px solid #342E4D; border-radius: var(--r-sm); background: #1D1830; color: #F3F1F6;
  box-shadow: 3px 3px 0 var(--coral), 6px 6px 0 var(--violet), 0 22px 48px -16px rgb(0 0 0 / 0.75);
}
.tdock.is-in { animation: tdock-in 180ms cubic-bezier(.2, .8, .2, 1); }
@keyframes tdock-in { from { opacity: 0; transform: translate3d(var(--x, 0), calc(var(--y, 0) - 12px), 0) scale(0.94); } }
.tdock.is-drag { box-shadow: 4px 4px 0 var(--coral), 8px 8px 0 var(--violet), 0 30px 60px -16px rgb(0 0 0 / 0.8); }
.tdock.is-drag .tdock-media { pointer-events: none; }
html.sheet-open .tdock { visibility: hidden; }
.tdock-bar {
  position: relative; display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 4px; border-radius: var(--r-sm) var(--r-sm) 0 0;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.tdock.is-drag .tdock-bar, .tdock.is-drag .tdock-grip { cursor: grabbing; }
.tdock-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; color: #BAB3CC; }
.tdock-grip, .tdock-btn {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: var(--r-xs);
  background: none; color: inherit; cursor: pointer;
}
.tdock-grip { cursor: grab; touch-action: none; color: #BAB3CC; }
.tdock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tdock-grip .dots { fill: currentColor; stroke: none; }
@media (hover: hover) { .tdock-btn:hover, .tdock-grip:hover { background: rgb(255 255 255 / 0.1); color: #fff; } }
.tdock :focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.tdock-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
.tdock-media { overflow: hidden; border-radius: 0 0 calc(var(--r-sm) - 1px) calc(var(--r-sm) - 1px); background: #000; }
/* the resize handle: a round knob on the corner with a two-way diagonal arrow */
.tdock-size {
  position: absolute; z-index: 3; right: -14px; bottom: -14px; display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0;
  border: 2px solid #fff; border-radius: 50%; background: var(--cyan); color: var(--on-cyan); cursor: nwse-resize; touch-action: none;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.5); transition: transform 140ms ease-out;
}
.tdock-size::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.tdock-size svg { width: 16px; height: 16px; stroke-width: 2.6; }
@media (hover: hover) { .tdock-size:hover { transform: scale(1.12); } }
.tdock.is-drag .tdock-size { transform: scale(1.12); }
.tdock.is-hint .tdock-size::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--cyan); pointer-events: none;
  animation: knob-hint 0.77s ease-out 0.28s 3 both;
}
@keyframes knob-hint { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.2); opacity: 0; } }
.tdock.is-left .tdock-size { right: auto; left: -14px; cursor: nesw-resize; }
.tdock.is-left .tdock-size svg { transform: scaleX(-1); }
.tdock .tdock-size:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tdock-probe { position: fixed; left: 0; top: 0; visibility: hidden; pointer-events: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.soft-focus:focus { outline: none; }

/* a page swapped in while the tour plays fades in once its words are in place */
html.soft-fade body > :not(.tdock) { transition: opacity 140ms ease-out; }
html.is-soft body > :not(.tdock) { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .tvid.is-back, .tdock.is-in { animation: none; }
  .tlang, .tlang button, .tv-hold, html.soft-fade body > :not(.tdock), .tc-btn, .tc-btn::after, .tc-rail, .tc-knob, .tc-big, .tour-more, .tdock-size, .tv-box video, .tv-logo { transition: none; }
  .tdock.is-hint .tdock-size::before, .tv-box.is-shake, .tvid.is-playing .tc-cur::before { animation: none; }
}

/* ---- brush marks: paint.js gives each section title a mark (.bm .bm-1 to .bm-6, one brush each: marker, dry brush,
   pencil, highlighter, airbrush, our plates); the mark paints itself in as the title scrolls into view and wipes
   back out when you scroll up. Browsers without scroll timelines paint it once (.bm-io, .bm-in) ---- */
.bm-1 { --bm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 28'%3E%3Cfilter id='r' x='-5%25' y='-40%25' width='110%25' height='180%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3.5'/%3E%3C/filter%3E%3Cpath filter='url(%2523r)' fill='%2343DCFF' d='M4 18C50 9 130 6 200 9S290 13 316 8C314 13 300 18 260 19S140 20 90 21 22 23 4 22Z'/%3E%3C/svg%3E"); }
.bm-2 { --bm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 28'%3E%3Cfilter id='r' x='-5%25' y='-40%25' width='110%25' height='180%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg filter='url(%2523r)' fill='none' stroke='%23FF6F91' stroke-linecap='round'%3E%3Cpath d='M6 12C70 5 150 6 210 9S292 13 314 7' stroke-width='2.2' stroke-dasharray='90 4 50 3 120 6 40'/%3E%3Cpath d='M6 14.2C70 7.2 150 8.2 210 11.2S292 15.2 314 9.2' stroke-width='1.8' stroke-dasharray='40 3 130 5 60 2 70'/%3E%3Cpath d='M6 16.4C70 9.4 150 10.4 210 13.4S292 17.4 314 11.4' stroke-width='2.4' stroke-dasharray='150 6 30 4 90'/%3E%3Cpath d='M6 18.6C70 11.6 150 12.6 210 15.6S292 19.6 314 13.6' stroke-width='1.6' stroke-dasharray='20 5 80 7 60 3 100'/%3E%3Cpath d='M6 20.8C70 13.8 150 14.8 210 17.8S292 21.8 314 15.8' stroke-width='1.4' stroke-dasharray='60 10 40 8 30 12 50'/%3E%3C/g%3E%3C/svg%3E"); }
.bm-3 { --bm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 28'%3E%3Cg fill='none' stroke='%236B4EFF' stroke-linecap='round' stroke-width='1.6'%3E%3Cpath d='M6 15C60 12 120 17 180 13S280 11 312 14'/%3E%3Cpath opacity='.6' d='M14 18C80 15 150 19 210 16S290 15 306 17'/%3E%3Cpath opacity='.45' d='M4 20C40 19 70 21 110 19'/%3E%3C/g%3E%3C/svg%3E"); }
.bm-4 { --bm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 28'%3E%3Cfilter id='r' x='-5%25' y='-40%25' width='110%25' height='180%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' seed='11'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2.5'/%3E%3C/filter%3E%3Cpath filter='url(%2523r)' fill='%2343DCFF' fill-opacity='.38' d='M10 6L318 3 312 25 3 26Z'/%3E%3C/svg%3E"); }
.bm-5 { --bm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 28'%3E%3Ccircle cx='6.0' cy='10.5' r='0.65' fill='%236B4EFF' fill-opacity='0.75'/%3E%3Ccircle cx='7.7' cy='11.8' r='1.14' fill='%236B4EFF' fill-opacity='0.84'/%3E%3Ccircle cx='9.3' cy='14.5' r='0.59' fill='%236B4EFF' fill-opacity='0.41'/%3E%3Ccircle cx='11.0' cy='14.5' r='0.88' fill='%236B4EFF' fill-opacity='0.69'/%3E%3Ccircle cx='12.7' cy='15.2' r='0.76' fill='%236B4EFF' fill-opacity='0.59'/%3E%3Ccircle cx='14.3' cy='17.9' r='0.53' fill='%236B4EFF' fill-opacity='0.38'/%3E%3Ccircle cx='16.0' cy='15.2' r='1.02' fill='%236B4EFF' fill-opacity='0.73'/%3E%3Ccircle cx='17.7' cy='12.9' r='0.76' fill='%236B4EFF' fill-opacity='0.54'/%3E%3Ccircle cx='19.3' cy='16.8' r='1.16' fill='%236B4EFF' fill-opacity='0.76'/%3E%3Ccircle cx='21.0' cy='19.2' r='1.17' fill='%236B4EFF' fill-opacity='0.51'/%3E%3Ccircle cx='22.7' cy='13.3' r='1.28' fill='%236B4EFF' fill-opacity='0.53'/%3E%3Ccircle cx='24.3' cy='15.4' r='1.07' fill='%236B4EFF' fill-opacity='0.83'/%3E%3Ccircle cx='26.0' cy='17.8' r='1.25' fill='%236B4EFF' fill-opacity='0.81'/%3E%3Ccircle cx='27.7' cy='14.4' r='0.71' fill='%236B4EFF' fill-opacity='0.77'/%3E%3Ccircle cx='29.3' cy='16.4' r='1.24' fill='%236B4EFF' fill-opacity='0.78'/%3E%3Ccircle cx='31.0' cy='17.8' r='1.16' fill='%236B4EFF' fill-opacity='0.83'/%3E%3Ccircle cx='32.7' cy='16.1' r='1.40' fill='%236B4EFF' fill-opacity='0.80'/%3E%3Ccircle cx='34.3' cy='14.9' r='0.64' fill='%236B4EFF' fill-opacity='0.59'/%3E%3Ccircle cx='36.0' cy='14.4' r='0.99' fill='%236B4EFF' fill-opacity='0.54'/%3E%3Ccircle cx='37.7' cy='13.2' r='0.68' fill='%236B4EFF' fill-opacity='0.62'/%3E%3Ccircle cx='39.3' cy='13.8' r='1.05' fill='%236B4EFF' fill-opacity='0.67'/%3E%3Ccircle cx='41.0' cy='20.0' r='1.40' fill='%236B4EFF' fill-opacity='0.57'/%3E%3Ccircle cx='42.7' cy='16.1' r='1.34' fill='%236B4EFF' fill-opacity='0.61'/%3E%3Ccircle cx='44.3' cy='18.4' r='1.03' fill='%236B4EFF' fill-opacity='0.58'/%3E%3Ccircle cx='46.0' cy='17.1' r='0.74' fill='%236B4EFF' fill-opacity='0.73'/%3E%3Ccircle cx='47.7' cy='14.6' r='1.00' fill='%236B4EFF' fill-opacity='0.58'/%3E%3Ccircle cx='49.3' cy='20.2' r='1.50' fill='%236B4EFF' fill-opacity='0.58'/%3E%3Ccircle cx='51.0' cy='14.3' r='0.66' fill='%236B4EFF' fill-opacity='0.45'/%3E%3Ccircle cx='52.7' cy='20.0' r='1.23' fill='%236B4EFF' fill-opacity='0.66'/%3E%3Ccircle cx='54.3' cy='17.7' r='1.60' fill='%236B4EFF' fill-opacity='0.85'/%3E%3Ccircle cx='56.0' cy='14.3' r='1.35' fill='%236B4EFF' fill-opacity='0.43'/%3E%3Ccircle cx='57.7' cy='18.5' r='0.86' fill='%236B4EFF' fill-opacity='0.66'/%3E%3Ccircle cx='59.3' cy='19.3' r='1.15' fill='%236B4EFF' fill-opacity='0.56'/%3E%3Ccircle cx='61.0' cy='19.6' r='1.46' fill='%236B4EFF' fill-opacity='0.46'/%3E%3Ccircle cx='62.7' cy='18.4' r='1.20' fill='%236B4EFF' fill-opacity='0.54'/%3E%3Ccircle cx='64.3' cy='14.9' r='0.76' fill='%236B4EFF' fill-opacity='0.50'/%3E%3Ccircle cx='66.0' cy='20.3' r='1.08' fill='%236B4EFF' fill-opacity='0.65'/%3E%3Ccircle cx='67.7' cy='19.7' r='1.68' fill='%236B4EFF' fill-opacity='0.36'/%3E%3Ccircle cx='69.3' cy='18.8' r='1.20' fill='%236B4EFF' fill-opacity='0.57'/%3E%3Ccircle cx='71.0' cy='21.1' r='1.03' fill='%236B4EFF' fill-opacity='0.44'/%3E%3Ccircle cx='72.7' cy='20.4' r='1.08' fill='%236B4EFF' fill-opacity='0.36'/%3E%3Ccircle cx='74.3' cy='19.7' r='0.80' fill='%236B4EFF' fill-opacity='0.54'/%3E%3Ccircle cx='76.0' cy='17.5' r='0.70' fill='%236B4EFF' fill-opacity='0.66'/%3E%3Ccircle cx='77.7' cy='20.7' r='1.74' fill='%236B4EFF' fill-opacity='0.78'/%3E%3Ccircle cx='79.3' cy='16.9' r='0.67' fill='%236B4EFF' fill-opacity='0.59'/%3E%3Ccircle cx='81.0' cy='17.9' r='1.14' fill='%236B4EFF' fill-opacity='0.51'/%3E%3Ccircle cx='82.7' cy='16.4' r='1.29' fill='%236B4EFF' fill-opacity='0.51'/%3E%3Ccircle cx='84.3' cy='18.7' r='0.51' fill='%236B4EFF' fill-opacity='0.52'/%3E%3Ccircle cx='86.0' cy='20.6' r='1.39' fill='%236B4EFF' fill-opacity='0.49'/%3E%3Ccircle cx='87.7' cy='14.9' r='0.86' fill='%236B4EFF' fill-opacity='0.55'/%3E%3Ccircle cx='89.3' cy='15.6' r='1.37' fill='%236B4EFF' fill-opacity='0.42'/%3E%3Ccircle cx='91.0' cy='20.2' r='1.67' fill='%236B4EFF' fill-opacity='0.68'/%3E%3Ccircle cx='92.7' cy='15.3' r='1.67' fill='%236B4EFF' fill-opacity='0.65'/%3E%3Ccircle cx='94.3' cy='15.9' r='0.81' fill='%236B4EFF' fill-opacity='0.49'/%3E%3Ccircle cx='96.0' cy='17.9' r='1.64' fill='%236B4EFF' fill-opacity='0.48'/%3E%3Ccircle cx='97.7' cy='15.1' r='1.66' fill='%236B4EFF' fill-opacity='0.49'/%3E%3Ccircle cx='99.3' cy='18.1' r='1.47' fill='%236B4EFF' fill-opacity='0.44'/%3E%3Ccircle cx='101.0' cy='21.3' r='1.67' fill='%236B4EFF' fill-opacity='0.58'/%3E%3Ccircle cx='102.7' cy='18.8' r='0.91' fill='%236B4EFF' fill-opacity='0.49'/%3E%3Ccircle cx='104.3' cy='15.7' r='0.57' fill='%236B4EFF' fill-opacity='0.40'/%3E%3Ccircle cx='106.0' cy='15.2' r='0.60' fill='%236B4EFF' fill-opacity='0.49'/%3E%3Ccircle cx='107.7' cy='16.9' r='1.75' fill='%236B4EFF' fill-opacity='0.82'/%3E%3Ccircle cx='109.3' cy='14.9' r='0.76' fill='%236B4EFF' fill-opacity='0.48'/%3E%3Ccircle cx='111.0' cy='19.4' r='0.86' fill='%236B4EFF' fill-opacity='0.63'/%3E%3Ccircle cx='112.7' cy='16.9' r='1.03' fill='%236B4EFF' fill-opacity='0.75'/%3E%3Ccircle cx='114.3' cy='15.1' r='1.34' fill='%236B4EFF' fill-opacity='0.70'/%3E%3Ccircle cx='116.0' cy='20.6' r='1.14' fill='%236B4EFF' fill-opacity='0.45'/%3E%3Ccircle cx='117.7' cy='16.1' r='1.84' fill='%236B4EFF' fill-opacity='0.64'/%3E%3Ccircle cx='119.3' cy='18.4' r='1.42' fill='%236B4EFF' fill-opacity='0.77'/%3E%3Ccircle cx='121.0' cy='18.1' r='1.93' fill='%236B4EFF' fill-opacity='0.71'/%3E%3Ccircle cx='122.7' cy='15.0' r='1.88' fill='%236B4EFF' fill-opacity='0.83'/%3E%3Ccircle cx='124.3' cy='17.6' r='1.78' fill='%236B4EFF' fill-opacity='0.57'/%3E%3Ccircle cx='126.0' cy='15.0' r='1.06' fill='%236B4EFF' fill-opacity='0.69'/%3E%3Ccircle cx='127.7' cy='14.7' r='2.04' fill='%236B4EFF' fill-opacity='0.71'/%3E%3Ccircle cx='129.3' cy='14.6' r='1.43' fill='%236B4EFF' fill-opacity='0.56'/%3E%3Ccircle cx='131.0' cy='16.1' r='0.51' fill='%2343DCFF' fill-opacity='0.42'/%3E%3Ccircle cx='132.7' cy='18.7' r='0.90' fill='%2343DCFF' fill-opacity='0.75'/%3E%3Ccircle cx='134.3' cy='13.4' r='1.95' fill='%2343DCFF' fill-opacity='0.48'/%3E%3Ccircle cx='136.0' cy='13.6' r='1.98' fill='%2343DCFF' fill-opacity='0.82'/%3E%3Ccircle cx='137.7' cy='13.2' r='1.88' fill='%2343DCFF' fill-opacity='0.67'/%3E%3Ccircle cx='139.3' cy='19.2' r='2.08' fill='%2343DCFF' fill-opacity='0.45'/%3E%3Ccircle cx='141.0' cy='14.7' r='0.98' fill='%2343DCFF' fill-opacity='0.80'/%3E%3Ccircle cx='142.7' cy='19.4' r='1.14' fill='%2343DCFF' fill-opacity='0.69'/%3E%3Ccircle cx='144.3' cy='16.4' r='0.51' fill='%2343DCFF' fill-opacity='0.35'/%3E%3Ccircle cx='146.0' cy='19.0' r='1.43' fill='%2343DCFF' fill-opacity='0.79'/%3E%3Ccircle cx='147.7' cy='17.6' r='0.74' fill='%2343DCFF' fill-opacity='0.41'/%3E%3Ccircle cx='149.3' cy='18.0' r='1.41' fill='%2343DCFF' fill-opacity='0.54'/%3E%3Ccircle cx='151.0' cy='15.5' r='1.97' fill='%2343DCFF' fill-opacity='0.72'/%3E%3Ccircle cx='152.7' cy='18.0' r='1.66' fill='%2343DCFF' fill-opacity='0.81'/%3E%3Ccircle cx='154.3' cy='18.2' r='1.78' fill='%2343DCFF' fill-opacity='0.60'/%3E%3Ccircle cx='156.0' cy='15.9' r='1.43' fill='%2343DCFF' fill-opacity='0.60'/%3E%3Ccircle cx='157.7' cy='14.8' r='0.91' fill='%2343DCFF' fill-opacity='0.63'/%3E%3Ccircle cx='159.3' cy='18.3' r='0.60' fill='%2343DCFF' fill-opacity='0.75'/%3E%3Ccircle cx='161.0' cy='15.4' r='1.84' fill='%2343DCFF' fill-opacity='0.40'/%3E%3Ccircle cx='162.7' cy='16.4' r='2.03' fill='%2343DCFF' fill-opacity='0.45'/%3E%3Ccircle cx='164.3' cy='14.2' r='0.91' fill='%2343DCFF' fill-opacity='0.64'/%3E%3Ccircle cx='166.0' cy='14.3' r='1.58' fill='%2343DCFF' fill-opacity='0.58'/%3E%3Ccircle cx='167.7' cy='14.2' r='2.14' fill='%2343DCFF' fill-opacity='0.51'/%3E%3Ccircle cx='169.3' cy='12.2' r='2.19' fill='%2343DCFF' fill-opacity='0.84'/%3E%3Ccircle cx='171.0' cy='15.8' r='0.99' fill='%2343DCFF' fill-opacity='0.43'/%3E%3Ccircle cx='172.7' cy='13.0' r='1.95' fill='%2343DCFF' fill-opacity='0.36'/%3E%3Ccircle cx='174.3' cy='15.5' r='1.45' fill='%2343DCFF' fill-opacity='0.54'/%3E%3Ccircle cx='176.0' cy='11.5' r='2.14' fill='%2343DCFF' fill-opacity='0.50'/%3E%3Ccircle cx='177.7' cy='11.5' r='2.14' fill='%2343DCFF' fill-opacity='0.72'/%3E%3Ccircle cx='179.3' cy='16.9' r='1.06' fill='%2343DCFF' fill-opacity='0.83'/%3E%3Ccircle cx='181.0' cy='12.9' r='1.05' fill='%2343DCFF' fill-opacity='0.58'/%3E%3Ccircle cx='182.7' cy='13.1' r='1.93' fill='%2343DCFF' fill-opacity='0.51'/%3E%3Ccircle cx='184.3' cy='10.9' r='1.76' fill='%2343DCFF' fill-opacity='0.77'/%3E%3Ccircle cx='186.0' cy='12.0' r='1.98' fill='%2343DCFF' fill-opacity='0.75'/%3E%3Ccircle cx='187.7' cy='12.4' r='1.80' fill='%2343DCFF' fill-opacity='0.79'/%3E%3Ccircle cx='189.3' cy='12.5' r='1.16' fill='%2343DCFF' fill-opacity='0.62'/%3E%3Ccircle cx='191.0' cy='10.7' r='1.06' fill='%2343DCFF' fill-opacity='0.60'/%3E%3Ccircle cx='192.7' cy='13.4' r='1.90' fill='%2343DCFF' fill-opacity='0.51'/%3E%3Ccircle cx='194.3' cy='12.0' r='0.59' fill='%2343DCFF' fill-opacity='0.39'/%3E%3Ccircle cx='196.0' cy='13.9' r='1.62' fill='%2343DCFF' fill-opacity='0.59'/%3E%3Ccircle cx='197.7' cy='13.1' r='0.80' fill='%2343DCFF' fill-opacity='0.58'/%3E%3Ccircle cx='199.3' cy='15.2' r='0.79' fill='%2343DCFF' fill-opacity='0.68'/%3E%3Ccircle cx='201.0' cy='15.4' r='1.76' fill='%2343DCFF' fill-opacity='0.58'/%3E%3Ccircle cx='202.7' cy='14.9' r='1.23' fill='%2343DCFF' fill-opacity='0.37'/%3E%3Ccircle cx='204.3' cy='10.6' r='2.31' fill='%2343DCFF' fill-opacity='0.70'/%3E%3Ccircle cx='206.0' cy='12.5' r='0.78' fill='%2343DCFF' fill-opacity='0.58'/%3E%3Ccircle cx='207.7' cy='14.2' r='2.41' fill='%2343DCFF' fill-opacity='0.48'/%3E%3Ccircle cx='209.3' cy='12.1' r='2.04' fill='%2343DCFF' fill-opacity='0.46'/%3E%3Ccircle cx='211.0' cy='13.1' r='1.02' fill='%2343DCFF' fill-opacity='0.40'/%3E%3Ccircle cx='212.7' cy='11.7' r='0.92' fill='%2343DCFF' fill-opacity='0.57'/%3E%3Ccircle cx='214.3' cy='11.7' r='1.29' fill='%2343DCFF' fill-opacity='0.81'/%3E%3Ccircle cx='216.0' cy='11.0' r='2.14' fill='%2343DCFF' fill-opacity='0.81'/%3E%3Ccircle cx='217.7' cy='11.1' r='1.61' fill='%2343DCFF' fill-opacity='0.74'/%3E%3Ccircle cx='219.3' cy='12.5' r='0.58' fill='%2343DCFF' fill-opacity='0.58'/%3E%3Ccircle cx='221.0' cy='13.4' r='1.52' fill='%2343DCFF' fill-opacity='0.41'/%3E%3Ccircle cx='222.7' cy='9.9' r='2.07' fill='%2343DCFF' fill-opacity='0.81'/%3E%3Ccircle cx='224.3' cy='9.9' r='1.08' fill='%2343DCFF' fill-opacity='0.68'/%3E%3Ccircle cx='226.0' cy='12.7' r='2.48' fill='%2343DCFF' fill-opacity='0.60'/%3E%3Ccircle cx='227.7' cy='14.3' r='1.55' fill='%2343DCFF' fill-opacity='0.67'/%3E%3Ccircle cx='229.3' cy='14.2' r='1.36' fill='%2343DCFF' fill-opacity='0.77'/%3E%3Ccircle cx='231.0' cy='12.2' r='1.27' fill='%2343DCFF' fill-opacity='0.52'/%3E%3Ccircle cx='232.7' cy='10.4' r='2.28' fill='%2343DCFF' fill-opacity='0.39'/%3E%3Ccircle cx='234.3' cy='14.2' r='2.06' fill='%2343DCFF' fill-opacity='0.84'/%3E%3Ccircle cx='236.0' cy='14.4' r='1.63' fill='%2343DCFF' fill-opacity='0.67'/%3E%3Ccircle cx='237.7' cy='11.7' r='1.67' fill='%2343DCFF' fill-opacity='0.69'/%3E%3Ccircle cx='239.3' cy='11.8' r='1.19' fill='%2343DCFF' fill-opacity='0.41'/%3E%3Ccircle cx='241.0' cy='12.9' r='0.54' fill='%2343DCFF' fill-opacity='0.53'/%3E%3Ccircle cx='242.7' cy='12.3' r='1.66' fill='%2343DCFF' fill-opacity='0.48'/%3E%3Ccircle cx='244.3' cy='10.6' r='0.80' fill='%2343DCFF' fill-opacity='0.84'/%3E%3Ccircle cx='246.0' cy='12.1' r='2.56' fill='%2343DCFF' fill-opacity='0.79'/%3E%3Ccircle cx='247.7' cy='9.8' r='2.16' fill='%2343DCFF' fill-opacity='0.48'/%3E%3Ccircle cx='249.3' cy='11.6' r='1.46' fill='%2343DCFF' fill-opacity='0.44'/%3E%3Ccircle cx='251.0' cy='12.7' r='0.77' fill='%2343DCFF' fill-opacity='0.76'/%3E%3Ccircle cx='252.7' cy='11.3' r='0.74' fill='%2343DCFF' fill-opacity='0.73'/%3E%3Ccircle cx='254.3' cy='13.0' r='0.89' fill='%2343DCFF' fill-opacity='0.61'/%3E%3Ccircle cx='276' cy='15' r='5' fill='%23FF6F91'/%3E%3Ccircle cx='293' cy='15' r='5' fill='%236B4EFF'/%3E%3Ccircle cx='310' cy='15' r='5' fill='%2343DCFF'/%3E%3C/svg%3E"); }
.bm-6 { --bm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 28'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M6 20C70 13 150 14 210 17S292 21 314 15' stroke='%236B4EFF' stroke-width='5'/%3E%3Cpath d='M6 18C70 11 150 12 210 15S292 19 314 13' stroke='%23FF6F91' stroke-width='5'/%3E%3Cpath d='M6 16C70 9 150 10 210 13S292 17 314 11' stroke='%2343DCFF' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E"); }
.bm { view-timeline: --bm block; }
/* in a picked look the brush paints in its colours: the mark becomes the mask of a look gradient */
:root[data-tint]:not([data-tint="original"]) .bm::after { background: linear-gradient(90deg, var(--cyan), var(--coral) 70%, var(--violet)); -webkit-mask: var(--bm) no-repeat 0 0 / 100% 100%; mask: var(--bm) no-repeat 0 0 / 100% 100%; }
.bm::after {
  content: ""; display: block; width: clamp(150px, 62%, 360px); aspect-ratio: 320 / 28; margin-top: 0.14em;
  background: var(--bm) no-repeat 0 0 / 100% 100%; clip-path: inset(-20% 100% -20% 0); pointer-events: none;
}
.bm-4::after { margin-top: -0.62em; margin-bottom: 0.48em; position: relative; z-index: -1; width: clamp(150px, 72%, 420px); }
.bm-6::after { width: clamp(150px, 55%, 320px); }
@supports (animation-timeline: view()) {
  .bm::after { animation: bm-draw linear both; animation-timeline: --bm; animation-range: entry 0% entry 100%; }
}
@keyframes bm-draw { to { clip-path: inset(-20% 0 -20% 0); } }
.bm-io::after { transition: clip-path 0.42s cubic-bezier(0.65, 0, 0.35, 1) 0.15s; }
.bm-io.bm-in::after { clip-path: inset(-20% 0 -20% 0); }
@media (prefers-reduced-motion: reduce) { .bm::after { animation: none; clip-path: none; } }

/* doodles in the wide margins beside a section: big loose strokes that draw themselves while the section scrolls by */
.has-doodle { position: relative; isolation: isolate; }
.doodle { display: none; }
@media (min-width: 1360px) {
  .doodle {
    display: block; position: absolute; z-index: -1; top: clamp(24px, 6vw, 96px); width: 170px; height: 170px; overflow: visible;
    pointer-events: none; opacity: 0.6; view-timeline: --dd block;
  }
  .doodle.is-r { right: max(12px, calc((100vw - 1120px) / 2 - 220px)); }
  .doodle.is-l { left: max(12px, calc((100vw - 1120px) / 2 - 220px)); }
  .doodle path, .doodle circle { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .doodle path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  @supports (animation-timeline: view()) {
    .doodle path { animation: dd-draw linear both; animation-timeline: --dd; animation-range: entry 0% cover 35%; }
    .doodle circle { animation: dd-dot linear both; animation-timeline: --dd; animation-range: cover 25% cover 35%; }
  }
  .doodle.dd-io path { transition: stroke-dashoffset 1.12s cubic-bezier(0.65, 0, 0.35, 1); }
  .doodle.dd-io.dd-in path { stroke-dashoffset: 0; }
}
@keyframes dd-draw { to { stroke-dashoffset: 0; } }
@keyframes dd-dot { from { opacity: 0; transform: scale(0); } }
.doodle circle { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .doodle path { animation: none; stroke-dashoffset: 0; } .doodle circle { animation: none; } }

/* the footer: a painted swash along its top edge that sweeps across as it arrives, and a soft dot pattern */
.foot { position: relative; isolation: isolate; view-timeline: --foot block; }
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 34px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 40'%3E%3Cfilter id='r' x='-5%25' y='-40%25' width='110%25' height='180%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='2' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='4'/%3E%3C/filter%3E%3Cg filter='url(%2523r)' fill='none' stroke-linecap='round'%3E%3Cpath d='M-10 27C300 12 600 34 900 22S1400 10 1610 24' stroke='%236B4EFF' stroke-width='9'/%3E%3Cpath d='M-10 22C300 7 600 29 900 17S1400 5 1610 19' stroke='%23FF6F91' stroke-width='7'/%3E%3Cpath d='M-10 17C300 2 600 24 900 12S1400 0 1610 14' stroke='%2343DCFF' stroke-width='8'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%; clip-path: inset(-30% 0 -30% 0);
}
.foot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background: radial-gradient(circle, color-mix(in srgb, var(--violet) 35%, transparent) 1.1px, transparent 1.6px) 0 0 / 14px 14px;
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%); mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
}
@supports (animation-timeline: view()) {
  .foot::before { animation: foot-sweep linear both; animation-timeline: --foot; animation-range: entry 0% entry 80%; }
}
@keyframes foot-sweep { from { clip-path: inset(-30% 100% -30% 0); } }
.foot-promise::before {
  content: ""; display: inline-block; width: 33px; height: 9px; margin-right: 10px; vertical-align: 0.05em;
  background: radial-gradient(circle at 4.5px 50%, var(--coral) 4px, transparent 4.5px), radial-gradient(circle at 16.5px 50%, var(--violet) 4px, transparent 4.5px), radial-gradient(circle at 28.5px 50%, var(--cyan) 4px, transparent 4.5px);
}
@media (prefers-reduced-motion: reduce) { .foot::before { animation: none; } }

/* the drawing banner (paint.js) behind each page head; it fades out under the title so the words stay clear */
.has-paint { position: relative; isolation: isolate; overflow: hidden; }
.page-head.has-paint { padding-bottom: 40px; }
.paint-fx {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 0.2) 0%, rgb(0 0 0 / 0.35) 38%, #000 62%); mask-image: linear-gradient(90deg, rgb(0 0 0 / 0.2) 0%, rgb(0 0 0 / 0.35) 38%, #000 62%);
}
@media (max-width: 899px) { .paint-fx { opacity: 0.45; -webkit-mask-image: none; mask-image: none; } }

/* about: each section rises in softly, its parts one after another */
[data-fx="soft"].fx-on .wrap > * { opacity: 0; transform: translateY(22px); transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1); }
[data-fx="soft"].fx-on .wrap > :nth-child(2) { transition-delay: 0.08s; }
[data-fx="soft"].fx-on .wrap > :nth-child(3) { transition-delay: 0.16s; }
[data-fx="soft"].fx-on .wrap > :nth-child(n+4) { transition-delay: 0.24s; }
[data-fx="soft"].is-in .wrap > * { opacity: 1; transform: none; }

/* ---- learn: the six tiers light up as they scroll by (learn.js adds .is-live, .is-on, .is-now and --fill) ---- */
.lr-path-lead { margin-top: 14px; }
/* the filled line sits behind the numbers (they have the page colour as their ground) */
.lr-path.is-live { isolation: isolate; }
.lr-path.is-live::before { z-index: -2; }
.lr-path.is-live::after {
  content: ""; position: absolute; z-index: -1; left: 26px; top: var(--line-top, 36px); height: var(--fill-h, 0px); width: 4px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(var(--cyan), var(--violet) 60%, var(--coral)); box-shadow: 0 0 14px color-mix(in srgb, var(--cyan) 55%, transparent);
  transition: height 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.lr-path.is-live .lr-num { background: var(--bg); }
.lr-path.is-live .lr-stop { opacity: 0.42; transition: opacity 0.24s ease; }
.lr-path.is-live .lr-stop.is-on { opacity: 1; }
.lr-path.is-live .lr-link { transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
.lr-path.is-live .lr-num { transition: background-color 0.21s ease, color 0.21s ease, border-color 0.21s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.21s ease; }
.lr-path.is-live .lr-stop.is-on .lr-num { border-color: var(--cyan); }
.lr-path.is-live .lr-stop.is-now .lr-link { transform: translateX(8px); }
.lr-path.is-live .lr-stop.is-now .lr-num { background: var(--cyan); color: var(--on-cyan); transform: scale(1.12); box-shadow: 3px 3px 0 var(--coral), 6px 6px 0 var(--violet); }
.lr-path.is-live .lr-stop.is-now .lr-name { color: var(--ink); }
.lr-tier-badge {
  position: absolute; z-index: 2; top: -18px; right: -18px; display: grid; justify-items: center; align-content: center; width: 96px; height: 96px;
  border-radius: 50%; background: var(--cyan); color: var(--on-cyan); box-shadow: 3px 3px 0 var(--coral), 6px 6px 0 var(--violet); line-height: 1;
}
.lr-shot { overflow: visible; }
.lr-tier-badge b { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; }
.lr-tb-word, .lr-tb-of { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; }
.lr-tier-badge.is-tick b { animation: tier-tick 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes tier-tick { from { transform: translateY(10px) scale(0.6); opacity: 0; } }

/* learn: "Start it in Unity" steps and the tool list come in as they reach the screen */
.lr-unity.fx-on .sk-steps > li { opacity: 0; transform: translateX(-26px); transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1); }
.lr-unity.fx-on .sk-steps > li:nth-child(1) { transition-delay: 0.1s; }
.lr-unity.fx-on .sk-steps > li:nth-child(2) { transition-delay: 0.18s; }
.lr-unity.fx-on .sk-steps > li:nth-child(3) { transition-delay: 0.28s; }
.lr-unity.is-in .sk-steps > li { opacity: 1; transform: none; }
.lr-unity.is-in .sk-steps .path { animation: path-glow 0.84s ease-out 0.49s both; }
@keyframes path-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 80%, transparent); } 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--cyan) 0%, transparent); } }
.lr-unity.fx-on .community--help { opacity: 0; transform: translateY(30px) rotate(-1deg); transition: opacity 0.28s ease 0.39s, transform 0.49s cubic-bezier(0.16, 1, 0.3, 1) 0.39s; }
.lr-unity.is-in .community--help { opacity: 1; transform: none; }
.lr-tools-sec.fx-on .lr-tools li { opacity: 0; transform: translateY(18px); transition: opacity 0.24s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.lr-tools-sec.is-in .lr-tools li { opacity: 1; transform: none; }
.lr-tools-sec.fx-on .lr-tools li:nth-child(2) { transition-delay: 0.06s; }
.lr-tools-sec.fx-on .lr-tools li:nth-child(3) { transition-delay: 0.12s; }
.lr-tools-sec.fx-on .lr-tools li:nth-child(4) { transition-delay: 0.18s; }
.lr-tools-sec.fx-on .lr-tools li:nth-child(5) { transition-delay: 0.24s; }
.lr-tools-sec.fx-on .lr-tools li:nth-child(6) { transition-delay: 0.21s; }
.lr-tools-sec.fx-on .lr-tools li:nth-child(7) { transition-delay: 0.25s; }
/* each tool gets one of our dots; hovering slides the row and paints a stroke under the name */
.lr-tool { position: relative; display: inline-flex; align-items: center; gap: 12px; }
.lr-tool::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); transition: transform 0.21s cubic-bezier(0.34, 1.56, 0.64, 1); }
.lr-tools li:nth-child(3n+2) .lr-tool::before { background: var(--violet); }
.lr-tools li:nth-child(3n) .lr-tool::before { background: var(--cyan); }
.lr-tools a { transition: transform 0.21s cubic-bezier(0.16, 1, 0.3, 1); }
.lr-tool::after { content: ""; position: absolute; left: 22px; right: 0; bottom: -4px; height: 3px; border-radius: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) {
  .lr-tools a:hover { transform: translateX(8px); }
  .lr-tools a:hover .lr-tool::before { transform: scale(1.5); }
  .lr-tools a:hover .lr-tool::after { transform: none; }
}

/* the help block: our plates, and someone typing */
.community--help { margin-top: 48px; border-color: var(--line-strong); box-shadow: 4px 4px 0 var(--coral), 8px 8px 0 var(--violet); background: var(--surface); }
.help-typing { display: inline-flex; gap: 5px; margin-top: 12px; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); }
.help-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: tm-hop 1.2s ease-in-out infinite; }
.help-typing i:nth-child(2) { background: var(--violet); animation-delay: 0.15s; }
.help-typing i:nth-child(3) { background: var(--cyan); animation-delay: 0.21s; }

/* ---- footer: the painted name and the drawing canvas (paint.js) ---- */
.foot.has-paint { overflow: visible; }
.foot .paint-fx { opacity: 0.35; }
@media (max-width: 899px) { .foot .paint-fx { display: none; } }
.foot-in { position: relative; z-index: 1; }
.foot-mark {
  order: -1; width: fit-content; margin: 0 0 -0.16em; padding: 0.04em 0.06em 0.2em 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(3.6rem, 19vw, 6rem); line-height: 0.9; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); user-select: none; pointer-events: none; white-space: nowrap;
  background: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--coral)) no-repeat 0 0 / 0% 100%; -webkit-background-clip: text; background-clip: text;
  view-timeline: --mark block;
}

@supports (animation-timeline: view()) {
  .foot-mark { animation: mark-paint linear both; animation-timeline: --mark; animation-range: entry 0% entry 100%; }
}
@supports not (animation-timeline: view()) { .foot-mark.is-in { background-size: 100% 100%; transition: background-size 0.98s cubic-bezier(0.65, 0, 0.35, 1); } }
@keyframes mark-paint { to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .foot-mark { animation: none; background-size: 100% 100%; } .help-typing i { animation: none; } }
/* wide screens: the name and the promise on the left, the links on the right, the switches and the fine print in a
   bar along the bottom */
@media (min-width: 900px) {
  .foot { padding: 40px 0 32px; }
  .foot-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 64px; row-gap: 8px;
    grid-template-areas: "mark cols" "promise cols" "tools tools" "s1 s2";
  }
  .foot-mark { grid-area: mark; align-self: end; font-size: clamp(4.5rem, 8.5vw, 7.5rem); }
  .foot-promise { grid-area: promise; align-self: start; }
  .foot-cols { grid-area: cols; align-self: center; grid-template-columns: 2fr 1fr; }
  .foot-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 16px; }
  .foot-links a { min-height: 36px; }
  .foot .tools { grid-area: tools; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
  .foot-small { margin: 0; }
  .tools + .foot-small { grid-area: s1; }
  .foot-small + .foot-small { grid-area: s2; text-align: right; justify-self: end; }
}

/* ---- gallery close-ups: full width, the picture switching sides, text beside it ---- */
.cu-band { padding-bottom: clamp(48px, 8vh, 96px); }
.cu-rail { display: grid; gap: clamp(56px, 12vh, 140px); margin-top: clamp(32px, 6vh, 64px); }
.cu-row { margin: 0; display: grid; align-items: center; }
.cu-media .cmp-view { border-radius: 0; max-height: 86svh; box-shadow: 0 30px 80px -40px rgb(0 0 0 / 0.8); }
.cu-text { padding: 24px var(--gutter) 0; display: grid; gap: 14px; align-content: center; max-width: 40rem; }
.cu-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.01em; }
.cu-kick { margin: 0; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; color: var(--ink); }
.cu-legend { margin: 0; color: var(--ink-2); line-height: 1.55; }
.cu-meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--ink-2); font-size: 0.9375rem; }
.cu-hint::before { content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--cyan); border-radius: 2px; box-shadow: 0 0 10px var(--cyan); }
.cu-row:has(.cmp.is-single) .cu-hint { display: none; }
@media (min-width: 900px) {
  .cu-row { grid-template-columns: minmax(0, 63fr) minmax(0, 37fr); }
  .cu-text { padding: 0 clamp(32px, 5vw, 96px); }
  .cu-row:nth-child(even) .cu-media { order: 2; }
  .cu-row:nth-child(odd) .cu-media .cmp-view { border-radius: 0 28px 28px 0; }
  .cu-row:nth-child(even) .cu-media .cmp-view { border-radius: 28px 0 0 28px; }
  .cu-row:nth-child(even) .cu-text { justify-self: end; }
}
/* the reveal: the picture wipes in from its own edge, the words follow from the other side */
.cu-rail.cu-anim .cu-media { position: relative; opacity: 0; transform: translateX(var(--fx, -8vw)); clip-path: inset(0 100% 0 0); transition: opacity 0.21s ease, transform 0.53s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.42s cubic-bezier(0.77, 0, 0.18, 1); }
.cu-rail.cu-anim .cu-media .cmp-view img { transform: scale(1.14); transition: transform 0.84s cubic-bezier(0.16, 1, 0.3, 1); }
.cu-rail.cu-anim .cu-row.is-in .cu-media .cmp-view img { transform: none; }
/* a bright edge rides the wipe across the picture */
.cu-rail.cu-anim .cu-media::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; z-index: 3; pointer-events: none; opacity: 0;
  background: #fff; box-shadow: 0 0 18px 4px var(--cyan), 0 0 60px 12px rgb(0 220 255 / 0.45); }
.cu-rail.cu-anim .cu-row.is-in .cu-media::after { animation: cu-streak 0.42s cubic-bezier(0.77, 0, 0.18, 1) both; }
.cu-rail.cu-anim .cu-row:nth-child(even).is-in .cu-media::after { animation-name: cu-streak-back; }
@keyframes cu-streak { 0% { left: 0; opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 3px); opacity: 0; } }
@keyframes cu-streak-back { 0% { left: calc(100% - 3px); opacity: 1; } 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.cu-rail.cu-anim .cu-row:nth-child(even) .cu-media { --fx: 8vw; clip-path: inset(0 0 0 100%); }
.cu-rail.cu-anim .cu-text > * { opacity: 0; transform: translate(var(--tx, 3vw), 14px); transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease; }
/* the title lands big and blurred, then snaps into focus */
.cu-rail.cu-anim .cu-text > .cu-title { transform: scale(1.35); transform-origin: left center; filter: blur(10px); }
.cu-rail.cu-anim .cu-row:nth-child(even) .cu-text > .cu-title { transform-origin: right center; }
.cu-rail.cu-anim .cu-row:nth-child(even) .cu-text > * { --tx: -3vw; }
.cu-rail.cu-anim .cu-text > :nth-child(1) { transition-delay: 0.12s; }
.cu-rail.cu-anim .cu-text > :nth-child(2) { transition-delay: 0.2s; }
.cu-rail.cu-anim .cu-text > :nth-child(3) { transition-delay: 0.18s; }
.cu-rail.cu-anim .cu-text > :nth-child(4) { transition-delay: 0.22s; }
.cu-rail.cu-anim .cu-row.is-in .cu-media { opacity: 1; transform: none; clip-path: inset(-40px -40px -120px -40px); }
.cu-rail.cu-anim .cu-row.is-in .cu-text > * { opacity: 1; transform: none; filter: none; }
.cu-row.is-sweeping .cmp-seam { filter: drop-shadow(0 0 14px var(--cyan)); }

/* ---- home: sections that come in as they reach the screen (app.js adds .fx-on, then .is-in) ---- */
/* the wings wipe in like the close-ups: the picture from the left behind a bright edge, then the seam sweeps once */
.wings.fx-on h2 { opacity: 0; transform: scale(1.3); transform-origin: left center; filter: blur(10px); transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease; }
.wings.fx-on .cmp-plate { opacity: 0; transform: translateX(-6vw); clip-path: inset(0 100% 0 0); transition: opacity 0.21s ease, transform 0.53s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.42s cubic-bezier(0.77, 0, 0.18, 1) 0.1s; }
.wings.fx-on .cmp-view img { transform: scale(1.14); transition: transform 0.84s cubic-bezier(0.16, 1, 0.3, 1) 0.1s; }
.wings.fx-on .cmp-plate::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; z-index: 3; pointer-events: none; opacity: 0;
  background: #fff; box-shadow: 0 0 18px 4px var(--cyan), 0 0 60px 12px rgb(0 220 255 / 0.45); }
.wings.fx-on .wings-more > * { opacity: 0; transform: translateY(16px); transition: opacity 0.28s ease 0.39s, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.39s; }
.wings.fx-on .thumbs li { opacity: 0; transform: translateY(18px) rotate(-3deg); transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1); }
.wings.fx-on .thumbs li:nth-child(1) { transition-delay: 0.42s; }
.wings.fx-on .thumbs li:nth-child(2) { transition-delay: 0.49s; }
.wings.fx-on .thumbs li:nth-child(3) { transition-delay: 0.56s; }
.wings.is-in h2, .wings.is-in .cmp-plate, .wings.is-in .cmp-view img, .wings.is-in .wings-more > *, .wings.is-in .thumbs li { opacity: 1; transform: none; filter: none; }
.wings.is-in .cmp-plate { clip-path: inset(0 0 0 0); }
.wings.is-in .cmp-plate::after { animation: cu-streak 0.42s cubic-bezier(0.77, 0, 0.18, 1) 0.1s both; }
.wings.is-sweeping .cmp-seam { filter: drop-shadow(0 0 14px var(--cyan)); }

/* safe by design: the three promises slide in with their icons popping, then the save writes its new files one by one
   next to the original, which stays */
#safe.fx-on h2 { opacity: 0; transform: translateY(18px); transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1); }
#safe.fx-on .facts li { opacity: 0; transform: translateX(-28px); transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1); }
#safe.fx-on .facts .ic { transform: scale(0) rotate(-40deg); transition: transform 0.39s cubic-bezier(0.34, 1.56, 0.64, 1); }
#safe.fx-on .facts li:nth-child(1), #safe.fx-on .facts li:nth-child(1) .ic { transition-delay: 0.12s; }
#safe.fx-on .facts li:nth-child(2), #safe.fx-on .facts li:nth-child(2) .ic { transition-delay: 0.24s; }
#safe.fx-on .facts li:nth-child(3), #safe.fx-on .facts li:nth-child(3) .ic { transition-delay: 0.25s; }
#safe.fx-on .safe-plate { opacity: 0; transform: translateY(32px) rotate(1.5deg); transition: opacity 0.28s ease 0.2s, transform 0.49s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; }
#safe.fx-on .fwin-new li { opacity: 0; transform: translateX(28px); transition: opacity 0.24s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
#safe.fx-on .fwin-new li:nth-child(1) { transition-delay: 0.53s; }
#safe.fx-on .fwin-new li:nth-child(2) { transition-delay: 0.67s; }
#safe.fx-on .fwin-new li:nth-child(3) { transition-delay: 0.81s; }
#safe.is-in h2, #safe.is-in .facts li, #safe.is-in .facts .ic, #safe.is-in .safe-plate, #safe.is-in .fwin-new li { opacity: 1; transform: none; }
#safe.is-in .fwin-new code { animation: save-ping 0.63s ease-out both; }
#safe.is-in .fwin-new li:nth-child(1) code { animation-delay: 0.56s; }
#safe.is-in .fwin-new li:nth-child(2) code { animation-delay: 0.7s; }
#safe.is-in .fwin-new li:nth-child(3) code { animation-delay: 0.84s; }
@keyframes save-ping { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 70%, transparent); } to { box-shadow: 0 0 0 10px color-mix(in srgb, var(--cyan) 0%, transparent); } }
#safe.is-in .fmark i { animation: keep-pulse 0.98s ease-out 0.35s 2; }
@keyframes keep-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--violet) 70%, transparent); } 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--violet) 0%, transparent); } }

/* "Your avatar. Your colours.": a marker stroke paints itself under the words in three layers, then our dots land */
.inst-head { position: relative; width: fit-content; padding-bottom: 26px; }
.inst-stroke { position: absolute; left: -4px; right: -4px; bottom: 0; width: calc(100% + 8px); height: 30px; overflow: visible; pointer-events: none; }
.inst-stroke path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.inst-stroke .s1 { stroke: var(--cyan); stroke-width: 8; }
.inst-stroke .s2 { stroke: var(--violet); stroke-width: 6; }
.inst-stroke .s3 { stroke: var(--coral); stroke-width: 4; }
.inst-dots { position: absolute; right: -40px; bottom: 6px; display: flex; gap: 5px; }
.inst-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.inst-dots i:nth-child(2) { background: var(--violet); }
.inst-dots i:nth-child(3) { background: var(--cyan); }
.install.fx-on .inst-stroke path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.install.is-in .inst-stroke path { animation: inst-draw 0.63s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.install.is-in .inst-stroke .s1 { animation-delay: 0.15s; }
.install.is-in .inst-stroke .s2 { animation-delay: 0.21s; }
.install.is-in .inst-stroke .s3 { animation-delay: 0.32s; }
@keyframes inst-draw { to { stroke-dashoffset: 0; } }
.install.fx-on .inst-dots i { transform: scale(0); }
.install.is-in .inst-dots i { animation: inst-dot 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, tm-hop 1.05s ease-in-out 1.54s 3; }
.install.is-in .inst-dots i:nth-child(1) { animation-delay: 0.77s, 1.54s; }
.install.is-in .inst-dots i:nth-child(2) { animation-delay: 0.85s, 1.65s; }
.install.is-in .inst-dots i:nth-child(3) { animation-delay: 0.94s, 1.75s; }
@keyframes inst-dot { from { transform: scale(0) translateY(-14px); } to { transform: none; } }
.install.fx-on .inst-card { opacity: 0; transform: translateY(26px); transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1); }
.install.fx-on .inst-card:nth-child(1) { transition-delay: 0.35s; }
.install.fx-on .inst-card:nth-child(2) { transition-delay: 0.43s; }
.install.is-in .inst-card { opacity: 1; transform: none; }
@media (max-width: 639px) { .inst-dots { right: 0; bottom: -10px; } }

/* ---- gallery "in any world": one held stage, the light changes as you scroll ---- */
.lw-band { padding: 0; background: #0C0A12; }
.lw-stage { position: relative; overflow: hidden; background: #0C0A12; }
.lw[data-pin] .lw-stage { position: sticky; top: var(--pin-top, 120px); height: var(--stage-h, 80svh); }
.lw[data-pin] .lw-shot { position: absolute; inset: 0; }
.lw[data-pin] .lw-shot picture { opacity: var(--o, 0); }
.lw-shot { margin: 0; }
.lw-shot picture, .lw-shot img { display: block; width: 100%; height: 100%; }
.lw-shot img { object-fit: cover; object-position: 50% 0; transform-origin: 50% 0; transform: scale(var(--z, 1.04)); will-change: transform; }
.lw[data-pin] .lw-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 60% 80% at 68% 45%, rgb(255 255 255 / 0.55), rgb(0 220 255 / 0.18) 45%, transparent 75%); opacity: var(--flash, 0); }
.lw[data-pin] .lw-name { display: inline-block; transform-origin: left bottom; transform: scale(calc(1 + (1 - var(--c, 0)) * 0.3)); filter: blur(calc((1 - var(--c, 0)) * 12px)); }
.lw[data-pin] .lw-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgb(12 10 18 / 0.82) 0%, rgb(12 10 18 / 0.5) 34%, rgb(12 10 18 / 0) 62%), linear-gradient(0deg, rgb(12 10 18 / 0.6) 0%, rgb(12 10 18 / 0) 30%); }
.lw-copy { z-index: 2; color: #F3F1F6; }
.lw[data-pin] .lw-copy { position: absolute; left: 0; right: 0; top: clamp(24px, 7vh, 72px); }
.lw-copy h2 { margin: 0 0 14px; color: #fff; }
.lw-lead { margin: 0; max-width: 30rem; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5; color: #E7E3F0; }
.lw-note { margin: 18px 0 0; max-width: 30rem; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 0.875rem; color: #BAB3CC; }
.lw-note .staged-tag { position: static; }
.lw-dots { list-style: none; display: flex; gap: 8px; margin: 22px 0 0; padding: 0; }
.lw-dots li { width: 28px; height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.25); transition: background 0.21s, width 0.21s; }
.lw-dots li.is-on { width: 48px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.lw-cap { z-index: 2; display: grid; gap: 4px; color: #fff; }
.lw[data-pin] .lw-cap { position: absolute; bottom: clamp(28px, 8vh, 80px);
  left: calc((100% - min(100%, calc(var(--wmax, 1120px) + 2 * var(--gutter)))) / 2 + var(--gutter)); opacity: var(--c, 0); transform: translateY(calc((1 - var(--c, 0)) * 16px)); }
.lw-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.25rem, 5.5vw, 4.5rem); line-height: 1; text-shadow: 0 4px 30px rgb(0 0 0 / 0.5); }
.lw-line { font-size: clamp(1rem, 1.4vw, 1.25rem); color: #E7E3F0; text-shadow: 0 2px 12px rgb(0 0 0 / 0.6); }
/* no pin (reduced motion or no script): the words first, then the three pictures one under another */
.lw:not([data-pin]) .lw-stage { display: flex; flex-direction: column; gap: 16px; padding-bottom: 48px; background: none; }
.lw:not([data-pin]) .lw-copy { order: -1; padding-top: 64px; padding-bottom: 8px; color: var(--ink); }
.lw:not([data-pin]) .lw-copy h2 { color: inherit; }
.lw:not([data-pin]) .lw-lead, .lw:not([data-pin]) .lw-note { color: var(--ink-2); }
.lw:not([data-pin]) .lw-dots { display: none; }
.lw:not([data-pin]) .lw-shot { position: relative; aspect-ratio: 16 / 9; }
.lw:not([data-pin]) .lw-cap { position: absolute; left: 20px; bottom: 18px; }
.lw:not([data-pin]) .lw-shot img { transform: none; }
.lw:not([data-pin]) .lw-shot::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgb(12 10 18 / 0.85), rgb(12 10 18 / 0)); }
@media (max-width: 899px) {
  .lw[data-pin] .lw-stage::after { background: linear-gradient(180deg, rgb(12 10 18 / 0.85) 0%, rgb(12 10 18 / 0.35) 45%, rgb(12 10 18 / 0) 60%, rgb(12 10 18 / 0.7) 100%); }
  .lw[data-pin] .lw-note { margin-top: 12px; }
  /* on a tall screen the words get the top and the avatar the lower part, so the text never covers the face */
  .lw[data-pin] .lw-shot picture { position: absolute; left: 0; right: 0; bottom: 0; top: max(var(--copy-b, 38%), 30%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%); mask-image: linear-gradient(180deg, transparent, #000 16%); }
  .lw[data-pin] .lw-shot img { object-position: 68% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cu-rail.cu-anim .cu-media, .cu-rail.cu-anim .cu-text > *, .cu-rail.cu-anim .cu-media .cmp-view img { transition: none; }
  .cu-rail.cu-anim .cu-media::after { display: none; }
}

/* learn page: the six tiers as one path */
.lr-path { list-style: none; margin: 40px 0 0; padding: 0; position: relative; max-width: 780px; }
.lr-path::before { content: ""; position: absolute; left: 27px; top: 36px; bottom: 36px; width: 2px; background: linear-gradient(var(--hl), var(--cyan)); opacity: 0.55; }
.lr-stop + .lr-stop { margin-top: 4px; }
.lr-link { display: flex; gap: 22px; align-items: flex-start; padding: 14px 12px 14px 0; border-radius: 16px; color: inherit; text-decoration: none; }
.lr-num { position: relative; z-index: 1; flex: 0 0 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); font-size: 1.625rem; transition: border-color 0.2s ease, transform 0.2s ease; }
.lr-link:hover .lr-num, .lr-link:focus-visible .lr-num { border-color: var(--hl); transform: scale(1.06); }
.lr-text { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; min-width: 0; }
.lr-name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.lr-link:hover .lr-name, .lr-link:focus-visible .lr-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--hl); }
.lr-blurb { color: var(--ink-2); max-width: 60ch; }
.lr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.lr-count { font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lr-medal { margin-top: 0; }
.lr-unity { padding-top: 0; }
.lr-shot { display: none; }
@media (min-width: 960px) {
  .lr-path-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
  .lr-shot { display: block; position: sticky; top: 96px; margin-top: 8px; }
}
.lr-tools { list-style: none; padding: 0; margin: 28px 0 0; display: grid; border-top: 1px solid var(--line); }
.lr-tools li { border-bottom: 1px solid var(--line); }
.lr-tools a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 18px 4px; color: inherit; text-decoration: none; }
.lr-tool { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; min-width: 7ch; color: var(--ink); transition: color 0.2s ease; }
.lr-tool-say { color: var(--ink-2); }
.lr-tools a:hover .lr-tool, .lr-tools a:focus-visible .lr-tool { color: var(--hl); }
@media (min-width: 900px) { .lr-tools { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (prefers-reduced-motion: reduce) { .lr-num, .lr-tool { transition: none; } .lr-link:hover .lr-num { transform: none; } }

/* the text takes the picked look too: titles fade from ink into its text colours (both stay readable in either theme),
   close-up titles are filled with it, the caption names the look in a label, the Edited tag wears its colour */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  main h2:not(.sr-only), .page-head h1, .pg-hero h1, .hero-title {
    background: linear-gradient(100deg, var(--ink) 1em, var(--link) 5em, var(--accent-text) 9em);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .cu-title {
    width: fit-content; padding-bottom: 0.08em;
    background: linear-gradient(100deg, var(--link), var(--accent-text) 70%, var(--link)) 0 0 / 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .cu-row.is-in .cu-title { animation: cu-sheen 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both; }
  html.perf .cu-row.is-in .cu-title { animation: none; }
}
@keyframes cu-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.cu-look { display: inline-flex; align-items: center; gap: 6px; margin-right: 2px; padding: 1px 10px 1px 6px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--cyan) 16%, transparent); color: var(--link); font-weight: 600; white-space: nowrap; }
.cu-look::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(90deg, var(--cyan) 50%, var(--coral) 50%); }
.tag[data-look-tag] { border-color: color-mix(in srgb, var(--link) 55%, transparent); color: var(--link); }
@media (prefers-reduced-motion: reduce) { .cu-row.is-in .cu-title { animation: none; } }

/* letters stay clear over the doodles, the painted footer and the hero picture: a soft halo in the page colour under
   plain text, a soft dark shadow under the gradient titles (a text-shadow would paint over their fill) */
.foot-links a, .foot-promise, .foot-small { text-shadow: 0 0 2px var(--bg-2), 0 0 8px var(--bg-2), 0 1px 3px rgb(0 0 0 / 0.35); }
.foot-mark { filter: drop-shadow(0 3px 8px rgb(0 0 0 / 0.45)); }
.hero-title, .page-head h1, .pg-hero h1 { filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.5)); }
:root[data-theme="light"] .page-head h1, :root[data-theme="light"] .pg-hero h1 { filter: drop-shadow(0 1px 6px rgb(255 255 255 / 0.7)); }

/* ---------- the look switcher in the top bar: every page, always (home: once the big hero chips are out of view) ---------- */
.hdr-looks { display: flex; align-items: center; gap: 2px; padding: 3px; margin-right: 4px; border: 1px solid var(--line); border-radius: var(--r-pill); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.hdr-looks button { position: relative; display: grid; place-items: center; width: 34px; height: 34px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.hdr-looks button .look-ic { width: 22px; height: 22px; transition: transform 0.21s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.21s ease; }
.hdr-looks button[aria-checked="false"] .look-ic { filter: grayscale(0.55) brightness(0.85); }
.hdr-looks button[aria-checked="true"] { background: color-mix(in srgb, var(--cyan) 22%, transparent); box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 14px color-mix(in srgb, var(--cyan) 45%, transparent); }
.hdr-looks button[aria-checked="true"] .look-ic { transform: scale(1.12); }
@media (hover: hover) { .hdr-looks button[aria-checked="false"]:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); } .hdr-looks button:hover .look-ic { transform: scale(1.18) rotate(-10deg); filter: none; } }
.hdr-looks button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.hdr-looks button.is-loading .look-ic { animation: look-load 0.9s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.hdr.is-clear .hdr-looks { background: rgb(10 8 15 / 0.45); border-color: rgb(255 255 255 / 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* home: the hero has its own big chips, so the bar's switcher joins once the page scrolls (.is-big is the top state) */
/* home: while the hero's own chips are on screen the bar keeps none; once they scroll away (app.js .show-looks) the pill
   opens from the right and the four icons spring up into it one after another, spinning into place */
.hdr.has-word .hdr-looks { transform-origin: 100% 50%; transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0s; }
.hdr.has-word .hdr-looks button { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease; }
.hdr.has-word .hdr-looks button:nth-child(1) { transition-delay: 0.08s; }
.hdr.has-word .hdr-looks button:nth-child(2) { transition-delay: 0.14s; }
.hdr.has-word .hdr-looks button:nth-child(3) { transition-delay: 0.2s; }
.hdr.has-word .hdr-looks button:nth-child(4) { transition-delay: 0.26s; }
.hdr.has-word:not(.show-looks) .hdr-looks { transform: scaleX(0.2); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.22s ease-in, opacity 0.2s ease, visibility 0s linear 0.22s; }
.hdr.has-word:not(.show-looks) .hdr-looks button { transform: translateY(46px) scale(0.3) rotate(-160deg); opacity: 0; transition-duration: 0.18s; transition-delay: 0s; }
/* the gallery picks looks in its own bar under the title */
html[data-page="gallery"] .hdr-looks { display: none; }
@media (max-width: 439px) {
  .hdr-looks { gap: 0; padding: 2px; margin-right: 2px; }
  .hdr-looks button { width: 29px; height: 29px; }
  .hdr-looks button .look-ic { width: 17px; height: 17px; }
}

/* ---------- switching looks: the new look paints over the page in a circle from the button while the old one sinks back
   (View Transitions); without them a ring in the new colours runs out from the button ---------- */
html.look-vt::view-transition-old(root) { animation: look-recede 0.62s cubic-bezier(0.65, 0, 0.35, 1) both; z-index: 1; }
@keyframes look-recede { to { filter: brightness(0.55) saturate(0.6); transform: scale(0.985); } }
html.look-vt::view-transition-new(root) { animation: look-reveal 0.62s cubic-bezier(0.65, 0, 0.35, 1) both, look-flash 0.62s steps(1, end) both; z-index: 2; mix-blend-mode: normal; }
/* the new look lands with a short glitch: it jumps sideways, overexposed and hue-shifted, then settles */
@keyframes look-flash {
  0% { transform: translateX(-10px); filter: saturate(2.2) brightness(1.5) hue-rotate(-25deg); }
  8% { transform: translateX(8px) skewX(-3deg); filter: saturate(1.9) brightness(1.35) hue-rotate(20deg); }
  16% { transform: translateX(-5px); filter: saturate(1.6) brightness(1.2); }
  26% { transform: translateX(3px); filter: saturate(1.3) brightness(1.1); }
  38% { transform: none; filter: saturate(1.15); }
  60%, 100% { transform: none; filter: none; }
}
@keyframes look-reveal { from { clip-path: circle(0 at var(--vt-x) var(--vt-y)); } to { clip-path: circle(var(--vt-r) at var(--vt-x) var(--vt-y)); } }
.look-burst { position: fixed; z-index: 1000; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; pointer-events: none;
  border: 3px solid var(--cyan); box-shadow: 0 0 24px var(--cyan), inset 0 0 18px var(--coral), 0 0 0 6px color-mix(in srgb, var(--coral) 35%, transparent);
  animation: look-burst 0.62s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes look-burst { 0% { transform: translate(var(--bx), var(--by)) scale(0.4); opacity: 1; } 70% { opacity: 0.9; } 100% { transform: translate(var(--bx), var(--by)) scale(var(--bs)); opacity: 0; } }
/* the button that started it gives a little hop */
.looks button.is-picked .look-ic { animation: look-hop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes look-hop { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-18deg); } 100% { transform: scale(1.12); } }

/* ---------- footer: languages on the left, the two switches on the right ---------- */
.foot .tools .langs { margin-right: auto; }

/* ---------- features: the selection tools as a small player; the list on the left loops through them ---------- */
.sel-grid { margin-top: 28px; display: grid; gap: 14px; }
.sel-grid #sel-plate { order: 1; max-width: none; margin: 0; }
.sel-side { order: 2; }
.sel-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sel-step button { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); font: inherit; font-size: var(--fs-cap); text-align: left; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.sel-step .ic { width: 18px; height: 18px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s; }
.sel-step .st { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
.sel-step .sb { display: none; }
.sel-step .bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--coral)); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; }
.sel-step.is-on button { border-color: var(--cyan); color: var(--ink); background: var(--surface-2); }
.sel-step.is-on .ic { color: var(--cyan); transform: scale(1.15) rotate(-8deg); }
.sel-step.is-on .bar { opacity: 1; transition: transform 0.25s linear; }
@media (hover: hover) { .sel-step:not(.is-on) button:hover { color: var(--ink); border-color: var(--line-strong); } }
.sel-step button:focus-visible, .sel-ctl button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sel-ctl { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.sel-ctl button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: transform 0.15s; }
.sel-ctl button:active { transform: scale(0.92); }
.sel-ctl .sel-play { width: 44px; height: 44px; background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); box-shadow: 0 0 18px color-mix(in srgb, var(--cyan) 40%, transparent); }
.sel-play::before { content: ""; width: 9px; height: 13px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.sel-play.is-paused::before { width: 0; height: 0; border: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.sel-n { margin-left: auto; color: var(--ink-2); font-size: var(--fs-cap); font-weight: 600; }
@media (min-width: 900px) {
  .sel-grid { grid-template-columns: minmax(250px, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; margin-top: 40px; }
  .sel-side { order: 1; }
  .sel-grid #sel-plate { order: 2; }
  .sel-steps { grid-template-columns: 1fr; gap: 4px; }
  .sel-step button { flex-wrap: wrap; padding: 10px 14px; border-color: transparent; background: none; font-size: var(--fs-body); }
  .sel-step.is-on button { border-color: var(--line); background: var(--surface); box-shadow: inset 3px 0 0 var(--cyan); }
  .sel-step.is-on .sb { display: block; flex-basis: 100%; padding-left: 26px; color: var(--ink-2); font-size: var(--fs-cap); line-height: 1.45; animation: sel-in 0.3s ease both; }
  .sel-grid #sel-plate .plate-cap { display: none; }
  .sel-ctl { padding-left: 4px; }
}
@keyframes sel-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- features: Scroll / Overview for the layers and the blend modes ---------- */
.jump .wrap { display: flex; align-items: center; gap: 12px; }
.jump ul { flex: 1 1 auto; min-width: 0; }
.fview { flex: none; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.fview button { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2); font: inherit; font-size: var(--fs-cap); font-weight: 600; cursor: pointer; }
.fview .ic { width: 16px; height: 16px; }
.fview button[aria-pressed="true"] { background: var(--cyan); color: var(--on-cyan); }
.fview button:disabled { opacity: 0.45; cursor: not-allowed; }
.fview button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
@media (max-width: 639px) { .fview span { display: none; } .fview button { padding: 0 9px; } }
/* where you were, after a switch */
.is-here { animation: fv-here 1.6s ease-out; }
@keyframes fv-here { 0%, 30% { box-shadow: 0 0 0 3px var(--cyan), 0 0 28px color-mix(in srgb, var(--cyan) 55%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.stack-cards:not([hidden]), .modes-grid:not([hidden]) { animation: sel-in 0.35s ease both; }

/* the layers, one card each: the texture first, then every layer from the bottom up */
.stack-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 32px; padding-left: 0; }
.stack-card { position: relative; display: grid; align-content: start; gap: 3px; padding: 10px 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.stack-card.is-base { border-color: color-mix(in srgb, var(--cyan) 45%, var(--line)); }
.stack-card-pic { position: relative; aspect-ratio: 1; margin-bottom: 8px; border-radius: var(--r-sm); overflow: hidden;
  background-color: #1B1629; background-image: conic-gradient(#251F38 25%, transparent 0 50%, #251F38 0 75%, transparent 0); background-size: 16px 16px; }
.stack-card-pic img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (hover: hover) { .stack-card:hover .stack-card-pic img { transform: scale(1.06); } }
.stack-card-n { position: absolute; left: 8px; top: 8px; min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: var(--r-pill); background: rgb(10 8 15 / 0.78); color: #fff; font-size: 0.8125rem; font-weight: 600; }
.stack-card.is-base .stack-card-n { background: var(--cyan); color: var(--on-cyan); }
.stack-card-t { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.25; }
.stack-card-m { color: var(--ink-2); font-size: 0.8125rem; }

/* the blend modes in their families, then the adjustment layers */
.modes-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.modes-grid .modes-card { position: relative; margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.modes-grid .modes-card img { border-radius: 0; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modes-grid .modes-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 10px 9px; background: linear-gradient(transparent, rgb(10 8 15 / 0.88)); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; line-height: 1.25; }
@media (hover: hover) { .modes-grid .modes-card:hover img { transform: scale(1.06); } }
.modes-grid .modes-gh { grid-column: 1 / -1; margin: 28px 0 0; font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.modes-grid .modes-gh:first-child { margin-top: 0; }
.modes-grid .modes-sub { grid-column: 1 / -1; margin: 10px 0 -4px; color: var(--coral); font-size: var(--fs-cap); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 639px) {
  .stack-cards, .modes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stack-card { padding: 8px 8px 10px; }
  .stack-card-t { font-size: 0.9375rem; }
}

/* ---------- features: paint side column (brush chips and the Scene view bar) ---------- */
.paint-side { display: grid; gap: 16px; }
@media (min-width: 1024px) { .grid12 > .paint-side { grid-column: span 4; } }

/* ---------- features: material, compact ---------- */
.mat-top { display: grid; gap: 20px; margin-top: 28px; align-items: center; }
.mat-top .plate { max-width: none; margin: 0; }
.mat-side .lead { margin: 0; max-width: 52ch; }
.mat-how { list-style: none; counter-reset: mh; display: grid; gap: 10px; margin-top: 18px; padding: 0; }
.mat-how li { counter-increment: mh; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; color: var(--ink); font-size: var(--fs-cap); line-height: 1.45; }
.mat-how li::before { content: counter(mh); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--cyan) 18%, transparent); box-shadow: inset 0 0 0 1.5px var(--cyan); color: var(--hl, var(--cyan)); font-family: var(--font-display); font-weight: 600; }
@media (min-width: 900px) { .mat-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; } }
#material .mat-list { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; }
#material .mat-list li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; align-content: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 0.875rem; line-height: 1.45; }
#material .mat-list .ic { grid-row: 1 / span 2; width: 20px; height: 20px; margin-top: 2px; color: var(--cyan); }
#material .mat-list strong { font-size: 1rem; font-weight: 600; }
@media (min-width: 1024px) { #material .mat-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 479px) { #material .mat-list { grid-template-columns: 1fr; } }

/* ---------- features: the two maps, one showcase row each ---------- */
.map-row { display: grid; gap: 20px; margin-top: 36px; align-items: center; }
.map-row .plate { max-width: none; margin: 0; }
.map-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); margin: 2px 0 10px; }
.map-text > p:not(.map-kicker) { color: var(--ink-2); max-width: 48ch; }
.map-kicker { margin: 0; color: var(--coral); font-size: var(--fs-cap); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.map-facts { margin-top: 16px; display: grid; gap: 8px; }
.map-facts li { font-size: var(--fs-cap); }
@media (min-width: 900px) {
  .map-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; margin-top: 48px; }
  .map-row--flip .plate { order: 2; }
}

/* ---------- features: the undo history plays by itself ---------- */
.undo-bar { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; }
.undo-bar output { grid-column: 1 / -1; }
.undo-play { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--cyan); color: var(--on-cyan); cursor: pointer; box-shadow: 0 0 16px color-mix(in srgb, var(--cyan) 40%, transparent); }
.undo-play::before { content: ""; width: 9px; height: 13px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.undo-play.is-paused::before { width: 0; height: 0; border: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.undo-play:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.undo-view img { transition: opacity 220ms ease-out; }

/* ---------- features: "your files stay safe" and "catch problems" get a full row each ---------- */
.safe-two { grid-template-columns: 1fr !important; gap: clamp(48px, 6vw, 88px); align-items: start; }
.safe-two h3 { font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.1; }
.safe-two .files > p, .safe-two .report > p { font-size: var(--fs-body); max-width: 40ch; }
@media (min-width: 1024px) {
  .safe-two .files, .safe-two .report { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; }
  .safe-two .files > h3, .safe-two .report > h3 { grid-column: 1; grid-row: 1; align-self: end; }
  .safe-two .files > p, .safe-two .report > p { grid-column: 1; grid-row: 2; }
  .safe-two .files-plate, .safe-two .rcard { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; max-width: none; }
  .safe-two .report > h3, .safe-two .report > p { grid-column: 1; }
}

/* ---------- a scrollbar in the look's colours, on every page ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar { width: 13px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { border: 3px solid var(--bg); border-radius: 999px; background: linear-gradient(180deg, var(--cyan), var(--violet) 55%, var(--coral)); }
::-webkit-scrollbar-thumb:hover { border-width: 2px; }
::-webkit-scrollbar-corner { background: var(--bg); }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: var(--cyan) var(--bg); } }

/* ---------- the language button in the top bar ---------- */
.hdr-lang { position: relative; flex: none; }
.hdr-lang-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; transition: color 160ms ease-out, background-color 160ms ease-out; }
.hdr-lang-btn:hover, .hdr-lang.is-open .hdr-lang-btn { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.hdr-lang-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lang-ic { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hdr-lang.is-open .lang-ic { transform: rotate(-30deg); }
.hdr-lang-code { position: absolute; right: 3px; bottom: 5px; min-width: 17px; padding: 1px 3px; border-radius: 6px; background: var(--cyan); color: var(--on-cyan); font-size: 9px; font-weight: 800; line-height: 1.2; letter-spacing: 0.02em; }
.hdr.is-clear .hdr-lang-btn { filter: drop-shadow(0 1px 2px rgb(10 8 15 / 0.9)) drop-shadow(0 0 10px rgb(10 8 15 / 0.7)); }
.hdr.is-intro .hdr-lang-btn { animation: hdr-pop 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }
.hdr-lang-menu { position: absolute; z-index: 60; right: -4px; top: calc(100% + 8px); display: grid; min-width: 190px; padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgb(0 0 0 / 0.45); transform-origin: 85% 0; animation: lang-menu 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes lang-menu { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
.hdr-lang-menu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; font-size: var(--fs-cap); font-weight: 600; text-align: left; cursor: pointer; }
.hdr-lang-menu button b { display: grid; place-items: center; width: 28px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink-2); font-size: 11px; font-weight: 800; }
.hdr-lang-menu button:hover, .hdr-lang-menu button:focus-visible { background: color-mix(in srgb, var(--ink) 9%, transparent); outline: none; }
.hdr-lang-menu button[aria-checked="true"] { color: var(--hl, var(--cyan)); }
.hdr-lang-menu button[aria-checked="true"] b { background: var(--cyan); color: var(--on-cyan); }
@media (max-width: 519px) { .hdr-lang-btn { width: 38px; height: 38px; } }
@media (max-width: 399px) { .hdr-lang { display: none; } }

/* ---------- switching language: the words glitch while they scramble, swapped pictures jolt, scan bars run down ---------- */
.lang-txt { animation: lang-txt 0.52s steps(1, end) both; }
@keyframes lang-txt {
  0% { text-shadow: 2px 0 var(--coral), -2px 0 var(--cyan); opacity: 0.85; }
  18% { text-shadow: -3px 0 var(--coral), 3px 0 var(--cyan); opacity: 1; }
  36% { text-shadow: 1px 0 var(--coral), -1px 0 var(--cyan); }
  60%, 100% { text-shadow: none; }
}
/* the pictures glitch in colour only: nothing shifts while the language changes */
.lang-media img, .lang-media video, img.lang-media, video.lang-media { animation: lang-pic 0.56s linear both; }
@keyframes lang-pic {
  0% { filter: brightness(1.35) drop-shadow(6px 0 color-mix(in srgb, var(--coral) 75%, transparent)) drop-shadow(-6px 0 color-mix(in srgb, var(--cyan) 75%, transparent)); }
  14% { filter: brightness(1.2) drop-shadow(-5px 0 color-mix(in srgb, var(--coral) 70%, transparent)) drop-shadow(5px 0 color-mix(in srgb, var(--cyan) 70%, transparent)); }
  30% { filter: brightness(1.1) drop-shadow(3px 0 color-mix(in srgb, var(--coral) 55%, transparent)) drop-shadow(-3px 0 color-mix(in srgb, var(--cyan) 55%, transparent)); }
  55% { filter: drop-shadow(1px 0 color-mix(in srgb, var(--coral) 25%, transparent)); }
  100% { filter: none; }
}
.lang-media::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(transparent 20%, color-mix(in srgb, var(--cyan) 30%, transparent) 20% 23%, transparent 23% 56%, color-mix(in srgb, var(--coral) 28%, transparent) 56% 58%, transparent 58% 79%, color-mix(in srgb, var(--violet) 30%, transparent) 79% 80.5%, transparent 80.5%);
  animation: loop-scan 0.56s ease-out both;
}
.lang-scan { position: fixed; inset: 0; z-index: 999; pointer-events: none; mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, transparent 0 46px, color-mix(in srgb, var(--cyan) 14%, transparent) 46px 49px, transparent 49px 97px, color-mix(in srgb, var(--coral) 12%, transparent) 97px 99px);
  animation: lang-scan 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes lang-scan { 0% { transform: translateY(-30%); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(30%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lang-txt, .lang-media img, .lang-media video, .lang-media::after, .lang-scan { animation: none; } }

/* ---------- a glow beside the scrollbar while you scroll ---------- */
.scroll-glow { position: fixed; z-index: 70; top: 0; right: 0; width: 96px; height: 80px; pointer-events: none; opacity: 0; will-change: transform, opacity;
  /* an ellipse that reaches nothing exactly at its own edges, so there is no hard rim anywhere */
  background: radial-gradient(ellipse 100% 50% at 100% 50%, color-mix(in srgb, var(--cyan) 30%, transparent), color-mix(in srgb, var(--violet) 14%, transparent) 45%, transparent 100%);
  transition: opacity 0.6s ease, height 0.25s ease; }
.scroll-glow::after { content: ""; position: absolute; right: 1px; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; opacity: 0.55;
  background: linear-gradient(transparent, var(--cyan) 30%, var(--violet) 70%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 50%, transparent); }
.scroll-glow.is-on { opacity: 0.85; transition-duration: 0.15s, 0.25s; }
:root[data-theme="light"] .scroll-glow.is-on { opacity: 0.5; }

/* ---------- download: every version as a short timeline ---------- */
#versions .dl-list { position: relative; gap: 10px; padding-left: 26px; }
#versions .dl-list::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: linear-gradient(var(--cyan), var(--violet) 60%, var(--line)); }
#versions .dl-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 18px; }
#versions .dl-row::before { content: ""; position: absolute; left: -24px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-strong); }
#versions .dl-row.is-latest { border-color: color-mix(in srgb, var(--cyan) 55%, var(--line)); background: linear-gradient(90deg, color-mix(in srgb, var(--cyan) 10%, var(--surface)), var(--surface) 60%); box-shadow: 0 0 28px color-mix(in srgb, var(--cyan) 14%, transparent); }
#versions .dl-row.is-latest::before { background: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 25%, transparent), 0 0 14px var(--cyan); }
#versions .dl-row-h { align-items: center; gap: 6px 12px; }
#versions .dl-row-v { font-size: 1.25rem; }
#versions .dl-row-n { display: inline-flex; align-items: center; gap: 4px; }
#versions .dl-row-n .ic { width: 15px; height: 15px; }
#versions .dl-row-a { gap: 6px; }
.dl-file { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--ink); font-size: var(--fs-cap); font-weight: 600; text-decoration: none; transition: background-color 0.15s, border-color 0.15s; }
.dl-file .ic { width: 16px; height: 16px; }
.dl-file.is-main { border-color: var(--cyan); }
.dl-file:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.dl-file.is-main:hover { background: color-mix(in srgb, var(--cyan) 16%, transparent); }
.dl-notes { border-color: transparent; color: var(--ink-2); }
.dl-more { margin: 14px 0 0 26px; }
@media (max-width: 559px) { #versions .dl-row { flex-direction: column; align-items: flex-start; } }

/* ---------- download: build it with us ---------- */
.dl-dev-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.dl-dev-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--ink); font-size: var(--fs-cap); font-weight: 600; text-decoration: none; }
.dl-dev-links a:hover { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.dl-dev-links .ic { width: 17px; height: 17px; color: var(--cyan); }
.dl-dev-steps { position: relative; }
.dl-dev-steps li { position: relative; overflow: hidden; transition: border-color 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.dl-dev-steps li:hover { border-color: color-mix(in srgb, var(--cyan) 45%, var(--line)); transform: translateY(-3px); }
.dl-dev-steps li::before { position: absolute; top: 18px; right: 18px; }
.dl-dev-ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--cyan) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 35%, transparent); }
.dl-dev-steps li:nth-child(2) .dl-dev-ic { stroke: var(--coral); background: color-mix(in srgb, var(--coral) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coral) 35%, transparent); }
.dl-dev-steps li:nth-child(3) .dl-dev-ic { stroke: var(--violet); background: color-mix(in srgb, var(--violet) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 40%, transparent); }
.dl-dev-steps h3 { font-size: 1.25rem; }
.dl-dev-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.dl-dev-btns .btn { margin-top: 0; }
@media (min-width: 900px) {
  .dl-dev-steps::before { content: ""; position: absolute; z-index: 0; left: 16%; right: 16%; top: 46px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--coral), var(--violet)); opacity: 0.35; }
  .dl-dev-steps li { z-index: 1; }
}

/* ---------- the note when Performance mode turned itself on ---------- */
.care-toast { position: fixed; z-index: 120; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; width: min(560px, calc(100vw - 32px)); padding: 14px 16px; transform: translateX(-50%);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 14px 40px rgb(0 0 0 / 0.45); animation: care-in 0.35s cubic-bezier(0.16, 1, 0.3, 1); transition: opacity 0.5s ease; }
.care-toast p { flex: 1 1 260px; margin: 0; font-size: var(--fs-cap); color: var(--ink); }
.care-toast.is-out { opacity: 0; }
@keyframes care-in { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ---------- keep going: the next page and Download, with their share pictures ---------- */
.next-up { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 48px); }
.next-h { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.next-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(12px, 2vw, 22px); align-items: start; }
.next-card { position: relative; display: block; border-radius: var(--r-lg, 20px); overflow: hidden; color: #fff; text-decoration: none; background: #0A080F;
  border: 1px solid var(--line-strong); box-shadow: 0 14px 40px rgb(0 0 0 / 0.28); isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.25s; }
.next-pic { display: block; aspect-ratio: 1200 / 630; overflow: hidden; }
.next-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.next-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; border-top: 1px solid rgb(255 255 255 / 0.1); background: #120E1C; }
.next-tag { padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-cap); font-weight: 700; color: #1A1033; background: var(--cyan); }
.next-card[data-p="download"] .next-tag { background: var(--coral); }
.next-name { font-family: var(--font-display); font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem); }
.next-go { display: grid; place-items: center; width: 38px; height: 38px; margin-left: auto; border-radius: 50%; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.25); transition: background-color 0.2s, transform 0.3s; }
.next-go .ic { width: 18px; height: 18px; }
.next-card:hover, .next-card:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cyan) 60%, var(--line)); box-shadow: 0 20px 50px rgb(0 0 0 / 0.35), 0 0 34px color-mix(in srgb, var(--cyan) 22%, transparent); }
.next-card:hover .next-pic img { transform: scale(1.035); }
.next-card:hover .next-go { background: var(--cyan); color: #1A1033; transform: translateX(3px); }
.perf .next-card, .perf .next-pic img { transition: none; }
@media (max-width: 719px) { .next-grid { grid-template-columns: 1fr; } .next-bar { padding: 10px 12px; } .next-go { width: 32px; height: 32px; } }

/* ---------- the page links: a picture of the page ---------- */
.nav a { position: relative; }
.nav-peek { position: absolute; z-index: 5; top: calc(100% + 10px); left: 50%; width: 248px; border-radius: var(--r-md); overflow: hidden; background: #0A080F;
  border: 1px solid var(--line-strong); box-shadow: 0 18px 44px rgb(0 0 0 / 0.45); opacity: 0; pointer-events: none;
  transform: translate(-50%, 6px) scale(0.97); transform-origin: 50% 0; transition: opacity 0.18s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-peek img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
@media (hover: hover) {
  .nav a:hover .nav-peek, .nav a:focus-visible .nav-peek { opacity: 1; transform: translate(-50%, 0) scale(1); transition-delay: 0.12s; }
}
.nav a:last-child .nav-peek { left: auto; right: 0; transform: translate(0, 6px) scale(0.97); transform-origin: 100% 0; }
@media (hover: hover) { .nav a:last-child:hover .nav-peek, .nav a:last-child:focus-visible .nav-peek { transform: none; } }
.sheet-nav a { gap: 14px; }
.sheet-pic { flex: none; width: 84px; height: auto; aspect-ratio: 1200 / 630; border-radius: var(--r-xs); object-fit: cover; background: #0A080F; border: 1px solid var(--line); }
.sheet-nav a:has(.sheet-pic) { min-height: 64px; padding-block: 8px; }

/* ---------- gallery: the view switch in the look bar, and the overview layout ---------- */
.look-bar .wrap { display: flex; align-items: center; gap: 12px; }
.look-bar .looks--page { flex: 1 1 auto; min-width: 0; }
/* close-ups as a grid: picture on top, words under it, nothing held or swept in */
.fv-overview .cu-rail { width: min(100% - 2 * var(--gutter), var(--wrap, 1200px)); margin-inline: auto; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 900px) { .fv-overview .cu-rail { grid-template-columns: 1fr 1fr; } }
.fv-overview .cu-row { grid-template-columns: 1fr !important; align-items: start; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.fv-overview .cu-row .cu-media { order: 0 !important; }
.fv-overview .cu-row .cu-media .cmp-view { border-radius: var(--r-md) !important; max-height: none; }
.fv-overview .cu-row .cu-text { justify-self: start !important; padding: 0 6px 6px; }
.fv-overview .cu-rail.cu-anim .cu-media, .fv-overview .cu-rail.cu-anim .cu-text > * { opacity: 1; transform: none; clip-path: none; filter: none; transition: none; }
.fv-overview .cu-rail.cu-anim .cu-media .cmp-view img { transform: none; }
.fv-overview .cu-rail.cu-anim .cu-media::after { display: none; }
/* the three lights side by side whenever the stage is not held (overview, Performance mode) */
.lw:not([data-pin]) .lw-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); padding: clamp(48px, 7vw, 88px) var(--gutter); }
.lw:not([data-pin]) .lw-copy { grid-column: 1 / -1; padding: 0; margin-bottom: 8px; }
.lw:not([data-pin]) .lw-dots { display: none; }
.lw:not([data-pin]) .lw-shot { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid rgb(255 255 255 / 0.12); }
.lw:not([data-pin]) .lw-shot img { transform: none; }
.lw:not([data-pin]) .lw-cap { position: absolute; left: 14px; bottom: 12px; }
.lw:not([data-pin]) .lw-name { font-size: clamp(1.4rem, 2.4vw, 2rem); }
@media (max-width: 767px) { .lw:not([data-pin]) .lw-stage { grid-template-columns: 1fr; } .lw:not([data-pin]) .lw-shot { aspect-ratio: 4 / 5; } }
/* phones: the picked look keeps its name, the others show their icon, so the view switch fits beside them */
@media (max-width: 559px) {
  .look-bar:has(.fview:not([hidden])) .looks--page button { flex: 0 0 auto; padding: 0 10px; }
  .look-bar:has(.fview:not([hidden])) .looks--page button[aria-checked="true"] { flex: 1 1 auto; }
  .look-bar:has(.fview:not([hidden])) .looks--page button:not([aria-checked="true"]) span { display: none; }
}

/* ---------- home "Want more?": each card shows its page ---------- */
.more-card:has(.mc-pic) { padding: 0 0 18px; overflow: hidden; border-radius: var(--r-lg); gap: 2px; background: var(--surface);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.35s; }
.mc-pic { display: block; aspect-ratio: 1200 / 630; overflow: hidden; margin-bottom: 12px; background: #0A080F; border-bottom: 1px solid var(--line); }
.mc-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.more-card:has(.mc-pic) .mc-t, .more-card:has(.mc-pic) .mc-b { padding-inline: 18px; }
@media (hover: hover) {
  .more-card:has(.mc-pic):hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cyan) 55%, var(--line)); box-shadow: 0 18px 44px rgb(0 0 0 / 0.3), 0 0 30px color-mix(in srgb, var(--cyan) 18%, transparent); }
  .more-card:hover .mc-pic img { transform: scale(1.035); }
}
@media (min-width: 600px) and (max-width: 899px) { .more-cards { grid-template-columns: repeat(2, 1fr); } }
.perf .more-card, .perf .mc-pic img { transition: none; }

/* ---------- Download: the newest version's release banner ---------- */
.dl-banner { position: relative; display: block; margin-bottom: clamp(16px, 2.5vw, 28px); border-radius: var(--r-lg); overflow: hidden; background: #0A080F;
  border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgb(0 0 0 / 0.3); isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.25s; }
.dl-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 640; object-fit: cover; }
.dl-banner-go { position: absolute; right: clamp(10px, 2vw, 20px); bottom: clamp(10px, 2vw, 20px); display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-small, 0.9rem); color: #1A1033; background: var(--cyan); box-shadow: 0 6px 18px rgb(0 0 0 / 0.35); }
.dl-banner-go .ic { width: 16px; height: 16px; transition: transform 0.25s; }
@media (hover: hover) {
  .dl-banner:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cyan) 55%, var(--line)); box-shadow: 0 22px 56px rgb(0 0 0 / 0.35), 0 0 34px color-mix(in srgb, var(--cyan) 20%, transparent); }
  .dl-banner:hover .dl-banner-go .ic { transform: translateX(3px); }
}
/* on a phone the banner's right side carries the avatar; keep it in view */
@media (max-width: 599px) { .dl-banner img { aspect-ratio: 16 / 9; object-position: 18% 50%; } }
.perf .dl-banner, .perf .dl-banner-go .ic { transition: none; }

/* mascot emoji and stickers: decoration only, never content. Emoji sit beside the translated text (an .emo after a
   heading's text, or ::after on a line), so a language switch, which replaces the text, keeps them. Stickers fetch their picture near the screen (app.js). With
   reduced motion or Performance mode both show a still frame. */
p[data-emo]::after, span[data-emo]::after, .emo {
  content: ""; display: inline-block; width: 1.08em; height: 1.08em; margin-inline-start: 0.2em; vertical-align: -0.16em;
  background: var(--ea) center / contain no-repeat;
}
p[data-emo]::after, h3 .emo { width: 1.45em; height: 1.45em; vertical-align: -0.34em; }
.stk {
  position: absolute; z-index: 4; display: block; width: var(--s, 150px); aspect-ratio: 1; rotate: var(--r, -8deg);
  background: center / contain no-repeat; cursor: pointer; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 12px 16px rgb(10 8 15 / 0.35)); transition: scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.stk.is-in { background-image: var(--ea); animation: stk-slap 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
@media (hover: hover) { .stk:hover { scale: 1.08; } }
@keyframes stk-slap { from { transform: scale(1.7) rotate(-16deg); opacity: 0; } 55% { opacity: 1; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { p[data-emo]::after, span[data-emo]::after, .emo, .stk.is-in { background-image: var(--es, var(--ea)); animation: none; } }
html.perf p[data-emo]::after, html.perf span[data-emo]::after, html.perf .emo, html.perf .stk.is-in { background-image: var(--es, var(--ea)); }
@media (max-width: 639px) { .stk { --s: 104px; } }
[data-emo="avistry_bounce"] { --ea: url(media/mascot/avistry_bounce.webp); --es: url(media/mascot/avistry_bounce-still.webp); }
[data-emo="avistry_vibe"] { --ea: url(media/mascot/avistry_vibe.webp); --es: url(media/mascot/avistry_vibe-still.webp); }
[data-emo="avistry_party"] { --ea: url(media/mascot/avistry_party.webp); --es: url(media/mascot/avistry_party-still.webp); }
[data-emo="avistry_blink"] { --ea: url(media/mascot/avistry_blink.webp); --es: url(media/mascot/avistry_blink-still.webp); }
[data-emo="avistry_spin"] { --ea: url(media/mascot/avistry_spin.webp); --es: url(media/mascot/avistry_spin-still.webp); }
[data-emo="avistry_rainbow"] { --ea: url(media/mascot/avistry_rainbow.webp); --es: url(media/mascot/avistry_rainbow-still.webp); }
[data-emo="typing"] { --ea: url(media/mascot/typing.webp); --es: url(media/mascot/typing-still.webp); }
[data-emo="ship_it_go"] { --ea: url(media/mascot/ship_it_go.webp); --es: url(media/mascot/ship_it_go-still.webp); }
[data-emo="shader_glitch"] { --ea: url(media/mascot/shader_glitch.webp); --es: url(media/mascot/shader_glitch-still.webp); }
[data-emo="hue_spin"] { --ea: url(media/mascot/hue_spin.webp); --es: url(media/mascot/hue_spin-still.webp); }
[data-emo="e_avistry_lurk"] { --ea: url(media/mascot/e_avistry_lurk.webp); }
[data-emo="e_avistry_think"] { --ea: url(media/mascot/e_avistry_think.webp); }
[data-emo="e_avistry_hearts"] { --ea: url(media/mascot/e_avistry_hearts.webp); }
[data-emo="e_avistry_cool"] { --ea: url(media/mascot/e_avistry_cool.webp); }
[data-emo="e_avistry_happy"] { --ea: url(media/mascot/e_avistry_happy.webp); }
[data-emo="e_ctrl_z"] { --ea: url(media/mascot/e_ctrl_z.webp); }
[data-emo="e_uv_spaghetti"] { --ea: url(media/mascot/e_uv_spaghetti.webp); }
[data-emo="e_missing_shader"] { --ea: url(media/mascot/e_missing_shader.webp); }
[data-emo="e_fresh_bake"] { --ea: url(media/mascot/e_fresh_bake.webp); }
[data-emo="e_plus_one"] { --ea: url(media/mascot/e_plus_one.webp); }
[data-emo="e_avistry"] { --ea: url(media/mascot/e_avistry.webp); }
[data-emo="e_avistry_love"] { --ea: url(media/mascot/e_avistry_love.webp); }
[data-emo="e_palette"] { --ea: url(media/mascot/e_palette.webp); }
[data-emo="e_magic_wand"] { --ea: url(media/mascot/e_magic_wand.webp); }
[data-emo="e_brush"] { --ea: url(media/mascot/e_brush.webp); }
[data-emo="e_layers"] { --ea: url(media/mascot/e_layers.webp); }
[data-emo="e_originals_safe"] { --ea: url(media/mascot/e_originals_safe.webp); }
[data-emo="e_new_png"] { --ea: url(media/mascot/e_new_png.webp); }
[data-emo="e_vcc_package"] { --ea: url(media/mascot/e_vcc_package.webp); }
[data-emo="e_ai_helper"] { --ea: url(media/mascot/e_ai_helper.webp); }
[data-stk="recoloured"] { --ea: url(media/mascot/recoloured.webp); --es: url(media/mascot/recoloured-still.webp); }
[data-stk="saved"] { --ea: url(media/mascot/saved.webp); --es: url(media/mascot/saved-still.webp); }
[data-stk="originals_safe"] { --ea: url(media/mascot/originals_safe.webp); --es: url(media/mascot/originals_safe-still.webp); }
[data-stk="ship_it"] { --ea: url(media/mascot/ship_it.webp); --es: url(media/mascot/ship_it-still.webp); }
[data-stk="need_help"] { --ea: url(media/mascot/need_help.webp); --es: url(media/mascot/need_help-still.webp); }
[data-stk="pink_again"] { --ea: url(media/mascot/pink_again.webp); --es: url(media/mascot/pink_again-still.webp); }
[data-stk="baking"] { --ea: url(media/mascot/baking.webp); --es: url(media/mascot/baking-still.webp); }
[data-stk="my_uvs"] { --ea: url(media/mascot/my_uvs.webp); --es: url(media/mascot/my_uvs-still.webp); }
[data-stk="lgtm"] { --ea: url(media/mascot/lgtm.webp); --es: url(media/mascot/lgtm-still.webp); }
[data-stk="undo"] { --ea: url(media/mascot/undo.webp); --es: url(media/mascot/undo-still.webp); }
/* in the button row, right after the .unitypackage link, so it never covers the title in any language */
.hero-copy .stk-hero { position: relative; flex: none; --s: 136px; --r: 9deg; margin: -48px 0 -48px 4px; }
@media (max-width: 639px) { .hero-copy .stk-hero { --s: 96px; margin: -30px 0 -30px auto; } }
.safe-grid { position: relative; }
.stk-safe { --s: 150px; --r: -9deg; top: -96px; right: -28px; }
.inst-quick { position: relative; }
.stk-inst { --s: 140px; --r: 10deg; top: -150px; right: 0; }
.community { position: relative; }
.stk-community { --s: 120px; --r: -7deg; top: -58px; right: 12px; }
.foot-lurk { position: absolute; z-index: 2; top: -30px; right: 9%; pointer-events: none; font-size: 64px; line-height: 0; }
.foot-lurk::after { margin: 0; width: 1em; height: 1em; }
.emo-ic { width: 1.5em; height: 1.5em; margin: 0; flex: none; vertical-align: middle; }
.proof-list .emo-ic { width: 22px; height: 22px; }
.facts .emo-ic { width: 32px; height: 32px; margin-top: -2px; }
.how-step .st[data-emo]::after { width: 1.15em; height: 1.15em; }
.pg-hero > .stk-corner { top: auto; bottom: 8px; --r: -8deg; }
.foot-lurk { opacity: 0; translate: 0 45%; transition: translate 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) 0.25s, opacity 0.3s 0.25s; }
.foot-lurk.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .foot-lurk { transition: none; } }

@media (max-width: 639px) {
  .stk-safe { --s: 92px; top: -100px; right: -4px; }
  .stk-inst { display: none; }
  .stk-community { top: -40px; right: 6px; }
  .foot-lurk { font-size: 48px; top: -22px; }
}
section:has(> .stk-corner) { position: relative; }
.stk-corner { --s: 140px; --r: 8deg; top: -36px; right: max(16px, calc(50% - 640px)); }
.page-head > .stk-corner { top: auto; bottom: 8px; --r: -8deg; }
@media (max-width: 639px) { .stk-corner { --s: 92px; top: -24px; } .page-head > .stk-corner { bottom: 0; } }
[data-emo="e_avistry_sus"] { --ea: url(media/mascot/e_avistry_sus.webp); }
[data-emo="e_avistry_sleep"] { --ea: url(media/mascot/e_avistry_sleep.webp); }
[data-emo="e_avistry_sweat"] { --ea: url(media/mascot/e_avistry_sweat.webp); }
[data-emo="e_done"] { --ea: url(media/mascot/e_done.webp); }
[data-emo="e_idea"] { --ea: url(media/mascot/e_idea.webp); }
[data-emo="e_bug"] { --ea: url(media/mascot/e_bug.webp); }
[data-emo="e_heart_gradient"] { --ea: url(media/mascot/e_heart_gradient.webp); }
[data-emo="e_hue_wheel"] { --ea: url(media/mascot/e_hue_wheel.webp); }
[data-emo="e_lasso"] { --ea: url(media/mascot/e_lasso.webp); }
[data-emo="e_eyedropper"] { --ea: url(media/mascot/e_eyedropper.webp); }
