/* ════════════════════════════════════════════════════════════════════════════
   TEMPEST HERO — Reddenda light homepage (Tempus.com-grade clean medical-AI energy)
   Self-contained, namespaced `th-*`. Black/white + ONE teal accent. No rainbow.
   Prepended to light-home.html; old hero (#top) + old nav (#main-nav) hidden while active.
   Transform/opacity motion only · prefers-reduced-motion safe · 320px safe.
   ════════════════════════════════════════════════════════════════════════════ */

:root{
  --th-paper:#ffffff;
  --th-paper-2:#fbfcfc;
  --th-ink:#0a0b0c;
  --th-body:#1c2127;
  --th-muted:#474d53;     /* ~7.7:1 on white — strong secondary */
  --th-faint:#5f666c;     /* ~5.4:1 on white — passes AA, no longer washed out */
  --th-hair:#e9ebec;
  --th-hair-2:#f0f2f3;
  --th-teal:#0fb5a6;
  --th-teal-text:#0a8a80;
  --th-teal-cta:#0b7d73;
  --th-teal-soft:rgba(15,181,166,.08);
  --th-teal-line:rgba(15,181,166,.22);
  --th-cyan:#06b6d4;
  --th-red:#e5544b;
  --th-sh-sm:0 1px 2px rgba(10,19,22,.05);
  --th-sh-md:0 12px 34px -16px rgba(10,19,22,.20);
  --th-sh-lg:0 34px 90px -30px rgba(10,19,22,.30);
  --th-ease:cubic-bezier(.16,1,.3,1);
  --th-nav-h:62px;
  --th-disp:'Space Grotesk',system-ui,-apple-system,sans-serif;
  --th-ui:'Inter',system-ui,-apple-system,sans-serif;
  --th-mono:'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,monospace;
}

/* ── lock + hide the old experience while the Tempest hero is active ── */
html.th-lock,html.th-lock body{overflow:hidden!important;height:100%;overscroll-behavior:none}
.th-on #top,.th-on #main-nav,.th-on > .drawer,.th-on .cosmos{display:none!important}
/* the existing light page chrome can keep its background; Tempest paints its own */
.th-on body{background:var(--th-paper)}

/* ════ ROOT ════ */
#th-root{position:relative;z-index:50;font-family:var(--th-ui);color:var(--th-body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
#th-root *{box-sizing:border-box}
#th-root a{color:inherit;text-decoration:none}
#th-root ::selection{background:rgba(15,181,166,.18);color:var(--th-ink)}

