/* ==========================================================================
   NEXAWEB Showcase (demo.nexaweb.io). Loomline language: page, frame (24px),
   cards (14px), hairlines, emerald glows. Every colour is a variable that
   render.js sets from content.theme; the values here are the default preset
   (Loomline Emerald) so the page is right even before render.js runs.
   Motion rule: only transform and opacity ever animate or transition.
   ========================================================================== */
@font-face{font-family:"Instrument Serif";src:url("../assets/fonts/instrument-serif.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Manrope";src:url("../assets/fonts/manrope.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}

:root{
  --page:#050506; --frame:#0d0d10; --card:#121215; --card2:#17171b;
  --ink:#f2f2f4; --soft:#9b9ba4; --line:rgba(255,255,255,.07); --glow:#10b981;
  --page-rgb:5,5,6; --ink-rgb:242,242,244; --glow-rgb:16,185,129;
  --shade:.6; --glow-mix:1; --bright-rgb:242,242,244; --shadow-rgb:0,0,0;
  --r:14px; --r-frame:24px; --gap:12px; --gutter:16px; --top:60px;
  --ease:cubic-bezier(.16,1,.3,1);
  --serif:"Instrument Serif","Iowan Old Style","Times New Roman",serif;
  --sans:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
}

/* ---- Base ---------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{background:var(--page);-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--top) + 12px)}
body{font:400 16px/1.6 var(--sans);color:var(--ink);background:var(--page);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100vh;position:relative}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(70% 45% at 50% -12%,rgba(var(--glow-rgb),.09),transparent 70%)}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
h1,h2,h3{font-weight:400}
:focus-visible{outline:2px solid var(--glow);outline-offset:3px;border-radius:8px}
::selection{background:rgba(var(--glow-rgb),.35);color:var(--ink)}

.skip{position:absolute;left:var(--gutter);top:-100px;z-index:100;padding:12px 18px;border-radius:999px;background:var(--ink);color:var(--page);font-weight:600}
.skip:focus{top:10px}

/* ---- Top bar ------------------------------------------------------------- */
.top{position:sticky;top:0;z-index:50;height:var(--top);display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:0 max(var(--gutter),calc((100% - 1240px) / 2));
  background:rgba(var(--page-rgb),.96);border-bottom:1px solid var(--line)}
.top__mark{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:700;font-size:15px;letter-spacing:.16em}
.top__mark i,.foot__mark i,.hero__eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--glow);box-shadow:0 0 0 3px rgba(var(--glow-rgb),.16),0 0 14px rgba(var(--glow-rgb),.9);flex:none}
.top__nav{display:flex;gap:2px}
.top__nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 11px;border-radius:999px;font-size:14px;font-weight:500;color:var(--soft)}
.top__nav a:hover{color:var(--ink)}

/* ---- Layout: frames hold cards ------------------------------------------- */
main{max-width:calc(1240px + 2 * var(--gutter));margin:0 auto;padding:var(--gutter) var(--gutter) 0;display:grid;gap:16px}
.frame{position:relative;background:var(--frame);border-radius:var(--r-frame);padding:10px;box-shadow:0 30px 80px rgba(var(--shadow-rgb),var(--shade))}
.hero__card,.world,.inc,.step,.bento__head,.closing__card,.doc__card{position:relative;overflow:hidden;background:var(--card);border:1px solid var(--line);border-radius:var(--r)}

/* Lift for the things you can tap: a 3px rise and a brighter hairline
   (the hairline is an overlay that fades, so only opacity animates). */
.world,.card{transition:transform .35s var(--ease)}
.world::before,.card::before{content:"";position:absolute;inset:-1px;z-index:2;border-radius:inherit;border:1px solid rgba(var(--ink-rgb),.16);opacity:0;pointer-events:none;transition:opacity .35s var(--ease)}
/* Hover lifts only where a pointer can hover: on a touch screen :hover
   sticks to the last tapped card and left it lifted (and the grid's
   lifted card stayed so after the sheet closed). */
@media (hover:hover){
  .world:hover,.card:hover{transform:translateY(-3px)}
  .world:hover::before,.card:hover::before{opacity:1}
}

/* ---- Hero ---------------------------------------------------------------- */
.hero__card{display:flex;flex-direction:column;isolation:isolate;padding:18px 18px 20px;
  min-height:max(560px,min(860px,calc(100svh - var(--top) - 2 * var(--gutter) - 20px)))}
/* The sky is the page colour under a CSS-gradient glow (::before): the
   permanent base that JS-off, reduced motion and the first paint show.
   hero.js / render.js put the media inside it: the aurora canvas (which
   cross-fades in over the glow once it has drawn, .is-live), a content
   video, or under reduced motion the poster image. */
.hero__sky{position:absolute;inset:0;z-index:-1;width:100%;height:100%;overflow:hidden;background:rgb(var(--page-rgb))}
.hero__sky::before{content:"";position:absolute;inset:0;transition:opacity 1.6s var(--ease);
  background:
    radial-gradient(85% 55% at 78% 108%,rgba(var(--glow-rgb),calc(.5 * var(--glow-mix))),transparent 62%),
    radial-gradient(60% 45% at 8% 118%,rgba(var(--glow-rgb),.22),transparent 66%),
    radial-gradient(60% 45% at 100% -10%,rgba(var(--glow-rgb),.16),transparent 64%),
    linear-gradient(180deg,var(--card),var(--frame))}
.hero__sky > canvas,.hero__sky > video,.hero__sky > img{position:absolute;inset:0;display:block;width:100%;height:100%}
.hero__sky > video,.hero__sky > img{object-fit:cover}
.hero__aurora{opacity:0;transition:opacity 1.6s var(--ease)}
.hero__sky.is-live::before{opacity:0}
.hero__sky.is-live .hero__aurora{opacity:1}
/* A video is footage nobody here controls: a low scrim keeps the words
   legible over it. The scrim needs :has() (Chrome/Edge 105+, Safari 15.4+,
   Firefox 121+); an older browser simply shows the video without it. The
   built-in poster is the dark aurora: on a light theme (render.js sets
   data-theme-light on the root) it is not shown, so the still CSS glow
   shows instead of a black slab under dark text. An owner's own poster
   always shows. Reduced motion never shows a video (render.js builds none;
   the media query is the backstop). */
.hero__sky:has(> video)::after{content:"";position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(var(--page-rgb),.72),rgba(var(--page-rgb),.18) 55%,rgba(var(--page-rgb),.3))}
[data-theme-light] .hero__poster--builtin{display:none}
@media (prefers-reduced-motion:reduce){.hero__sky > video{display:none}}
/* The headline rise: hero.js wraps each word and arms the hero (words down
   and clear), then adds .is-in once the fonts are ready. Without hero.js
   nothing is armed, so the headline is never hidden. */
