/* The splash page (welcome.html): the collection's story as you scroll, then into the site. It uses the site's colour
   tokens and font from styles.css, so both themes match. Sections alternate paper and panel, like the bands on a
   product page. Movement: things come into place as they scroll into view (.reveal, set by welcome.js), each section
   in its own way (see "motion" at the end), and the hero set grows as you scroll past it where the browser has
   scroll-driven animations. With reduced motion, nothing moves and it all just shows. */
.welcome{font-size:16px;overflow-x:clip}
.welcome main{display:block;padding:0}

/* top bar: the brand, and a way in that's always on screen */
.wnav{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:16px;
  height:52px;padding:0 var(--sp);background:color-mix(in srgb,var(--paper) 80%,transparent);
  -webkit-backdrop-filter:saturate(1.6) blur(16px);backdrop-filter:saturate(1.6) blur(16px);border-bottom:1px solid var(--rule)}
/* on a phone the bar is plain: blurring the page under it on every scrolled frame makes phone scrolling stutter */
@media (hover:none){.wnav{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--paper)}}
.wbrand{display:flex;align-items:center;gap:7px;font-family:var(--font-brand);font-weight:800;font-size:17px;letter-spacing:-.03em;line-height:1;color:var(--ink);text-decoration:none}
.wbrand .logo{width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(27,26,23,.3))}
/* the theme button, as in the site's header: no outline, a soft fill on mouse hover only (never on touch) */
.wnav-end{display:flex;align-items:center;gap:8px}
.wnav .iconbtn{margin-left:0;border-color:transparent;background:transparent}
@media (hover:hover){.wnav .iconbtn:hover{border-color:transparent;background:color-mix(in srgb,var(--ink) 10%,transparent);color:var(--ink)}}
.wenter-sm{font-size:14px;font-weight:600;color:var(--accent);text-decoration:none;padding:8px 4px}
@media (hover:hover){.wenter-sm:hover{text-decoration:underline}}

/* shared type */
.wh2{font-size:clamp(36px,6vw,72px);font-weight:800;letter-spacing:-.035em;line-height:1.02;margin:0 0 clamp(28px,5vw,56px)}
.wkicker{font-size:clamp(17px,2vw,21px);font-weight:600;color:var(--accent);margin:0 0 20px;letter-spacing:0}

/* hero */
.whero{min-height:calc(100svh - 52px);display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:clamp(40px,8vh,96px) var(--sp) 24px;overflow:clip}
.whero h1{font-family:var(--font-brand);font-size:clamp(56px,11vw,148px);font-weight:800;letter-spacing:-.03em;line-height:.95;margin:0}
/* the title's words come into focus one after the other */
.whero h1 .ww{display:inline-block;animation:wfocus 1.1s cubic-bezier(.2,.7,.2,1) both}
.whero h1 .ww+.ww{animation-delay:.14s}
/* the title is the drawn name, as tall as the letters were (ascender to descender); its books' colours are in styles.css */
.whero h1 .wmark{display:block;height:.75em;width:auto;margin:.1em 0}
/* the name in words, for screen readers */
.wvh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes wfocus{from{opacity:0;transform:translateY(.25em);filter:blur(14px)}}
.wlede{text-wrap:balance;font-size:clamp(19px,2.4vw,28px);font-weight:600;color:var(--ink-soft);margin:18px auto 0;max-width:30ch;
  line-height:1.25;letter-spacing:-.01em;animation:wrise .9s .35s cubic-bezier(.2,.7,.2,1) both}
