/* ============================================================
   openroar.org — "walk through the loft"
   native-scroll landing. NO scroll interception anywhere.
   All motion = CSS class toggles + CSS custom properties.
   ============================================================ */

/* fonts are loaded via a <link rel="stylesheet"> in the HTML <head>
   (de-serialized the render-blocking @import chain). */

/* ---------- DNA tokens ---------- */
:root {
  --paper:      #F2EEE7;
  --ink:        #28211C;
  --gold:       #7d5e28;
  --gold-deco:  #B68A3C;
  --terracotta: #8F5F45;
  --sage:       #8a9a7e;
  --sage-soft:  #b9c4ad;

  --bg:      var(--paper);
  --fg:      var(--ink);
  --muted:   #5b5148;
  --dim:     #463e35;   /* de-emphasized-but-legible (AA) for not-yet lines */
  --hair:    rgba(40, 33, 28, 0.16);
  --scrim:   #E7DEC9;   /* light: warm-paper veil (NOT the dark near-black) */
  --bloom:   #f6d38a;   /* savannah gold */

  /* light-mode backdrop: loft recedes to a faint daytime watermark */
  --loft-opacity: .32;
  --loft-filter: saturate(.5) brightness(1.1) contrast(.92);
  --veil-ceiling: .5;
  --veil-range: .2;

  /* consolidated radius + shadow (flat editorial, no SaaS glass) */
  --r: 2px;
  --shadow: 0 6px 16px rgba(0,0,0,.08);

  /* scroll-linked, written by walk.js (reading scroll only, never setting it) */
  --progress: 0;

  --measure: 34rem;
  --display: "Fraunces", "Fraunces-fallback", Georgia, serif;
  --body:    "Inter", "Inter-fallback", system-ui, sans-serif;
}

/* explicit dark theme (toggle) + prefers-color-scheme (auto) below */
:root[data-theme="dark"] {
  --paper:  #1b1713;
  --ink:    #efe8dd;
  --bg:     #1b1713;
  --fg:     #efe8dd;
  --muted:  #b7ab9c;
  --dim:    #c7bdac;
  --hair:   rgba(239, 232, 221, 0.18);
  --gold:      #c99a4e;
  --gold-deco: #d8ab5c;
  --sage:   #9fb091;
  --scrim:  #0d0b09;
  --loft-opacity: 1;
  --loft-filter: none;
  --veil-ceiling: .86;
  --veil-range: .66;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:  #1b1713;
    --ink:    #efe8dd;
    --bg:     #1b1713;
    --fg:     #efe8dd;
    --muted:  #b7ab9c;
    --dim:    #c7bdac;
    --hair:   rgba(239, 232, 221, 0.18);
    --gold:      #c99a4e;
    --gold-deco: #d8ab5c;
    --sage:   #9fb091;
    --scrim:  #0d0b09;
    --loft-opacity: 1;
    --loft-filter: none;
    --veil-ceiling: .86;
    --veil-range: .66;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.voice {
  font-family: var(--display);
  font-weight: 380;
  letter-spacing: -0.01em;
  line-height: 1.18;
  text-transform: lowercase;
}
strong, .em { font-weight: 560; }
em { font-style: italic; }

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--fg); color: var(--bg); padding: .7rem 1rem;
  border-radius: 2px; font-family: var(--body);
}
.skip:focus { left: 12px; top: 12px; }

/* ============================================================
   THE LOFT — fixed backdrop the copy walks across.
   position:fixed so it never scroll-jacks; only its veil opacity
   changes with --progress (dim door -> lit room).
   ============================================================ */