.hero__h .w{display:inline-block;transition:opacity .7s var(--ease),transform .7s var(--ease)}
.hero.is-armed .hero__h .w{opacity:0;transform:translateY(.35em)}
.hero.is-in .hero__h .w{opacity:1;transform:none}
.hero__eyebrow{align-self:flex-start;display:inline-flex;align-items:center;gap:10px;padding:8px 14px 8px 12px;border-radius:999px;
  border:1px solid rgba(var(--ink-rgb),.12);background:rgba(var(--page-rgb),.35);font-size:14px;font-weight:500;line-height:1.2}
.hero__h{margin-top:auto;padding-top:48px;font-family:var(--serif);font-size:clamp(54px,14.8vw,136px);line-height:.92;letter-spacing:-.025em;max-width:11.5ch;text-wrap:balance}
.hero__foot{display:grid;gap:26px;margin-top:24px}
.hero__sub{font-size:17px;line-height:1.55;color:var(--soft);max-width:34ch}
.hero__stats{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;border-top:1px solid rgba(var(--ink-rgb),.12)}
.stat{display:flex;flex-direction:column;padding:14px 18px 0 0}
.stat + .stat{padding-left:14px;border-left:1px solid rgba(var(--ink-rgb),.12)}
.stat__n{font-family:var(--serif);font-size:44px;line-height:1;letter-spacing:-.02em}
.stat__l{margin-top:6px;font-size:14px;line-height:1.3;color:var(--soft);white-space:nowrap}
.hero__cue{position:absolute;top:18px;right:18px;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 4px;font-size:14px;color:var(--soft)}
.hero__cue i{width:1px;height:26px;background:linear-gradient(180deg,rgba(var(--ink-rgb),.6),transparent)}

/* ---- Worlds -------------------------------------------------------------- */
.worlds__grid{display:grid;gap:var(--gap)}
/* Every tile holds its designs as a fanned hand of phones (render.js sets
   each phone's --r rotation and --y drop from its distance to the centre). */
.world{--gx:50%;display:flex;flex-direction:column;min-height:300px;padding:22px 20px 16px;
  background:radial-gradient(80% 62% at var(--gx) 118%,rgba(var(--glow-rgb),calc(.4 * var(--glow-mix))),rgba(var(--glow-rgb),.06) 52%,transparent 76%),var(--card)}
.world__label{font-family:var(--serif);font-size:clamp(40px,5.2vw,64px);line-height:1;letter-spacing:-.015em}
.world__line{margin-top:10px;color:var(--soft);max-width:32ch}
.world__strip{display:flex;justify-content:center;align-items:flex-start;margin-top:auto;padding:30px 6% 34px}
.mini{--mini:64px;position:relative;flex:0 1 var(--mini);min-width:0;margin-left:-6%;aspect-ratio:9 / 19.5;overflow:hidden;border-radius:16% / 7.4%;
  border:1px solid rgba(var(--ink-rgb),.12);transform:translateY(var(--y,0)) rotate(var(--r,0deg));
  box-shadow:-10px 16px 34px rgba(var(--shadow-rgb),calc(var(--shade) * .75));
  background:radial-gradient(120% 50% at 50% 110%,rgba(var(--glow-rgb),.42),transparent 70%),var(--card2)}
.mini:first-child{margin-left:0}
.mini__shot{width:100%;height:100%;object-fit:cover}
.mini__notch{position:absolute;top:3.5%;left:50%;width:34%;aspect-ratio:7 / 1;border-radius:999px;background:rgba(var(--page-rgb),.9);transform:translateX(-50%)}
.world__go{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin-top:26px;padding-top:12px;border-top:1px solid var(--line);font-size:15px;font-weight:600}
.world__go::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.world__arrow{position:relative;width:34px;height:34px;flex:none;border-radius:50%;border:1px solid rgba(var(--ink-rgb),.16)}
.world__arrow::before{content:"";position:absolute;left:12px;top:11px;width:8px;height:8px;border-top:1.5px solid var(--ink);border-right:1.5px solid var(--ink);transform:rotate(135deg)}
.world:hover .world__arrow{background:rgba(var(--glow-rgb),.16);border-color:rgba(var(--glow-rgb),.6)}

/* ---- Ring ----------------------------------------------------------------
   ring.js adds .is-ring and turns the wheel into a 3D ring. The cards are
   landscape thumbnails (gallery style): a 16:9 PC shot over a --cap tall
   caption, so a card is --cw x 9/16 + --cap tall. --cw is the card width
   ring.js reads: --cw-max is 260/380/440 px by breakpoint (260 leaves the
   turned neighbours a peek either side on a phone, and it never grows wider
   than a small phone allows), and never more than lets the whole section (tabs, stage,
   toggle: --ring-chrome) fit one screen under the top bar: the stage is a
   card tall plus 18% so the front card's 1.06 lift never clips, so the card
   height ceiling is (100svh - top - chrome) / 1.18 and the width follows from
   it. Only a landscape phone is too short for that: there the card keeps
   240 px and the page scrolls. Without ring.js the wheel stays a grid.
   Depth is each card's own opacity, set by ring.js (dimmer with the turn
   away from the front, fogging out before edge-on): compositor work only.
   --lit (1 front, 0 a card away) fades the rim, glow and shadow
   continuously (registered as a number; it must inherit, since the ::before
   that shows the glow inherits from its card), and only the cards near the
   front (.is-near) keep the glow on its own layer. The stage looks at the ring from a little
   above (perspective-origin), so the neighbours lean away in depth. */
@property --cw{syntax:"<length>";inherits:true;initial-value:260px}
@property --lit{syntax:"<number>";inherits:true;initial-value:0}
.ring{--ring-chrome:160px;--cap:52px;--cw-max:min(260px,100vw - 90px);--fade-max:12px;--cw:clamp(240px,calc(((100svh - var(--top) - var(--ring-chrome)) / 1.18 - var(--cap)) * 16 / 9),var(--cw-max));
  display:grid;gap:12px;justify-items:center}
/* One row; it scrolls sideways when the pills outgrow a tablet width (a phone
   wraps them, see below). The auto margins centre the row while it fits and
   fall to 0 once it scrolls. */
.ring__tabs{display:flex;gap:6px;max-width:100%;padding:4px 2px;overflow-x:auto;scrollbar-width:none}
.ring__tabs::-webkit-scrollbar{display:none}
.ring__tabs:empty{display:none}
.ring__tab:first-child{margin-left:auto}
.ring__tab:last-child{margin-right:auto}
.ring__tab{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);
  font-size:14px;font-weight:600;line-height:1;color:var(--soft);white-space:nowrap}