/* atmospheric teal bloom — the one "magic" layer (compositor-only) */
.th-atmos{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.th-atmos::before{content:"";position:absolute;left:50%;top:42%;width:120vmax;height:92vmax;transform:translate(-50%,-50%);
  background:radial-gradient(closest-side,rgba(15,181,166,.10),transparent 70%);mix-blend-mode:multiply;filter:blur(6px);
  animation:thBloom 70s ease-in-out infinite alternate}
.th-atmos::after{content:"";position:absolute;right:-12%;bottom:-8%;width:60vmax;height:48vmax;
  background:radial-gradient(closest-side,rgba(6,182,212,.05),transparent 70%);mix-blend-mode:multiply;filter:blur(8px);
  animation:thBloom 88s ease-in-out infinite alternate-reverse}
@keyframes thBloom{to{transform:translate(-46%,-56%) scale(1.12)}}

/* ════ NAV ════ */
.th-nav{position:fixed;top:0;left:0;right:0;z-index:80;height:calc(var(--th-nav-h) + env(safe-area-inset-top));
  display:flex;align-items:center;gap:14px;padding:env(safe-area-inset-top) clamp(14px,3.4vw,30px) 0;
  background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(16px) saturate(120%);backdrop-filter:blur(16px) saturate(120%);
  border-bottom:1px solid transparent;transition:background .3s,border-color .3s,box-shadow .3s}
.th-nav.is-solid{background:rgba(255,255,255,.92);border-bottom-color:var(--th-hair);box-shadow:var(--th-sh-sm)}

/* canonical brand lockup: animated swarm mark + wordmark + tagline */
.th-brand{display:flex;align-items:center;gap:11px;min-width:0;flex:none}
.th-brand__mk{width:34px;height:34px;flex:none;display:block}
.th-brand__tx{display:flex;flex-direction:column;line-height:1;min-width:0}
.th-brand__wm{font-family:var(--th-disp);font-weight:700;font-size:20px;letter-spacing:-.022em;color:var(--th-ink)}
.th-brand__tag{font-family:var(--th-mono);font-size:10px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:#474d53;margin-top:3px;white-space:nowrap}

.th-nav__sp{flex:1}
.th-nav__links{display:flex;align-items:center;gap:2px}
.th-nav__item{position:relative}
.th-nav__btn,.th-nav__lnk{display:inline-flex;align-items:center;gap:6px;font-family:var(--th-ui);font-weight:500;font-size:14.5px;color:var(--th-body);
  padding:9px 13px;border:0;background:none;cursor:pointer;border-radius:10px;transition:color .2s,background .2s}
.th-nav__btn:hover,.th-nav__lnk:hover,.th-nav__btn[aria-expanded="true"]{color:var(--th-ink);background:var(--th-hair-2)}
.th-nav__btn svg{width:13px;height:13px;opacity:.6;transition:transform .25s var(--th-ease)}
.th-nav__btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.th-nav__signin{font-weight:500;font-size:14.5px;color:var(--th-body);padding:9px 12px;border-radius:10px;transition:color .2s,background .2s}
.th-nav__signin:hover{color:var(--th-ink);background:var(--th-hair-2)}
.th-nav__cta{display:inline-flex;align-items:center;gap:7px;font-family:var(--th-disp);font-weight:600;font-size:14px;color:#fff;
  padding:10px 17px;border-radius:999px;background:var(--th-teal-cta);box-shadow:0 10px 26px -10px rgba(11,125,115,.55);
  transition:transform .22s var(--th-ease),box-shadow .22s}
.th-nav__cta:hover{transform:translateY(-1px);box-shadow:0 16px 34px -10px rgba(11,125,115,.7)}
.th-nav__cta svg{width:14px;height:14px}
.th-nav__burger{display:none;width:44px;height:44px;align-items:center;justify-content:center;border:1px solid var(--th-hair);background:var(--th-paper);cursor:pointer;color:var(--th-ink);border-radius:10px}
.th-nav__burger:hover{background:var(--th-hair-2)}
.th-themetog{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--th-hair);border-radius:999px;background:var(--th-paper);cursor:pointer;color:var(--th-ink);transition:border-color .2s,color .2s,transform .2s}
.th-themetog:hover{color:var(--th-ink);border-color:var(--th-teal-line);transform:translateY(-1px)}
.th-themetog svg{width:17px;height:17px}
/* floating "Learn more" bubble — always reachable at the bottom of the single-viewport hero (mobile + web); hidden once the full page is revealed */
.th-learnfab{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:70;display:inline-flex;align-items:center;gap:8px;background:var(--th-ink);color:#fff;border:0;border-radius:999px;padding:12px 22px;font-family:var(--th-ui);font-weight:600;font-size:14px;line-height:1;cursor:pointer;box-shadow:0 14px 34px -10px rgba(2,18,26,.45);transition:transform .2s ease,box-shadow .2s ease}
.th-learnfab:hover{transform:translateX(-50%) translateY(-2px);box-shadow:0 18px 40px -12px rgba(2,18,26,.5)}
.th-learnfab .chev{width:16px;height:16px;animation:thBob 2.4s ease-in-out infinite}
html.th-revealed .th-learnfab{display:none}
@media(prefers-reduced-motion:reduce){.th-learnfab .chev{animation:none}.th-learnfab:hover{transform:translateX(-50%)}}

/* ════ MEGA MENU (desktop panel) ════ */
.th-mega{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%) translateY(8px);
  width:min(880px,calc(100vw - 28px));background:var(--th-paper);border:1px solid var(--th-hair);border-radius:20px;
  box-shadow:var(--th-sh-lg);padding:22px;opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .24s var(--th-ease),transform .24s var(--th-ease),visibility .24s;z-index:90}
.th-nav__item.open .th-mega{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.th-mega__grid{display:grid;grid-template-columns:1fr 1fr 1.05fr;gap:10px 26px}
.th-mega--wide .th-mega__grid{grid-template-columns:1fr 1fr}
.th-mega__col h4{font-family:var(--th-mono);font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--th-faint);margin:4px 0 10px;font-weight:500}
.th-mega__lnk{display:flex;gap:11px;align-items:flex-start;padding:9px 10px;border-radius:12px;transition:background .18s}
.th-mega__lnk:hover{background:var(--th-paper-2);background:var(--th-teal-soft)}
.th-mega__ic{width:30px;height:30px;flex:none;border-radius:9px;display:grid;place-items:center;background:var(--th-teal-soft);color:var(--th-teal-text);margin-top:1px}
.th-mega__ic svg{width:16px;height:16px}
.th-mega__t{display:block;font-weight:600;font-size:14px;color:var(--th-ink);line-height:1.2}
.th-mega__d{display:block;font-size:12px;color:var(--th-muted);line-height:1.4;margin-top:3px}
.th-mega__cta{border-radius:16px;background:linear-gradient(165deg,#0b1c1a,#06302c);color:#fff;padding:20px;display:flex;flex-direction:column;justify-content:space-between;min-height:100%}
.th-mega__cta .k{font-family:var(--th-mono);font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:rgba(255,255,255,.55)}
.th-mega__cta h5{font-family:var(--th-disp);font-weight:600;font-size:18px;margin:10px 0 6px;letter-spacing:-.01em}
.th-mega__cta p{font-size:12.5px;line-height:1.5;color:rgba(255,255,255,.7);margin:0 0 16px}
.th-mega__cta a{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;font-family:var(--th-disp);font-weight:600;font-size:13.5px;color:#03100e;background:var(--th-teal);padding:10px 16px;border-radius:999px;transition:transform .2s var(--th-ease)}
.th-mega__cta a:hover{transform:translateY(-1px)}

/* ════ STAGE / HERO (centered single column) ════ */
.th-stage{position:relative;z-index:2;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:calc(var(--th-nav-h) + clamp(18px,4vh,42px)) clamp(16px,4vw,28px) clamp(56px,9vh,84px);text-align:center}
.th-hero{width:100%;max-width:528px;display:flex;flex-direction:column;align-items:center;gap:0}
.th-eyebrow{display:inline-flex;align-items:center;gap:8px;font-family:var(--th-mono);font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--th-muted)}
.th-eyebrow .blip{width:6px;height:6px;border-radius:50%;background:var(--th-teal);box-shadow:0 0 0 0 rgba(15,181,166,.5);animation:thBlip 2.6s ease-in-out infinite}
@keyframes thBlip{0%,100%{box-shadow:0 0 0 0 rgba(15,181,166,.5)}50%{box-shadow:0 0 0 5px rgba(15,181,166,0)}}
.th-h1{font-family:var(--th-disp);font-weight:700;font-size:clamp(2.05rem,5.4vw,46px);line-height:1.04;letter-spacing:-.035em;color:var(--th-ink);margin:14px 0 0;max-width:14ch}
.th-h1 .t{color:var(--th-teal-text)}
.th-stat{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 10px;font-family:var(--th-mono);font-size:12px;color:var(--th-faint);margin:16px 0 0;max-width:520px}
.th-stat b{color:var(--th-body);font-weight:500}
.th-stat .dot{width:3px;height:3px;border-radius:50%;background:var(--th-teal);flex:none;opacity:.7}

/* ── RateScore card (the focal element) ── */
.th-card{width:100%;max-width:444px;margin:24px auto 0;background:var(--th-paper);border:1px solid var(--th-hair);border-radius:24px;
  box-shadow:var(--th-sh-lg);padding:22px 22px 20px;text-align:left;position:relative;overflow:hidden}
.th-card::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,transparent,var(--th-teal),transparent);opacity:.8}
.th-card__top{display:flex;align-items:center;gap:8px}
.th-card__brand{font-family:var(--th-disp);font-weight:700;font-size:16px;letter-spacing:-.01em;color:var(--th-ink)}
.th-card__brand .reg{font-size:9px;vertical-align:super;color:var(--th-teal-text);font-weight:600}
.th-card__tag{margin-left:auto;font-family:var(--th-mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--th-faint);
  padding:4px 9px;border:1px solid var(--th-hair);border-radius:999px}
.th-card__id{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-family:var(--th-mono);font-size:11px;color:var(--th-faint);margin-top:10px}
.th-card__id .d{width:3px;height:3px;border-radius:50%;background:var(--th-hair);flex:none}

.th-gauge{position:relative;width:188px;height:152px;margin:8px auto 0;overflow:hidden}
.th-gauge svg{width:188px;height:188px;display:block;position:absolute;top:0;left:50%;transform:translateX(-50%)}
.th-gauge__num{position:absolute;left:0;right:0;top:46px;text-align:center;font-family:var(--th-disp);font-weight:700;font-size:48px;letter-spacing:-.02em;color:var(--th-ink);font-variant-numeric:tabular-nums;line-height:1}
.th-gauge__grade{position:absolute;left:0;right:0;top:100px;text-align:center}
.th-gauge__grade span{display:inline-block;font-family:var(--th-disp);font-weight:700;font-size:13px;color:var(--th-teal-text);background:var(--th-teal-soft);border:1px solid var(--th-teal-line);padding:2px 11px;border-radius:999px}
.th-gauge__scale{text-align:center;font-family:var(--th-mono);font-size:10px;letter-spacing:.07em;color:var(--th-faint);margin-top:4px}

.th-card__insight{font-size:12.5px;line-height:1.5;color:var(--th-muted);margin:14px 0 0;text-align:center}
.th-card__insight b{color:var(--th-ink);font-weight:600}

.th-form{margin-top:14px}
.th-form__wrap{display:flex;align-items:center;gap:7px;height:54px;padding:0 6px 0 15px;border-radius:15px;background:var(--th-paper);
  border:1px solid var(--th-hair);box-shadow:var(--th-sh-sm);transition:border-color .2s,box-shadow .2s}
.th-form__wrap:focus-within{border-color:var(--th-teal);box-shadow:0 0 0 4px rgba(15,181,166,.13)}
.th-form.invalid .th-form__wrap{border-color:var(--th-red);animation:thShake .34s}
@keyframes thShake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}
.th-form__gly{width:17px;height:17px;flex:none;color:var(--th-teal)}
.th-form__in{flex:1;min-width:0;border:0;background:none;outline:none;font-family:var(--th-mono);font-size:15px;color:var(--th-ink);font-variant-numeric:tabular-nums;letter-spacing:.02em}
.th-form__in::placeholder{color:var(--th-faint);font-family:var(--th-ui);letter-spacing:0;font-size:14px}
.th-form__go{flex:none;display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 16px;border:0;border-radius:11px;cursor:pointer;
  font-family:var(--th-disp);font-weight:600;font-size:14px;color:#fff;background:var(--th-teal-cta);box-shadow:0 8px 20px -8px rgba(11,125,115,.6);
  transition:transform .2s var(--th-ease),box-shadow .2s,opacity .2s}