.whero-img{margin:clamp(24px,5vh,56px) 0 0;width:min(1100px,100%);display:flex;align-items:center;
  justify-content:center;animation:wbloom 1.4s .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes wbloom{from{opacity:0;transform:scale(.9);filter:blur(12px)}}
/* the set drifts a little against the mouse and the words with it (--mx/--my from welcome.js), for depth */
.whero-img img{display:block;max-width:100%;max-height:52vh;width:auto;height:auto;
  translate:calc(var(--ox,0%) + var(--mx,0) * -16px) calc(var(--my,0) * -10px);transition:translate .8s cubic-bezier(.2,.7,.2,1)}
.whero-text{translate:calc(var(--mx,0) * 6px) calc(var(--my,0) * 4px);transition:translate .8s cubic-bezier(.2,.7,.2,1)}
.whero-img a{display:flex;flex-direction:column;align-items:center;gap:14px;color:var(--ink);text-decoration:none}
.whero-img figcaption{font-size:15px;color:var(--ink-faint);text-align:center}
.whero-img figcaption b{display:block;font-size:clamp(17px,1.8vw,20px);font-weight:700;color:var(--ink);margin-bottom:2px}
@keyframes wrise{from{opacity:0;transform:translateY(28px)}}
/* as you scroll on, the hero set grows a little and the title lifts away */
@supports (animation-timeline:view()){
  .whero-img img{animation:wgrow linear both;animation-timeline:view();animation-range:exit-crossing 0% exit-crossing 100%}
  .whero-text{animation:wlift linear both;animation-timeline:view();animation-range:exit-crossing 0% exit-crossing 70%}
  @keyframes wgrow{to{transform:scale(1.14)}}
  @keyframes wlift{to{opacity:0;transform:translateY(-40px)}}
}

/* things rise into place as they come into view */
.js .reveal{opacity:0;transform:translateY(32px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.js .reveal.in{opacity:1;transform:none}

/* numbers */
.wnums{background:var(--panel);padding:clamp(72px,12vh,140px) var(--sp);text-align:center}
.wstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(24px,4vw,56px);max-width:1100px;margin:0 auto}
@media (max-width:760px){.wstats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:40px}}
.wstat{display:flex;flex-direction:column-reverse;gap:6px}
.wstat dd{margin:0;font-size:clamp(40px,6vw,76px);font-weight:800;letter-spacing:-.04em;line-height:1;
  font-variant-numeric:tabular-nums}
.wstat dt{font-size:clamp(15px,1.6vw,19px);font-weight:600;color:var(--ink-soft)}
.wstat:nth-child(1) dd{color:var(--accent)}
.wsince{margin:clamp(40px,7vh,72px) 0 0;font-size:clamp(17px,2vw,22px);color:var(--ink-soft);font-weight:500}

/* themes: the photo stays pinned while the themes scroll past it. The band takes a hint of the theme in view's colour
   (--tint, from welcome.js), shifting as you scroll from one to the next. */
/* --wbg itself is what eases from one theme's tint to the next, so everything painted with it (the band, the
   phone's pinned stage, the fade under it) shifts together instead of each at its own pace */
@property --wbg{syntax:'<color>';inherits:true;initial-value:transparent}
.wthemes{--wbg:color-mix(in oklab,var(--tint,var(--paper)) 9%,var(--paper));
  padding:clamp(72px,12vh,140px) var(--sp) clamp(40px,8vh,80px);background-color:var(--wbg);transition:--wbg 1.2s ease}
:root[data-theme="dark"] .wthemes{--wbg:color-mix(in oklab,var(--tint,var(--paper)) 12%,var(--paper))}
.wthemes>*{max-width:calc(1240px - 2 * var(--sp));margin-left:auto;margin-right:auto}
.wtheme-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(24px,5vw,72px)}
.wstage{position:sticky;top:calc(52px + 8vh);height:min(76vh,640px);align-self:start}
/* each theme's set, its name under it, the whole a link to the set */
.wpic{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;gap:14px;
  color:var(--ink);text-decoration:none;opacity:0;
  transform:translateY(12%) scale(.92) rotate(2deg);transition:opacity .3s ease,transform 1s cubic-bezier(.2,.7,.2,1)}
.wpic.past{transform:translateY(-12%) scale(.92) rotate(-2deg)}
/* the photo leaving fades fast and the next comes in just after, so two photos and their names never show at
   once (on a phone's short stage that looked like a broken double exposure) */