.loft {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
  /* iOS hardening: promote the whole fixed backdrop to its own GPU layer so it
     is composited once and NOT repainted on every scroll frame (the classic
     real-iPhone scroll-jank on a position:fixed illustration). */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.loft__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  /* faint continuous parallax "breath" driven purely by --progress (no transform of scroll) */
  transform: scale(1.06) translateY(calc(var(--progress) * -2.2%)) translateZ(0);
  opacity: var(--loft-opacity);
  filter: var(--loft-filter);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* the dim veil: opaque at the door (progress 0), clears as the room lights (progress 1) */
.loft__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 40%, rgba(32,26,21,0) 0%, var(--scrim) 82%),
    var(--scrim);
  opacity: calc(var(--veil-ceiling) - var(--progress) * var(--veil-range));
}
/* savannah gold bloom — off by default, blooms on the peak scene */
.loft__bloom {
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 72% 46%, var(--bloom) 0%, rgba(246,211,138,0) 62%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body[data-scene="savannah"] .loft__bloom { opacity: .92; }
body[data-scene="join"]     .loft__bloom { opacity: .45; }
/* paper wash keeps copy legible over the busy illustration (AA) */
.loft__wash {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
     color-mix(in srgb, var(--bg) 92%, transparent) 0%,
     color-mix(in srgb, var(--bg) 62%, transparent) 46%,
     color-mix(in srgb, var(--bg) 30%, transparent) 100%);
}

/* ============================================================
   SIGNATURE — sage rule down the left margin, ink dot travels
   with --progress. Pure CSS var; reads scroll, never sets it.
   ============================================================ */
.rail {
  position: fixed;
  left: clamp(14px, 3.4vw, 46px);
  top: 12vh; bottom: 12vh;
  width: 2px;
  z-index: 40;
  background: linear-gradient(var(--sage-soft), color-mix(in srgb, var(--sage) 60%, transparent));
  opacity: .8;
  pointer-events: none;
}
.rail__dot {
  position: absolute;
  left: 50%;
  top: calc(var(--progress) * 100%);
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--paper) 70%, transparent);
}
.rail__dot::after { /* the ink bleed */
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--terracotta) 45%, transparent);
}
@media (max-width: 640px) {
  .rail { left: 9px; }
}

/* ---------- chrome: skip nav / theme toggle ---------- */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  font-family: var(--body);
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.brand {
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--fg);
  mix-blend-mode: normal;
}
.brand::before { content: "◆"; color: var(--gold-deco); margin-right: .4em; font-size: .8em; }
.themeToggle {
  font: inherit; font-size: .82rem;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--fg);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: .35rem .8rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.themeToggle:focus-visible { outline: 2px solid var(--gold-deco); outline-offset: 2px; }

/* ============================================================
   CONTENT — scroll column over the fixed loft
   ============================================================ */
main { position: relative; z-index: 10; }

