/* Dreamwilds website. Palette, type and glass follow the app (UI/ZoneInfo.swift Theme, Liquid Glass cards). */

:root {
  --ink: #05071a;
  --night: #0b1030;
  --text: #f1f2ff;
  --dim: rgba(236, 238, 255, 0.66);
  --faint: rgba(236, 238, 255, 0.40);
  --line: rgba(255, 255, 255, 0.09);
  --mint: #8eedc7;
  --elder: #ffcc6b;
  --dream: #bd99ff;
  --bloom: #ff99cc;
  --pines: #6bdbc2;
  --mist: #adbdff;
  --glass: rgba(22, 27, 66, 0.46);
  --glass-hi: rgba(255, 255, 255, 0.06);
  --serif: ui-serif, "New York", "Newsreader", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pad: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip (here and on html), never hidden: hidden turns body into a scroller and breaks every sticky section */
}
body.is-loading { overflow: hidden; }
::selection { background: rgba(142, 237, 199, 0.35); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 12px; }

/* --- the island --- */
#forest {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  display: block; z-index: 0; touch-action: pan-y;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
body.is-ready #forest { opacity: 1; }
#forest-fallback { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.85; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { position: relative; z-index: 2; }

/* --- zone badges hanging over the island (UI/ZoneLabels.swift) --- */
#labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.zlabel {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.zlabel.on { opacity: 1; }
.zlabel .pin {
  position: absolute; left: -23px; top: -62px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(16, 20, 52, 0.72);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent), 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 22px color-mix(in srgb, var(--c) 35%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: scale(var(--s, 1)); transform-origin: 50% 140%;
  transition: transform 0.5s var(--spring);
}
.zlabel .pin svg { width: 24px; height: 24px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zlabel .stem { position: absolute; left: -1px; top: -16px; width: 2px; height: 14px; background: linear-gradient(var(--c), transparent); opacity: 0.8; }
.zlabel .dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.zlabel .name {
  position: absolute; top: -56px; left: 30px; white-space: nowrap; font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  opacity: 0; transform: translateX(-6px); transition: 0.4s var(--ease);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.zlabel.active .name, .zlabel.named .name { opacity: 1; transform: none; }
.zlabel.active { --s: 1.15; }

/* --- cursor firefly --- */
#firefly {
  position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  z-index: 50; pointer-events: none;
  background: radial-gradient(circle, #fff6c8 0 25%, rgba(255, 210, 110, 0.9) 45%, rgba(255, 190, 80, 0) 72%);
  box-shadow: 0 0 18px 6px rgba(255, 205, 100, 0.35);
  opacity: 0; transition: opacity 0.4s, width 0.3s var(--spring), height 0.3s var(--spring), margin 0.3s var(--spring);
  mix-blend-mode: screen;
}
#firefly.on { opacity: 1; }
#firefly.big { width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: 0.55; }
@media (hover: none), (pointer: coarse) { #firefly { display: none; } }

/* --- loader --- */
#loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: radial-gradient(60% 50% at 50% 45%, #12184a 0%, var(--ink) 75%);
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
body.is-ready #loader { opacity: 0; visibility: hidden; }
.loader-ring { position: relative; width: 120px; height: 120px; }
.loader-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.loader-ring circle { fill: none; stroke-width: 5; }
.loader-ring .track { stroke: rgba(255, 255, 255, 0.07); }
.loader-ring .bar { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset 0.4s var(--ease); filter: drop-shadow(0 0 8px rgba(142, 237, 199, 0.6)); }
.loader-seed { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); overflow: visible; }
.loader-seed .stem { fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 24; stroke-dashoffset: calc(24 - var(--p, 0) * 24); }
.loader-seed .leaf { fill: var(--mint); transform-box: fill-box; transform: scale(calc(max(var(--p, 0) - 0.45, 0) * 1.8)); transition: transform 0.4s var(--spring); }
.loader-seed .leaf.l { transform-origin: 100% 100%; }
.loader-seed .leaf.r { transform-origin: 0% 100%; }
.loader-seed .soil { fill: rgba(142, 237, 199, 0.18); }
.loader-text { margin: 0; display: flex; gap: 10px; align-items: baseline; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.loader-text b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.05em; min-width: 3.2ch; }

/* --- nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad); padding-top: max(16px, env(safe-area-inset-top));
  transition: transform 0.6s var(--ease), background 0.4s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(5, 7, 26, 0.7), rgba(5, 7, 26, 0));
  opacity: 0; transition: opacity 0.4s;
}
.nav.scrolled::before { opacity: 1; }
.nav.hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); transition: transform 0.5s var(--spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.nav-links { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(18, 22, 58, 0.45); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-links a { position: relative; padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--dim); transition: color 0.3s, background 0.3s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.current { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.sound-toggle { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 14px; color: var(--dim); border: 1px solid var(--line); background: rgba(18, 22, 58, 0.45); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: color 0.3s, border-color 0.3s; }
.sound-toggle:hover { color: var(--text); }
.sound-toggle .bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.sound-toggle .bars i { width: 2.5px; height: 3px; border-radius: 2px; background: currentColor; transition: height 0.3s; }
.sound-toggle[aria-pressed="true"] { color: var(--mint); border-color: rgba(142, 237, 199, 0.3); }
.sound-toggle[aria-pressed="true"] .bars i { animation: eq 1.1s ease-in-out infinite; }
.sound-toggle .bars i:nth-child(2) { animation-delay: -0.3s !important; }
.sound-toggle .bars i:nth-child(3) { animation-delay: -0.6s !important; }
.sound-toggle .bars i:nth-child(4) { animation-delay: -0.15s !important; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-weight: 600; transition: transform 0.4s var(--spring), box-shadow 0.4s; will-change: transform; }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-glow { color: #06231a; background: linear-gradient(180deg, #b4f6db, var(--mint)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 6px 24px rgba(142, 237, 199, 0.3); }
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 8px 36px rgba(142, 237, 199, 0.5); }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 16px;
  color: #0a0d24; background: #f4f5ff; box-shadow: 0 10px 40px rgba(170, 180, 255, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.4s var(--spring), box-shadow 0.4s; will-change: transform;
}
.store-btn svg { width: 26px; height: 26px; fill: currentColor; }
.store-btn span { display: flex; flex-direction: column; font-size: 19px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.store-btn small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.7; }
.store-btn:hover { box-shadow: 0 14px 50px rgba(170, 180, 255, 0.4), 0 0 0 1px #fff inset; }
.play-btn { display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform 0.4s var(--spring); will-change: transform; }
.play-ring { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background 0.3s, transform 0.5s var(--spring); }
.play-ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); animation: ripple 2.6s var(--ease) infinite; }
.play-ring svg { width: 18px; height: 18px; fill: currentColor; margin-left: 3px; }
.play-btn:hover .play-ring { background: rgba(255, 255, 255, 0.2); transform: scale(1.08); }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }

/* --- type --- */
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.display { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 8.4vw, 124px); line-height: 0.98; letter-spacing: -0.025em; }
.display em, .title em { font-style: italic; font-weight: 400; background: linear-gradient(100deg, #dff9ee 0%, var(--mint) 35%, #b9a6ff 70%, var(--bloom) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.title { margin: 0 0 18px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.lede { margin: 26px 0 0; max-width: 34ch; font-size: clamp(17px, 1.45vw, 20px); color: var(--dim); text-wrap: pretty; }
.body { margin: 0 0 14px; max-width: 42ch; color: var(--dim); text-wrap: pretty; }
.body.small { font-size: 15px; color: var(--faint); }
.control-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.control-label b { color: var(--text); font-variant-numeric: tabular-nums; }

/* split headings: each word rises out of a soft blur */
.split .w { display: inline-block; white-space: pre; opacity: 0; filter: blur(10px); transform: translateY(0.35em) rotate(2deg); transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.split.in .w { opacity: 1; filter: none; transform: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* --- glass --- */
.glass {
  background: linear-gradient(160deg, rgba(40, 46, 104, 0.42), rgba(14, 18, 48, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 80px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border-radius: 28px;
}

/* --- sections --- */
section { position: relative; }
.section-head { padding: 0 var(--pad); max-width: 900px; }

/* hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--pad) 40px; }
.hero-copy { position: relative; max-width: 640px; }
.hero-copy::before { content: ""; position: absolute; inset: -18% -30% -18% -40%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(5, 7, 26, 0.62), rgba(5, 7, 26, 0)); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 36px; }
.cta-row.center { justify-content: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; }
.chips li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.chips svg { width: 17px; height: 17px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; }
.chips li:nth-child(2) svg { fill: #6cc4ff; stroke: none; }
.chips b { font-variant-numeric: tabular-nums; }
.hero-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--faint); }
.drag-hint { display: flex; align-items: center; gap: 10px; }
.drag-hint i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; animation: nudge 2.8s var(--ease) infinite; }
.drag-hint i::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: currentColor; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(10px); } 70% { transform: translateX(-6px); } }
.scroll-cue { display: flex; align-items: center; gap: 12px; color: var(--dim); }
.scroll-cue i { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.35); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--mint); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* HUD */
.hud {
  position: fixed; left: var(--pad); bottom: 26px; z-index: 15; display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); pointer-events: none;
}
.hud.on { opacity: 1; transform: none; }
.hud b { color: var(--text); font-variant-numeric: tabular-nums; display: inline-block; min-width: 2ch; text-align: right; }
.hud-bar { display: block; width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: calc(var(--g, 1) * 100%); background: linear-gradient(90deg, var(--mint), #b9a6ff); border-radius: 3px; }

/* growth */
.grow { height: 240vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; }
.grow .sticky { grid-template-columns: 1fr minmax(320px, 420px); gap: 40px; padding: 0 var(--pad); }
.grow-copy { position: relative; max-width: 460px; justify-self: start; align-self: end; padding-bottom: 14vh; }
.grow-copy::before, .visitors-copy::before, .explore-copy::before, .sprig-copy::before { content: ""; position: absolute; inset: -25% -40% -25% -50%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(5, 7, 26, 0.78), rgba(5, 7, 26, 0.35) 60%, rgba(5, 7, 26, 0)); }
.grow-copy .body, .visitors-copy .body, .explore-copy .body, .sprig-copy .body { text-shadow: 0 1px 14px rgba(5, 7, 26, 0.9); color: rgba(236, 238, 255, 0.78); }
.night-card { padding: 24px; grid-column: 2; align-self: center; transform: translateY(var(--ty, 0)); }
.nc-head { display: flex; gap: 18px; align-items: center; }
.ring { position: relative; flex: none; width: 92px; height: 92px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .t { stroke: rgba(255, 255, 255, 0.08); }
.ring .b { stroke: var(--rc, var(--mint)); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); transition: stroke-dashoffset 0.5s var(--ease), stroke 0.5s; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rc, var(--mint)) 60%, transparent)); }
.ring b { font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.nc-date { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.nc-label { margin: 2px 0; font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.nc-sub { margin: 0; color: var(--dim); font-size: 15px; }
.nc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 18px; }
.tile { padding: 11px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 2px; }
.tile svg { width: 20px; height: 20px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.tile b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile span { font-size: 12px; color: var(--faint); }
.nc-bars { display: flex; align-items: flex-end; gap: 3px; height: 58px; }
.nc-bars i { flex: 1; border-radius: 3px; height: calc(var(--h) * 100%); background: var(--bc); opacity: 0.18; transform-origin: bottom; transform: scaleY(0.4); transition: opacity 0.35s, transform 0.5s var(--spring); }
.nc-bars i.grown { opacity: 0.75; transform: none; }
.nc-bars i.now { opacity: 1; box-shadow: 0 0 12px var(--bc); }
.nc-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.nc-foot span:nth-child(2) { color: var(--text); font-weight: 600; }
.grow-count { position: absolute; right: var(--pad); bottom: 30px; margin: 0; font-size: 13px; color: var(--faint); }
.grow-count b { color: var(--text); font-variant-numeric: tabular-nums; }

/* biomes */
.biomes {
  position: relative; min-height: 100vh; min-height: 100svh; padding: 14vh var(--pad) 9vh;
  display: grid; grid-template-columns: minmax(300px, 460px) 1fr minmax(300px, 400px); align-items: end; gap: 32px;
}
.biomes-copy { position: relative; align-self: center; }
.biomes-copy::before { content: ""; position: absolute; inset: -20% -40% -20% -50%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(5, 7, 26, 0.75), rgba(5, 7, 26, 0.3) 60%, rgba(5, 7, 26, 0)); }
.biome-tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 30px; }
.biome-tabs button {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-width: 250px; padding: 8px 18px 8px 8px; border-radius: 18px;
  text-align: left; color: var(--dim); background: rgba(18, 22, 58, 0.45); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: color 0.3s, background 0.4s, border-color 0.4s, transform 0.45s var(--spring);
}
.biome-tabs button:hover { color: var(--text); transform: translateX(4px); }
.biome-tabs button[aria-selected="true"] { color: var(--text); background: color-mix(in srgb, var(--c) 16%, rgba(18, 22, 58, 0.6)); border-color: color-mix(in srgb, var(--c) 45%, transparent); transform: translateX(8px); }
.bt-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: rgba(10, 14, 40, 0.6); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); transition: box-shadow 0.4s; }
.biome-tabs button[aria-selected="true"] .bt-icon { box-shadow: 0 0 0 2px var(--c), 0 0 22px color-mix(in srgb, var(--c) 55%, transparent); }
.bt-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-text { display: flex; flex-direction: column; line-height: 1.2; }
.bt-text b { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.bt-text small { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); font-weight: 600; opacity: 0.85; }
/* Auto-tour progress on the active tab or chip (js/main.js, tour()). */
.tour-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--c, var(--mint)); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
[aria-selected="true"] > .tour-bar, .on > button > .tour-bar { opacity: 0.9; transform: scaleX(var(--t, 0)); }
.biome-cards { display: grid; grid-column: 3; }
.biome-card { grid-area: 1 / 1; position: relative; padding: 30px 30px 26px; overflow: hidden; opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(6px); pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.7s var(--spring), filter 0.5s var(--ease); }
.biome-card.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.biome-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%); }
.biome-num { position: absolute; right: 26px; top: 22px; font-family: var(--serif); font-size: 56px; line-height: 1; color: color-mix(in srgb, var(--c) 35%, transparent); font-style: italic; }
.biome-icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 18px; background: rgba(10, 14, 40, 0.6); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent), 0 0 30px color-mix(in srgb, var(--c) 40%, transparent); }
.biome-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.biome-card h3 { position: relative; margin: 0 0 12px; font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: -0.015em; }
.biome-aspect { position: relative; margin: 0 0 4px; color: var(--c); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.biome-card p { position: relative; color: var(--dim); margin: 0 0 14px; }
.biome-rough { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text) !important; margin: 0 !important; }
.biome-rough span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