.wpic.on{opacity:1;transform:none;transition:opacity .5s ease .2s,transform 1s cubic-bezier(.2,.7,.2,1)}
.wpic img{flex:1;min-height:0;width:100%;object-fit:contain;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
@media (hover:hover){.wpic:hover img{transform:scale(1.03)}}
.wpic span{font-size:15px;color:var(--ink-faint);text-align:center}
.wpic b{display:block;font-size:clamp(17px,1.8vw,20px);font-weight:700;color:var(--ink);margin-bottom:2px}
/* one dot per theme, the current one long and red */
.wdots{position:absolute;right:calc(clamp(24px,5vw,72px) / -2 - 10px);top:50%;translate:0 -50%;display:flex;
  flex-direction:column;align-items:center;gap:8px}
.wdots i{display:block;width:4px;height:14px;border-radius:2px;background:var(--callout-edge);transition:height .5s ease,background .5s ease}
.wdots i.on{height:34px;background:var(--accent)}
.wsteps{list-style:none;margin:0;padding:0}
.wstep{min-height:72vh;display:flex;flex-direction:column;justify-content:center;padding:24px 0;opacity:.28;transition:opacity .5s ease}
.wstep.on{opacity:1}
.wstep .wrank{font-size:15px;font-weight:600;color:var(--accent);margin:0 0 10px}
.wstep h3{font-size:clamp(30px,4vw,48px);font-weight:800;letter-spacing:-.03em;line-height:1.05;margin:0 0 14px}
.wstep p{text-wrap:balance;margin:0;font-size:clamp(17px,1.8vw,21px);line-height:1.45;color:var(--ink-soft);max-width:34ch}
.wstep b{color:var(--ink);font-weight:700}
@media (max-width:760px){
  .wtheme-grid{grid-template-columns:minmax(0,1fr);gap:0}
  .wstage{top:52px;height:38vh;z-index:1;background-color:var(--wbg);
    margin:0 calc(var(--sp) * -1);padding:12px var(--sp)}
  /* on a phone the photos only fade, one out then the next in: moving them inside the pinned stage while the page
     scrolls stutters and jumps on iPhones */
  .wpic,.wpic.past,.wpic.on{top:12px;left:var(--sp);width:calc(100% - 2 * var(--sp));height:calc(100% - 24px);gap:6px;
    transform:none}
  .wpic{transition:opacity .25s ease}
  .wpic.on{transition:opacity .35s ease .25s}
  /* the themes' text scrolls up under the pinned photo: it fades out there instead of being cut off mid-line */
  .wstage::after{content:'';position:absolute;left:0;right:0;top:100%;height:28px;pointer-events:none;
    background:linear-gradient(var(--wbg),transparent)}
  .wpic span{font-size:13px}
  .wpic b{font-size:15px;margin:0}
  .wdots{display:none}
  .wstep{min-height:56vh}
}

/* spotlights: Toy Story and The Lord of the Rings, each with its own mood so they don't read as one section twice.
   Shared: a header, the lead set large, then a few more sets floating in a row, and "See all" when there are more. */
.wspot{padding:clamp(72px,12vh,140px) var(--sp);overflow:clip}
.wspot-inner{max-width:1240px;margin:0 auto}
.wspot .wh2{margin-bottom:16px}
.wspot-lede{text-wrap:balance;font-size:clamp(19px,2.2vw,26px);font-weight:600;color:var(--ink-soft);margin:0;max-width:30ch;
  line-height:1.3;letter-spacing:-.01em}
.wspot-lead{display:flex;flex-direction:column;align-items:center;gap:18px;color:var(--ink);text-decoration:none}
.wspot-lead img{display:block;max-width:100%;width:auto;height:auto;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
@media (hover:hover){.wspot-lead:hover img{transform:scale(1.03)}}
.wspot-lead span{font-size:16px;color:var(--ink-faint);text-align:center}
.wspot-lead b{display:block;font-size:clamp(19px,2vw,22px);font-weight:700;color:var(--ink);margin-bottom:2px}
.wspot-grid{list-style:none;margin:clamp(48px,8vh,88px) 0 0;padding:0;display:grid;
  grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:clamp(20px,3vw,40px) clamp(16px,2.5vw,32px)}
@media (max-width:960px){.wspot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:600px){.wspot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.wspot-grid a{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--ink);text-decoration:none;text-align:center}
.wspot-grid .wtile{position:relative;display:block;width:100%;aspect-ratio:1/1;margin-bottom:8px}
/* every photo fits the same square, so the names under them line up */
.wspot-grid .wtile>img,.wspot-grid .wplate{position:absolute;inset:0;width:100%;height:100%}
.wspot-grid img{object-fit:contain;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
@media (hover:hover){.wspot-grid a:hover img{transform:scale(1.06)}}
/* a set without a cut-out sits on the site's light photo backdrop */
.wplate{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#fff;padding:8%}
.wplate img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.wspot-grid b{display:block;font-size:15px;font-weight:600;line-height:1.3;min-height:2.6em}
.wspot-grid .wyear{font-size:14px;color:var(--ink-faint)}
.wspot-all{margin:clamp(36px,6vh,56px) 0 0;text-align:center;font-size:17px;font-weight:600}
.wspot-all a{color:var(--accent);text-decoration:none}
@media (hover:hover){.wspot-all a:hover{text-decoration:underline}}

/* Toy Story: Andy's room, a sky-blue band with soft clouds; the words beside the lead set */
#wSpotToy{--sky:#CFE5F8;--cloud:rgba(255,255,255,.75);position:relative;background:var(--sky)}
/* two layers of clouds drifting at different speeds */
#wSpotToy::before,#wSpotToy::after{content:'';position:absolute;inset:0 -20%;pointer-events:none;
  animation:wdrift 80s linear infinite alternate}
#wSpotToy::before{background:
  radial-gradient(ellipse 220px 70px at 12% 18%,var(--cloud),transparent 70%),
  radial-gradient(ellipse 300px 90px at 82% 12%,var(--cloud),transparent 70%),
  radial-gradient(ellipse 260px 80px at 68% 88%,var(--cloud),transparent 70%)}
#wSpotToy::after{background:
  radial-gradient(ellipse 200px 60px at 22% 76%,var(--cloud),transparent 70%),
  radial-gradient(ellipse 160px 50px at 48% 40%,var(--cloud),transparent 70%),
  radial-gradient(ellipse 240px 70px at 92% 60%,var(--cloud),transparent 70%);
  opacity:.7;animation-duration:120s;animation-direction:alternate-reverse}
@keyframes wdrift{from{transform:translateX(-7%)}to{transform:translateX(7%)}}
#wSpotToy .wspot-inner{position:relative;z-index:1}
:root[data-theme="dark"] #wSpotToy{--sky:#132232;--cloud:rgba(207,229,248,.07)}
#wSpotToy .wspot-inner{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(24px,4vw,64px);align-items:center}
#wSpotToy .wspot-grid,#wSpotToy .wspot-all{grid-column:1 / -1}
#wSpotToy .wspot-lead img{max-height:min(52vh,480px)}
@media (max-width:760px){#wSpotToy .wspot-inner{grid-template-columns:minmax(0,1fr)}}

/* The Lord of the Rings: dark in both themes, centred, with a warm glow behind the lead set like firelight */
#wSpotLotr{--ink:#EEEDEA;--ink-soft:#C9C6BD;--ink-faint:#A9A59B;--accent:#E2BD3C;color:var(--ink);position:relative;
  background:#0E0D0B}
/* the glow breathes slowly, like firelight */
#wSpotLotr::before{content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 60% 45% at 50% 58%,rgba(226,170,60,.24),transparent 70%);
  animation:wbreathe 7s ease-in-out infinite alternate}
@keyframes wbreathe{from{opacity:.6;transform:scale(.96)}to{opacity:1;transform:scale(1.05)}}
#wSpotLotr .wspot-inner{position:relative;z-index:1}
/* embers rising through the dark (placed by welcome.js) */
.wembers{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.wembers i{position:absolute;bottom:-12px;left:var(--x);width:var(--s);height:var(--s);border-radius:50%;opacity:0;
  background:#FFC061;box-shadow:0 0 6px 2px rgba(255,140,40,.55);animation:wember var(--t) var(--d) linear infinite}
@keyframes wember{0%{opacity:0;transform:none}10%{opacity:.9}75%{opacity:.45}
  100%{opacity:0;transform:translate(var(--dx),-85vh)}}
#wSpotLotr .wspot-head{text-align:center}
#wSpotLotr .wspot-lede{margin:0 auto}
#wSpotLotr .wspot-lead{margin:clamp(32px,6vh,64px) auto 0}
#wSpotLotr .wspot-lead img{max-height:min(62vh,600px)}
#wSpotLotr .wplate{background:#EFEFEF}

/* standouts: a sideways row that snaps card by card */
.wstand{background:var(--panel);padding:clamp(72px,12vh,140px) 0}
.wstand-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;max-width:1240px;margin:0 auto;padding:0 var(--sp)}
.wrow-btns{display:flex;gap:10px;margin-bottom:clamp(28px,5vw,56px)}
.wrow-btn{width:44px;height:44px;border-radius:50%;border:0;background:var(--callout);color:var(--ink);font-size:24px;
  line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0 0 3px}
.wrow-btn:disabled{opacity:.35;cursor:default}
@media (hover:hover){.wrow-btn:not(:disabled):hover{background:var(--callout-edge)}}
@media (max-width:600px){.wrow-btns{display:none}}
.wrow{list-style:none;margin:0;display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
  padding:4px max(var(--sp),calc((100vw - 1240px) / 2 + var(--sp))) 24px;scroll-padding-inline:max(var(--sp),calc((100vw - 1240px) / 2 + var(--sp)))}
.wrow::-webkit-scrollbar{display:none}
.wcard{flex:0 0 clamp(260px,30vw,360px);scroll-snap-align:start}
.wcard a{display:flex;flex-direction:column;height:100%;background:var(--paper);border-radius:var(--r-card);padding:24px;
  color:var(--ink);text-decoration:none;transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s ease}
@media (hover:hover){.wcard a:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover)}}
.wcard .wlabel{font-size:14px;font-weight:600;color:var(--accent);margin:0 0 6px}
.wcard h3{font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.15;margin:0}
.wcard .wfig{height:clamp(200px,22vw,260px);display:flex;align-items:center;justify-content:center;margin:20px 0}
.wcard img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transition:transform .5s cubic-bezier(.2,.7,.2,1),
  translate .3s ease-out;translate:calc(var(--tx,0) * 14px) calc(var(--ty,0) * 10px)}