.th-form__go:hover{transform:translateY(-1px)}
.th-form__go svg{width:14px;height:14px}
.th-form__hint{min-height:15px;font-family:var(--th-mono);font-size:11px;color:var(--th-red);margin:7px 2px 0;opacity:0;transition:opacity .2s}
.th-form.invalid .th-form__hint{opacity:1}
.th-card__foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:11px}
.th-card__sample{font-size:12px;font-weight:500;color:var(--th-teal-text);background:none;border:0;cursor:pointer;padding:2px 0;font-family:var(--th-ui)}
.th-card__sample:hover{text-decoration:underline}
.th-card__prov{font-family:var(--th-mono);font-size:10px;color:var(--th-faint);letter-spacing:.01em}

/* ── explainer video (just below the card) ── */
.th-video{display:inline-flex;align-items:center;gap:10px;margin:20px auto 0;padding:10px 18px 10px 12px;border-radius:999px;
  border:1px solid var(--th-hair);background:var(--th-paper);box-shadow:var(--th-sh-sm);transition:transform .2s var(--th-ease),border-color .2s,box-shadow .2s}
.th-video:hover{transform:translateY(-1px);border-color:var(--th-teal-line);box-shadow:var(--th-sh-md)}
.th-video__play{width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--th-teal-soft);color:var(--th-teal-text)}
.th-video__play svg{width:13px;height:13px;margin-left:1px}
.th-video__tx{display:flex;flex-direction:column;line-height:1.2;text-align:left}
.th-video__t{font-weight:600;font-size:13.5px;color:var(--th-ink)}
.th-video__s{font-size:11.5px;color:var(--th-muted);margin-top:2px}