/* visitors */
.visitors { height: 100vh; height: 100svh; }
.visitors .sticky { grid-template-columns: minmax(280px, 440px) 1fr; padding: 0 var(--pad); }
.visitors-copy { position: relative; align-self: start; padding-top: 16vh; }
.visitor-list { list-style: none; margin: 0; padding: 0; position: absolute; left: var(--pad); bottom: 7vh; display: flex; gap: 8px; flex-wrap: wrap; max-width: min(760px, calc(100% - 2 * var(--pad))); }
.visitor-list li button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 14px; color: var(--dim); background: rgba(18, 22, 58, 0.5); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: color 0.3s, background 0.3s, border-color 0.3s, transform 0.4s var(--spring); }
.visitor-list li button:hover { color: var(--text); transform: translateY(-2px); }
.visitor-list li button .n { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.08); font-variant-numeric: tabular-nums; }
.visitor-list li.on button { color: #06231a; background: var(--mint); border-color: var(--mint); }
.visitor-list li.on button .n { background: rgba(6, 35, 26, 0.15); }
.visitor-tag { position: fixed; left: 0; top: 0; padding: 12px 16px; border-radius: 18px; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease); display: flex; flex-direction: column; min-width: 160px; }
.visitor-tag.on { opacity: 1; }
.visitor-tag b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.visitor-tag span { font-size: 13px; color: var(--dim); }
.visitor-tag::after { content: ""; position: absolute; left: 22px; bottom: -7px; width: 14px; height: 14px; transform: rotate(45deg); background: rgba(20, 24, 60, 0.9); border-right: 1px solid rgba(255, 255, 255, 0.09); border-bottom: 1px solid rgba(255, 255, 255, 0.09); }