.ring__tab:hover{color:var(--ink)}
.ring__tab[aria-selected="true"]{color:var(--ink);background:rgba(var(--glow-rgb),.14);border-color:rgba(var(--glow-rgb),.55)}
.ring__n{margin-left:4px;font-variant-numeric:tabular-nums;color:var(--soft)}
/* The count reads on the active tab in a dark or a light theme: the glow
   pulled toward the ink (white on dark pages, near-black on light ones). */
.ring__tab[aria-selected="true"] .ring__n{color:var(--ink);color:color-mix(in srgb,var(--glow) 55%,var(--ink))}
/* On a phone all four tabs show: they wrap to two rows instead of scrolling
   sideways (a hidden pill hid "Brands"), and the ring leaves room for row two. */
@media (max-width:420px){
  .ring{--ring-chrome:210px}
  .ring__tabs{flex-wrap:wrap;justify-content:center;overflow:visible}
  .ring__tab:first-child,.ring__tab:last-child{margin:0}
  .ring__tab{padding:0 14px}
}
.ring__stage{position:relative;width:100%;overflow:hidden;isolation:isolate;border-radius:var(--r);border:1px solid var(--line);
  perspective:900px;perspective-origin:50% 42%;touch-action:pan-y;-webkit-user-select:none;user-select:none;cursor:grab;
  background:
    radial-gradient(38% 22% at 50% 100%,rgba(var(--glow-rgb),calc(.34 * var(--glow-mix))),transparent 75%),
    radial-gradient(60% 55% at 50% 48%,rgba(var(--ink-rgb),.04),transparent 72%),
    var(--card)}
.ring.is-ring .ring__stage{height:calc((var(--cw) * 9 / 16 + var(--cap)) * 1.18)}
/* The edge fades never reach the front card, and on a phone (--fade-max
   12 px) they leave the neighbours' peek either side of it visible. */
.ring__stage::before,.ring__stage::after{content:"";position:absolute;top:0;bottom:0;z-index:2;width:clamp(0px,calc((100% - var(--cw) * 1.06) / 2),var(--fade-max));pointer-events:none}
.ring__stage::before{left:0;background:linear-gradient(90deg,var(--card),transparent)}
.ring__stage::after{right:0;background:linear-gradient(270deg,var(--card),transparent)}
/* The wheel box is a plane in the 3D scene too: on the flat track it sits in
   front of the set-back neighbours, so only the cards take pointer hits. */
.ring.is-ring .ring__wheel{position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none}
.ring.is-ring .ring__wheel .card{pointer-events:auto}
.ring.is-ring .ring__wheel .card{position:absolute;left:50%;top:50%;width:var(--cw);height:calc(var(--cw) * 9 / 16 + var(--cap));
  margin:calc((var(--cw) * 9 / 16 + var(--cap)) / -2) 0 0 calc(var(--cw) / -2);
  -webkit-backface-visibility:hidden;backface-visibility:hidden;transition:none;will-change:transform}
/* The card itself no longer clips (the glow sits outside it); the shot and
   the caption round their own corners. */
.ring.is-ring .ring__wheel .card{overflow:visible}
.ring__wheel .card::before,.ring__wheel .card:hover::before{border-color:rgba(var(--glow-rgb),.55);opacity:var(--lit,0);transition:none;
  box-shadow:0 0 0 1px rgba(var(--glow-rgb),.22),0 22px 44px -18px rgba(var(--shadow-rgb),.7),0 28px 70px -24px rgba(var(--glow-rgb),calc(.7 * var(--glow-mix)))}
.ring.is-ring .ring__wheel .card.is-near::before{will-change:opacity}
.ring__wheel .card img{-webkit-user-drag:none}
.ring.is-dragging .ring__stage,.ring.is-dragging .card{cursor:grabbing}
.ring__stage,.ring__grid{transition:opacity .22s var(--ease)}
.ring.is-fading .ring__stage,.ring.is-fading .ring__grid{opacity:0}
.ring__toggle{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 20px;border-radius:999px;
  border:1px solid rgba(var(--ink-rgb),.14);font-size:14px;font-weight:600}
.ring__toggle::before{content:"";width:12px;height:12px;border-radius:3px;border:1.5px solid currentColor;opacity:.7}
.ring[data-grid="1"] .ring__toggle::before{border-radius:50%}
.ring__toggle:hover{border-color:rgba(var(--glow-rgb),.6)}
.ring__grid,.ring:not(.is-ring) .ring__wheel{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--gap);width:100%}
.ns-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap);width:100%}
/* The card: a 16:9 shot (the PC screenshot, or a landscape name card) over a
   two-line caption, name then collection. */
.card{position:relative;display:flex;flex-direction:column;width:100%;overflow:hidden;border-radius:var(--r);border:1px solid var(--line);background:var(--card2);text-align:left}
.card > .card__shot{position:relative;display:block;flex:none;width:100%;aspect-ratio:16 / 9;overflow:hidden;border-radius:13px 13px 0 0;background:var(--frame);container-type:inline-size}
.card > .card__shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.card__ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 16px;text-align:center;
  background:
    radial-gradient(75% 95% at 50% 125%,rgba(var(--glow-rgb),calc(.55 * var(--glow-mix))),rgba(var(--glow-rgb),.1) 52%,transparent 76%),
    radial-gradient(70% 60% at 50% -10%,rgba(var(--ink-rgb),.06),transparent 70%),
    var(--card2)}
.card__ph .card__name{font-size:clamp(24px,9cqw,40px)}
.card__ph .card__col{margin-top:6px;font-size:13px}
.card__cap{display:flex;flex:1 0 auto;flex-direction:column;justify-content:center;min-height:var(--cap,52px);padding:0 14px;
  border-top:1px solid var(--line);border-radius:0 0 13px 13px;background:var(--card);text-align:left}
.card__cap .card__name{overflow:hidden;font-size:17px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis}
.card__cap .card__col{margin-top:2px;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.09em;text-transform:uppercase;color:var(--soft)}
.card--text{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:18px 12px 28px;text-align:center;
  background:
    radial-gradient(125% 55% at 50% 112%,rgba(var(--glow-rgb),calc(.62 * var(--glow-mix))),rgba(var(--glow-rgb),.12) 48%,transparent 72%),
    radial-gradient(90% 35% at 50% -6%,rgba(var(--ink-rgb),.07),transparent 70%),
    var(--card2)}