.scene {
  min-height: 100vh;
  min-height: 100svh; /* iOS: stable against the dynamic toolbar (no 100vh jump) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16vh clamp(24px, 7vw, 90px) 16vh clamp(52px, 9vw, 120px);
  max-width: 1100px;
}
.scene__inner { max-width: var(--measure); }

/* beat = a line/block that reveals as it enters. class .in added by IO. */
.beat {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.beat.in { opacity: 1; transform: none; }

.lede {
  font-family: var(--display);
  font-weight: 350;
  text-transform: lowercase;
  font-size: clamp(1.9rem, 5.4vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 .2em;
}
.lede .accent { color: var(--gold); font-style: italic; }
.step {
  font-family: var(--display);
  font-weight: 360;
  text-transform: lowercase;
  font-size: clamp(1.4rem, 3.6vw, 2.35rem);
  line-height: 1.22;
  margin: .15em 0 1.15em;
}
.kicker {
  font-family: var(--body);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.8rem;
}
.note {
  font-family: var(--body);
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 30rem;
}
.hedge {
  font-family: var(--body);
  font-style: italic;
  color: var(--muted);
  border-left: 2px solid var(--sage);
  padding-left: .9rem;
  margin-top: 1.3rem;
  max-width: 30rem;
}

/* scene hierarchy: give the first line after a kicker a modest size bump so
   each scene opens with a little of the rhythm the door has, instead of a flat
   wall of same-size lines. Modest on mobile (min just above base) so it doesn't
   force awkward wraps at ~390px. */
#pride .kicker + .step,
#gate .kicker + .step,
#everyday .kicker + .step,
#join .kicker + .step {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
}

/* ============================================================
   READABILITY SCRIM — a soft, feathered paper panel behind each
   copy column. Guarantees WCAG AA over the busy loft in BOTH
   themes (measured: dark ink >10:1, muted >5:1 even over black);
   the illustration still shows around the words. No scroll code.
   ============================================================ */
.scene__inner { position: relative; isolation: isolate; }
.scene__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.9rem -1.6rem;
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-theme="dark"] .scene__inner::before {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene__inner::before {
    background: color-mix(in srgb, var(--paper) 88%, transparent);
  }
}
/* media scene: don't panel the whole grid — hug its two text pieces,
   so the vienna window keeps breathing next to a clear text column */
#media .scene__inner::before { display: none; }
#media .kicker, .mediaSteps { position: relative; isolation: isolate; }
#media .kicker::before,
.mediaSteps::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-theme="dark"] :is(#media .kicker, .mediaSteps)::before {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(#media .kicker, .mediaSteps)::before {
    background: color-mix(in srgb, var(--paper) 88%, transparent);
  }
}
#media .kicker::before { inset: -0.7rem -1rem; }
.mediaSteps::before   { inset: -1.4rem -1.3rem; }

/* iOS hardening: a live backdrop-filter blur over the fixed loft is repainted
   every scroll frame and is the heaviest per-frame cost on real touch devices
   (the reported "scrolling feels broken on iPhone"). Drop the blur on coarse
   pointers only — the opaque paper panel + bloom below already carry WCAG AA
   legibility, so nothing becomes unreadable; the page just scrolls smooth. */
@media (pointer: coarse) {
  .scene__inner::before,
  #media .kicker::before,
  .mediaSteps::before,
  .gate {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  /* firm the panel up slightly so it never leans on the (now-removed) blur */
  .scene__inner::before,
  #media .kicker::before,
  .mediaSteps::before {
    background: color-mix(in srgb, var(--paper) 93%, transparent);
  }
}

/* ---------- 1. THE DOOR ---------- */
#door { min-height: 108vh; min-height: 108svh; justify-content: center; }
#door .lede { font-size: clamp(2.4rem, 8vw, 5rem); }

/* ---------- 2. MEDIA HISTORY (vienna window) ---------- */
#media { max-width: 1180px; }
#media .scene__inner { max-width: 980px; width: 100%; }
.media__layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 720px) {
  .media__layout { grid-template-columns: 1fr; gap: 0; }
}
.window {
  position: relative;
  width: min(320px, 62vw);
  margin-bottom: 2.4rem;
  box-shadow: var(--shadow), 0 0 0 1px var(--hair);
}
/* the vienna window stays pinned while the era-copy walks past it (native sticky) */
.media__window {
  position: sticky;
  top: 16vh;
  margin-bottom: 0;
}
/* mobile: the window sits in its OWN pinned space (opaque card, above the
   text) so scrolled-past lines slide cleanly under it — never overlap it */