@media (hover:hover){.wcard a:hover img{transform:scale(1.04)}}
.wcard .wplate{background:none;padding:0}
:root[data-theme="dark"] .wcard .wplate img{mix-blend-mode:normal}
.wcard .wmeta{font-size:14px;color:var(--ink-faint);margin:auto 0 0}

/* the way in */
.wend{text-align:center;padding:clamp(96px,16vh,180px) var(--sp)}
.wend .wh2{margin-bottom:36px}
.wenter{position:relative;overflow:hidden;display:inline-block;background:var(--accent-fill);color:#fff;
  font-size:clamp(17px,1.8vw,19px);font-weight:600;text-decoration:none;padding:16px 32px;border-radius:var(--r-sm);
  transition:filter .2s ease}
/* a light sweeps across it once it's in view, and again on hover */
.wenter::after{content:'';position:absolute;top:0;bottom:0;left:-60%;width:40%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent);transform:skewX(-20deg)}
.wenter.in::after{animation:wshine 1.2s .9s ease-out both}
@media (hover:hover){.wenter:hover::after{animation:wshine2 .9s ease-out both}}
@keyframes wshine{to{left:130%}}
@keyframes wshine2{from{left:-60%}to{left:130%}}
@media (hover:hover){.wenter:hover{filter:brightness(1.08)}}
.wwish{margin:24px 0 0;font-size:17px;color:var(--ink-soft)}
/* the page for an address that doesn't exist (404.html): the way in again, filling the screen under the bar */
.welcome .wlost{min-height:calc(100vh - 52px);min-height:calc(100dvh - 52px);display:flex;flex-direction:column;align-items:center;justify-content:center}
.wlost .wh2{margin-bottom:20px}
.wlost-why{max-width:34em;text-wrap:balance;margin:0 auto 36px;font-size:17px;color:var(--ink-soft)}
.wwish a{color:var(--accent);font-weight:600;text-decoration:none}
@media (hover:hover){.wwish a:hover{text-decoration:underline}}