.card--text::after{content:"";position:absolute;inset:5px;border-radius:17px;border:1px solid rgba(var(--ink-rgb),.06);pointer-events:none}
.card__notch{position:absolute;top:11px;left:50%;width:32%;height:15px;border-radius:999px;background:rgba(var(--page-rgb),.92);border:1px solid rgba(var(--ink-rgb),.06);transform:translateX(-50%)}
.card__name{font-family:var(--serif);font-size:clamp(26px,7.4vw,34px);line-height:1;letter-spacing:-.01em;text-wrap:balance}
.card__col{margin-top:8px;font-size:13px;color:rgba(var(--ink-rgb),.72)}
/* The badge sits on the screenshot, light or dark, whatever the page theme:
   a solid near-black chip with mint letters reads on both. */
.card__badge{position:absolute;top:10px;right:10px;z-index:1;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:600;line-height:1;
  background:#0b0e0d;border:1px solid rgba(var(--glow-rgb),.55);color:#9ff0cf;color:color-mix(in srgb,rgb(var(--glow-rgb)) 45%,#fff)}
.ns-grid{list-style:none;padding:4px 0}
.ns-grid a{display:flex;flex-direction:column;justify-content:flex-end;min-height:180px;padding:16px;border-radius:var(--r);border:1px solid var(--line);
  background:radial-gradient(120% 60% at 50% 115%,rgba(var(--glow-rgb),.4),transparent 70%),var(--card2)}
.ns-grid img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:top;border-radius:calc(var(--r) - 6px);margin-bottom:14px}
.ns-grid strong{font-family:var(--serif);font-weight:400;font-size:28px;line-height:1}
.ns-grid span{font-size:14px;color:var(--soft);margin-top:6px}

/* ---- Bento: includes and steps ------------------------------------------ */
.bento{display:grid;gap:var(--gap)}
.bento__head{display:flex;align-items:flex-end;min-height:170px;padding:22px 20px;font-family:var(--serif);font-size:clamp(40px,5.2vw,60px);line-height:1;letter-spacing:-.015em;text-wrap:balance;
  background:radial-gradient(100% 90% at 0% 0%,rgba(var(--glow-rgb),.13),transparent 60%),var(--card2)}
.inc{display:flex;flex-direction:column;padding:22px 20px}
.inc--wide{background:radial-gradient(65% 110% at 88% 22%,rgba(var(--glow-rgb),.17),transparent 62%),var(--card)}
.inc__title{font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-.005em}
.inc__text{margin-top:6px;color:var(--soft);max-width:44ch}

/* The small live-feeling pictures (.inc__art, drawn by render.js). What is
   styled here is each one's still frame: the end of its loop, shown under
   reduced motion and off screen. The Motion block sets them moving. */
.mo{display:flex;align-items:center;gap:12px;height:56px;margin-bottom:22px}
.mo i,.mo b{display:block;font-style:normal}
.mo__num{flex:none;width:2.2em;height:1em;overflow:hidden;font-family:var(--serif);font-size:42px;line-height:1;letter-spacing:-.02em}
.mo__roll{display:block;transform:translateY(-5em)}
.mo__roll i{height:1em;white-space:nowrap}
.mo__roll small{margin-left:2px;font-size:.5em;vertical-align:.8em;color:var(--soft)}
.mo__track{flex:0 1 200px;min-width:60px;height:6px;overflow:hidden;border-radius:999px;background:rgba(var(--ink-rgb),.08)}
.mo__track i{width:100%;height:100%;border-radius:inherit;transform-origin:left center;background:linear-gradient(90deg,rgba(var(--glow-rgb),.35),var(--glow))}
.mo__switch{position:relative;width:52px;height:30px;flex:none;border-radius:999px;background:rgba(var(--ink-rgb),.12)}
.mo__switch::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--glow);box-shadow:0 0 18px rgba(var(--glow-rgb),.45)}
.mo__switch i{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:rgb(var(--bright-rgb));transform:translateX(22px)}
.mo__lines{display:grid;gap:7px}
.mo__lines i{width:96px;height:6px;border-radius:999px;background:rgba(var(--ink-rgb),.14)}
.mo__lines i + i{width:62px;background:rgba(var(--ink-rgb),.08)}
.mo__bubble{display:inline-flex;gap:6px;padding:13px 16px;border-radius:18px 18px 18px 6px;background:var(--card2);border:1px solid rgba(var(--ink-rgb),.1)}
.mo__bubble i{width:8px;height:8px;border-radius:50%;background:var(--soft)}
.mo__bubble i + i{opacity:.7}
.mo__bubble i + i + i{opacity:.4}
.mo__notice{display:flex;align-items:center;gap:10px;width:min(250px,84%);height:36px;padding:0 13px;border-radius:10px;background:rgba(var(--glow-rgb),.13);border:1px solid rgba(var(--glow-rgb),.38)}
.mo__notice b{width:8px;height:8px;flex:none;border-radius:50%;background:var(--glow)}
.mo__notice i{flex:1;height:6px;border-radius:999px;background:rgba(var(--ink-rgb),.24)}
.mo--star{gap:4px}
.mo--star svg{width:22px;height:22px;fill:var(--glow)}

.steps__list{display:grid;gap:var(--gap);list-style:none}
.step{display:flex;flex-direction:column;padding:22px 20px}
.step__n{font-family:var(--serif);font-size:72px;line-height:.9;letter-spacing:-.03em;
  background:linear-gradient(180deg,rgba(var(--ink-rgb),.95),var(--glow) 78%);-webkit-background-clip:text;background-clip:text;color:transparent}
.step__title{margin-top:30px;font-size:18px;font-weight:600;line-height:1.3}
.step__text{margin-top:6px;color:var(--soft);max-width:36ch}

/* ---- Closing: the one way out ------------------------------------------- */
.closing__card{--rim:170px;display:flex;flex-direction:column;align-items:center;text-align:center;isolation:isolate;
  min-height:clamp(520px,64vw,600px);padding:56px 22px 52px;
  background:
    radial-gradient(75% 52% at 50% calc(100% - var(--rim)),rgba(var(--glow-rgb),calc(.5 * var(--glow-mix))),rgba(var(--glow-rgb),.1) 48%,transparent 74%),
    linear-gradient(180deg,var(--card),var(--frame))}
.closing__sun{position:absolute;z-index:-1;top:calc(100% - var(--rim));left:50%;width:clamp(760px,150%,1900px);aspect-ratio:1;border-radius:50%;transform:translateX(-50%);
  background:linear-gradient(180deg,rgba(var(--glow-rgb),.26),var(--frame) 9%);
  box-shadow:0 0 0 1px rgba(var(--glow-rgb),.85),0 0 24px 2px rgba(var(--glow-rgb),.6),0 0 120px 24px rgba(var(--glow-rgb),calc(.32 * var(--glow-mix)))}
/* The rim's bright crest: a full-size ring that is the sun's own circle, so it
   follows the arc exactly; only its top edge is drawn and a mask fades it out
   towards both ends. */