@media (max-width: 720px) {
  .media__window {
    position: sticky;
    top: 6vh;
    z-index: 5;
    width: min(190px, 46vw);
    margin: 0 auto 1.4rem;
    padding: 8px;
    background: var(--paper);
    border-radius: var(--r);
    box-shadow: var(--shadow), 0 0 0 1px var(--hair);
  }
  .mediaSteps { margin-top: .4rem; }
}
.window img { width: 100%; height: auto; border-radius: var(--r); }
/* scroll-linked era tint over the window; hue set by data-era */
.window__tint {
  position: absolute; inset: 0; border-radius: var(--r);
  mix-blend-mode: multiply;
  opacity: .0;
  transition: background 1.1s ease, opacity 1.1s ease;
  background: transparent;
}
.window[data-era="press"]    .window__tint { opacity:.30; background:#6b5836; } /* sepia / candle */
.window[data-era="web"]      .window__tint { opacity:.26; background:#3a5b6b; } /* cathode blue */
.window[data-era="ai"]       .window__tint { opacity:.24; background:#4a3a6b; } /* violet now */
.window[data-era="capture"]  .window__tint { opacity:.42; background:#231f1b; } /* the enclosure */
.window[data-era="turn"]     .window__tint { opacity:.0;  background:transparent; } /* clears */
.window__era {
  position: absolute; left: 0; bottom: -1.7rem;
  font-family: var(--body); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  padding: .15rem .4rem;
}
/* TODO(AG/IDA): real per-era window art (press candlelight / crt web / ai glow).
   For pass-1 we approximate the era shift with the tint + label above. */
/* progressive reveal: the ACTIVE era line wins (full ink + weight); the
   others are de-emphasized to --muted but stay legible over the scrim
   (measured >5:1 both themes) — never a pile of overlapping bright lines.
   Opt these lines out of the beat fade + scroll-timeline so JS owns them. */
.mediaSteps .step {
  max-width: 32rem;
  color: var(--dim);
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: color .5s ease, font-weight .5s ease;
}
.mediaSteps .step.is-active { color: var(--fg); font-weight: 480; }

/* ---------- 3. WHO'S BUILDING THIS (humble colophon) ---------- */
#pride { max-width: 1080px; }
.masthead {
  font-family: var(--body);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: lowercase;
  color: var(--muted);
  margin-top: 1.6rem;
  max-width: 30rem;
}
.masthead span { opacity: .5; margin: 0 .2em; }

/* ---------- 4. THE GATE / WORKBENCH ---------- */
#gate { max-width: 1080px; }
.gate {
  margin-top: 1.6rem;
  max-width: 30rem;
  border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: none;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r);
  font-family: var(--body);
  font-size: .95rem;
}
.gate__row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; row-gap: .2rem; padding: .5rem 0; }
.gate__row + .gate__row { border-top: 1px solid var(--hair); }
.gate__lamp {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sage); flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 30%, transparent);
}
.gate__lamp--hold{ box-shadow: 0 0 0 3px color-mix(in srgb, var(--terracotta) 30%, transparent); }
.gate__lamp--pass { background: #6f8f5f; }
.gate__lamp--hold { background: var(--terracotta); }
.gate__req { color: var(--muted); }
.gate__verdict { margin-left: auto; font-variant: small-caps; letter-spacing: .06em; }
/* TODO(AG/STEF): wire to the real values-gate/charter check. This is a static
   visual of the gate for pass-1 — no backend, nothing is actually evaluated. */

/* ---------- 4b. THE EVERYDAY ---------- */
#everyday { max-width: 1080px; }
#everyday .step { max-width: 33rem; }
/* the "quiet" line lands softer — the point is calm, not shout */
#everyday .quiet { color: var(--muted); }
#everyday .quiet .em { color: var(--fg); }
/* a small device on the shelf: your ai at home, like your wifi. a calm CSS
   object (no heavy new art) — a little box with a soft, breathing glow.
   TODO(AG): swap for a proper custom illustration of "your ai at home, like
   your wifi" (a warm object on the loft shelf). this is a placeholder device. */
.home {
  position: relative;
  width: min(220px, 60vw);
  margin: 1.8rem 0 0.4rem;
  aspect-ratio: 5 / 3;
  border-radius: var(--r);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--paper) 92%, var(--gold-deco)) 0%,
      color-mix(in srgb, var(--paper) 84%, transparent) 100%);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* three quiet status lamps — always there, quietly yours */
