@font-face {
  font-family: "Oxanium";
  src: url("./assets/oxanium-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
/* DotGothic16 supplies the Japanese motto and its animated kana. */
@font-face {
  font-family: "DotGothic16";
  src: url("./assets/dotgothic16.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #000;
  --white: #f5f1e8;
  --muted: #dfddd4;
  --gold: #dac198;
  --display-font: "Oxanium", system-ui, sans-serif;
  --mono-font: "JetBrains Mono", ui-monospace, monospace;
  --japanese-font: "DotGothic16", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", monospace;
  --side: clamp(1.2rem, 5.5vw, 6.25rem);
  background: var(--page);
  color: var(--white);
  font: 100%/1.5 var(--mono-font);
  font-synthesis: none;
}
:lang(ja) { font-family: var(--japanese-font); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.atmosphere, .figure, .shade { position: fixed; pointer-events: none; }
.atmosphere, .shade { inset: 0; }
.atmosphere, .shade { opacity: calc(1 - var(--dark, 0)); }
/* The coins step aside while the HUD is up, then come back. */
.social-coins { opacity: calc((1 - var(--dark, 0)) * (1 - var(--coins-away, 0) * .92)); }
body.hud-up .social-coins { pointer-events: none; }
body.hud-up .social-coin { pointer-events: none; }
/* once the 3D scene orbits the coins, the page coins are kept only for keyboard users */
body.coins-3d .social-coins { opacity: 0; pointer-events: none; }
body.coins-3d .social-coins:focus-within { opacity: 1; }
body.coin-hover { cursor: pointer; }
.coin-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 8;
  padding: .2rem .45rem;
  border-radius: .2rem;
  background: #0b0d0de6;
  color: var(--white);
  font: 600 .7rem/1.2 var(--mono-font);
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.coin-tip.is-on { opacity: 1; }
/* Orbit: coins on the far side live in the back layer, under Trigger and the shade, a little dimmer */
.social-coins--back { z-index: 1; filter: brightness(.55) saturate(.75); }
.social-coins.is-orbiting .coin, .social-coins.is-orbiting .social-coin {
  left: 0;
  top: 0;
  animation: none;
  transform: translate(-50%, -50%) translate(var(--ox, 0px), var(--oy, 0px)) translate(var(--px, 0px), var(--py, 0px)) scale(var(--os, 1)) rotate(var(--sway, 0deg));
  filter: drop-shadow(0 5px 11px #10151886) blur(var(--dof, 0px));
  transition: none;
}
.social-coins.is-orbiting .coin3d { animation: coin-bob calc(var(--duration, 10s) * .85) ease-in-out var(--delay, 0s) infinite alternate; }
@media (min-width: 741px) { .social-coins { translate: calc(var(--dark, 0) * -15vw - var(--edge-move, 0) * 15vw) 0; } }
body.is-dark .social-coins { visibility: hidden; }
.atmosphere { overflow: hidden; background: #161f21; }
.grove-art {
  position: absolute;
  inset: -6%;
  background: url("./assets/grove.webp") 52% 42% / cover no-repeat;
  filter: saturate(.69) brightness(.76) opacity(calc(1 - var(--edge, 0) * .92));
  transform: translate(var(--bg-x, 0px), var(--bg-y, 0px)) scale(1.04);
}
.mist {
  position: absolute;
  inset: -25% -18%;
  background: radial-gradient(ellipse at 67% 52%, #b8c2b53b, transparent 44%);
  animation: drift 26s ease-in-out alternate infinite;
}
.mist--near {
  background: radial-gradient(ellipse at 70% 75%, #c0c7b642, transparent 42%);
  animation-duration: 19s;
  animation-direction: alternate-reverse;
}
.mist--low {
  inset: 40% -30% -20%;
  background: radial-gradient(ellipse 60% 38% at 40% 70%, #c7cdc236, transparent 70%);
  animation-duration: 31s;
}
.petals { position: absolute; inset: 0; width: 100%; height: 100%; }
.petals--front { position: fixed; z-index: 2; pointer-events: none; opacity: calc(1 - var(--dark, 0)); }
/* Soft shafts of light falling through the canopy. */
.rays {
  position: absolute;
  inset: -20% -15% 10% 15%;
  background: repeating-linear-gradient(108deg, transparent 0 6%, #fff2dc14 8.5%, transparent 11% 17%, #ffeccc0c 19%, transparent 22% 30%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #0008 40%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, #0008 40%, transparent 80%);
  filter: blur(12px) opacity(calc(1 - var(--edge, 0) * .92));
  mix-blend-mode: screen;
  animation: rays 20s ease-in-out infinite alternate;
}
@keyframes rays {
  from { opacity: .35; translate: -3% 0; }
  to { opacity: .85; translate: 3% 0; }
}
@keyframes drift { to { transform: translate3d(-9%, 2%, 0); opacity: .55; } }
.shade {
  z-index: 2;
  background: linear-gradient(90deg, #111819ed 0%, #151c1b80 39%, transparent 65%),
    linear-gradient(0deg, #101617e8 0%, transparent 30%, transparent 79%, #11171884 100%);
}
.figure {
  z-index: 1;
  top: 3svh;
  right: 0;
  width: 70vw;
  height: 94svh;
  opacity: var(--figure-opacity,1);
}
/* As the grove goes dark he drifts to the centre, between where the busts will arrive. */
@media (min-width: 741px) { .figure { translate: calc(var(--dark, 0) * -15vw - var(--edge-move, 0) * 15vw) 0; } }
.figure__still {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: contain;
  --still-scale: 1.05;
  transform-origin: 50% 26%;
  transform: translate(var(--still-x,0px), var(--still-y,0px)) scale(calc(var(--still-scale) * (1 + var(--still-zoom, 0) * 1.25)));
  filter: drop-shadow(0 15px 32px #161d22a6) grayscale(var(--ink, 0)) sepia(calc(var(--ink, 0) * .7)) hue-rotate(calc(var(--ink, 0) * 125deg)) saturate(calc(1 + var(--ink, 0) * 2.2)) brightness(calc(1 - var(--ink, 0) * .15));
  opacity: calc(1 - var(--ink, 0) * .35);
  animation: levitate 7.5s ease-in-out infinite alternate;
}
.figure__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.figure.has-model .figure__canvas { opacity: 1; }
.figure__still { transition: opacity 1.2s ease; }
.figure.has-model .figure__still { opacity: 0; }
/* Trigger hovers on a slow breath, with a soft glow behind him. */
@keyframes levitate {
  from { translate: 0 1.1%; }
  to { translate: 0 -1.6%; }
}
.figure__aura {
  position: absolute;
  inset: 4% 10% 0;
  background: radial-gradient(ellipse 42% 46% at 50% 46%, #f4e6d23a, #e9c9cf1c 48%, transparent 72%);
  animation: aura 9s ease-in-out infinite alternate;
}
@keyframes aura {
  from { opacity: .45; scale: .94; }
  to { opacity: 1; scale: 1.05; }
}
.coin-field { position: absolute; inset: 0; perspective: 720px; }
.coin {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--size);
  aspect-ratio: 1;
  transform-origin: center;
  transform: translate(-50%,-50%) translate(var(--px, 0px), var(--py, 0px)) rotate(var(--sway, 0deg));
  filter: drop-shadow(0 5px 11px #10151886);
}
.coin--btc { --rim: #b47d3f;
  --face: url("./assets/coin-btc.webp");
  --left: 85%; --top: 59%; --size: clamp(2.5rem, 4.25vw, 4.7rem);
  --duration: 11s; --delay: -5s;
}
.coin--eth { --rim: #8d9bab;
  --face: url("./assets/coin-eth.webp");
  --left: 76%; --top: 25%; --size: clamp(1.65rem, 2.85vw, 3.35rem);
  --duration: 12s; --delay: -2s;
  opacity: .84;
}
.coin--base { --rim: #7e86b4; --face: url("./assets/coin-base.webp");
  --left: 6%; --top: 36%; --size: clamp(1.65rem, 2.85vw, 3.35rem); --duration: 10.5s; --delay: -9s;
}
.coin--bnb { --rim: #a8946a; --face: url("./assets/coin-bnb.webp");
  --left: 63%; --top: 9%; --size: clamp(1.8rem, 3.1vw, 3.6rem); --duration: 12.5s; --delay: -3s;
}
.coin--hyperliquid { --rim: #7aa59c; --face: url("./assets/coin-hyperliquid.webp");
  --left: 69%; --top: 90%; --size: clamp(1.7rem, 2.9vw, 3.4rem); --duration: 11.5s; --delay: -7s;
}
.coin--robinhood { --rim: #9ca46c; --face: url("./assets/coin-robinhood.webp");
  --left: 40%; --top: 92%; --size: clamp(1.6rem, 2.75vw, 3.2rem); --duration: 10s; --delay: -1.5s;
}
button.coin { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; pointer-events: auto; }
.coin:focus-visible { outline: 1px solid var(--white); outline-offset: 3px; border-radius: 50%; }
/* Coins are built in CSS 3D: stacked ridged slices form the edge, with a face on each side. */
.coin3d {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  perspective: 600px;
  container-type: inline-size;
}
.coin3d__spin, .coin3d__body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.coin3d { animation: coin-bob calc(var(--duration, 10s) * .85) ease-in-out var(--delay, 0s) infinite alternate; }
.coin3d__body { animation: coin-drift calc(var(--duration, 10s) * 1.7) ease-in-out var(--delay, 0s) infinite alternate; }
.coin, .social-coin { animation: coin-roam-x calc(var(--duration, 10s) * 2.1) ease-in-out var(--delay, 0s) infinite alternate; }
.coin .coin3d, .social-coin .coin3d { animation: coin-roam-y calc(var(--duration, 10s) * 1.35) ease-in-out var(--delay, 0s) infinite alternate; }
.coin3d__slice, .coin3d__face {
  position: absolute;
  border-radius: 50%;
}
.coin3d__slice {
  inset: 1.4%;
  background:
    linear-gradient(180deg, #ffffff66, #ffffff00 40%, #0000004d),
    repeating-conic-gradient(color-mix(in srgb, var(--rim, #8b9196) 55%, transparent) 0 1.6deg, color-mix(in srgb, var(--rim, #8b9196) 22%, transparent) 1.6deg 3.2deg);
  transform: translateZ(calc(var(--z) * .95cqw));
}
.coin3d__face {
  inset: 0;
  background: var(--face) center / contain no-repeat;
  backface-visibility: hidden;
  opacity: .72;   /* glassy: the scene shows through */
}
.coin3d__face::before {   /* fixed glare, like light catching polished glass */
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, #ffffffb3 0 6%, #ffffff40 14%, transparent 34%),
    radial-gradient(circle at 72% 80%, #ffffff33 0 4%, transparent 22%),
    radial-gradient(circle, transparent 58%, #ffffff40 66%, transparent 72%);
  mix-blend-mode: screen;
}
.coin3d__face--front { transform: translateZ(7.4cqw); }
.coin3d__face--back { transform: rotateY(180deg) translateZ(7.4cqw); }
.coin3d__face::after {
  content: "";
  position: absolute;
  inset: 1.5%;
  border-radius: 50%;
  background: linear-gradient(112deg, #fff0 30%, #ffffff8c 46%, #ffffff26 52%, #fff0 66%) 0 0 / 300% 100%;
  mix-blend-mode: screen;
  animation: coin-sheen calc(var(--duration, 10s) * 1.7) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes coin-drift {
  0% { transform: rotateZ(-7deg) rotateY(-34deg) rotateX(12deg); }
  100% { transform: rotateZ(5deg) rotateY(30deg) rotateX(-8deg); }
}
@keyframes coin-bob {
  from { translate: 0 9%; }
  to { translate: 0 -11%; }
}
/* floating coins drift across the scene on slow, out-of-step x/y swings (a looping figure-of-eight) */
@keyframes coin-roam-x {
  from { translate: -4.5vw 0; }
  to { translate: 4.5vw 0; }
}
@keyframes coin-roam-y {
  from { translate: 0 4vh; }
  to { translate: 0 -4.5vh; }
}
@keyframes coin-sheen {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.social-coin:hover .coin3d__spin, .social-coin:focus-visible .coin3d__spin,
.stat-coin:hover .coin3d__spin, .stat-coin:focus-visible .coin3d__spin {
  animation: coin-spin 1.8s cubic-bezier(.25,.8,.25,1) 1 both;
}
.social-coin .coin3d, .trade-coin .coin3d, .stat-coin .coin3d { transition: scale .6s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.social-coin:hover .coin3d, .social-coin:focus-visible .coin3d,
.trade-coin:hover .coin3d, .trade-coin:focus-visible .coin3d,
.stat-coin:hover .coin3d, .stat-coin:focus-visible .coin3d { scale: 1.13; filter: brightness(1.12); }
.social-coins {
  position: fixed;
  z-index: 4;
  top: 3svh;
  right: 0;
  width: 70vw;
  height: 94svh;
  perspective: 720px;
  pointer-events: none;
}
.social-coin {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--size, clamp(2.9rem, 4.6vw, 4.9rem));
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%,-50%) translate(var(--px, 0px), var(--py, 0px)) rotate(var(--sway, 0deg));
  filter: drop-shadow(0 5px 11px #10151886);
  pointer-events: auto;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: left 1.4s cubic-bezier(.25,.8,.25,1), top 1.4s cubic-bezier(.25,.8,.25,1);
}
.social-coin:focus-visible { outline-offset: 3px; }
.social-coin__label {
  position: absolute;
  left: 50%;
  top: calc(100% + .35rem);
  padding: .15rem .45rem;
  border-radius: .25rem;
  background: #171d1dec;
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  translate: -50% -4px;
  transition: opacity .25s ease, translate .25s ease;
  pointer-events: none;
}
.social-coin:hover .social-coin__label, .social-coin:focus-visible .social-coin__label { opacity: 1; translate: -50% 0; }
.social-coin--x { --rim: #8a8e92; --face: url("./assets/coin-x.webp"); --left: 11%; --top: 60%; --duration: 10s; --delay: -3s; }
.social-coin--instagram { --rim: #a27f8d; --face: url("./assets/coin-instagram.webp"); --left: 35%; --top: 13%; --duration: 12s; --delay: -7s; }
.social-coin--tiktok { --rim: #828b8f; --face: url("./assets/coin-tiktok.webp"); --left: 94%; --top: 37%; --duration: 9.5s; --delay: -1s; }
.social-coin--youtube { --rim: #aa786f; --face: url("./assets/coin-youtube.webp"); --left: 17%; --top: 86%; --duration: 11.5s; --delay: -4s; }
.social-coin--discord { --rim: #888eb8; --face: url("./assets/coin-discord.webp"); --left: 89%; --top: 84%; --duration: 10.5s; --delay: -8s; }
.social-coin--sol { --rim: #8b9399; --face: url("./assets/coin-sol.webp"); --left: 22%; --top: 32%; --size: clamp(3.6rem, 6vw, 6.8rem); --duration: 11s; --delay: -6s; }
.social-coin--decor { pointer-events: none; }
#wallet-coin:not([hidden]) + .social-coin--decor { display: none; }
button.social-coin, button.stat-coin { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
@keyframes coin-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
/* HUD: terminal-style readouts that type in around Trigger at the reveal. */
/* The HUD around his face at the reveal: black glass panels with cut corners and corner
   brackets, white dot-matrix type, and acid-lime only for what's live. Panels type in, and
   glitch (jump, slice, scramble) when the cursor passes over them. */
.hud {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: var(--hud, 0);
  color: #fff;
  font: 400 .8rem/1.6 var(--mono-font);
  letter-spacing: .1em;
  --hud-line: #ffffff2e;
  --hud-dim: #ffffff8c;
  --hud-live: var(--fluo-b);
}
body.is-dark .hud { visibility: hidden; }
.hud--on .hud__panel { pointer-events: auto; }
.hud__panel { position: absolute; padding: .85rem 1rem .8rem; transition: translate .08s steps(1); }
.hud__panel::before {   /* the glass */
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--hud-line);
  background: linear-gradient(160deg, #000000c4, #0a0a0a8c);
  backdrop-filter: blur(3px);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transform-origin: left;
  scale: 0 1;
  transition: scale .8s cubic-bezier(.2,.7,.2,1);
}
.hud__panel::after {   /* corner brackets */
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;
  background:
    linear-gradient(#fff, #fff) left top / 12px 1px no-repeat, linear-gradient(#fff, #fff) left top / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 12px 1px no-repeat, linear-gradient(#fff, #fff) right bottom / 1px 12px no-repeat;
  opacity: 0;
  transition: opacity .4s .5s;
}
.hud--on .hud__panel::before { scale: 1 1; }
.hud--on .hud__panel::after { opacity: .9; }
.hud__panel > * {
  position: relative;
  margin: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .7s steps(18, end) calc(var(--i, 0) * 80ms + 250ms);
}
.hud--on .hud__panel > * { clip-path: inset(0 -2% 0 0); }
.hud__title { font-size: .78rem; color: #fff; border-bottom: 1px solid var(--hud-line); padding-bottom: .35rem; margin-bottom: .45rem !important; }
.hud__title span { color: var(--hud-live); margin-left: .6em; text-shadow: 0 0 8px #b6ff3c66; }
.hud__row { display: flex; justify-content: space-between; gap: 1.6rem; }
.hud__row span { color: var(--hud-dim); }
.hud__row b { font-weight: 400; color: #fff; }
.hud__big { font: 400 1.3rem/1.1 var(--display-font); letter-spacing: .12em; color: #fff; text-shadow: 1px 1px 0 #777, 2px 2px 0 #444, 0 0 14px #ffffff33; }
.hud__jp { color: #fff; letter-spacing: .32em; margin: .15rem 0 .5rem !important; opacity: .8; }
.hud__live { color: var(--hud-live) !important; text-shadow: 0 0 8px #b6ff3c88; animation: hud-blink 2.4s steps(2, end) infinite; }
@keyframes hud-blink { 50% { opacity: .4; } }
.hud__sub { margin: .6rem 0 .3rem !important; font-size: .62rem; letter-spacing: .3em; color: var(--hud-dim); border-top: 1px dashed var(--hud-line); padding-top: .45rem; }
.hud__tags { display: flex; flex-wrap: wrap; gap: .3rem; max-width: 17rem; }
.hud__tags b { font-weight: 400; font-size: .68rem; padding: .1rem .4rem; border: 1px solid #ffffff40; background: #ffffff0a; white-space: nowrap; }
.hud__tags b:nth-child(5), .hud__tags b:nth-child(6) { border-color: #b6ff3c80; color: var(--hud-live); }
.hud__focus-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; }
.hud__value { font: 400 2.8rem/1 var(--display-font); color: #fff; letter-spacing: .02em; text-shadow: 1px 1px 0 #888, 2px 2px 0 #555, 3px 3px 0 #333, 0 0 18px #ffffff33; }
.hud__mini { display: grid; gap: .1rem; text-align: right; font-size: .66rem; color: var(--hud-dim); }
.hud__mini b { font-weight: 400; color: #fff; }
.hud__scope { display: block; width: 17rem; height: 5.1rem; margin: .45rem 0 .35rem; }
.hud__signals { display: grid; gap: .3rem; margin: .1rem 0 .45rem; }
.hud__signal { display: grid; grid-template-columns: 5.6em 7rem auto; align-items: center; gap: .7rem; }
.hud__signal span:first-child { color: var(--hud-dim); }
.hud__bar { height: .5rem; background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 5px); width: calc(var(--fill) * 100%); transition: width .4s ease; box-shadow: 0 0 8px #ffffff33; }
.hud__signal b { font-weight: 400; text-align: right; }
.hud__wallet b { color: var(--hud-live); }
/* hover: the panel glitches */
.hud__panel.is-glitch { translate: calc(var(--gx, 0) * 1px) calc(var(--gy, 0) * 1px); }
.hud__panel.is-glitch::before { border-color: #fff; background: linear-gradient(160deg, #000000e0, #ffffff12); }
.hud__panel.is-glitch > * { clip-path: inset(var(--st, 0%) 0 var(--sb, 0%) 0); text-shadow: -2px 0 #ffffff90, 2px 0 #ffffff30; }
.hud__panel:hover::after { opacity: 1; inset: -7px; }
.hud__mark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 22px;
  height: 22px;
  translate: -50% -50%;
  background: linear-gradient(#fff, #fff) center / 1px 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 1px no-repeat;
  opacity: .4;
  scale: 0;
  transition: scale .6s cubic-bezier(.2,.7,.2,1) .2s;
}
.hud--on .hud__mark { scale: 1; }
.hud__panel--status { left: 31vw; top: 15vh; min-width: 16rem; }
.hud__panel--unit { right: 3.5vw; top: 13vh; min-width: 15rem; }
.hud__panel--focus { left: 33vw; bottom: 9vh; }
.hud__panel--signal { right: 3.5vw; bottom: 9vh; min-width: 18rem; }
/* The Grove terminal breaks into monochrome interference before it fades out. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: #000;
  color: #85ff8d;
  transition: opacity .55s ease .35s;
}
.is-loading .loader { display: block; }
.is-loading body { overflow: hidden; }
.loader-leaving .loader { opacity: 0; }
.loader__terminal {
  padding: max(1rem, env(safe-area-inset-top)) var(--side);
  max-width: 44rem;
  font: 500 clamp(.83rem, 1.7vw, 1.18rem)/1.4 var(--mono-font);
  overflow-wrap: anywhere;
}
.loader__terminal p { margin: 0; }
.loader__terminal .loader__state {
  margin-bottom: .6rem;
  font-size: clamp(1.1rem, 3vw, 1.85rem);
  letter-spacing: .1em;
  color: #b6ffb9;
  text-shadow: 0 0 .65em #85ff8d55;
}
.loader__platform { color: #b6ffb9; }
.loader__log {
  margin: .75rem 0 0;
  max-height: 58svh;
  overflow: hidden;
  font: inherit;
  white-space: pre-wrap;
  color: #64cc72;
}
.loader__log:empty, .loader__live:empty { display: none; }
.loader__terminal .loader__bar { margin-top: .5rem; color: #b6ffb9; white-space: pre; }
.loader__live { animation: loader-interference .9s steps(1) infinite; }
.loader__live::after { content: "_"; }
.loader-leaving .loader__live { animation: none; }
.loader-leaving .loader__live::after { content: none; }
@keyframes loader-interference {
  0%, 86%, 100% { translate: 0; text-shadow: none; }
  75% { translate: 2px 0; text-shadow: -2px 0 #13b96b; }
  81% { translate: -1px 0; text-shadow: 2px 0 #85ff8d80; }
}
@media (prefers-reduced-motion: no-preference) {
  .loader-leaving .loader { overflow: hidden; }
  .loader-leaving .loader__welcome {
    display: block;
    animation: loader-welcome .55s steps(1) both;
  }
  .loader-leaving .loader__terminal {
    filter: grayscale(1);
    animation: loader-terminal-tear .55s steps(1) both;
  }
  .loader-leaving .loader::before, .loader-leaving .loader::after {
    content: "";
    position: absolute;
    inset: -4% -6%;
    pointer-events: none;
  }
  .loader-leaving .loader::before {
    background:
      repeating-linear-gradient(0deg, #ffffff45 0 1px, transparent 1px 4px),
      repeating-linear-gradient(0deg, #000 0 2px, #fff 2px 4px, transparent 4px 12px);
    animation: loader-static .55s steps(1) both;
  }
  .loader-leaving .loader::after {
    background: linear-gradient(90deg, #000 0 8%, #fff 8% 15%, #262626 15% 38%, #eee 38% 72%, #000 72% 87%, #aaa 87%);
    clip-path: polygon(0 14%, 100% 14%, 100% 16%, 0 16%, 0 45%, 100% 45%, 100% 48%, 0 48%, 0 82%, 100% 82%, 100% 84%, 0 84%);
    animation: loader-bands .55s steps(1) both;
  }
}
@keyframes loader-terminal-tear {
  0%, 100% { translate: 0; }
  16% { translate: -1.8rem .25rem; clip-path: inset(0 0 46%); }
  32% { translate: 2.3rem -.3rem; clip-path: inset(20% 0 0); }
  57% { translate: -.85rem 0; clip-path: none; }
}
@keyframes loader-static {
  0% { opacity: .13; translate: 0; }
  18% { opacity: .48; translate: -2% 5%; }
  36% { opacity: .33; translate: 3% -6%; }
  62% { opacity: .17; translate: -2% 2%; }
  100% { opacity: 0; }
}
@keyframes loader-bands {
  0% { opacity: 0; translate: 0; }
  12% { opacity: .9; translate: -3% 5%; }
  34% { opacity: .75; translate: 5% -8%; }
  52% { opacity: .55; translate: -2% 11%; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loader__live { animation: none; }
  .loader { transition: none; }
}
.loader__welcome {
  position: absolute;
  z-index: 1;
  inset: 50% var(--side) auto;
  display: none;
  margin: 0;
  translate: 0 -50%;
  mix-blend-mode: difference;
  color: #aab2a1;
  font: 800 clamp(2.5rem, 9vw, 9rem)/.9 var(--display-font);
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  pointer-events: none;
}
@keyframes loader-welcome {
  0% { opacity: 0; }
  10% { opacity: .76; translate: -.5rem -50%; clip-path: inset(0 0 35%); }
  25% { opacity: .93; translate: 0 -50%; clip-path: none; }
  78% { opacity: .66; translate: .45rem -50%; clip-path: inset(38% 0 0); }
  93%, 100% { opacity: 0; }
}
/* ---- Phases: 01 grove (natural), 02 awakening (neon + halftone + iridescent), 03 void (hologram) ---- */
.petals { opacity: calc(1 - var(--edge, 0) * .92); }
/* phase 03: the profile busts, full screen behind the copy */
.void-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: var(--dark, 0);
  /* the busts dissolve into the black at the bottom edge, so where the model ends never shows */
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 min(16vh, 140px));
  mask-image: linear-gradient(to top, transparent 0, #000 min(16vh, 140px));
}
@media (max-width: 740px) { .void-stage { opacity: calc(var(--dark, 0) * .6); } }
/* the 3D sakura tree: far behind, softly out of focus, fades with the grove */
.backdrop-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(1.2px) opacity(calc(1 - var(--edge, 0)));
  transform: translate(var(--bg-x, 0px), var(--bg-y, 0px));
  opacity: 0;
  transition: opacity 1.6s ease;
}
.backdrop-canvas.is-ready { opacity: 1; }
/* scroll/phase flash: a dim pulse with a quick flicker */
.fx-flash {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 60% 40%, #fff, #c9d6d9 60%, #8a9799);
  mix-blend-mode: soft-light;
  opacity: var(--flash, 0);
}
.fx-flash.is-cut { animation: fx-cut .7s steps(1, end); }
@keyframes fx-cut {
  0% { background: #000; mix-blend-mode: normal; opacity: .55; }
  12% { background: #fff; mix-blend-mode: soft-light; opacity: .9; }
  22% { background: #000; mix-blend-mode: normal; opacity: .35; }
  34% { background: #fff; mix-blend-mode: soft-light; opacity: .5; }
  48% { opacity: 0; }
}
.petals.petals--front { opacity: calc((1 - var(--dark, 0)) * (1 - var(--edge, 0) * .92)); }
/* in the dark the petals keep falling as white wireframe outlines, over the busts and under the copy */
.petals--void { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: var(--dark, 0); }
.mist { filter: opacity(calc(1 - var(--edge, 0) * .92)); }
.fx-neon { position: absolute; inset: -10%; opacity: var(--edge, 0); filter: blur(60px) saturate(1.4); }
.fx-neon i {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: neon-drift 18s ease-in-out infinite alternate;
}
.fx-neon i:nth-child(1) { left: -10%; top: 0; background: radial-gradient(#6b2bff, transparent 65%); }
.fx-neon i:nth-child(2) { right: -12%; top: 10%; background: radial-gradient(#b6ff3c, transparent 62%); animation-duration: 23s; animation-direction: alternate-reverse; opacity: .7; }
.fx-neon i:nth-child(3) { left: 25%; bottom: -25%; background: radial-gradient(#ff3fd6, transparent 62%); animation-duration: 27s; opacity: .8; }
@keyframes neon-drift {
  from { translate: -6% 4%; scale: .9; }
  to { translate: 8% -6%; scale: 1.15; }
}
.fx-halftone {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle, #0b0a14 0 .9px, transparent 1.4px) 0 0 / 4px 4px;
  mix-blend-mode: multiply;
  opacity: calc(var(--edge, 0) * .6);
}
.phase-label {
  position: fixed;
  z-index: 5;
  left: var(--side);
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  color: var(--white);
  font: 500 .68rem/1 var(--mono-font);
  letter-spacing: .14em;
  pointer-events: none;
}
.phase-label i { width: .7rem; height: .7rem; border: 1px solid var(--gold); rotate: 45deg; }
.phase-label span { padding: .2rem .35rem; background: var(--gold); color: #111; }
.chapter--edge { align-items: center; }
.chapter__copy.edge-copy { max-width: none; width: 100%; text-align: center; }
.chapter p.phase-tag { max-width: none; }
.phase-tag { margin: 0 0 1rem; color: var(--gold); font: 600 .75rem/1 var(--mono-font); letter-spacing: .2em; }
.chapter .edge-title {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 0 2rem;
  font: 600 clamp(2.6rem, 7.4vw, 8rem)/.9 var(--display-font);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-style: normal;
  color: #f5f1e8;
  text-shadow: 0 0 30px #ff3fd655, 0 0 60px #b6ff3c33;
}
/* Interactive headings: real 3D letters. The heading inverts against whatever is behind it
   (difference blend on the outer element); inside, .fx-3d holds the front face plus stacked depth
   layers in perspective, so the letters have actual sides that turn as the heading tilts. */
@property --rx { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --ry { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.fx-text {
  color: #fff !important;
  mix-blend-mode: difference;
}
.chapter .edge-title.fx-text { text-shadow: none; }
.fx-3d {
  position: relative;
  display: inline-block;
  transform: perspective(700px) rotateX(7deg) rotateY(-14deg);
  transform-style: preserve-3d;
  transition: --rx .5s cubic-bezier(.2,.7,.2,1), --ry .5s cubic-bezier(.2,.7,.2,1);
}
.fx-face, .fx-layer { display: block; }
.fx-word { display: inline-block; white-space: nowrap; }
.fx-face { position: relative; transform: translateZ(0); }
.fx-layer {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--d) * -.022em));
  color: hsl(0 0% calc(80% - var(--d) * 6%));
  pointer-events: none;
}
.chapter .edge-title .fx-3d { display: flex; flex: 1; width: 100%; transform: perspective(1600px) rotateX(7deg) rotateY(-3deg); }   /* full-width title: a gentler angle so neither word stretches */
.chapter .edge-title .fx-face, .chapter .edge-title .fx-layer { display: flex; justify-content: space-between; gap: 2rem; width: 100%; }
.chapter .edge-title .fx-face { flex: 1; }
.fx-char { position: relative; display: inline-block; text-align: center; }
.figure__glint {
  position: fixed;
  padding: 4px 8px;
  border-top: 1px solid #ebd2aa88;
  color: #f5dfbe;
  font: .69rem var(--mono-font);
  letter-spacing: .09em;
  opacity: 0;
  transform: translate(9px,-18px);
  transition: opacity .4s ease;
  pointer-events: none;
}
.figure__glint.flash { opacity: .72; transition: none; }
.site-header {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.6rem;
  padding: max(1.1rem, env(safe-area-inset-top)) var(--side) .65rem;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  text-decoration: none;
}
.wordmark__name {
  font: 700 clamp(1.3rem, 1.9vw, 1.9rem)/1 var(--display-font);
  letter-spacing: .24em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px #1118199c;
}
.wordmark__handle {
  margin: .35rem 0 0 .05rem;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: .64rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .095em;
}
.site-header .nav-legacy { display: flex; align-items: center; gap: clamp(.9rem, 2.7vw, 2.7rem); font-family: var(--mono-font); text-transform: uppercase; letter-spacing: .08em; }
.site-header .nav-legacy a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: .875rem;
  text-decoration: none;
}
.site-header .nav-legacy a[aria-current] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}
.chapter-link {
  align-items: center;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}
.chapter-link:hover { background: #f6e8ce; color: #171e1e; }
/* main must not form its own layer, or the headings couldn't blend with the 3D scene behind them.
   Its children sit above the scene individually instead. */
main { position: relative; }
.chapter__copy > * { position: relative; z-index: 3; }
.site-header .nav-legacy a { white-space: nowrap; }
/* On the black sections the header gets its own backdrop so copy can scroll beneath it. */
.site-header { transition: background-color .6s ease; }
body.is-dark .site-header { background: linear-gradient(#000 70%, #0000); }
.has-reveals .chapter__copy > * {
  opacity: 0;
  translate: 0 2rem;
  filter: blur(6px);
  transition: opacity 1.4s cubic-bezier(.2,.7,.2,1), translate 1.6s cubic-bezier(.2,.7,.2,1), filter 1.4s ease;
}
.has-reveals .chapter__copy > :nth-child(2) { transition-delay: .08s; }
.has-reveals .chapter__copy > :nth-child(3) { transition-delay: .16s; }
.has-reveals .chapter__copy > :nth-child(n+4) { transition-delay: .24s; }
.has-reveals .chapter__copy.is-visible > * { opacity: 1; translate: none; filter: none; }
.chapter {
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding: 5.6rem var(--side) max(3.4rem, env(safe-area-inset-bottom));
}
.chapter__copy { max-width: 42rem; min-width: 0; }
.chapter h1, .chapter h2 {
  margin: 0 0 .9rem;
  font: 600 clamp(2.7rem, 6.4vw, 7.2rem)/.92 var(--display-font);
  text-transform: uppercase;
  letter-spacing: .01em;
  padding-block-end: .05em;
  text-wrap: balance;
}
.chapter--reveal h2 { font-weight: 800; }
.chapter p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 27ch;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}
.chapter-link {
  font-family: var(--mono-font);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  background: #e4d2af;
  color: #171e1e;
  border-radius: .25rem;
  padding: .7rem 1.03rem;
}
.trade-coins {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.3rem, 2vw, 1rem);
  width: min(100%, 27rem);
  margin: .3rem auto 0;
  padding: 0;
  list-style: none;
  perspective: 720px;
}
.trade-coin {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: .2rem;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.trade-coin .coin3d {
  width: clamp(3.4rem, 5vw, 4.6rem);
  margin-bottom: .45rem;
  filter: drop-shadow(0 5px 11px #10151886);
}
@media (prefers-reduced-motion: no-preference) {
  .trade-coin .coin3d__spin { animation: coin-spin calc(var(--duration, 10s) * 1.3) linear var(--delay, 0s) infinite; }
}
.trade-coin__name { font: 700 .82rem/1 var(--mono-font); text-transform: uppercase; letter-spacing: .18em; color: #fff; }
.trade-coin__note { color: var(--fluo-b); font: 600 .6rem/1.25 var(--mono-font); letter-spacing: .08em; text-transform: uppercase; margin-top: .15rem; overflow-wrap: anywhere; }
.trade-coin:hover .trade-coin__name { text-shadow: -2px 0 var(--fluo-a), 2px 0 var(--fluo-b); }
.trade-coin--pump { --rim: #76a286; --face: url("./assets/coin-pump.webp"); --duration: 10s; --delay: -2s; }
.trade-coin--axiom { --rim: #8c8c8a; --face: url("./assets/coin-axiom.webp"); --duration: 11.5s; --delay: -6s; }
.trade-coin--fomo { --rim: #8688b6; --face: url("./assets/coin-fomo.webp"); --duration: 9.5s; --delay: -4s; }
.trade-coin--proxima { --rim: #888ca2; --face: url("./assets/coin-proxima.webp"); --duration: 12s; --delay: -8s; }
.eyebrow {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.chapter p.eyebrow { margin: 0 0 .6rem; }
.chapter--about h2 { font-weight: 800; }
.stat-coin {
  display: grid;
  place-items: center;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.stat-coin .coin3d { width: 3rem; filter: drop-shadow(0 4px 10px #000a); }
.stat-coin--sol { --rim: #8b9399; --face: url("./assets/coin-sol.webp"); --duration: 12s; --delay: -4s; }
.wallet-dialog {
  width: min(26rem, calc(100vw - 2rem));
  padding: 2rem 1.6rem 1.6rem;
  border: 1px solid #dfd3b04d;
  border-radius: .75rem;
  background: #0b0d0d;
  color: var(--white);
  text-align: center;
}
.wallet-dialog::backdrop { background: #000c; backdrop-filter: blur(4px); }
.wallet-dialog__coin.stat-coin { display: block; width: 5rem; margin: 0 auto 1rem; }
.wallet-dialog__coin .coin3d { width: 100%; }
.wallet-dialog h2 { margin: 0 0 .3rem; font: 700 1.6rem/1 var(--display-font); text-transform: uppercase; letter-spacing: .08em; }
.wallet-dialog__hint { margin: 0 0 1.1rem; color: var(--muted); font-size: .88rem; }
.wallet-dialog__list { display: grid; gap: .8rem; }
.wallet-dialog__row { display: grid; gap: .45rem; justify-items: center; }
.wallet-dialog__label { font: 600 .7rem/1 var(--mono-font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wallet-dialog__row .chapter-link { border: 0; min-height: 40px; }
.wallet-dialog__address {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: .8rem;
  border-radius: .4rem;
  background: #ffffff0d;
  color: var(--gold);
  font: .85rem/1.5 var(--mono-font);
  word-break: break-all;
  user-select: all;
}
.wallet-dialog__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.2rem; margin-top: 1.2rem; }
.wallet-dialog__actions .chapter-link { border: 0; }
.wallet-dialog__open { color: var(--white); font-size: .88rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.wallet-dialog__status { min-height: 1.3em; margin: .7rem 0 0; color: var(--gold); font-size: .82rem; }
.wallet-dialog__close {
  position: absolute;
  top: .4rem;
  right: .5rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
}
.chapter p.trade-disclosure { font-size: .78rem; margin-bottom: 1.1rem; max-width: none; opacity: .8; }
@media (max-width: 740px) and (orientation: portrait) {
  .site-header { grid-template-columns: auto 1fr; gap: .4rem .9rem; }
  .site-header .nav-legacy { justify-self: end; }
  .wordmark__name { font-size: 1.3rem; }
  .wordmark__handle { font-size: .65rem; letter-spacing: .065em; }
  .site-header .nav-legacy { gap: .75rem; letter-spacing: .03em; }
  .site-header .nav-legacy a { font-size: .68rem; }
  .figure { inset: 9svh 0 auto; width: 100%; height: 62svh; }
  .figure { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .figure__still { --still-scale: 1.33; }
  .social-coin--sol { --left: 18%; --top: 34%; --size: clamp(2.65rem, 12vw, 3.65rem); }
  .coin--btc { --left: 83%; --top: 56%; --size: clamp(1.8rem, 8vw, 2.6rem); }
  .coin--eth { --left: 72%; --top: 6%; --size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .coin--base { --left: 6%; --top: 30%; --size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .coin--bnb { --left: 40%; --top: 5%; --size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .coin--hyperliquid { --left: 70%; --top: 94%; --size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .coin--robinhood { --left: 34%; --top: 96%; --size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .social-coins { inset: 9svh 0 auto; width: 100%; height: 62svh; }
  .social-coin { --size: clamp(2.3rem, 10vw, 2.9rem); }
  .social-coin--x { --left: 9%; --top: 50%; }
  .social-coin--instagram { --left: 12%; --top: 10%; }
  .social-coin--tiktok { --left: 90%; --top: 20%; }
  .social-coin--youtube { --left: 10%; --top: 88%; }
  .social-coin--discord { --left: 90%; --top: 84%; }
  .stat-coin .coin3d { width: 2.6rem; }
  .hud { font-size: .58rem; letter-spacing: .05em; }
  .hud__panel { padding: .45rem .55rem; }
  .hud__panel--status { left: 3vw; top: 11svh; min-width: 0; }
  .hud__panel--signal { right: 3vw; left: auto; top: 11svh; bottom: auto; min-width: 0; }
  .hud__panel--unit, .hud__panel--focus, .hud__mark { display: none; }
  .hud__signal { grid-template-columns: 4.6em 3.2rem auto; gap: .35rem; }
  .hud__row { gap: .7rem; }
  .chapter--edge { align-items: stretch; }
  .chapter__copy.edge-copy { display: flex; flex-direction: column; justify-content: space-between; min-height: 78svh; }
  .chapter .edge-title { flex-direction: column; align-items: center; justify-content: space-between; flex: 1; font-size: clamp(2.4rem, 12.5vw, 4rem); }
  .chapter .edge-title .fx-face, .chapter .edge-title .fx-layer { flex-direction: column; align-items: center; }
  .chapter .edge-title .fx-3d { flex-direction: column; }
  .phase-label { font-size: .6rem; }
  .grove-art { background-position: 51% center; }
  .shade { background: linear-gradient(0deg,#111818 0%,#111818e8 23%,#1118183b 51%,transparent 75%,#11181878 100%); }
  .chapter { align-items: end; padding-bottom: max(3.6rem, calc(env(safe-area-inset-bottom) + 1rem)); }
  .chapter h1, .chapter h2 { font-size: clamp(2.3rem, 11vw, 4.2rem); }
  .chapter__copy { max-width: 100%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .figure, .social-coins { top: 14svh; height: 78svh; }
  .site-header { padding-top: .5rem; }
  .wordmark__name { font-size: 1.3rem; }
  .chapter { padding-top: 4.5rem; padding-bottom: 1.65rem; }
  .chapter h1, .chapter h2 { font-size: clamp(2.4rem, 9vh, 4.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .social-coin { transition: none; }
  .mist, .coin3d, .coin, .social-coin, .coin3d__face::after, .coin3d__spin,
  .social-coin:hover .coin3d__spin { animation: none; }
  .coin3d__body { animation: none; transform: rotateZ(-6deg) rotateY(-28deg) rotateX(10deg); }
  .figure__glint { transition: none; }
  .figure__still, .figure__aura, .rays, .hud__live, .fx-neon i, .fx-flash.is-cut { animation: none; }
  .fx-flash { display: none; }
  .fx-3d { transition: none; }
  .hud__panel > *, .hud__panel::before, .hud__mark { transition: none; }
  .has-reveals .chapter__copy > * { transition: none; }
}

@media (max-width: 360px) {
  .site-header { gap: .35rem .55rem; }
  .site-header .nav-legacy { gap: .55rem; }
  .site-header .nav-legacy a { font-size: .6rem; }
  .site-header .nav-legacy { gap: .55rem; letter-spacing: 0; }
  .wordmark__name { font-size: 1.15rem; letter-spacing: .18em; }
}

/* ===== The void, restyled: glitch cyberpunk in black, white and phase-02 fluorescents =====
   The closing section sits centred between the busts. Small text decodes from
   scrambled glyphs and headings tear and split now and then. */
:root { --fluo-a: #ff3fd6; --fluo-b: #b6ff3c; --fluo-c: #6b2bff; }
.chapter--about .chapter__copy {
  text-align: center;
  margin-inline: auto;
  width: min(46rem, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chapter--about .chapter__copy > * { max-width: 100%; }
.chapter--about p { max-width: none; }
.chapter p.sys-tag {
  margin: 0 0 .9rem;
  font: 500 .74rem/1.2 var(--mono-font);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--fluo-b);
  text-shadow: 0 0 12px #b6ff3c66;
}
.chapter--about h2 { font-size: clamp(1.95rem, 7vw, 5.6rem); }
.about__motto {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  margin: 0 0 .7rem;
  padding: 0 .5rem;
  border: 0;
  background: transparent;
  color: var(--white);
  font: 500 clamp(1rem, 1.6vw, 1.3rem)/1.4 var(--mono-font);
  cursor: pointer;
}
.about__motto > span { grid-area: 1 / 1; }
.about__motto-jp { visibility: var(--motto-jp, visible); }
.about__motto-en {
  visibility: var(--motto-en, hidden);
  animation: var(--motto-tear, none);
}
.about__motto[aria-pressed="true"] {
  --motto-jp: hidden;
  --motto-en: visible;
  --motto-tear: tear .24s steps(1) both;
}
@media (hover: hover) {
  .about__motto:hover {
    --motto-jp: hidden;
    --motto-en: visible;
    --motto-tear: tear .24s steps(1) both;
  }
}
@media (prefers-reduced-motion: reduce) { .about__motto-en { animation: none; } }
.connect-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 4.5vw, 2.8rem);
  width: min(100%, 38rem);
  margin-top: clamp(.4rem, 1.5vw, 1rem);
  margin-inline: auto;
}
.connect-options__rule { width: 1px; height: 2rem; background: linear-gradient(#fff0, #ffffff59, #fff0); }
.connect-options button {
  position: relative;
  padding: .85rem .1rem .7rem;
  border: 0;
  background: none;
  color: #fff;
  text-shadow: 0 0 18px #ffffff40;
  font: 700 clamp(1rem, 3.6vw, 1.4rem)/1.15 var(--display-font);
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .25s ease, text-shadow .25s ease;
}
.connect-options button::after {   /* a hairline that draws itself out on hover */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #fff0, #fff, #fff0);
  scale: .35 1;
  opacity: .45;
  transition: scale .4s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.connect-options button small { font: 500 .55em/1 var(--mono-font); letter-spacing: .18em; color: #ffffff73; vertical-align: super; margin-left: .3em; }
.connect-options button:disabled { color: #ffffff59; cursor: default; }
.connect-options button:disabled::after { opacity: .15; }
.trench-tech {
  width: 100%;
  margin-top: clamp(1.25rem, 4vw, 2rem);
  padding-top: clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid #fff2;
  scroll-margin-top: max(4.5rem, calc(env(safe-area-inset-top) + 3.5rem));
}
.trench-tech__title {
  margin: 0 0 .85rem;
  font: 700 clamp(1.45rem, 4.5vw, 2.85rem)/1.02 var(--display-font);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-wrap: balance;
}
[data-decode] { white-space: pre-wrap; }
.is-decoding { color: #fff !important; text-shadow: -1px 0 var(--fluo-a), 1px 0 var(--fluo-b); }

/* heading tears: a short burst of sliced, shifted, colour-split frames */
.fx-text.is-tear .fx-3d { animation: tear .32s steps(2, jump-none) 1; }
.fx-text.is-tear .fx-face { text-shadow: -3px 0 var(--fluo-a), 3px 0 var(--fluo-b); }
@keyframes tear {
  0%   { clip-path: inset(0 0 0 0); translate: 0 0; }
  20%  { clip-path: inset(12% 0 58% 0); translate: -9px 0; }
  40%  { clip-path: inset(48% 0 18% 0); translate: 7px 0; }
  60%  { clip-path: inset(0 0 72% 0); translate: -4px 0; filter: invert(1); }
  80%  { clip-path: inset(70% 0 0 0); translate: 5px 0; }
  100% { clip-path: inset(0 0 0 0); translate: 0 0; }
}

/* STIMMING: the header's scroll meter. Charges as you scroll down, drains as you scroll up,
   fluctuates while you hold still. Black-and-white glitch in the grove and the void; it only
   takes the fluorescent colours during the phase-02 awakening (body.is-neon). The chapter
   links are bare tick marks under the bar. */
.site-header { grid-template-columns: auto minmax(0, 1fr) auto; }
.stim { display: block; grid-column: 2 / 4; justify-self: end; width: min(32rem, 46vw); font-family: var(--mono-font); --hot-a: #ffffffb0; --hot-b: #ffffff55; --live: #fff; }
body.is-neon .stim { --hot-a: var(--fluo-a); --hot-b: var(--fluo-b); --live: var(--fluo-b); }
.stim__head { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .35rem; }
.stim__name {
  position: relative;
  font: 700 clamp(.85rem, 1.15vw, 1.05rem)/1 var(--display-font);
  letter-spacing: .3em;
  color: #fff;
}
.stim__name::before, .stim__name::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.stim__name::before { color: var(--hot-a); animation: split-a 7s infinite steps(1); }
.stim__name::after { color: var(--hot-b); animation: split-b 9.5s infinite steps(1); }
@keyframes split-a { 0%, 94%, 100% { clip-path: inset(100% 0 0 0); translate: 0; } 95% { clip-path: inset(10% 0 55% 0); translate: -2px 0; } 97% { clip-path: inset(60% 0 8% 0); translate: 2px 0; } }
@keyframes split-b { 0%, 90%, 100% { clip-path: inset(100% 0 0 0); translate: 0; } 91% { clip-path: inset(40% 0 30% 0); translate: 2px 0; } 93% { clip-path: inset(0 0 75% 0); translate: -2px 0; } }
.stim__state { font-size: .56rem; letter-spacing: .24em; color: #fff9; display: inline-flex; align-items: center; gap: .4rem; transition: color .6s; }
body.is-neon .stim__state { color: var(--live); }
.stim__state i { width: .35rem; height: .35rem; background: var(--live); animation: blink 2.6s infinite steps(2); transition: background .6s; }
.stim__pct { margin-left: auto; font: 600 .85rem/1 var(--display-font); color: #fffd; font-variant-numeric: tabular-nums; }
.stim__bar {
  --charge: 0;
  position: relative;
  height: .7rem;
  border: 1px solid #ffffff30;
  background: #0006;
  overflow: hidden;
}
.stim__fill {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: calc((100% - 4px) * var(--charge));
  background: linear-gradient(90deg, #ffffff40, #ffffffd0);   /* black-and-white by default */
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);
  mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);
}
.stim__fill::before {   /* the fluorescent layer, faded in only for the awakening */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--fluo-c), var(--fluo-a) 45%, var(--fluo-b));
  background-size: calc(100% / max(var(--charge), .02)) 100%;
  opacity: var(--edge, 0);
}
.stim__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 42%, #fff 50%, transparent 58%);
  background-size: 260% 100%;
  mix-blend-mode: overlay;
  opacity: .5;
  animation: charge 4s linear infinite;
}
.stim__spark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(2px + (100% - 4px) * var(--charge));
  width: 2px;
  background: #fff;
  box-shadow: 0 0 6px #fff8;
}
.stim.is-glitch .stim__bar { translate: 2px 0; }
.stim.is-glitch .stim__fill { filter: invert(1); }
.stim__ticks { position: relative; height: .7rem; margin-top: .15rem; }
.stim__ticks a {   /* a bare tick mark, with a bigger invisible hit area */
  position: absolute;
  left: calc(var(--at, 0) * 100%);
  top: -.2rem;
  width: 1.2rem;
  height: 1.1rem;
  translate: calc(var(--at, 0) * -100%) 0;
  color: #fff6;
}
.stim__ticks a::before {
  content: "";
  position: absolute;
  top: .2rem;
  left: calc(var(--at, 0) * 100%);
  width: 1px;
  height: .3rem;
  background: currentColor;
}
.stim__ticks a:hover, .stim__ticks a[aria-current] { color: #fff; }
body.is-neon .stim__ticks a[aria-current] { color: var(--fluo-b); }
@keyframes charge { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 740px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr); }
  .stim { grid-column: 2; width: 100%; max-width: 15rem; }
  .stim__head { gap: .45rem; }
  .stim__name { font-size: .74rem; letter-spacing: .18em; }
  .stim__state { display: none; }
}

/* follower total, compact */
.chapter--about p.reach__total { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 1.1rem; font: 500 .74rem/1 var(--mono-font); letter-spacing: .18em; text-transform: uppercase; color: #fffb; }
.reach__value { font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1 var(--display-font); color: #fff; letter-spacing: .06em; font-variant-numeric: lining-nums; text-shadow: -2px 0 #ff3fd666, 2px 0 #b6ff3c55; }

/* the spin stretch: long, nearly empty, so the turn and the neon cut have room */
.chapter--reveal { min-height: 150svh; }
.chapter--spin { min-height: 230svh; align-items: end; }
.chapter--dissolve { min-height: 240svh; align-items: end; }
.chapter--edge { min-height: 120svh; }
.spin-copy { width: 100%; text-align: center; padding-bottom: 18svh; }
.chapter p.spin-copy__line { max-width: none; font: 600 clamp(.8rem, 1.2vw, 1rem)/1.4 var(--mono-font); letter-spacing: .3em; text-transform: uppercase; color: #fff; }
.chapter--dissolve .spin-copy { margin-inline: auto; }
.chapter--idea { display: block; min-height: 215svh; padding: 0; }
.idea-stage {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 4.75rem var(--side) max(4.75rem, env(safe-area-inset-bottom));
  text-align: center;
}
.dissolve-quote { position: relative; z-index: 3; width: min(100%, 54rem); margin: 0; }
.dissolve-quote__text {
  display: grid;
  align-items: center;
  margin: 0;
  font: 600 clamp(1.6rem, 5.2vw, 4rem)/1.16 var(--display-font);
  color: var(--white);
  text-wrap: balance;
}
.dissolve-quote__line {
  grid-area: 1 / 1;
  text-shadow: 1px 1px #777, 2px 2px #444, 0 0 12px #fff3;
  mask: repeating-linear-gradient(0deg, #000 0 3px, #000b 3px 4px);
}
.dissolve-quote__line:lang(ja) { font-weight: 400; visibility: hidden; }
.dissolve-quote__text[data-language="pending"] .dissolve-quote__line,
.dissolve-quote__text[data-language="ja"] .dissolve-quote__line:lang(en) { visibility: hidden; }
.dissolve-quote__text[data-language="ja"] .dissolve-quote__line:lang(ja) { visibility: visible; }
.dissolve-quote figcaption {
  margin-top: .8rem;
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--muted);
}
@media (max-width: 740px) { .idea-stage { padding-bottom: max(6rem, 14svh); } }
.dissolve-quote:has([data-language="pending"]) figcaption { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .dissolve-quote__text[data-typing="en"] .dissolve-quote__line:lang(en) > span,
  .dissolve-quote__text[data-typing="ja"] .dissolve-quote__line:lang(ja) > span {
    position: relative;
    animation: quote-type 1ms step-end var(--type-delay) both;
  }
  .dissolve-quote__text[data-typing="en"] .dissolve-quote__line:lang(en) > span::after,
  .dissolve-quote__text[data-typing="ja"] .dissolve-quote__line:lang(ja) > span::after {
    content: "";
    position: absolute;
    inset: .12em auto .12em 100%;
    width: .08em;
    background: currentColor;
    opacity: 0;
    animation: quote-caret var(--type-step) step-end var(--type-delay);
  }
  .dissolve-quote__text[data-language="en"]:not([data-typing]) .dissolve-quote__line:lang(en),
  .dissolve-quote__text[data-language="ja"]:not([data-typing]) .dissolve-quote__line:lang(ja) {
    animation: tear .24s steps(1) both;
  }
}
@media (prefers-reduced-motion: reduce) { .chapter--idea { min-height: 100svh; } }
@keyframes quote-type { from { opacity: 0; } to { opacity: 1; } }
@keyframes quote-caret { from { opacity: 1; } to { opacity: 0; } }

/* SOL support beneath the referral links. */

@media (max-width: 740px) {
  .chapter--about {
    align-items: start;
    padding-top: max(4.75rem, calc(env(safe-area-inset-top) + 3.5rem));
  }
  .trade-coins { width: min(100%, 23rem); }
  .trade-coin .coin3d { width: clamp(2.25rem, 10vw, 3.5rem); }
  .trade-coin__name { font-size: clamp(.62rem, 2.3vw, .82rem); letter-spacing: .06em; }
  .trade-coin__note { font-size: clamp(.5rem, 1.8vw, .6rem); letter-spacing: 0; }
}
@media (max-width: 360px) {
  .chapter--about p.reach__total { gap: .35rem; font-size: .66rem; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  .stim__name::before, .stim__name::after, .stim__fill::after, .stim__state i { animation: none; }
  .fx-text.is-tear .fx-3d { animation: none; }
}

/* The reveal title: Trigger's motto in Japanese, in a dot-matrix face like a terminal readout.
   Characters glitch one at a time; hover/focus/tap dissolves them one by one while the
   translation types in letter by letter in mono. Black and white only. */
.chapter h2.jp-title { position: relative; margin: 0 0 1.2rem; color: #fff; mix-blend-mode: difference; cursor: default; outline-offset: 10px; font: inherit; text-transform: none; }
.jp-title__face { display: inline-grid; align-items: center; }
.jp-title__jp, .jp-title__en { grid-area: 1 / 1; white-space: nowrap; }
.jp-title__jp {
  /* a dot-matrix Japanese face, like characters on an old terminal */
  font: 400 clamp(2.8rem, 7vw, 7.6rem)/1.1 var(--japanese-font);
  letter-spacing: .1em;
  text-shadow: 0 0 18px #ffffff40;
  /* faint scanlines over the dots */
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 3px, #000b 3px 4px);
  mask: repeating-linear-gradient(0deg, #000 0 3px, #000b 3px 4px);
}
.jp-title__en {
  font: 500 clamp(1rem, 2.3vw, 2.3rem)/1 var(--mono-font);
  letter-spacing: .32em;
  text-transform: uppercase;
}
.jp-char, .en-char { display: inline-block; position: relative; }
.jp-char.is-gone, .en-char.is-hidden { visibility: hidden; }
.jp-char.is-glitch { translate: calc(var(--gx, 3) * 1px) 0; text-shadow: -4px 0 #ffffff80, 4px 0 #ffffff33; clip-path: inset(var(--gt, 20%) 0 var(--gb, 30%) 0); }
.en-char.is-typing { background: #fff; color: #000; }
.jp-title__hint {
  display: block;
  margin-top: .6rem;
  font: 500 .6rem/1 var(--mono-font);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff6;
  transition: opacity .3s;
}
.jp-title.is-translated .jp-title__hint { opacity: 0; }
@media (hover: none) { .jp-title__hint { display: none; } }

/* the wallet dialog's copy button: outlined, no beige */
.wallet-dialog .chapter-link {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.wallet-dialog .chapter-link:hover { background: #fff; color: #000; }

/* The wordmark glitches as ominous phrases break through. */
.site-header .wordmark__name {
  position: relative;
  font: 400 clamp(1.15rem, 1.8vw, 1.7rem)/1 var(--display-font);
  letter-spacing: .1em;
  text-transform: none;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 0 14px #ffffff26;
}
.wordmark__name.is-glitch { translate: calc(var(--wx, 2) * 1px) 0; text-shadow: -3px 0 #ffffff99, 3px 0 #ffffff40; }
.wordmark__name.is-omen { letter-spacing: .16em; text-shadow: 0 0 16px #ffffff55; animation: omen .12s steps(2) infinite; }
@keyframes omen { 50% { opacity: .82; translate: 1px 0; } }
@media (prefers-reduced-motion: reduce) { .wordmark__name.is-omen { animation: none; } }

/* ===== Flat titles: straight-on, like the Japanese title =====
   No tilt or turn. A shallow extrusion straight down-right gives them a little depth, scanlines
   run through the letters, and the glitches move position (jumps, slices) instead of rotating. */
.fx-3d, .chapter .edge-title .fx-3d { transform: none; transform-style: flat; }
.fx-layer {
  transform: translate(calc(var(--d) * .009em), calc(var(--d) * .009em));
  color: hsl(0 0% calc(58% - var(--d) * 5%));
}
.fx-face {
  text-shadow: 0 0 18px #ffffff40;
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 3px, #000b 3px 4px);
  mask: repeating-linear-gradient(0deg, #000 0 3px, #000b 3px 4px);
}
.fx-char.is-glitch {
  translate: calc(var(--jx, 1) * .065em) calc(var(--jy, 0) * .035em);
  text-shadow: -.045em 0 #000, .045em 0 #fff;
}
.fx-face .fx-char::before, .fx-face .fx-char::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fx-face .fx-char::before {
  clip-path: inset(20% -.2em 59%);
  translate: -.14em 0;
}
.fx-face .fx-char::after {
  clip-path: inset(55% -.2em 25%);
  translate: .14em 0;
}
.fx-face .fx-char.is-glitch::before, .fx-face .fx-char.is-glitch::after { content: attr(data-char); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .fx-face .fx-char:hover::before, .fx-face .fx-char:hover::after { content: attr(data-char); }
}
.fx-text.is-tear .fx-face { text-shadow: -3px 0 #ffffffa0, 3px 0 #ffffff40; }
body.is-neon .fx-text.is-tear .fx-face { text-shadow: -3px 0 var(--fluo-a), 3px 0 var(--fluo-b); }
.chapter h1, .chapter h2 { letter-spacing: .06em; }
/* the Japanese title and the wordmark get the same shallow extrusion */
.jp-title__jp { text-shadow: 1px 1px 0 #9a9a9a, 2px 2px 0 #7a7a7a, 3px 3px 0 #5c5c5c, 4px 4px 0 #444, 0 0 18px #ffffff40; }
.site-header .wordmark__name {
  text-shadow: 1px 1px 0 #8a8a8a, 2px 2px 0 #5c5c5c, 0 0 14px #ffffff30;
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 2px, #000c 2px 3px);
  mask: repeating-linear-gradient(0deg, #000 0 2px, #000c 2px 3px);
}
.wordmark__name.is-glitch { text-shadow: -3px 0 #ffffff99, 3px 0 #ffffff40, 1px 1px 0 #8a8a8a; }

/* LIVE HEARTBEAT: the big number is the pulse; the lime ">> CALM" beats with it */
.hud__value small { font-size: .32em; letter-spacing: .14em; margin-left: .35em; color: var(--hud-dim); text-shadow: none; }
.hud__panel--focus .hud__focus-top { margin-top: .2rem; }
.hud__pulse { display: inline-block; }
.hud__pulse.is-beat { animation: beat .42s ease-out 1; }
@keyframes beat { 0% { text-shadow: 0 0 14px var(--fluo-b); scale: 1.12; } 100% { scale: 1; } }
.hud__redact { background: #fff; color: #000 !important; padding: 0 .3em; letter-spacing: .06em; }

/* coin detail box: a small glitched card */
.coin-tip {
  display: grid;
  gap: .18rem;
  min-width: 11rem;
  padding: .5rem .65rem .45rem;
  border: 1px solid #ffffff55;
  border-radius: 0;
  background: #000000e0;
  font: 400 .66rem/1.25 var(--mono-font);
  letter-spacing: .12em;
  text-transform: none;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  box-shadow: 0 0 0 1px #0008;
  animation: tip-jitter 2.6s steps(1) infinite;
}
.coin-tip::before {   /* scanlines */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, #ffffff0a 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.coin-tip__line { position: relative; white-space: nowrap; }
.coin-tip__line--0 { color: #ffffff99; font-size: .58rem; letter-spacing: .22em; border-bottom: 1px solid #ffffff2e; padding-bottom: .2rem; margin-bottom: .1rem; }
.coin-tip__line--1 { color: #fff; font-size: .82rem; letter-spacing: .06em; text-shadow: -1px 0 #ffffff70, 1px 0 #ffffff30; }
.coin-tip__line--2 { color: #ffffffc0; }
.coin-tip__line--3 { color: var(--fluo-b); text-shadow: 0 0 8px #b6ff3c66; }
@keyframes tip-jitter { 0%, 92%, 100% { transform: none; } 94% { transform: translateX(3px); clip-path: inset(30% 0 40% 0); } 96% { transform: translateX(-2px); } }
body.coin-dragging, body.coin-dragging * { cursor: grabbing !important; user-select: none; }
@media (prefers-reduced-motion: reduce) { .coin-tip { animation: none; } }

/* "CONSCIOUSNESS" is long: a touch smaller on phones so it fits */
@media (max-width: 740px) { .chapter h2.edge-title { font-size: clamp(1.9rem, 9.4vw, 3.4rem); } }

.connect-options button:enabled { cursor: pointer; }
.connect-options button > span { display: inline-block; pointer-events: none; }   /* the text glitches; the button itself never moves */
.connect-options button:enabled:hover, .connect-options button:enabled:focus-visible { color: #fff; text-shadow: 0 0 22px #ffffff70; }
.connect-options button:enabled:hover::after, .connect-options button:enabled:focus-visible::after { scale: 1 1; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .connect-options button:enabled:hover > span { animation: option-glitch .5s steps(1) 1; }
}
@keyframes option-glitch {
  0% { translate: 2px 0; text-shadow: -2px 0 #ffffffa0, 2px 0 #ffffff40; clip-path: inset(0 0 45% 0); }
  20% { translate: -2px 0; clip-path: inset(50% 0 0 0); }
  40% { translate: 1px 0; text-shadow: 1px 0 #ffffff80; clip-path: none; }
  60%, 100% { translate: 0 0; text-shadow: none; clip-path: none; }
}

/* ---- Business: a rift tears across the screen and opens onto the other side ----
   The tear spreads until it swallows the page. Over there the world is grainy, monochrome and
   scan-torn, the page is gone, and the white bust is lifted above it all, centre stage, still
   watching the cursor. The form floats beside him with no frame. */
body:has(.business-dialog[open]) { overflow: hidden; }
.other-world {
  position: fixed;
  inset: 0;
  z-index: 29;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  background:
    radial-gradient(ellipse 34% 62% at 30% 64%, #ffffff26 0, #ffffff08 50%, transparent 72%),
    radial-gradient(ellipse at 50% 50%, #0d0716 0, #05030a 65%, #000 100%);
  clip-path: inset(50% 50% 50% 50%);
}
.other-world::before {   /* slow aurora: magenta, violet and acid lime clouds drifting and shifting hue */
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 22% 30%, #ff3fd6aa 0, transparent 30%),
    radial-gradient(circle at 78% 24%, #6b2bffcc 0, transparent 34%),
    radial-gradient(circle at 70% 78%, #b6ff3c70 0, transparent 30%),
    radial-gradient(circle at 18% 82%, #2bd9ff80 0, transparent 32%),
    radial-gradient(circle at 50% 50%, #ff7a3d40 0, transparent 40%);
  filter: blur(60px) saturate(1.3);
  opacity: .75;
  animation: other-aurora 18s ease-in-out infinite alternate, other-hue 24s linear infinite;
}
.other-world::after {   /* fine grain only, no lines */
  content: "";
  position: absolute;
  inset: -50%;
  background:
    repeating-radial-gradient(circle at 17% 32%, #ffffff0d 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 71% 64%, #ffffff09 0 1px, transparent 1px 4px);
  animation: other-grain .5s steps(3) infinite;
}
body.other-side .other-world { visibility: visible; clip-path: inset(0); --unused: polygon(-4% -6%, 6% -4.8%, 14% -3.6%, 22% -2.4%, 31% -1.2%, 38% -6%, 46% -4.8%, 54% -3.6%, 61% -2.4%, 69% -1.2%, 77% -6%, 84% -4.8%, 93% -3.6%, 104% -2.4%, 104% 104.8%, 93% 101.2%, 84% 103.6%, 77% 106%, 69% 102.4%, 61% 104.8%, 54% 101.2%, 46% 103.6%, 38% 106%, 31% 102.4%, 22% 104.8%, 14% 101.2%, 6% 103.6%, -4% 106%); }
body.other-side .void-stage {
  z-index: 30;
  opacity: 1;
  filter: contrast(1.12) brightness(1.06) drop-shadow(0 0 28px #ffffff38);
}
.void-stage { transition: filter .6s ease; }
.business-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font: 500 .85rem/1.5 var(--mono-font);
  overflow: hidden;
}
.business-dialog[open] { display: block; }
.business-dialog::backdrop { background: none; }
.rift { position: absolute; inset: 0; }
.rift::before, .rift::after {   /* a clean line of light that splits into the two edges of the opening */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  z-index: 2;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, #fff0, #fff 15%, #fff 85%, #fff0);
  box-shadow: 0 0 10px #fff, 0 0 26px #ff3fd6, 0 0 60px #6b2bff;
  opacity: 0;
  pointer-events: none;
}
.business-screen {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: min(46%, 34rem);
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: center;
  gap: 1.6rem;
  padding: 5rem clamp(1.4rem, 5vw, 4.5rem) 3rem clamp(1rem, 2vw, 2rem);
  scrollbar-width: thin;
}
.business-close-form { position: absolute; top: max(1rem, env(safe-area-inset-top)); right: var(--side); z-index: 3; margin: 0; }
.business-close {
  min-height: 44px;
  padding: .4rem .2rem;
  border: 0;
  background: none;
  color: #ffffffa6;
  font: 500 .72rem/1 var(--mono-font);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}
.business-close:hover, .business-close:focus-visible { color: #fff; }
.business-close span { margin-inline-start: .4rem; font-size: 1.1rem; vertical-align: middle; }
.business-dialog p { margin: .5rem 0; color: var(--muted); }
.business-kicker { margin: 0 0 .5rem !important; font: 500 .68rem/1 var(--mono-font); letter-spacing: .26em; text-transform: uppercase; color: #ffffff80 !important; }
.business-heading h2 {
  margin: 0;
  font: 800 clamp(2.3rem, 4.4vw, 4rem)/.95 var(--display-font);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-shadow: 2px 2px #ffffff30, -1px 0 #ffffff50;
  mask-image: repeating-linear-gradient(#000 0 2px, #000b 2px 3px);
}
.business-heading p:last-child { letter-spacing: .12em; }
.business-heading strong { color: #fff; }
.business-form { display: grid; gap: 1rem; }
.business-field { display: grid; gap: .3rem; }
.business-field label { color: #ffffffd0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.business-field input, .business-field textarea {
  width: 100%;
  min-height: 44px;
  padding: .5rem .1rem;
  border: 0;
  border-bottom: 1px solid #ffffff40;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: 1rem/1.35 var(--mono-font);
  transition: border-color .25s ease;
}
.business-field input:focus, .business-field textarea:focus { outline: none; border-color: #fff; }
.business-field textarea { resize: vertical; }
.business-field .is-invalid, .business-field .is-invalid:focus { border-color: #ffffffcc; border-bottom-style: dashed; }
.business-dialog p.business-hint { margin: -.4rem 0 0; font-size: .72rem; color: #ffffff70; }
.business-form button, .business-payment button, .business-payment a {
  position: relative;
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid #ffffff59;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font: 600 .82rem/1.3 var(--display-font);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
.business-form button, .business-payment a { width: fit-content; margin-top: .3rem; border-color: #fff; }
.business-form button:hover, .business-payment a:hover, .business-payment button:hover { background: #fff; color: #000; }
.business-form button:disabled { opacity: .4; cursor: default; }
.business-form button { display: inline-flex; align-items: center; gap: .6rem; padding-inline: 1.1rem 1.2rem; }
.business-form button svg { width: 1.15rem; height: auto; flex: none; }
.business-payment a { display: inline-flex; align-items: center; }
.business-payment .business-amount { color: var(--white); }
.business-amount strong { font: 800 2.6rem/1 var(--display-font); overflow-wrap: anywhere; text-shadow: -1px 0 #ffffff70, 1px 0 #ffffff30; }
.business-amount span { color: var(--muted); }
.business-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.business-dialog #business-status { margin-top: .6rem; color: #ffffffb0; }
.business-dialog #business-status:empty { display: none; }
@media (max-width: 780px) {
  /* phones: he rises in the lower half, the form sits above him */
  .other-world { background:
    radial-gradient(ellipse 70% 40% at 50% 85%, #ffffff22 0, transparent 70%),
    radial-gradient(ellipse at 50% 40%, #0d0716 0, #05030a 65%, #000 100%); }
  .business-screen {
    left: 0; width: 100%; bottom: auto; max-height: 100%;
    align-content: start;
    gap: 1.1rem;
    padding: max(4.2rem, calc(env(safe-area-inset-top) + 3.2rem)) var(--side) 42svh;
    background: linear-gradient(#000000d9 0 55%, transparent);
  }
  .business-heading h2 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
}

@media (prefers-reduced-motion: no-preference) {
  body.other-side .other-world { animation: other-open .9s cubic-bezier(.7,0,.2,1) both; }
  body.other-side .void-stage { animation: other-flicker 6s steps(1) 1.2s infinite; }
  .business-dialog[open] .rift::before { animation: edge-top .9s cubic-bezier(.7,0,.2,1) both; }
  .business-dialog[open] .rift::after { animation: edge-bottom .9s cubic-bezier(.7,0,.2,1) both; }
  .business-dialog[open] .business-screen > *, .business-dialog[open] .business-close-form { animation: rift-arrive .55s ease .75s both; }
  .business-dialog[open] .business-content { animation-delay: .85s; }
  body.other-side.is-sealing .other-world { animation: other-close .5s cubic-bezier(.7,0,.3,1) both; }
  .business-dialog.is-closing .rift::before { animation: edge-top .5s cubic-bezier(.7,0,.3,1) reverse both; }
  .business-dialog.is-closing .rift::after { animation: edge-bottom .5s cubic-bezier(.7,0,.3,1) reverse both; }
  .business-dialog.is-closing .business-screen, .business-dialog.is-closing .business-close-form { opacity: 0; transition: opacity .12s; }
}
@keyframes other-open {
  0% { clip-path: inset(50% 50% 50% 50%); }
  38% { clip-path: inset(50% 0 50% 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes other-close {
  0% { clip-path: inset(0 0 0 0); }
  62% { clip-path: inset(50% 0 50% 0); }
  100% { clip-path: inset(50% 50% 50% 50%); }
}
@keyframes edge-top {
  0% { opacity: 1; scale: 0 1; translate: 0 0; }
  38% { opacity: 1; scale: 1 1; translate: 0 0; }
  100% { opacity: 0; scale: 1 1; translate: 0 -50vh; }
}
@keyframes edge-bottom {
  0% { opacity: 1; scale: 0 1; translate: 0 0; }
  38% { opacity: 1; scale: 1 1; translate: 0 0; }
  100% { opacity: 0; scale: 1 1; translate: 0 50vh; }
}
@keyframes other-aurora {
  0% { translate: 0 0; scale: 1; }
  50% { translate: 6% -4%; scale: 1.08; }
  100% { translate: -5% 5%; scale: 1.02; }
}
@keyframes other-hue { to { filter: blur(60px) saturate(1.3) hue-rotate(360deg); } }
@keyframes rift-arrive {
  from { opacity: 0; translate: 0 10px; filter: blur(6px); }
  to { opacity: 1; translate: 0 0; filter: none; }
}
@keyframes other-grain { 0% { translate: 0 0; } 33% { translate: -2% 1%; } 66% { translate: 1% -2%; } 100% { translate: 2% 2%; } }

/* the small hint under TRIGGER */
.chapter p.grove-hint {
  margin: .7rem 0 0;
  font: 500 clamp(.74rem, 1.2vw, .94rem)/1.2 var(--mono-font);
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffffa6;
}
.chapter p.grove-hint::before { content: ">> "; color: #ffffff59; }
.chapter p.grove-hint::after { content: "_"; margin-left: .15em; animation: grove-hint-blink 1s steps(1) infinite; }
@keyframes grove-hint-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chapter p.grove-hint::after { animation: none; } }

/* quick scroll rail: stacked lines on the right edge, one per section */
.section-rail {
  position: fixed;
  right: clamp(.4rem, 1.4vw, 1.2rem);
  top: 50%;
  z-index: 6;
  display: grid;
  gap: .15rem;
  justify-items: end;
  translate: 0 -50%;
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 3px #000c);
}
.section-rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 2.6rem;
  height: 1.05rem;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.section-rail a::after {   /* the line */
  content: "";
  width: .9rem;
  height: 2px;
  background: #ffffffa6;
  box-shadow: 0 0 0 #fff0;
  transition: width .35s cubic-bezier(.2,.8,.2,1), background .25s ease, box-shadow .25s ease;
}
.section-rail a span {   /* number shown beside the active line */
  margin-right: .45rem;
  font: 500 .58rem/1 var(--mono-font);
  letter-spacing: .14em;
  color: #ffffff8c;
  opacity: 0;
  transition: opacity .25s ease;
}
.section-rail a::before {   /* section name, revealed on hover */
  content: attr(data-label);
  position: absolute;
  right: calc(100% + .4rem);
  top: 50%;
  translate: 0 -50%;
  padding: .3rem .5rem;
  background: #000000c8;
  border: 1px solid #ffffff30;
  font: 600 .66rem/1 var(--mono-font);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.section-rail a.is-current::after { width: 1.9rem; background: #fff; box-shadow: 0 0 8px #ffffffa0; }
.section-rail a.is-current span { opacity: 1; }
.section-rail a:hover::after, .section-rail a:focus-visible::after { width: 1.6rem; background: #fff; }
.section-rail a:hover::before, .section-rail a:focus-visible::before { opacity: 1; }
.section-rail a:focus-visible { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .section-rail a:hover::before { animation: rail-glitch .4s steps(1) 1; }
}
@keyframes rail-glitch {
  0% { translate: 4px -50%; clip-path: inset(0 0 50% 0); text-shadow: -2px 0 #ffffffa0; }
  25% { translate: -3px -50%; clip-path: inset(50% 0 0 0); }
  50% { translate: 1px -50%; clip-path: none; text-shadow: none; }
  75%, 100% { translate: 0 -50%; }
}
.is-loading .section-rail, body.other-side .section-rail { opacity: 0; pointer-events: none; }
@media (hover: none), (max-width: 740px) {
  /* phones: smaller and quieter, no hover names */
  .section-rail { right: .2rem; gap: .05rem; }
  .section-rail a { width: 1.8rem; height: .9rem; }
  .section-rail a::after { width: .55rem; background: #ffffff40; }
  .section-rail a.is-current::after { width: 1.1rem; }
  .section-rail a span, .section-rail a::before { display: none; }
}

/* ---- Click Trigger: the world changes filter (html[data-fx]) ---- */
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fx-overlay { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
html[data-fx] .fx-overlay { opacity: calc(1 - var(--dark, 0)); }
html[data-fx="ink"] :is(.figure__canvas, .figure__still, .petals--front) { filter: url(#fx-ink); }
html[data-fx="ink"] .atmosphere { filter: url(#fx-ink-bg); }   /* softer: only big shapes get inked, so the fog stays calm */
html[data-fx="ink"] .mist { opacity: .6; }
html[data-fx="ink"] :is(.figure__canvas, .figure__still) { animation: reel-jitter 1.6s steps(1) infinite; }
html[data-fx="ink"] .figure__aura { opacity: 0; }
html[data-fx="ink"] .fx-overlay {   /* old cartoon reel: vignette, grain and a flickering exposure */
  background:
    radial-gradient(ellipse 80% 75% at 50% 50%, transparent 62%, #00000070 100%),
    repeating-radial-gradient(circle at 37% 61%, #ffffff10 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 71% 22%, #00000014 0 1px, transparent 1px 4px);
  animation: reel-flicker .18s steps(2) infinite, reel-jitter 1.6s steps(1) infinite;
}
html[data-fx="ink"] .fx-overlay::before {   /* scratches running down the film */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 23%, #ffffff30 23.1%, transparent 23.25%),
    linear-gradient(90deg, transparent 0 67%, #00000040 67.08%, transparent 67.2%),
    linear-gradient(90deg, transparent 0 81%, #ffffff22 81.05%, transparent 81.15%);
  animation: reel-scratch .9s steps(3) infinite;
}
html[data-fx="ink"] .fx-overlay::after {   /* dust: specks and hairs that blink in for a frame */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, #000 0 2px, transparent 3px),
    radial-gradient(circle at 74% 36%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 41% 82%, #000 0 1.5px, transparent 2.5px),
    radial-gradient(ellipse 14px 2px at 88% 64%, #000c, transparent),
    radial-gradient(circle at 58% 12%, #fffc 0 1px, transparent 2px);
  animation: reel-dust .5s steps(1) infinite;
}
html[data-fx="ink"] :is(.hud, .site-header, .chapter__copy, .section-rail) { filter: grayscale(1); }
@keyframes reel-flicker { 0% { opacity: calc(.92 - var(--dark, 0)); } 50% { opacity: calc(1 - var(--dark, 0)); } }
@keyframes reel-jitter { 0%, 100% { translate: 0 0; } 31% { translate: 0 -2px; } 62% { translate: 1px 1px; } }
@keyframes reel-scratch { 0% { translate: 0 0; opacity: .9; } 33% { translate: -6px 0; opacity: .5; } 66% { translate: 3px 0; opacity: 1; } }
@keyframes reel-dust { 0% { translate: 0 0; } 25% { translate: -21vw 13vh; } 50% { translate: 9vw -27vh; opacity: .6; } 75% { translate: -4vw 31vh; } }
html[data-fx="water"] .atmosphere { filter: url(#fx-water) saturate(.85); }   /* only the world ripples; Trigger stays crisp */
html[data-fx="water"] .fx-overlay {
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, #8ff6ff55, transparent 60%),
    linear-gradient(#0b6f8a66, #04314a99);
  mix-blend-mode: hard-light;
}
html[data-fx="water"] .fx-overlay::before {   /* caustics: soft patches of light drifting over everything */
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 14% 9% at 18% 26%, #d8fdff40, transparent 70%),
    radial-gradient(ellipse 10% 7% at 34% 62%, #d8fdff38, transparent 70%),
    radial-gradient(ellipse 16% 8% at 62% 30%, #d8fdff34, transparent 70%),
    radial-gradient(ellipse 12% 9% at 78% 70%, #d8fdff3a, transparent 70%),
    radial-gradient(ellipse 9% 6% at 50% 84%, #d8fdff30, transparent 70%),
    radial-gradient(ellipse 11% 7% at 88% 18%, #d8fdff30, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(8px);
  animation: caustics 7s ease-in-out infinite alternate;
}
html[data-fx="water"] .fx-overlay::after {   /* light shafts from the surface */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 9%, #c9fbff14 11%, transparent 14%, transparent 22%);
  mix-blend-mode: screen;
  animation: shafts 12s ease-in-out infinite alternate;
}
html[data-fx="prism"] .atmosphere { filter: grayscale(.7) brightness(.5) contrast(1.1); }
html[data-fx="prism"] .fx-overlay {   /* violet dusk with phase-02 halftone dots and a slow colour wash */
  background:
    radial-gradient(circle, #0b0a14 0 .9px, transparent 1.4px) 0 0 / 4px 4px,
    radial-gradient(ellipse 60% 70% at 70% 45%, #ff3fd630, transparent 70%),
    radial-gradient(ellipse 70% 60% at 15% 70%, #6b2bff40, transparent 70%),
    linear-gradient(160deg, #1a0f2e80, #0a0a1480);
  mix-blend-mode: hard-light;
}
html[data-fx="prism"] .fx-overlay::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg at 60% 45%, #ff3fd60f, #2bd9ff0f, #b6ff3c0f, #6b2bff0f, #ff3fd60f);
  mix-blend-mode: screen;
  animation: prism-turn 14s linear infinite;
}
@keyframes prism-turn { to { rotate: 360deg; } }
html[data-fx="signal"] :is(.atmosphere, .figure, .petals--front) { filter: url(#fx-signal) contrast(1.15); }
html[data-fx="signal"] .fx-overlay {
  background:
    repeating-linear-gradient(0deg, #00000059 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 50%, transparent 0 55%, #000000a0 100%);
  animation: signal-flicker 4s steps(1) infinite;
}
@keyframes caustics { 0% { translate: 0 0; scale: 1; } 50% { translate: 3% -2%; scale: 1.08; } 100% { translate: -2% 3%; scale: .96; } }
@keyframes shafts { from { translate: -3% 0; } to { translate: 3% 0; } }
@keyframes signal-flicker { 0%, 96%, 100% { opacity: calc(1 - var(--dark, 0)); } 97% { opacity: .6; } 98% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fx-overlay::before, .fx-overlay::after, .fx-overlay { animation: none !important; } }
body.figure-hover { cursor: pointer; }
.fx-tag {
  position: fixed;
  left: 50%;
  bottom: max(1.4rem, env(safe-area-inset-bottom));
  z-index: 9;
  margin: 0;
  padding: .45rem .75rem;
  translate: -50% 0;
  background: #000000d0;
  border: 1px solid #ffffff40;
  color: #fff;
  font: 600 .7rem/1 var(--mono-font);
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.fx-tag.is-on { opacity: 1; animation: fx-tag-in .45s steps(1) 1; }
@keyframes fx-tag-in {
  0% { translate: calc(-50% + 5px) 0; clip-path: inset(0 0 50% 0); }
  25% { translate: calc(-50% - 4px) 0; clip-path: inset(50% 0 0 0); }
  50%, 100% { translate: -50% 0; clip-path: none; }
}

/* ---- Audio: Trigger's playlist in a small glitch panel, bottom right ---- */
.audio {
  position: fixed;
  right: var(--side);
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 7;
  display: grid;
  justify-items: end;
  gap: .6rem;
}
.audio__toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 40px;
  padding: .45rem .8rem .45rem .7rem;
  border: 1px solid #ffffff38;
  background: #000000b8;
  color: #fff;
  font: 600 .66rem/1 var(--mono-font);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  backdrop-filter: blur(6px);
  transition: border-color .25s ease, background .25s ease;
}
.audio__toggle:hover, .audio__toggle[aria-expanded="true"] { border-color: #fff; background: #000000e0; }
.audio__label b { font-weight: 500; color: #ffffff80; }
.audio__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.audio__bars i { width: 2px; height: 30%; background: #fff; }
.audio__bars i:nth-child(2) { height: 55%; } .audio__bars i:nth-child(3) { height: 40%; } .audio__bars i:nth-child(4) { height: 70%; }
@media (prefers-reduced-motion: no-preference) {
  .audio__bars i { animation: audio-bar 2.4s ease-in-out infinite alternate; animation-play-state: paused; }
  .audio.is-playing .audio__bars i { animation-duration: 1s; animation-play-state: running; }
  .audio__bars i:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; }
  .audio__bars i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
  .audio__bars i:nth-child(4) { animation-duration: .85s; animation-delay: -.1s; }
  .player__title.is-new { animation: player-title-in .4s steps(1) 1; }
  .audio__panel:not([hidden]) { animation: audio-open .4s steps(1) both; }
}
@keyframes audio-bar { from { height: 20%; } to { height: 100%; } }
@keyframes audio-open {
  0% { opacity: 0; translate: 6px 0; clip-path: inset(0 0 70% 0); }
  25% { opacity: 1; translate: -4px 0; clip-path: inset(40% 0 0 0); }
  50% { translate: 2px 0; clip-path: inset(0 0 15% 0); }
  75%, 100% { translate: 0 0; clip-path: none; }
}
.audio__panel {
  order: -1;
  width: min(23rem, calc(100vw - 2 * var(--side)));
  padding: .55rem .55rem .6rem;
  border: 1px solid #ffffff40;
  background: #000000e6;
  box-shadow: 0 18px 50px #000a;
}
.audio__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 .5rem;
  padding: 0 .15rem;
  font: 600 .6rem/1 var(--mono-font);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #ffffffa6;
}
.audio__head a { color: #fff; text-decoration: none; }
.audio__head a:hover { text-decoration: underline; }
.audio__frame { height: min(450px, 60svh); background: #0b0b0b; }
.audio__frame iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.is-loading .audio, body.other-side .audio { opacity: 0; pointer-events: none; }
@media (max-width: 740px) {
  .audio__label b { display: none; }
  .audio__toggle { min-height: 36px; padding: .4rem .6rem; }
}

/* the custom MusicKit player inside the audio panel */
.player { display: grid; gap: .7rem; padding: .2rem .25rem .1rem; font: 500 .72rem/1.3 var(--mono-font); color: #fff; }
.player__now { display: grid; grid-template-columns: 64px 1fr; gap: .75rem; align-items: center; }
.player__art { position: relative; width: 64px; height: 64px; }
.player__art::after {   /* scanlines over the cover */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, #0000004d 0 1px, transparent 1px 3px);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.audio.is-hit .player__cover { filter: grayscale(.15) contrast(1.15) drop-shadow(-3px 0 #ff3fd6) drop-shadow(3px 0 #2bd9ff); translate: 2px 0; }
.player__cover { width: 64px; height: 64px; object-fit: cover; background: #151515; filter: grayscale(.15) contrast(1.05); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.player__meta { min-width: 0; }
.player__meta p { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player__title { font: 700 1rem/1.2 var(--display-font); letter-spacing: .04em; text-shadow: -1px 0 #ffffff60, 1px 0 #ffffff25; }
.player__artist { margin-top: .2rem !important; color: #ffffff8c; letter-spacing: .06em; }
@keyframes player-title-in {
  0% { translate: 5px 0; clip-path: inset(0 0 50% 0); }
  25% { translate: -4px 0; clip-path: inset(50% 0 0 0); }
  50%, 100% { translate: 0 0; clip-path: none; }
}
.player__bar { display: grid; grid-template-columns: 2.6rem 1fr 2.6rem; align-items: center; gap: .45rem; color: #ffffff8c; font-size: .62rem; }
.player__bar span:last-child { text-align: right; }
.player__wave { position: relative; height: 26px; }
.player__wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.player__bar input { position: relative; width: 100%; height: 26px; margin: 0; background: none; opacity: .001; accent-color: #fff; cursor: pointer; -webkit-appearance: none; appearance: none; }
.player__bar input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #fff var(--fill, 0%), #ffffff30 var(--fill, 0%)); }
.player__bar input::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; background: #fff; border: 0; border-radius: 0; }
.player__bar input::-moz-range-track { height: 2px; background: #ffffff30; }
.player__bar input::-moz-range-progress { height: 2px; background: #fff; }
.player__bar input::-moz-range-thumb { width: 10px; height: 10px; background: #fff; border: 0; border-radius: 0; }
.player__controls { display: flex; justify-content: center; align-items: center; gap: 1.2rem; }
.player__controls button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #ffffffcc; cursor: pointer; }
.player__controls button:hover { color: #fff; }
.player__controls svg { width: 18px; height: 18px; fill: currentColor; }
.player__controls .player__play { width: 48px; height: 48px; border: 1px solid #fff; color: #fff; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); transition: background .2s ease, color .2s ease; }
.player__controls .player__play:hover { background: #fff; color: #000; }
.player__controls .player__play svg { width: 20px; height: 20px; }
.player__list { max-height: 11.5rem; overflow: auto; margin: 0; padding: 0; list-style: none; border-top: 1px solid #ffffff1f; scrollbar-width: thin; counter-reset: track; }
.player__list li { counter-increment: track; }
.player__list button {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: .4rem; align-items: baseline;
  width: 100%; padding: .45rem .2rem; border: 0; border-bottom: 1px solid #ffffff12;
  background: none; color: #ffffffb0; font: inherit; text-align: left; cursor: pointer;
}
.player__list button::before { content: counter(track, decimal-leading-zero); color: #ffffff59; font-size: .6rem; }
.player__list button:hover { color: #fff; background: #ffffff08; }
.player__list button span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player__list button small { display: block; color: #ffffff66; font-size: .62rem; margin-top: .1rem; }
.player__list .is-current button { color: #fff; }
.player__list .is-current button::before { content: "▶"; color: #fff; }
.player__foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; color: #ffffff73; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
.player__foot button { padding: .45rem .6rem; border: 1px solid #ffffff59; background: none; color: #fff; font: 600 .6rem/1 var(--mono-font); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.player__foot button:hover { background: #fff; color: #000; }

/* music reactions: live equalizer, panel shudder and a glitch tear across Trigger on strong bass */
.audio.is-live .audio__bars i { animation: none !important; height: calc(18% + var(--lvl, 0) * var(--k, 1) * 82%); transition: height .06s linear; }
.audio.is-live .audio__bars i:nth-child(1) { --k: .8; } .audio.is-live .audio__bars i:nth-child(2) { --k: 1; }
.audio.is-live .audio__bars i:nth-child(3) { --k: .65; } .audio.is-live .audio__bars i:nth-child(4) { --k: .9; }
.audio__panel { background:
  repeating-radial-gradient(circle at 20% 30%, #ffffff07 0 1px, transparent 1px 3px),
  #000000e6; }
.audio.is-drop .audio__panel { animation: panel-shudder .16s steps(1) 1; }
@keyframes panel-shudder { 0% { translate: -3px 0; } 33% { translate: 3px -1px; clip-path: inset(8% 0 0 0); } 66% { translate: -1px 1px; clip-path: none; } 100% { translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  body.bass-hit .figure__canvas { animation: bass-tear .16s steps(1) 1; }
  body.bass-hit .chapter__copy h1, body.bass-hit .chapter__copy h2 { animation: bass-tear .16s steps(1) 1; }
}
@keyframes bass-tear {
  0% { translate: -6px 0; clip-path: inset(0 0 62% 0); filter: drop-shadow(-4px 0 #ff3fd6aa) drop-shadow(4px 0 #2bd9ffaa); }
  33% { translate: 5px 0; clip-path: inset(38% 0 20% 0); }
  66% { translate: -2px 0; clip-path: inset(70% 0 0 0); filter: none; }
  100% { translate: 0 0; clip-path: none; }
}

/* small legal link at the very bottom */
.chapter p.site-legal { margin: clamp(1.4rem, 4vw, 2.2rem) 0 0; text-align: center; font: 500 .62rem/1 var(--mono-font); letter-spacing: .22em; text-transform: uppercase; }
.site-legal a { color: #ffffff73; text-decoration: none; }
.site-legal a:hover { color: #fff; }