.closing__sun::before{content:"";position:absolute;inset:-1px;border-radius:50%;border-top:2px solid rgba(var(--bright-rgb),.95);
  -webkit-mask-image:linear-gradient(90deg,transparent 30%,black 46%,black 54%,transparent 70%);mask-image:linear-gradient(90deg,transparent 30%,black 46%,black 54%,transparent 70%)}
.closing__h{font-family:var(--serif);font-size:clamp(52px,10vw,112px);line-height:.95;letter-spacing:-.025em;text-wrap:balance;max-width:12ch}
.closing__text{margin-top:18px;font-size:17px;color:var(--soft);max-width:40ch;text-wrap:pretty}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:54px;margin-top:auto;padding:0 28px;border-radius:999px;
  background:var(--ink);color:var(--page);font-size:16px;font-weight:600;letter-spacing:-.005em;
  box-shadow:0 0 0 1px rgba(var(--ink-rgb),.25),0 14px 34px -12px rgba(var(--glow-rgb),.9);transition:transform .3s var(--ease)}
@media (hover:hover){.btn:hover{transform:translateY(-2px)}}
.btn:active{transform:none}

/* ---- Template sheet --------------------------------------------------------
   sheet.js opens it. Phones: a full-screen sheet slides up, the device on
   top, the words under it, the two actions pinned to the bottom edge.
   >= 1024: a two-column panel (device left, words right) rises into place.
   The device is real hardware drawn in the theme's own colours: the screen
   is laid out at its true size (phone 390x844, PC 1280x800) and sheet.js
   scales the whole device with --s to fit the stage. Bezel and island use
   --shadow-rgb, which stays dark on light presets too. */
html.is-locked,html.is-locked body{overflow:hidden}
html.is-locked body{position:fixed;left:0;right:0;width:100%}
.sheet{position:fixed;inset:0;z-index:80;display:flex;justify-content:center}
.sheet__backdrop{position:absolute;inset:0;background:rgba(var(--page-rgb),.86);opacity:0;transition:opacity .4s var(--ease)}
.sheet.is-open .sheet__backdrop{opacity:1}
.sheet__panel{position:relative;display:flex;flex-direction:column;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  background:var(--frame);transform:translateY(100%);transition:transform .52s var(--ease)}
.sheet.is-open .sheet__panel{transform:none}
.sheet__close{position:sticky;top:10px;z-index:5;flex:none;align-self:flex-end;width:44px;height:44px;margin:10px 10px -54px 0;border-radius:50%;
  border:1px solid rgba(var(--ink-rgb),.14);background:rgba(var(--page-rgb),.7);transition:transform .3s var(--ease)}
.sheet__close::before,.sheet__close::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:1.5px;margin:-.75px 0 0 -8px;border-radius:2px;background:var(--ink);transform:rotate(45deg)}
.sheet__close::after{transform:rotate(-45deg)}
@media (hover:hover){.sheet__close:hover{transform:rotate(90deg)}}

/* The stage: a lit plinth the device stands on. */
.sheet__stage{position:relative;flex:none;overflow:hidden;isolation:isolate;
  background:
    radial-gradient(48% 34% at 50% 104%,rgba(var(--glow-rgb),calc(.36 * var(--glow-mix))),transparent 74%),
    radial-gradient(70% 60% at 50% 46%,rgba(var(--ink-rgb),.05),transparent 70%),
    var(--card)}
.sheet__frame{--s:1;position:absolute;left:50%;top:50%;padding:12px;border-radius:64px;background:rgb(var(--shadow-rgb));
  box-shadow:
    inset 0 0 0 1.5px rgba(var(--ink-rgb),.1),
    0 0 0 3px var(--card2),
    0 0 0 4px rgba(var(--ink-rgb),.22),
    0 50px 90px -30px rgba(var(--shadow-rgb),var(--shade)),
    0 0 140px -30px rgba(var(--glow-rgb),calc(.5 * var(--glow-mix)));
  transform:translate(-50%,-50%) scale(var(--s));transition:opacity .18s var(--ease),transform .45s var(--ease)}
.sheet__stage.is-swap .sheet__frame{opacity:0;transform:translate(-50%,-50%) scale(calc(var(--s) * .96))}
.sheet__stage.is-quiet .sheet__frame{transition:none}
/* Side keys: volume (two, by box-shadow) on the left, power on the right. */
.sheet__frame::before,.sheet__frame::after{content:"";position:absolute;width:4px;border-radius:2px;background:var(--card2);box-shadow:0 0 0 1px rgba(var(--ink-rgb),.14)}
.sheet__frame::before{left:-7px;top:180px;height:60px;box-shadow:0 0 0 1px rgba(var(--ink-rgb),.14),0 78px 0 var(--card2),0 78px 0 1px rgba(var(--ink-rgb),.14)}
.sheet__frame::after{right:-7px;top:230px;height:96px}
.sheet__screen{position:relative;width:390px;height:844px;overflow:hidden;border-radius:52px;background:var(--card2);isolation:isolate}
/* While the first load runs: a quiet breathing dot, nothing white. */
.sheet__screen::before{content:"";position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;
  background:var(--glow);box-shadow:0 0 18px rgba(var(--glow-rgb),.8);animation:sheet-wait 1.4s ease-in-out infinite}
@keyframes sheet-wait{50%{opacity:.2}}
/* The phone's status bar: 50 px in the design's page colour (sheet.js sets
   --bar-bg and data-bar from the framed page), with the time, signal, wifi
   and battery drawn in CSS. The island sits in it, as on the real phone, and
   the design starts under it. A laptop has none. */
.sheet__status{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;align-items:center;justify-content:space-between;height:50px;padding:3px 28px 0 44px;
  background:var(--bar-bg,var(--card2));color:var(--ink);font:600 16px/1 var(--sans);letter-spacing:-.01em}
.sheet__screen[data-bar="dark"] .sheet__status{color:rgb(var(--bright-rgb))}
.sheet__screen[data-bar="light"] .sheet__status{color:rgb(var(--shadow-rgb))}
.sheet__icons{display:flex;align-items:center;gap:6px}
.sheet__icons i{display:block}
.sheet__sig{width:17px;height:11px;background:
  linear-gradient(currentColor,currentColor) 0 100% / 3px 35% no-repeat,
  linear-gradient(currentColor,currentColor) 4.6px 100% / 3px 55% no-repeat,
  linear-gradient(currentColor,currentColor) 9.2px 100% / 3px 78% no-repeat,
  linear-gradient(currentColor,currentColor) 13.8px 100% / 3px 100% no-repeat}