/* ---------- motion ---------- */
/* reading progress: a thin red line under the top bar, filled as you scroll (welcome.js sets --progress where the
   browser can't do it from the scroll position) */
.wnav::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--accent);
  transform-origin:0 50%;transform:scaleX(var(--progress,0))}
@supports (animation-timeline:scroll()){
  .wnav::after{animation:wprogress linear both;animation-timeline:scroll(root)}
  @keyframes wprogress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
}

/* numbers: a red line grows under each as it counts up */
.wstat dd::after{content:'';display:block;width:44px;height:3px;margin:14px auto 0;border-radius:2px;background:var(--accent);
  transition:transform 1.4s cubic-bezier(.2,.7,.2,1) .15s}
.js .wstat:not(.in) dd::after{transform:scaleX(0)}

/* Toy Story: the truck drives in from the left and settles on its suspension; the toys pop up with a bounce, and
   hop when you point at them */
.js .reveal.drive{opacity:0;transform:translateX(-55vw) rotate(-4deg);
  transition:opacity .5s ease,transform 1.5s cubic-bezier(.22,1.15,.36,1)}
.js .reveal.drive.in{opacity:1;transform:none}
.js .reveal.drive.in img{animation:wsettle .8s 1.2s ease-out}
@keyframes wsettle{35%{transform:translateY(-1.5%) rotate(-.6deg)}70%{transform:translateY(.6%)}}
.js .reveal.pop{opacity:0;transform:translateY(30px) scale(.7);transition:opacity .4s ease,transform .8s cubic-bezier(.34,1.56,.64,1)}
.js .reveal.pop.in{opacity:1;transform:none}
@media (hover:hover){#wSpotToy .wspot-grid a:hover img{transform:none;animation:whop .6s cubic-bezier(.3,1.6,.5,1)}}
@keyframes whop{40%{transform:translateY(-14px) rotate(-4deg)}70%{transform:translateY(0) rotate(2deg)}}

/* The Lord of the Rings: the title arrives like a film's, from soft focus; Rivendell comes out of the dark */
.js .reveal.cine{opacity:0;transform:scale(1.12);filter:blur(14px);
  transition:opacity 1.4s ease,transform 1.8s cubic-bezier(.2,.7,.2,1),filter 1.4s ease}
.js .reveal.cine.in{opacity:1;transform:none;filter:none}
.js .reveal.emerge{opacity:.2;transform:scale(.97);filter:brightness(.15) blur(6px);
  transition:opacity 1.6s ease,transform 2.2s cubic-bezier(.2,.7,.2,1),filter 2.2s ease}
.js .reveal.emerge.in{opacity:1;transform:none;filter:none}

/* headings: each word drops into place and settles, like a brick pressed on (words split by welcome.js) */
.js .reveal.bricks{opacity:1;transform:none;transition:none}
.bricks .wbrick{display:inline-block;transform-origin:50% 100%}
.js .bricks:not(.in) .wbrick{opacity:0}
.bricks.in .wbrick{animation:wbrick .75s calc(var(--i) * 90ms) cubic-bezier(.2,.7,.2,1) backwards}
@keyframes wbrick{0%{opacity:0;transform:translateY(-.7em)}45%{opacity:1;transform:translateY(0) scaleY(1)}
  60%{transform:scale(1.03,.9)}78%{transform:scale(.99,1.03)}}

/* standouts: as the row slides, cards near its edges shrink and turn away a little, like a carousel (where the
   browser can drive this from the row's scroll) */
@supports (animation-timeline:view(inline)){
  .wrow{perspective:1600px}
  @media (min-width:601px){.wcard{animation:wturn linear both;animation-timeline:view(inline)}}
  @keyframes wturn{0%{scale:.84;rotate:y -24deg}25%,78%{scale:1;rotate:y 0deg}100%{scale:.84;rotate:y 24deg}}
}

/* into a set: the set's photo flies into the popup on the site (welcome.js names it; script.js names the popup's;
   both pages opt in through styles.css) */
.wfly{view-transition-name:set}

/* the moving backgrounds pause while their band is off screen (welcome.js sets .live) */
.wspot:not(.live)::before,.wspot:not(.live)::after,.wspot:not(.live) .wembers i{animation-play-state:paused}

/* reduced motion: nothing moves, decorations included (styles.css's rule doesn't reach ::before/::after) */
/* with reduced motion nothing moves (styles.css stops every animation); the floating embers just go */
@media (prefers-reduced-motion:reduce){.wembers{display:none}}

/* ---- Toybox: the top bar is the site's header band (yellow in light mode; dark with the yellow edge in dark mode)
   with its outlined 44px buttons, and the way in is a button like the site's Add; the standouts are rounded cards
   and the last button an ink fill, as on the site ---- */
.wnav{height:68px;background:#FFCF00;border-bottom:0;-webkit-backdrop-filter:none;backdrop-filter:none;--band-line:#6B5600}
.whero{min-height:calc(100svh - 68px)}
:root:not([data-theme="dark"]) .wnav{--ink:#1B1A17;--accent:#A30E26}
:root[data-theme="dark"] .wnav{background:var(--panel);box-shadow:inset 0 -2px 0 var(--ochre);--band-line:#6A6B74}
@media (hover:none){:root:not([data-theme="dark"]) .wnav{background:#FFCF00}}
.wbrand{font-size:23px;gap:9px}
.wbrand .logo{width:32px;height:32px}
.wnav-end{gap:10px}
.wnav .iconbtn{width:44px;height:44px;border:1px solid var(--band-line);border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--ink)}
@media (hover:hover){.wnav .iconbtn:hover{border-color:var(--band-line)}}
#themeIcon{display:flex}
.wenter-sm{height:44px;display:inline-flex;align-items:center;gap:8px;padding:0 16px;border:1px solid var(--band-line);border-radius:12px;
  color:var(--ink);font-size:15px}
@media (hover:hover){.wenter-sm:hover{text-decoration:none;background:color-mix(in srgb,var(--ink) 10%,transparent)}}
.wrow-btn{border-radius:12px;background:none;border:1px solid var(--field-edge)}
.wcard a{border-radius:24px}
.wenter{background:var(--ink);color:var(--paper);border-radius:14px}