/* ── learn more reveal trigger ── */
.th-learn{display:flex;flex-direction:column;align-items:center;gap:3px;margin:26px auto 0}
.th-learn button{border:0;background:none;cursor:pointer;font-family:var(--th-ui);font-weight:500;font-size:13.5px;color:var(--th-muted);transition:color .2s}
.th-learn button:hover{color:var(--th-teal-text)}
.th-learn .chev{width:18px;height:18px;color:var(--th-faint);animation:thBob 2.6s ease-in-out infinite}
@keyframes thBob{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}

/* ── revealed state: release lock, Tempest hero scrolls away, existing content shows ── */
html.th-revealed,html.th-revealed body{overflow:auto!important;height:auto}
.th-revealed.th-on #top{display:block!important}     /* not used (old hero stays hidden) */
.th-on.th-revealed #top{display:none!important}
.th-back{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom));left:20px;z-index:95;display:none;align-items:center;gap:7px;
  font-family:var(--th-disp);font-weight:600;font-size:13px;color:var(--th-ink);background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--th-hair);
  border-radius:999px;padding:10px 16px;box-shadow:var(--th-sh-md);cursor:pointer;transition:transform .2s var(--th-ease),box-shadow .2s}
.th-back:hover{transform:translateY(-2px);box-shadow:var(--th-sh-lg)}
html.th-revealed .th-back{display:inline-flex}

