/* /about, the scroll showcase (2026-11-18, user decision; record in docs/design/ABOUT_SCROLL_V1.md).
   Page layout only: buttons, the brand lockup and the rarity chips are the shared components
   (src/design/components.css). Without the script, or with "reduce motion" on, this file alone
   shows the page as stacked sections; public/site/about/about.js adds `as-built` (the hero plate) and
   `as-live` (the pinned scenes) on top.

   The colours are the page's own and do not follow the system's dark setting: it starts bright,
   a room arrives in the middle, night is the darkest point, and it ends on the brand's orange. */
.as{--as-hd:61px;--as-h:calc(100svh - var(--as-hd));--as-orange:var(--ui-splash-ink,#f18136);--as-ink:#26292b;--as-cream:#f5f5f3;position:relative;overflow-x:clip;color:var(--as-ink);line-height:1.5;-webkit-font-smoothing:antialiased}
.as *,.as *::before,.as *::after{box-sizing:border-box}
.as h1,.as h2,.as h3,.as p,.as ol,.as li{margin:0}
.as ol{padding:0;list-style:none}
.as img{display:block;max-width:100%}

/* The site header over a dark scene. */
.site-header{transition:background-color .25s linear,border-color .25s linear}
.site-header[data-tone=dark]{--ui-page:#101114;--ui-text:#f3f3f1;--ui-muted:#b3b5b9;--ui-border:rgba(255,255,255,.12)}

/* A keycap. A `button` can be pressed and heard; a `span` is a picture. The picture moves, the box stays. */
.as-kc{all:unset;display:block;position:relative;aspect-ratio:1;-webkit-user-select:none;user-select:none}
button.as-kc{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.as-kc img{width:100%;height:100%;object-fit:contain;transform-origin:50% 100%;will-change:transform;pointer-events:none;-webkit-user-drag:none}
button.as-kc:focus-visible{outline:3px solid var(--as-orange);outline-offset:2px;border-radius:18%}
.as-pop{display:inline-block}

/* 1. Hero. Stacked: the lockup, then two rows of keys. Built: a plate of keys with the lockup in a hole. */
.as-hero{position:relative;overflow:hidden;background:#dedcd5}
.as-grid{--slab:1;position:relative;display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;padding:16px;max-height:760px;overflow:hidden}
.as-lock{position:relative;z-index:1;grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:40px 14px 28px;text-align:center}
.as-lock .ui-brand-lockup{gap:13px;color:var(--as-orange)}
.as-lock .ui-brand-symbol{width:76px}
.as-lock .ui-brand-logotype{width:175px}
.as-lock .ui-brand-lockup svg{display:block;width:100%;height:auto;fill:currentColor;overflow:visible}
.as-lock-text,.as-lock-rest{display:flex;flex-direction:column;align-items:center;gap:14px}
.as-lock h1{font-size:34px;font-weight:800;line-height:1.04;letter-spacing:-.03em;color:var(--as-ink)}
.as-lock p{max-width:30ch;font-size:15px;font-weight:550;line-height:1.45;color:#55595c}
.as-lock .ui-button{min-width:220px;min-height:50px;font-size:16px;text-decoration:none}
.as-lock small{font-size:12px;font-weight:650;color:#8a8d8f}
.as-cell{position:relative;z-index:3;display:block}
.as-cell[hidden]{display:none}
.as-flood{display:none}
.as-js:not(.as-ready) .as-grid{visibility:hidden}
.as-hero.as-built{height:var(--as-h)}
.as-built .as-plate{position:absolute;left:50%;top:50%;will-change:transform}
.as-built .as-grid{grid-template-columns:repeat(var(--cols),var(--key));grid-auto-rows:var(--key);gap:var(--gap);padding:var(--pad);max-height:none;overflow:visible}
.as-built .as-grid::before{content:"";position:absolute;inset:0;border-radius:30px;background:linear-gradient(#efede8,#e3e1da);box-shadow:0 2px 0 #fff inset,0 -3px 0 rgba(0,0,0,.06) inset,0 40px 80px rgba(40,30,20,.28);opacity:var(--slab)}
.as-built .as-grid .as-lock{padding:0 14px}
.as-built .as-grid .as-cell{will-change:transform}
/* The brand's orange, spreading under the keys. It carries a white copy of the lockup. */
.as-built .as-grid .as-flood{display:block;position:absolute;inset:0;z-index:2;border-radius:30px;background:var(--as-orange);clip-path:circle(0px at 50% 50%);pointer-events:none}
.as-lock.as-ghost{position:absolute;z-index:auto}
.as-lock.as-ghost h1,.as-lock.as-ghost .ui-brand-lockup{color:#fff}
@media(min-width:701px){
  .as-lock{gap:22px}.as-lock .ui-brand-lockup{gap:16px}.as-lock .ui-brand-symbol{width:97px}.as-lock .ui-brand-logotype{width:225px}.as-lock-text,.as-lock-rest{gap:18px}
  .as-lock h1{font-size:58px}.as-lock p{font-size:18px;max-width:36ch}.as-lock small{font-size:13px}.as-lock .ui-button{min-width:260px;min-height:58px;font-size:18px}
}

/* 2. The sound words. Stacked: five coloured blocks. Live: one word a screen, pinned, cut step by step. */
.as-words{position:relative;z-index:3}
.as-wave{display:none}
.as-w{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(6px,1.6vh,18px);padding:72px 16px;background:var(--bg);color:var(--fg);text-align:center}
.as-w .as-kc{width:clamp(112px,15vw,190px)}
.as-word{display:block;overflow:hidden;white-space:nowrap;padding:0 .09em .14em;font-size:min(clamp(84px,25vw,360px),calc(88vw / (var(--n) * .56)));font-weight:800;line-height:.92;letter-spacing:-.05em}
.as-cap{font-size:clamp(15px,1.5vw,21px);font-weight:650;opacity:.92}
.as-cap em{font-style:normal;font-weight:800}
.as-why{max-width:34ch;margin-top:6px;font-size:clamp(16px,1.6vw,22px);font-weight:600;line-height:1.4;color:var(--as-ink)}
.as-press-hint{display:inline-flex;align-items:center;margin-top:4px;padding:6px 12px;border-radius:99px;border:1.5px solid currentColor;font-size:12px;font-weight:750;opacity:.7}
.as-words.as-live{height:var(--as-h);margin-top:calc(-1 * var(--as-h));overflow:hidden;pointer-events:none}
.as-words.as-live.as-on{pointer-events:auto}
.as-words.as-live .as-wave{display:block;position:absolute;left:0;top:0;width:100%;height:240px;overflow:visible;pointer-events:none}
.as-wave path{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.as-w-main{stroke-width:2.5;opacity:.75}
.as-w-echo{stroke-width:1.5;opacity:.35}
.as-words.as-live .as-w{position:absolute;inset:0;display:none;padding:16px;background:none;color:inherit}
.as-words.as-live .as-w.as-on{display:flex}

/* 3. Collect: rows of keycaps going past, and the six rarities by name. Nothing here is pressed. */
.as-wall{position:relative;z-index:2;padding:clamp(40px,7vw,120px) 0 clamp(40px,7vh,84px);overflow:hidden;background:var(--as-cream)}
.as-wall-head{padding:0 20px;text-align:center}
.as-num{display:block;font-size:clamp(112px,25vw,310px);font-weight:800;line-height:.86;letter-spacing:-.06em;color:var(--as-orange);font-variant-numeric:tabular-nums}
.as-wall-head h2{font-size:clamp(28px,4.2vw,60px);font-weight:800;line-height:1.05;letter-spacing:-.03em}
.as-wall-head p{max-width:44ch;margin:14px auto 0;font-size:clamp(15px,1.4vw,19px);font-weight:550;color:#55595c}
.as-rows{margin-top:clamp(36px,6vh,72px);display:grid;gap:clamp(8px,1.2vw,16px);transform:rotate(-4deg) scale(1.08)}
.as-row{display:flex}
.as-track{display:flex;gap:clamp(8px,1.2vw,16px);will-change:transform}
.as-track .as-kc{flex:none;width:clamp(72px,9.4vw,132px)}
.as-rar{position:relative;z-index:2;padding:clamp(28px,6vh,72px) 20px clamp(64px,11vh,130px);background:var(--as-cream);text-align:center}
.as-rar h2{max-width:22ch;margin:0 auto;font-size:clamp(24px,3.2vw,44px);font-weight:800;line-height:1.08;letter-spacing:-.03em}
.as-rar ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 10px;max-width:920px;margin:clamp(26px,5vh,52px) auto 0}
.as-rar li{display:flex;flex-direction:column;align-items:center;gap:10px}
.as-rar .as-kc{width:min(100%,104px)}
.as-rar .ui-rarity{font-size:12px;padding:5px 9px}
.as-rar li[data-rarity=mythic] .as-kc img{filter:drop-shadow(0 0 18px rgba(150,110,255,.55))}
@media(min-width:701px){.as-rar ol{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.as-rar .as-kc{width:min(100%,124px)}}

/* 4. In the app. Stacked: a list of cards (screenshot + words). Live: the phone stays and the step changes. */
.as-app{position:relative;z-index:2;background:var(--as-cream);color:var(--as-ink)}
.as-stage{display:none}
.as-feats{display:grid;gap:34px 28px;max-width:1040px;margin:0 auto;padding:72px 20px}
.as-feat{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;align-items:center}
.as-feat>img{width:112px;height:auto;border-radius:16px;box-shadow:0 12px 26px rgba(30,20,10,.22)}
.as-eyebrow{display:block;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--as-orange)}
.as-feat h2{margin-top:8px;font-size:clamp(28px,4vw,40px);font-weight:800;line-height:1.02;letter-spacing:-.035em}
.as-feat p{margin-top:10px;max-width:34ch;font-size:15px;font-weight:550;line-height:1.5;opacity:.86}
@media(min-width:701px){.as-feats{grid-template-columns:1fr 1fr}}

.as-app.as-live{height:var(--as-h);overflow:hidden}
.as-app.as-live .as-stage{display:block;position:absolute;inset:0;overflow:hidden;--ph:min(60svh,122vw,var(--as-h) - 236px);--sw:calc(var(--ph)*.46209);--bz:6px;--px:50%;--pt:calc(var(--as-h) - var(--ph) - 36px)}
.as-pad{position:absolute;z-index:0;left:calc(var(--px) - var(--sw)*.98);top:calc(var(--pt) + var(--ph)/2 - var(--sw)*.98);width:calc(var(--sw)*1.96);aspect-ratio:1;border-radius:24%;background:currentColor;opacity:.075;transform:rotate(-9deg)}
.as-atmos{position:absolute;inset:-6%;z-index:0;display:none;opacity:0}
.as-atm{position:absolute;inset:0;background-size:cover;background-position:50% 35%;opacity:0}
.as-atmos::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 60% 75% at 62% 45%,rgba(6,7,9,.3),rgba(6,7,9,.84) 78%)}
.as-win{position:absolute;z-index:1;inset:0;overflow:hidden}
.as-room{position:absolute;inset:0;overflow:hidden;clip-path:circle(0px at 50% 50%)}
.as-room img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 40%}
.as-scrim{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;background:linear-gradient(180deg,rgba(5,6,8,.82) 0%,rgba(5,6,8,.58) 20%,rgba(5,6,8,.1) 38%,rgba(5,6,8,0) 48%,rgba(5,6,8,0) 76%,rgba(5,6,8,.5) 100%)}
.as-veil{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;background:radial-gradient(ellipse 80% 55% at var(--px) 60%,rgba(5,7,16,.62),rgba(3,4,9,.95) 70%)}
.as-glow{position:absolute;inset:0;z-index:4;pointer-events:none;opacity:0}
.as-halo{position:absolute;left:calc(var(--px) - var(--sw)*1.1);width:calc(var(--sw)*2.2);top:calc(var(--pt) + var(--ph)*.18);height:calc(var(--ph)*.62);border-radius:50%;background:radial-gradient(ellipse at 50% 50%,rgba(255,196,128,.42),rgba(255,196,128,.12) 45%,rgba(255,196,128,0) 70%)}
.as-rings{position:absolute;left:0;top:0;width:0;height:0}
.as-ring{position:absolute;left:-14vmin;top:-14vmin;width:28vmin;height:28vmin;border-radius:50%;opacity:0;border:1.5px solid rgba(255,214,160,.8);box-shadow:0 0 34px 3px rgba(255,196,128,.3),inset 0 0 30px 2px rgba(255,196,128,.22)}
.as-phone{position:absolute;z-index:5;top:var(--pt);left:calc(var(--px) - (var(--sw) + 2*var(--bz))/2);width:calc(var(--sw) + 2*var(--bz));height:calc(var(--ph) + 2*var(--bz));padding:var(--bz);border-radius:calc(var(--sw)*.17);background:linear-gradient(155deg,#43464c 0%,#1a1c20 34%,#0c0d0f 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),inset 0 0 0 2.5px rgba(0,0,0,.7),0 50px 80px -34px rgba(0,0,0,.75),0 18px 40px -16px rgba(0,0,0,.45)}
.as-screen{position:relative;width:100%;height:100%;border-radius:calc(var(--sw)*.135);overflow:hidden;background:#141518}
.as-screen>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;opacity:0}
.as-screen::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(118deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,0) 32%)}
.as-lights{position:absolute;inset:0;mix-blend-mode:screen;pointer-events:none}
.as-light{position:absolute;opacity:0;border-radius:20%;background:radial-gradient(ellipse 70% 62% at 50% 62%,rgba(255,236,200,.95),rgba(255,182,96,.55) 46%,rgba(255,150,60,0) 76%)}
.as-app.as-live .as-feats{position:absolute;z-index:6;display:block;max-width:none;margin:0;padding:0;left:22px;right:22px;top:24px;height:0}
.as-app.as-live .as-feat{position:absolute;left:0;right:0;top:0;display:none}
.as-app.as-live .as-feat.as-on{display:block}
.as-app.as-live .as-feat>img{display:none}
.as-app.as-live .as-feat h2{font-size:clamp(34px,9.6vw,44px)}
.as-app.as-live .as-feat h2>div{padding-bottom:.12em;margin-bottom:-.12em}
.as-dots{position:absolute;z-index:6;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:7px}
.as-dots i{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.25}
.as-dots i.as-on{opacity:.95}
@media(min-width:701px){
  .as-app.as-live .as-stage{--ph:min(72svh,660px,var(--as-h) - 72px);--bz:8px;--px:68%;--pt:calc(var(--as-h)/2 - var(--ph)/2);--ww:min(36vw,62svh,540px)}
  .as-atmos{display:block}
  .as-win{inset:auto;top:0;bottom:0;left:calc(var(--px) - var(--ww)/2);width:var(--ww)}
  .as-scrim{display:none}
  .as-app.as-live .as-feats{left:7vw;right:auto;top:calc(var(--as-h)/2);width:min(36vw,500px)}
  .as-app.as-live .as-feat{top:auto;bottom:0;transform:translateY(50%)}
  .as-app.as-live .as-feat h2{font-size:clamp(46px,4.7vw,72px)}
  .as-app.as-live .as-feat p{margin-top:16px;font-size:18px}
  .as-app.as-live .as-eyebrow{font-size:13px}
  .as-dots{left:7vw;right:auto;bottom:9svh;justify-content:flex-start}
}

/* 5. The end: one big key on the brand's orange. */
.as-end{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;min-height:var(--as-h);padding:72px 20px;overflow:hidden;background:var(--as-orange);color:#fff;text-align:center}
.as-big{width:clamp(210px,30vw,380px)}
.as-big img{filter:drop-shadow(0 26px 22px rgba(90,40,0,.35))}
.as-end h2{font-size:clamp(40px,7vw,104px);font-weight:800;line-height:.96;letter-spacing:-.04em}
.as-end p{max-width:36ch;font-size:clamp(15px,1.4vw,19px);font-weight:600;opacity:.95}
.as-end .ui-button{min-width:230px;background:#fff;color:var(--as-ink);box-shadow:0 3px 0 rgba(90,40,0,.35);text-decoration:none}
.as-bit{position:absolute;left:0;top:0;width:clamp(40px,5vw,64px);pointer-events:none;will-change:transform}

/* 6. Quiet: a few questions and the reading pages, in the shell's column. Nothing moves here. */
.as-quiet{padding:28px 0 8px}
.as-quiet h2{margin:0;font-size:clamp(26px,3.4vw,36px);font-weight:800;line-height:1.05;letter-spacing:-.03em}
.as-quiet h2+dl,.as-quiet h2+ul{margin-top:18px}
.as-quiet dl{margin:0}
.as-quiet dt{margin-top:22px;font-size:17px;font-weight:800}
.as-quiet dd{margin:6px 0 0;font-size:15.5px;line-height:1.55;color:var(--ui-muted,#4c5154)}
.as-quiet .as-second{margin-top:clamp(48px,8vh,72px)}
.as-more{display:grid;gap:10px;margin:0 0 40px;padding:0;list-style:none}
.as-more li{margin:0}
.as-more a{display:flex;align-items:baseline;gap:12px;padding:14px 16px;border-radius:14px;background:var(--ui-surface,#fff);box-shadow:0 1px 0 rgba(0,0,0,.05),0 8px 20px rgba(40,30,20,.05);color:inherit;text-decoration:none}
.as-more b{flex:none;min-width:5.2em;font-weight:800;color:var(--ui-splash-ink,#f18136)}
.as-more span{font-size:14.5px;color:var(--ui-muted,#55595c)}