.sheet__wifi{width:16px;height:12px;clip-path:polygon(50% 100%,0 28%,22% 4%,50% 0,78% 4%,100% 28%);
  background:radial-gradient(circle at 50% 100%,currentColor 0 3px,transparent 3.5px 5.5px,currentColor 6px 8.6px,transparent 9.1px 11.2px,currentColor 11.7px 14.5px,transparent 15px)}
.sheet__bat{position:relative;width:25px;height:12px;margin-right:3px;padding:1.5px;border:1px solid currentColor;border-radius:4px}
.sheet__bat::before{content:"";display:block;width:100%;height:100%;border-radius:2px;background:currentColor}
.sheet__bat::after{content:"";position:absolute;top:3px;right:-4px;width:2px;height:4px;border-radius:0 1px 1px 0;background:currentColor}
.sheet__frame[data-device="pc"] .sheet__status{display:none}
.sheet__screen iframe{position:absolute;top:50px;left:0;z-index:1;display:block;width:100%;height:calc(100% - 50px);border:0;background:transparent;
  opacity:0;visibility:hidden;transition:opacity .34s var(--ease)}
.sheet__screen iframe.is-top{z-index:2}
.sheet__screen iframe.is-on{opacity:1;visibility:visible}
.sheet__fallback{position:absolute;inset:0;z-index:0;background:var(--card2)}
.sheet__fallback .card__shot{width:100%;height:100%;object-fit:cover}
.sheet__fallback .card__name{font-size:44px}
.sheet__fallback .card__col{font-size:16px}
/* The device already has its island: the card's own notch and inner rim go. */
.sheet__fallback .card__notch,.sheet__fallback .card--text::after{display:none}
/* A template with no preview address yet: its name card and one plain line. */
.sheet__soon{position:absolute;left:0;right:0;top:46%;z-index:1;margin:0;padding:0 24px;text-align:center;color:var(--soft);font-size:18px;line-height:1.4}
.sheet__island{position:absolute;top:23px;left:50%;z-index:3;width:122px;height:35px;margin-left:-61px;border-radius:20px;background:rgb(var(--shadow-rgb));
  box-shadow:inset -14px 0 0 -10px rgba(var(--ink-rgb),.08)}

/* PC: a laptop. Thin bezel and a camera dot on the lid, a deck under it. */
.sheet__frame[data-device="pc"]{padding:16px 14px 18px;border-radius:24px 24px 8px 8px}
.sheet__frame[data-device="pc"] .sheet__screen{width:1280px;height:800px;border-radius:6px}
.sheet__frame[data-device="pc"] .sheet__screen iframe{top:0;height:100%}
.sheet__frame[data-device="pc"] .sheet__island{top:6px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:rgba(var(--ink-rgb),.22);box-shadow:none}
.sheet__frame[data-device="pc"]::after{left:-7%;right:-7%;top:100%;width:auto;height:22px;border-radius:2px 2px 26px 26px / 2px 2px 20px 20px;
  background:linear-gradient(180deg,rgba(var(--ink-rgb),.24),var(--card2) 18%,var(--frame));box-shadow:0 0 0 1px rgba(var(--ink-rgb),.12),0 30px 50px -20px rgba(var(--shadow-rgb),var(--shade))}
.sheet__frame[data-device="pc"]::before{left:50%;top:100%;z-index:1;width:15%;height:7px;margin-left:-7.5%;border-radius:0 0 12px 12px;background:rgba(var(--shadow-rgb),.55);box-shadow:none}

/* The words. */
.sheet__meta{display:flex;flex-direction:column;align-items:flex-start;padding:22px 20px 8px}
.sheet__col{display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--soft)}
.sheet__col::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--glow);box-shadow:0 0 10px rgba(var(--glow-rgb),.9)}
.sheet__name{margin-top:8px;font-family:var(--serif);font-size:clamp(44px,12vw,64px);line-height:.95;letter-spacing:-.02em}
.sheet__line{margin-top:12px;font-size:16px;color:var(--soft);max-width:38ch;text-wrap:pretty}
.sheet__tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px;list-style:none}
.sheet__tags li{padding:6px 11px;border-radius:999px;border:1px solid var(--line);background:var(--card);font-size:13px;line-height:1.2;color:rgba(var(--ink-rgb),.82)}
.sheet__devices{display:inline-flex;gap:2px;margin-top:22px;padding:3px;border-radius:999px;border:1px solid var(--line);background:var(--card)}
.sheet__device{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 18px 0 16px;border-radius:999px;font-size:14px;font-weight:600;color:var(--soft)}
.sheet__device::before{content:"";width:9px;height:14px;border-radius:2.5px;border:1.5px solid currentColor}
.sheet__device[data-device="pc"]::before{width:15px;height:10px;border-radius:2px;border-bottom-width:3px}
.sheet__device:hover{color:var(--ink)}
.sheet__device[aria-pressed="true"]{color:var(--ink);background:rgba(var(--glow-rgb),.14);box-shadow:inset 0 0 0 1px rgba(var(--glow-rgb),.55)}
.sheet__themes{margin-top:18px}
.sheet__label{font-size:14px;font-weight:600}
.sheet__theme{margin-left:6px;font-weight:500;color:var(--soft)}
/* Chips: a 44 px target around a 28 px disc of the preset's background with
   its accent as the dot in the middle. */
.chips{display:flex;flex-wrap:wrap;margin:4px 0 0 -8px}
.chip{position:relative;width:44px;height:44px;border-radius:50%}
.chip::before,.chip::after{content:"";position:absolute;left:50%;top:50%;border-radius:50%;transition:transform .25s var(--ease)}
.chip::before{width:28px;height:28px;margin:-14px 0 0 -14px;background:var(--sw-bg,var(--card2));box-shadow:inset 0 0 0 1px rgba(var(--ink-rgb),.2)}
.chip::after{width:10px;height:10px;margin:-5px 0 0 -5px;background:var(--sw-dot,var(--glow))}
@media (hover:hover){.chip:hover::before,.chip:hover::after{transform:scale(1.1)}}
.chip[aria-pressed="true"]::before{box-shadow:inset 0 0 0 1px rgba(var(--ink-rgb),.2),0 0 0 2px var(--frame),0 0 0 3.5px var(--glow)}
.sheet__note{margin-top:20px;padding-left:12px;border-left:2px solid rgba(var(--glow-rgb),.6);font-size:14px;line-height:1.5;color:var(--soft);max-width:40ch}
.sheet__foot{position:sticky;bottom:0;z-index:4;margin-top:auto;padding:22px 20px calc(16px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(var(--page-rgb),0),var(--frame) 26px)}
.sheet__actions{display:flex;gap:10px}
.sheet__actions .btn{flex:1 1 0;margin-top:0;padding:0 18px;white-space:nowrap}
.btn--ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px rgba(var(--ink-rgb),.28)}
/* Below 1024 the words box dissolves (display:contents) so its parts can be
   ordered around the stage: the name heads the sheet, the device toggle and
   the chips sit straight under the device, above the fold with the pinned
   actions; the description follows on scroll. */