/* sprig */
.sprig-sec { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 8vh var(--pad); }
.sprig-stage { position: relative; height: min(72vh, 640px); display: grid; place-items: center; }
.sprig-halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 130, 255, 0.28), rgba(110, 90, 220, 0.1) 55%, transparent); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.94); opacity: 0.8; } 50% { transform: scale(1.04); opacity: 1; } }
#sprig-canvas { position: relative; width: min(100%, 560px); aspect-ratio: 1; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sprig-bubble {
  position: absolute; left: 58%; top: 10%; max-width: 230px; padding: 12px 16px; border-radius: 20px 20px 20px 6px;
  background: rgba(245, 246, 255, 0.95); color: #141836; font-weight: 500; font-size: 15px; line-height: 1.35;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); transform-origin: 0% 100%;
  animation: pop 0.6s var(--spring) both;
}
.sprig-bubble.swap { animation: none; }
@keyframes pop { from { opacity: 0; transform: scale(0.6) translateY(10px); } to { opacity: 1; transform: none; } }
.sprig-hint { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; text-align: center; font-size: 13px; color: var(--faint); letter-spacing: 0.04em; }
.sprig-copy { position: relative; max-width: 500px; }
.control { margin-top: 26px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(18, 22, 58, 0.55); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); position: relative; }
.seg button { position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--dim); transition: color 0.3s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { color: #10142e; }
.seg .thumb { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px; background: #eef0ff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); transition: transform 0.5s var(--spring), width 0.5s var(--spring); }
.seg-sm button { padding: 6px 11px; font-size: 13px; }

/* explore */
.explore { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 14vh var(--pad) 5vh; }
.explore-copy { position: relative; max-width: 440px; }
.dock {
  position: relative; margin: 0 auto; width: fit-content; max-width: 100%;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; padding: 16px 20px; border-radius: 26px;
}
.dock .control-label { margin-bottom: 6px; font-size: 11px; }
.dock-night { display: flex; flex-direction: column; min-width: 170px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--mint) var(--v, 100%), rgba(255, 255, 255, 0.14) var(--v, 100%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--mint); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(142, 237, 199, 0.25), 0 2px 10px rgba(0, 0, 0, 0.4); transition: transform 0.3s var(--spring); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }
.replay { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); transition: background 0.3s; }
.replay:hover { background: rgba(255, 255, 255, 0.14); }
.replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--ease); }
.replay:hover svg { transform: rotate(-200deg); }
.plant-story { position: fixed; left: 0; top: 0; z-index: 12; padding: 12px 16px; border-radius: 18px; pointer-events: none; opacity: 0; transform: scale(0.9); transition: opacity 0.4s var(--ease), transform 0.5s var(--spring); max-width: 260px; font-size: 14px; color: var(--dim); }
.plant-story.on { opacity: 1; transform: none; }
.plant-story b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--text); }
.plant-story i { font-style: normal; color: var(--c); font-weight: 600; }