.home__lamps { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.home__lamp { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); opacity: .55; }
.home__lamp:nth-child(1) { animation: homeBlink 3.2s ease-in-out infinite; }
.home__lamp:nth-child(2) { background: var(--gold-deco); animation: homeBlink 3.2s ease-in-out .6s infinite; }
.home__lamp:nth-child(3) { animation: homeBlink 3.2s ease-in-out 1.2s infinite; }
.home__wifi {
  position: absolute; right: 16px; top: 14px;
  font-family: var(--body); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
@keyframes homeBlink { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  .home__lamp { animation: none !important; opacity: .7; }
}

/* ---------- 5. SAVANNAH PEAK ---------- */
#savannah { max-width: 1080px; }
#savannah .step { font-size: clamp(1.6rem, 4.4vw, 2.8rem); }
.roar {
  font-family: var(--display);
  text-transform: lowercase;
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  color: var(--gold);
  margin: .3em 0 0;
}
.roar .own { color: var(--terracotta); }

/* ---------- 6. JOIN ---------- */
#join { min-height: 100vh; min-height: 100svh; justify-content: center; }
.join__form {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin: 1.4rem 0 1rem; max-width: 30rem;
}
.join__form input[type="email"] {
  flex: 1 1 15rem;
  font: inherit; font-size: 1rem;
  padding: .8rem .9rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--hair);
  border-radius: var(--r);
}
.join__form input:focus-visible { outline: 2px solid var(--gold-deco); outline-offset: 1px; }
.btn {
  font: inherit; font-size: 1rem; cursor: pointer;
  padding: .8rem 1.4rem;
  background: var(--fg); color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: var(--r);
  text-transform: lowercase;
  letter-spacing: .01em;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--gold-deco); outline-offset: 2px; }
.consent { font-size: .82rem; color: var(--muted); max-width: 28rem; }
.listen {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 1.2rem 0 0; font-size: .9rem; color: var(--muted);
}
.listen audio { height: 34px; }

footer.foot {
  position: relative; z-index: 10;
  padding: 3rem clamp(52px, 9vw, 120px) 4rem;
  border-top: 1px solid var(--hair);
  font-family: var(--body); font-size: .86rem; color: var(--muted);
  background: var(--bg);
}
.foot__made { font-family: var(--display); text-transform: lowercase; font-size: 1.05rem; color: var(--fg); margin: 0 0 .6rem; }
.foot a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--hair); }
.foot a:hover { border-color: var(--gold-deco); }
.foot__links { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .3rem; }

/* ============================================================
   REDUCED MOTION — room starts lit, everything readable, no wipes
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beat { opacity: 1 !important; transform: none !important; transition: none !important; }
  .loft__veil { opacity: .28 !important; }         /* room already lit */
  .loft__img { transform: scale(1.04) !important; }
  .loft__bloom { transition: none; }
  .rail__dot { transition: none; }
  .window__tint { transition: none; }
}

/* progressive enhancement: where the browser supports scroll-driven
   animation we let the rail + beats ride the timeline natively too.
   (Still class-based fallback above; NEVER touches scroll position.) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .beat {
      animation: beatIn linear both;
      animation-timeline: view();
      /* finish the fade EARLY (while the line is still low in the viewport)
         so it is full-contrast by the time it reaches reading position —
         never ghosted at the moment the visitor arrives at it */
      animation-range: entry 4% entry 52%;
    }
    @keyframes beatIn {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ============================================================
   THEME-TOGGLE POLISH — soft cross-fade of theme-driven colors so
   the manual toggle doesn't snap. Reduced-motion users are excluded.
   NOTE: this deliberately does NOT transition any scroll/reveal
   transform. .window__tint keeps its era cross-fade — only
   color/shadow are added.
   ============================================================ */
@media (prefers-reduced-motion: no-preference){
  body, .scene__inner::before, .gate, .home, .themeToggle{
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
  }
  .window__tint{
    transition: background 1.1s ease, opacity 1.1s ease;
  }
}