@media (max-width:1023.98px){
  .sheet__meta{display:contents}
  .sheet__col{order:1;margin:20px 72px 0 20px}
  .sheet__name{order:2;margin:4px 72px 14px 20px;font-size:clamp(36px,9.4vw,48px)}
  .sheet__stage{order:3;height:max(280px,calc(100svh - 340px));margin:0 10px;border-radius:var(--r);border:1px solid var(--line)}
  .sheet__devices{order:4;align-self:flex-start;margin:12px 20px 0}
  .sheet__themes{order:5;margin:12px 20px 0}
  .sheet__line{order:6;margin:20px 20px 0}
  .sheet__tags{order:7;margin:14px 20px 0}
  .sheet__note{order:8;margin:20px 20px 8px}
  .sheet__foot{order:9}
}
@media (max-width:1023.98px) and (max-height:720px){
  .sheet__col{margin-top:14px}
  .sheet__name{margin-bottom:10px;font-size:34px}
  .sheet__stage{height:max(220px,calc(100svh - 380px))}
  .sheet__devices,.sheet__themes{margin-top:8px}
}
@media (min-width:1024px){
  .sheet{align-items:center;padding:24px}
  .sheet__panel{display:grid;grid-template-columns:minmax(0,1fr) 384px;grid-template-rows:minmax(0,1fr) auto;
    width:min(1380px,100%);height:min(920px,100%);overflow:hidden;border-radius:var(--r-frame);border:1px solid var(--line);
    box-shadow:0 40px 120px rgba(var(--shadow-rgb),var(--shade));opacity:0;transform:translateY(28px) scale(.985);
    transition:transform .55s var(--ease),opacity .35s var(--ease)}
  .sheet.is-open .sheet__panel{opacity:1;transform:none}
  .sheet__close{position:absolute;top:16px;right:16px;margin:0}
  .sheet__stage{grid-row:1 / 3;height:auto;margin:12px 0 12px 12px;border-radius:var(--r);border:1px solid var(--line)}
  .sheet__meta{overflow-y:auto;padding:80px 36px 8px}
  .sheet__foot{position:static;padding:16px 36px 32px;background:none}
  .sheet__actions{flex-direction:column}
  .sheet__actions .btn{flex:none}
}

/* ---- Footer -------------------------------------------------------------- */
.foot{max-width:calc(1240px + 2 * var(--gutter));margin:0 auto;padding:40px var(--gutter) 48px;color:var(--soft)}
.foot__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.foot__mark{display:inline-flex;align-items:center;gap:10px;color:var(--ink);font-weight:500}
.foot__link{display:inline-flex;align-items:center;min-height:44px;padding:0 2px;color:var(--ink);text-decoration:underline;text-decoration-color:rgba(var(--ink-rgb),.3);text-underline-offset:5px}
.foot__note,.foot__legal{margin-top:14px;font-size:14px;line-height:1.6;max-width:70ch}

/* ---- Plain pages (privacy) ------------------------------------------------ */
.doc{max-width:calc(820px + 2 * var(--gutter));margin:0 auto;padding:var(--gutter)}
.doc__card{padding:32px 22px 36px}
.doc__card h1{font-family:var(--serif);font-size:clamp(46px,9vw,80px);line-height:.95;letter-spacing:-.02em}
.doc__card h2{margin-top:32px;font-size:18px;font-weight:600}
.doc__card p{margin-top:10px;color:var(--soft);max-width:62ch}
.doc__card .lede{margin-top:16px;font-size:17px;color:var(--ink)}

/* ---- Names marquee -------------------------------------------------------
   Every design's name drifting past between the ring and the features.
   render.js fills the track with two identical sets (the second hidden from
   screen readers); the track slides by -50%, exactly one set, so the loop
   has no seam. Without JS the track holds the names baked into the page
   (tools/prerender.py): they stand still, clipped to the width, and the
   section only collapses if there are no names at all. */
.frame.names{overflow:hidden;padding:24px 0}
.names:has(.names__track:empty){display:none}
.names__mask{-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.names__track{display:flex;width:max-content}
.names__set{display:flex;list-style:none;font-family:var(--serif);font-size:clamp(28px,3.1vw,40px);line-height:1.2;letter-spacing:-.01em;
  color:rgba(var(--ink-rgb),.6);white-space:nowrap}
.names__set li{display:flex;align-items:center}
.names__set li::after{content:"\00b7";content:"\00b7" / "";margin:0 .62em;color:var(--glow)}

/* ---- Motion ------------------------------------------------------------------
   The rule: only transform and opacity move, nothing loops off screen, and
   reduced motion gets the still page (no hidden state, no loops, no drift).
   1. Reveals (motion.js): [data-reveal] rises 24 px into place once, 700 ms,
      staggered by --d x 70 ms. Hidden only under html.js-reveal, which the
      script adds itself, so JS off or a failed script hides nothing. When the
      rise is over (.is-done) the element's own transitions apply again.
   2. Header: slides away on the way down, back on the way up (motion.js
      toggles .is-hidden).
   3. Marquee: ~40 px/s (--per seconds per name x --n names per set), only
      while #names is on screen (.is-in), paused under the pointer (it holds
      nothing focusable, so there is no focus pause).
   4. World tiles: each fan drifts 36 px against the scroll on a view()
      timeline, where the browser has one; otherwise it stands still.
   5. Feature pictures: one calm loop each (3-6 s), only while #includes is
      on screen (.is-in). */
[data-reveal]{--d:0;--rd:calc(var(--d) * 70ms)}
html.js-reveal [data-reveal]:not(.is-done){transition:opacity .7s var(--ease) var(--rd),transform .7s var(--ease) var(--rd)}
html.js-reveal [data-reveal]:not(.is-in){opacity:0;transform:translateY(24px)}
@media print{html.js-reveal [data-reveal]{opacity:1!important;transform:none!important}}

.top{transition:transform .32s var(--ease)}
.top.is-hidden{transform:translateY(-100%)}

.names__track{--per:3.4s;animation:names-roll calc(var(--n,12) * var(--per)) linear infinite;animation-play-state:paused}
.names.is-in .names__track{animation-play-state:running}
.names:hover .names__track{animation-play-state:paused}
@keyframes names-roll{to{transform:translateX(-50%)}}

@keyframes world-drift{from{transform:translateY(18px)}to{transform:translateY(-18px)}}
/* overflow:clip (not hidden) on the tile: a hidden-overflow box is a scroll
   container, and view() would then track the fan inside its own tile, which
   never scrolls, instead of across the page. clip trims the same way. */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .world{overflow:clip}
    .world__strip{animation:world-drift linear both;animation-timeline:view()}
  }
}