/* features */
.features { padding: 14vh 0 8vh; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 48px var(--pad) 0; }
.feature { position: relative; padding: 26px 24px 24px; overflow: hidden; transform-style: preserve-3d; transition: transform 0.6s var(--ease), border-color 0.4s; transition-delay: 0s; }
.feature.reveal { transition: opacity 1s var(--ease), transform 1.1s var(--ease), border-color 0.4s; transition-delay: var(--d, 0ms); }
.feature::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(142, 237, 199, 0.14), transparent 70%); }
.feature:hover { border-color: rgba(142, 237, 199, 0.25); }
.feature:hover::after { opacity: 1; }
.feature h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 15px; color: var(--dim); line-height: 1.5; }
.f-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.f-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--mint); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.f-health svg { stroke: #ff8fa8; }
.f-health .pulse { stroke-dasharray: 30; stroke-dashoffset: 30; }
.feature:hover .f-health .pulse { animation: dash 1.2s var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.f-reveal svg { stroke: var(--elder); }
.f-reveal .sun { transition: transform 0.6s var(--spring); transform-origin: 50% 100%; transform-box: fill-box; }
.f-reveal .rays { opacity: 0.3; transition: opacity 0.4s; }
.feature:hover .f-reveal .sun { transform: translateY(-2px); }
.feature:hover .f-reveal .rays { opacity: 1; }
.f-moon svg { stroke: #ffb27a; }
.f-moon .z { opacity: 0; transition: 0.5s var(--ease); }
.feature:hover .f-moon .z { opacity: 1; transform: translate(1px, -2px); }
.f-calm .breath { transform-origin: center; transform-box: fill-box; animation: calm 5s ease-in-out infinite; }
@keyframes calm { 0%, 100% { transform: scale(0.7); } 45% { transform: scale(1.25); } }
.f-stats svg { stroke: #7fd6ff; stroke-width: 2.4; }
.f-stats path { transition: transform 0.5s var(--spring); transform-origin: bottom; transform-box: fill-box; }
.feature:hover .f-stats .b1 { transform: scaleY(1.6); }
.feature:hover .f-stats .b2 { transform: scaleY(0.7); transition-delay: 60ms; }
.feature:hover .f-stats .b3 { transform: scaleY(1.4); transition-delay: 120ms; }
.feature:hover .f-stats .b4 { transform: scaleY(0.85); transition-delay: 180ms; }
.f-journal svg { stroke: var(--dream); }
.f-journal .star { transition: transform 0.6s var(--spring); transform-origin: center; transform-box: fill-box; }
.feature:hover .f-journal .star { transform: rotate(144deg) scale(1.2); }
.f-widget svg { stroke: var(--pines); }
.f-widget .pop { transition: transform 0.5s var(--spring); transform-origin: center; transform-box: fill-box; }
.feature:hover .f-widget .pop { transform: scale(1.18) rotate(8deg); }
.f-forests svg { stroke: var(--mint); }
.f-forests .grow { transition: transform 0.6s var(--spring); transform-origin: bottom; transform-box: fill-box; transform: scaleY(0.5); }
.feature:hover .f-forests .grow { transform: none; }

/* film */
.film { padding: 14vh var(--pad); }
.film-frame { position: relative; aspect-ratio: 16 / 9; max-width: 1180px; margin: 0 auto; border-radius: 34px; overflow: hidden; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5); isolation: isolate; transform: perspective(1400px) rotateX(var(--rx, 8deg)) scale(var(--fs, 0.92)); transition: transform 0.2s linear; }
.film-poster { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 45%, rgba(40, 46, 120, 0.15), rgba(5, 7, 26, 0.65)), linear-gradient(180deg, rgba(5, 7, 26, 0.1), rgba(5, 7, 26, 0.6)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.film-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 20px; }
.film-center .title { margin: 0; font-size: clamp(28px, 4vw, 54px); }
.film-center .eyebrow { margin: 26px 0 8px; }
.play-big { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform 0.5s var(--spring), background 0.4s; will-change: transform; }
.play-big::before, .play-big::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); animation: ripple 3s var(--ease) infinite; }
.play-big::after { animation-delay: 1.5s; }
.play-big svg { width: 34px; height: 34px; fill: #fff; margin-left: 5px; }
.film-frame:hover .play-big { background: rgba(255, 255, 255, 0.25); }

/* privacy */
.privacy { padding: 8vh var(--pad); display: grid; place-items: center; }
.privacy-inner { display: flex; gap: 18px; align-items: center; max-width: 720px; padding: 22px 26px; border-radius: 24px; background: rgba(12, 16, 44, 0.55); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.privacy-inner svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--mint); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.privacy-inner p { margin: 0; color: var(--dim); }
.privacy-inner b { color: var(--text); font-weight: 600; }

/* download */
.download { min-height: 100vh; display: flex; flex-direction: column; }
.download-inner { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; padding: 14vh var(--pad) 8vh; }
.download .lede { margin-left: auto; margin-right: auto; }
#sprig-mini { width: 170px; height: 170px; margin-bottom: 6px; cursor: pointer; }
.fine { margin: 22px 0 0; font-size: 13px; color: var(--faint); }
.footer { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; padding: 26px var(--pad) max(26px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); background: linear-gradient(rgba(5, 7, 26, 0), rgba(5, 7, 26, 0.7)); }
.footer a:hover { color: var(--text); }

/* film dialog */
dialog#film-dialog { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 26px; background: #070a1c; color: var(--text); overflow: hidden; box-shadow: 0 40px 140px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1); }
dialog#film-dialog::backdrop { background: rgba(3, 4, 16, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
dialog[open] { animation: dialog-in 0.6s var(--ease); }
dialog[open]::backdrop { animation: fade 0.5s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(30px) scale(0.94); } }
@keyframes fade { from { opacity: 0; } }
.film-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.film-player video { width: 100%; height: 100%; display: block; }
.film-soon { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; text-align: center; padding: 24px; background: radial-gradient(60% 60% at 50% 40%, #171d55, #070a1c); }
.film-player.soon .film-soon { display: grid; }
.film-player.soon video { display: none; }
.film-soon canvas { width: 180px; height: 180px; }
.film-soon h3 { margin: 6px 0 6px; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.film-soon p { margin: 0; color: var(--dim); }
.dialog-close { position: absolute; z-index: 2; right: 14px; top: 12px; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.15); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 0.4s var(--spring), background 0.3s; }
.dialog-close:hover { transform: rotate(90deg); background: rgba(255, 255, 255, 0.15); }

/* --- responsive --- */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { gap: 10px; }
  .sound-label { display: none; }
  .sound-toggle { padding: 9px 12px; }
  .nav-actions { gap: 8px; }
  .hero { justify-content: flex-start; padding-top: 104px; }
  .hero-copy::before { inset: -10% -20% -30%; }
  .lede { max-width: 30ch; }
  .chips { margin-top: 22px; }
  .hero-foot .drag-hint { display: none; }
  .grow .sticky { grid-template-columns: 1fr; align-content: space-between; padding-top: 86px; padding-bottom: 20px; gap: 0; }
  .grow-copy { align-self: start; padding: 0; }
  .grow-copy .body { display: none; }
  .night-card { grid-column: 1; align-self: end; padding: 16px; border-radius: 24px; }
  .ring { width: 70px; height: 70px; }
  .ring b { font-size: 24px; }
  .nc-label { font-size: 22px; }
  .nc-tiles { margin: 12px 0; gap: 6px; }
  .tile { padding: 8px; }
  .tile b { font-size: 13px; }
  .nc-bars { height: 40px; }
  .grow-count { display: none; }
  .biomes { grid-template-columns: minmax(0, 1fr); align-content: space-between; gap: 16px; padding: 88px var(--pad) 22px; }
  .biomes-copy { align-self: start; min-width: 0; }
  .biome-cards { grid-column: auto; }
  .biome-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 18px calc(-1 * var(--pad)) 0; padding: 4px var(--pad); scroll-padding: 0 var(--pad); }
  .biome-tabs::-webkit-scrollbar { display: none; }
  .biome-tabs button { min-width: 0; flex: none; padding: 6px 14px 6px 6px; border-radius: 999px; }
  .biome-tabs button:hover, .biome-tabs button[aria-selected="true"] { transform: none; }
  .bt-icon { width: 30px; height: 30px; }
  .bt-icon svg { width: 16px; height: 16px; }
  .bt-text b { font-size: 15px; }
  .bt-text small { display: none; }
  .biome-card { padding: 20px 20px 18px; }
  .biome-card h3 { font-size: 26px; margin-bottom: 8px; }
  .biome-card p { font-size: 15px; margin-bottom: 10px; }
  .biome-num { font-size: 42px; }
  .visitors .sticky { grid-template-columns: 1fr; }
  .visitors-copy { padding-top: 96px; }
  .visitors-copy .body { display: none; }
  .visitor-list { bottom: 4vh; gap: 6px; }
  .visitor-list li button { padding: 6px 11px 6px 6px; font-size: 13px; }
  .sprig-sec { grid-template-columns: 1fr; padding-top: 10vh; gap: 10px; }
  .sprig-stage { height: 58vh; }
  .sprig-bubble { left: 50%; top: 2%; }
  .feature-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding-bottom: 8px; scrollbar-width: none; }
  .feature-grid::-webkit-scrollbar { display: none; }
  .feature { scroll-snap-align: start; }
  .explore { padding: 88px var(--pad) 20px; }
  .sprig-sec { min-height: 0; padding: 10vh var(--pad) 6vh; }
  .dock { gap: 12px 16px; padding: 14px; }
  .hud { display: none; }
  .film-frame { border-radius: 22px; }
  .play-big { width: 76px; height: 76px; }
  .privacy-inner { flex-direction: column; text-align: center; }
  .sound-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; transition-delay: 0s !important; }
  .split .w, .reveal { filter: none; transform: none; }
}