/* ════ MOBILE SHEET (mega menu) ════ */
.th-scrim{position:fixed;inset:0;z-index:96;background:rgba(10,15,18,.34);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:opacity .26s,visibility .26s}
.th-scrim.open{opacity:1;visibility:visible}
.th-sheet{position:fixed;top:0;right:0;bottom:0;z-index:97;width:min(420px,90vw);background:var(--th-paper);box-shadow:-20px 0 60px -20px rgba(10,19,22,.4);
  transform:translateX(102%);transition:transform .32s var(--th-ease);display:flex;flex-direction:column;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);overflow-y:auto}
.th-sheet.open{transform:none}
.th-sheet__top{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--th-hair);position:sticky;top:0;background:var(--th-paper);z-index:2}
.th-sheet__x{margin-left:auto;width:40px;height:40px;border:0;background:none;cursor:pointer;color:var(--th-ink);font-size:22px;border-radius:10px}
.th-sheet__x:hover{background:var(--th-hair-2)}
.th-sheet__body{padding:8px 14px 28px}
.th-acc{border-bottom:1px solid var(--th-hair-2)}
.th-acc__h{width:100%;display:flex;align-items:center;justify-content:space-between;border:0;background:none;cursor:pointer;
  font-family:var(--th-disp);font-weight:600;font-size:15.5px;color:var(--th-ink);padding:15px 6px}