/* counter: the figure rolls 0 to 100 up its strip while the bar fills, holds,
   then both fade and start again (the reset happens unseen). */
@keyframes mo-roll{
  0%{opacity:0;transform:translateY(0)}
  6%,14%{opacity:1;transform:translateY(0)}
  22%{transform:translateY(-1em)}
  30%{transform:translateY(-2em)}
  38%{transform:translateY(-3em)}
  46%{transform:translateY(-4em)}
  54%,86%{opacity:1;transform:translateY(-5em)}
  94%,100%{opacity:0;transform:translateY(-5em)}
}
@keyframes mo-bar{
  0%{opacity:0;transform:scaleX(0)}
  6%{opacity:1;transform:scaleX(0)}
  14%{transform:scaleX(0);animation-timing-function:cubic-bezier(.45,0,.2,1)}
  54%,86%{opacity:1;transform:scaleX(1)}
  94%,100%{opacity:0;transform:scaleX(1)}
}
/* toggle: the knob slides over and the track lights, holds, slides back. */
@keyframes mo-knob{0%,18%{transform:translateX(0)}32%,68%{transform:translateX(22px)}82%,100%{transform:translateX(0)}}
@keyframes mo-fill{0%,18%{opacity:0}32%,68%{opacity:1}82%,100%{opacity:0}}
/* typing: three dots brighten one after another, twice a cycle. */
@keyframes mo-dot{
  0%,26%,50%,76%,100%{opacity:.25;transform:none}
  12%,62%{opacity:1;transform:translateY(-2px)}
}
/* notice: the bar drops in, stays a while, lifts away. */
@keyframes mo-notice{
  0%{opacity:0;transform:translateY(-10px)}
  14%,70%{opacity:1;transform:none}
  84%,100%{opacity:0;transform:translateY(-10px)}
}
/* star: five stars grow in one after another, hold, and clear together-ish. */
@keyframes mo-star{
  0%{opacity:0;transform:scale(.5)}
  9%,78%{opacity:1;transform:scale(1)}
  88%,100%{opacity:0;transform:scale(.8)}
}
@media (prefers-reduced-motion:no-preference){
  .includes.is-in .mo__roll{animation:mo-roll 5.6s var(--ease) infinite both}
  .includes.is-in .mo__track i{animation:mo-bar 5.6s linear infinite both}
  .includes.is-in .mo__switch i{animation:mo-knob 4.8s var(--ease) infinite both}
  .includes.is-in .mo__switch::before{animation:mo-fill 4.8s var(--ease) infinite both}
  .includes.is-in .mo__bubble i{animation:mo-dot 3.2s ease-in-out infinite both}
  .includes.is-in .mo__bubble i + i{animation-delay:.18s}
  .includes.is-in .mo__bubble i + i + i{animation-delay:.36s}
  .includes.is-in .mo__notice{animation:mo-notice 5s var(--ease) infinite both}
  .includes.is-in .mo--star svg{animation:mo-star 5.2s var(--ease) infinite both}
  .includes.is-in .mo--star svg:nth-child(2){animation-delay:.14s}
  .includes.is-in .mo--star svg:nth-child(3){animation-delay:.28s}
  .includes.is-in .mo--star svg:nth-child(4){animation-delay:.42s}
  .includes.is-in .mo--star svg:nth-child(5){animation-delay:.56s}
}

/* ---- Wider screens -------------------------------------------------------- */
@media (min-width:480px){
  .ring{--cw-max:380px;--fade-max:12%}
  .ring__stage{perspective:1200px}
}
@media (min-width:1024px){
  .ring{--cw-max:440px}
}
@media (min-width:560px){
  .ring__grid,.ring:not(.is-ring) .ring__wheel{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:640px){
  .ns-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:768px){
  :root{--gap:14px}
  .frame.names{padding:30px 0}
  .names__track{--per:4.2s}
  main{gap:20px}
  .frame{padding:14px}
  .hero__card{padding:24px 26px 28px}
  .hero__cue{top:24px;right:26px}
  /* 2 + 1 bento: the first collection runs wide, the other two share a row.
     Wide tiles put the words left and the fan right. */
  .worlds__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .world:first-child{grid-column:1 / -1}
  .world{padding:26px 24px 18px}
  .mini{--mini:84px}
  .world:first-child{--gx:74%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);grid-template-rows:auto 1fr auto;column-gap:28px}
  .world:first-child .world__strip{grid-column:2;grid-row:1 / 3;align-self:center;margin:0;padding:12px 4% 40px}
  .world:first-child .world__label{grid-column:1;grid-row:1}
  .world:first-child .world__line{grid-column:1;grid-row:2;align-self:start}
  .world:first-child .world__go{grid-column:1 / -1}
  .world:first-child .mini{--mini:132px}
  .inc{min-height:236px}
  .step{min-height:220px}
  .bento{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bento__head,.inc--wide{grid-column:span 2}
  .bento--steps{grid-template-columns:1fr}
  .bento--steps .bento__head{grid-column:auto}
  .steps__list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .doc__card{padding:48px 44px 52px}
}
@media (min-width:900px){
  .ring__grid,.ring:not(.is-ring) .ring__wheel{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ns-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hero__foot{grid-template-columns:minmax(0,1fr) minmax(360px,440px);align-items:end;gap:40px}
  .card__name{font-size:30px}
}
@media (min-width:1100px){
  .frame{padding:18px}
  .hero__card{padding:30px 34px 34px}
  .hero__cue{top:30px;right:34px}
  .bento{grid-template-columns:repeat(3,minmax(0,1fr))}
  .bento__head{grid-column:auto;min-height:260px}
  .bento--steps{grid-template-columns:1fr 3fr}
  .ns-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .closing__card{--rim:190px;padding-top:80px}
  .world{--gx:74%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-rows:auto 1fr auto;column-gap:24px}
  .world .world__strip{grid-column:2;grid-row:1 / 3;align-self:center;margin:0;padding:12px 4% 40px}
  .world__label{grid-column:1;grid-row:1}
  .world__line{grid-column:1;grid-row:2;align-self:start}
  .world__go{grid-column:1 / -1}
}
@media (max-width:399px){
  .top__nav a{padding:0 8px;font-size:13.5px}
  .top__mark{letter-spacing:.12em}
  .hero__cue{display:none}
  .stat__n{font-size:38px}
  .stat__l{font-size:13px}
  .stat{padding-right:14px}
  .stat + .stat{padding-left:12px}
}

/* ---- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .names__track{animation:none}
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