/* --- footer credit --- */
.footer { align-items: center; }
.footer-made { display: inline-flex; align-items: center; gap: 12px; }
.footer-author { color: var(--text); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease), color 0.3s; }
.footer-author:hover { color: var(--mint) !important; background-size: 100% 1px; }
.footer-social { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--dim); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: color 0.3s, background 0.3s, border-color 0.3s, transform 0.4s var(--spring); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-social:hover { color: #fff !important; background: #0a66c2; border-color: #0a66c2; transform: translateY(-2px); }

/* --- biomes: fit one screen even on short windows --- */
.biomes { padding: 11vh var(--pad) 6vh; }
.biomes-copy { align-self: end; }
.biomes .title { font-size: clamp(34px, 3.5vw, 54px); }
.biome-tabs { gap: 6px; margin-top: 22px; }
.biome-tabs button { padding: 6px 16px 6px 6px; border-radius: 16px; }
.bt-icon { width: 34px; height: 34px; }
.bt-text b { font-size: 17px; }
@media (max-height: 760px) and (min-width: 821px) {
  .biomes .title { font-size: clamp(30px, 3vw, 44px); }
  .bt-text small { display: none; }
  .biome-card { padding: 22px 24px 20px; }
  .biome-card h3 { font-size: 28px; }
}
@media (max-width: 820px) {
  .visitor-list { left: 0; right: 0; max-width: none; flex-wrap: nowrap; overflow-x: auto; padding: 4px var(--pad); scrollbar-width: none; }
  .visitor-list::-webkit-scrollbar { display: none; }
  .visitor-list li { flex: none; }
  .explore-copy .body { display: none; }
  .sprig-mini, #sprig-mini { position: relative; z-index: 1; }
}