.th-acc__h svg{width:16px;height:16px;color:var(--th-faint);transition:transform .25s var(--th-ease)}
.th-acc.open .th-acc__h svg{transform:rotate(180deg)}
.th-acc__body{max-height:0;overflow:hidden;transition:max-height .3s var(--th-ease)}
.th-acc.open .th-acc__body{max-height:520px}
.th-acc__lnk{display:flex;align-items:center;gap:10px;padding:11px 8px;font-size:14.5px;color:var(--th-body)}
.th-acc__lnk:hover{color:var(--th-teal-text)}
.th-acc__lnk .th-mega__ic{width:26px;height:26px}
.th-sheet__flat{display:block;font-family:var(--th-disp);font-weight:600;font-size:15.5px;color:var(--th-ink);padding:15px 6px;border-bottom:1px solid var(--th-hair-2)}
.th-sheet__cta{margin:20px 6px 0;display:flex;flex-direction:column;gap:10px}
.th-sheet__cta a{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:50px;border-radius:14px;font-family:var(--th-disp);font-weight:600;font-size:15px}
.th-sheet__cta .p{color:#fff;background:var(--th-teal-cta)}
.th-sheet__cta .g{color:var(--th-ink);border:1px solid var(--th-hair);background:var(--th-paper)}

/* ════ entrance choreography ════ */
.th-rise{opacity:0;transform:translateY(12px);animation:thRise .72s var(--th-ease) forwards;animation-delay:var(--d,0s)}
@keyframes thRise{to{opacity:1;transform:none}}

/* ════ RESPONSIVE ════ */
@media (max-width:1000px){
  .th-brand__tag{display:none}
  .th-nav__links{display:none}
  .th-nav__signin{display:none}
  .th-nav__burger{display:inline-flex}
}
@media (min-width:1001px){ .th-nav__burger{display:none} .th-scrim,.th-sheet{display:none} }
@media (max-width:560px){
  .th-nav{height:calc(56px + env(safe-area-inset-top))}
  :root{--th-nav-h:56px}
  .th-brand__wm{font-size:18px}
  .th-brand__mk{width:30px;height:30px}
  .th-stage{padding-top:calc(56px + 12px);padding-bottom:48px;justify-content:flex-start}
  .th-nav__cta{display:none}              /* primary CTA lives in the card + burger sheet on mobile */
  .th-h1{font-size:clamp(1.7rem,8.4vw,2rem);margin-top:10px}
  .th-stat{font-size:11px;margin-top:12px;gap:5px 8px}
  .th-card{margin-top:16px;padding:18px 16px 16px;max-width:none}
  .th-gauge{width:168px;height:136px}
  .th-gauge svg{width:168px;height:168px}
  .th-gauge__num{font-size:42px;top:40px}
  .th-gauge__grade{top:88px}
  .th-video{margin-top:14px}
  .th-learn{margin-top:18px}
}
@media (max-width:360px){
  .th-nav__cta span{display:none}
  .th-nav__cta{padding:10px 13px}
  .th-card__foot{gap:6px}
}

/* short viewports: keep card + video reachable, let it scroll inside the locked stage */
@media (max-height:720px) and (max-width:560px){
  .th-stage{justify-content:flex-start}
  html.th-lock .th-stage{overflow-y:auto;-webkit-overflow-scrolling:touch}
}

/* ════ reduced motion / low perf ════ */
@media (prefers-reduced-motion:reduce){
  #th-root *,.th-atmos::before,.th-atmos::after{animation:none!important;transition-duration:.001s!important}
  .th-rise{opacity:1;transform:none}
}
html.low-perf .th-atmos,html.low-perf .th-nav{backdrop-filter:none;-webkit-backdrop-filter:none}
html.low-perf .th-nav{background:rgba(255,255,255,.96)}
html.low-perf .th-atmos{display:none}
