/* DystoPia — the Capsule Machine bathed in aura light */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Chonburi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/chonburi-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chonburi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/chonburi-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --cream: #FFF5EA;
  --cream-deep: #F9E9D8;
  --ink: #38104F;
  --ink-soft: #6D4E86;
  --aura: #7F2BAD;
  --aura-bright: #A44BD8;
  --lilac: #C77DFF;
  --lilac-soft: #E9D2FF;
  --gold: #F2C14E;
  --gold-soft: #FBE3AC;
  --sky: #8EC5FF;
  --sky-soft: #D3E7FF;
  --pearl: #CFC9C2;
  --pearl-soft: #EBE6DF;
  --chrome-hi: #FDFBF7;
  --chrome-lo: #B9AFA4;
  --display: 'Chonburi', 'Georgia', serif;
  --body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --clock: 14s;               /* one shared motion clock; layers derive from it */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-soft: 0 22px 44px -20px rgba(127, 43, 173, .30);
  --radius-pill: 999px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  caret-color: var(--aura);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--aura); text-decoration-color: color-mix(in srgb, var(--aura) 40%, transparent); text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--aura); }
::selection { background: var(--lilac); color: var(--ink); }
:focus-visible { outline: 3px solid var(--aura-bright); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--lilac), var(--aura)); border-radius: 99px; border: 3px solid var(--cream-deep); }
html { scrollbar-color: var(--aura) var(--cream-deep); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: .005em; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }

/* auras bleed freely between sections; main clips only at the page edges */
main { overflow: clip; }

/* grain — one quiet film over everything */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- aura fields ---------- */
.aura { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; will-change: transform, opacity; }
.aura--violet { background: radial-gradient(circle, rgba(127,43,173,.55), rgba(127,43,173,0) 68%); }
.aura--lilac  { background: radial-gradient(circle, rgba(199,125,255,.5), rgba(199,125,255,0) 68%); }
.aura--gold   { background: radial-gradient(circle, rgba(242,193,78,.5), rgba(242,193,78,0) 68%); }
.aura--sky    { background: radial-gradient(circle, rgba(142,197,255,.55), rgba(142,197,255,0) 68%); }
@keyframes breathe {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: .8; }
  50%      { transform: scale(1.18) translate(2%, -3%); opacity: 1; }
}
.aura { animation: breathe var(--clock) var(--ease-out) infinite; }
.aura:nth-child(2) { animation-duration: calc(var(--clock) * 1.5); animation-delay: calc(var(--clock) / -3); }
.aura:nth-child(3) { animation-duration: calc(var(--clock) * 2); animation-delay: calc(var(--clock) / -1.6); }

/* sparkles — the logo's four-point stars, scattered */
.spark { position: absolute; pointer-events: none; color: var(--aura); opacity: .8; }
.spark svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@keyframes twinkle {
  0%, 100% { transform: scale(.6) rotate(0deg); opacity: .25; }
  50%      { transform: scale(1) rotate(18deg); opacity: .9; }
}
.spark { animation: twinkle calc(var(--clock) / 2) ease-in-out infinite; }
.spark--slow { animation-duration: var(--clock); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: .35rem;
  padding: .45rem .6rem;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--aura) 18%, transparent);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 30px -18px rgba(56, 16, 79, .35);
  width: max-content; max-width: calc(100% - 1.5rem);
}
.nav__brand {
  font-family: var(--display); font-size: 1.15rem; color: var(--ink);
  text-decoration: none; padding: .1rem .7rem .2rem;
  rotate: -1.5deg; transition: rotate .3s var(--ease-out);
}
.nav__brand:hover { rotate: 1deg; }
.nav__links { display: flex; align-items: center; gap: .1rem; }
.nav__links a {
  font-weight: 600; font-size: .84rem; color: var(--ink);
  text-decoration: none; padding: .45rem .7rem; border-radius: var(--radius-pill);
  transition: background .25s, rotate .25s var(--ease-out);
}
.nav__links a:nth-child(odd) { rotate: .8deg; }
.nav__links a:nth-child(even) { rotate: -.8deg; }
.nav__links a:hover { background: var(--lilac-soft); rotate: 0deg; }
.nav__cta {
  font-weight: 700; font-size: .84rem; color: var(--ink); text-decoration: none;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  border: 1px solid color-mix(in srgb, var(--gold) 70%, var(--ink) 10%);
  padding: .45rem .95rem; border-radius: var(--radius-pill);
  rotate: 1.2deg;
  box-shadow: 0 8px 18px -8px rgba(242, 193, 78, .8);
  transition: rotate .25s var(--ease-out), transform .25s var(--ease-out);
}
.nav__cta:hover { rotate: -1deg; transform: translateY(-1px); }
.nav__cta:active { transform: translateY(1px) scale(.98); }
.nav__lang {
  display: flex; align-items: center; margin-left: .2rem;
  border: 1px solid color-mix(in srgb, var(--aura) 25%, transparent);
  border-radius: var(--radius-pill); overflow: hidden;
}
.nav__lang a, .nav__lang span {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: .3rem .55rem; text-decoration: none; color: var(--ink-soft);
}
.nav__lang [aria-current] { background: var(--aura); color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(7rem, 12vh, 9rem) 0 clamp(3rem, 6vh, 5rem);
  min-height: 92svh;
  display: flex; align-items: center;
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.hero__logo { /* the logo's own aura rides behind the transparent PNG, at every width */
  width: min(380px, 72%); height: auto; margin-bottom: .8rem; position: relative;
  background: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(127,43,173,.68), rgba(164,75,216,.34) 58%, transparent 78%);
}
.hero__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 34ch;
  color: var(--ink); font-weight: 500;
}
.hero__lede strong { color: var(--aura); font-weight: 700; }
.hero__sub { font-size: .95rem; color: var(--ink-soft); max-width: 40ch; }

/* staggered entrance — the cascade */
.cascade > * { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease-out) forwards; }
.cascade > *:nth-child(1) { animation-delay: .05s; }
.cascade > *:nth-child(2) { animation-delay: .16s; }
.cascade > *:nth-child(3) { animation-delay: .27s; }
.cascade > *:nth-child(4) { animation-delay: .38s; }
.cascade > *:nth-child(5) { animation-delay: .49s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- the token CTA (coin slot) ---------- */
.token-cta {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: .7rem 1.15rem .7rem .8rem;
  background: linear-gradient(165deg, var(--chrome-hi), var(--pearl-soft) 55%, var(--chrome-lo));
  border: 1px solid var(--pearl);
  border-radius: 22px;
  rotate: -1deg;
  text-decoration: none;
  box-shadow: var(--shadow-soft), inset 0 1px 0 #fff;
  transition: rotate .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s;
}
.token-cta:hover { rotate: .5deg; transform: translateY(-2px); }
.token-cta:active { transform: translateY(1px) scale(.99); }
.token-cta__coin {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, var(--gold-soft), var(--gold) 62%, #D99E23);
  border: 2px solid #D99E23;
  box-shadow: 0 6px 14px -4px rgba(217, 158, 35, .8), inset 0 2px 3px rgba(255,255,255,.7);
  transition: transform .35s var(--ease-out);
}
.token-cta:hover .token-cta__coin { transform: translateY(-4px) rotate(12deg); }
.token-cta__coin svg { width: 22px; height: 22px; fill: var(--ink); }
.token-cta__text { display: grid; gap: .1rem; }
.token-cta__label { font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.2; }
.token-cta__hint { font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }
/* ---------- capsule dome ---------- */
.machine { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.dome-wrap { position: relative; aspect-ratio: 1; width: 100%; }
.dome {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.85), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 70% 85%, rgba(199,125,255,.25), rgba(199,125,255,0) 55%),
    linear-gradient(160deg, rgba(255,255,255,.5), rgba(233,210,255,.28));
  border: 10px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 10px var(--pearl-soft),
    0 0 0 12px var(--pearl),
    0 44px 80px -30px rgba(127, 43, 173, .45),
    inset 0 -30px 60px -20px rgba(127, 43, 173, .2);
  overflow: hidden;
}
.dome::after { /* glass sweep */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.5) 44%, rgba(255,255,255,.08) 52%, transparent 60%);
  pointer-events: none;
}

/* capsules drifting inside the dome — depth = speed + blur + size */
.capsule {
  position: absolute; border-radius: 50%; overflow: hidden;
  box-shadow: 0 14px 26px -12px rgba(56,16,79,.5), inset 0 3px 6px rgba(255,255,255,.4);
  animation: drift calc(var(--clock) * var(--depth, 1)) ease-in-out infinite alternate;
  will-change: transform;
}
.capsule img { width: 100%; height: 100%; object-fit: cover; }
.capsule::before { /* colored half-shell with a visible seam */
  content: ''; position: absolute; inset: -1% -1% 47% -1%;
  background: linear-gradient(180deg, var(--shell, rgba(199,125,255,.55)) 55%, color-mix(in srgb, var(--shell, rgba(199,125,255,.55)) 60%, transparent) 85%, transparent);
  border-bottom: 3px solid rgba(255,255,255,.8);
  border-radius: 50% 50% 8% 8% / 50% 50% 14% 14%;
  box-shadow: 0 3px 6px -2px rgba(56,16,79,.25);
}
.capsule::after { /* gloss */
  content: ''; position: absolute; top: 6%; left: 12%; width: 30%; height: 20%;
  background: rgba(255,255,255,.85); border-radius: 50%;
  transform: rotate(-24deg); filter: blur(2px);
}
.capsule--back { filter: blur(1.5px) saturate(.9); }
@keyframes drift {
  from { transform: translate(0, 0) rotate(-4deg); }
  to   { transform: translate(4%, -7%) rotate(5deg); }
}

/* ---------- gachapon hardware: base, coin, knob, hatch ---------- */
.machine__base {
  position: relative; z-index: 2;
  width: 56%; margin: -10% auto 0;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: 1.15rem 1rem 1.5rem;
  background: linear-gradient(165deg, var(--chrome-hi), var(--pearl-soft) 55%, var(--chrome-lo));
  border: 1px solid var(--pearl);
  border-radius: 18px 18px 30px 30px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 #fff, inset 0 -12px 20px -14px rgba(56,16,79,.3);
}

.machine__slot {
  position: relative; flex: none;
  width: 64px; height: 64px; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, var(--cream-deep) 72%);
  border: 1px solid var(--pearl);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px -6px rgba(56,16,79,.4);
}
.machine__slit {
  width: 8px; height: 34px; border-radius: 5px;
  background: #2A0C3B;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.8);
  transition: box-shadow .3s;
}
.machine__slot:hover .machine__slit {
  box-shadow: inset 0 2px 3px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.8),
    0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent);
}
.machine__coin {
  position: absolute; left: 50%; top: -44px; margin-left: -19px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, var(--gold-soft), var(--gold) 62%, #D99E23);
  border: 2px solid #D99E23;
  box-shadow: 0 6px 14px -4px rgba(217,158,35,.8), inset 0 2px 3px rgba(255,255,255,.7);
  animation: coin-bob calc(var(--clock) / 4) ease-in-out infinite alternate;
  transition: opacity .3s, scale .3s var(--ease-out);
}
.machine__coin svg { width: 16px; height: 16px; fill: var(--ink); }
@keyframes coin-bob { from { translate: 0 0; } to { translate: 0 7px; } }
[data-state="coining"] .machine__coin { animation: coin-drop .75s var(--ease-out) forwards; }
@keyframes coin-drop { /* the token tips edge-on and slides into the slit */
  0%   { translate: 0 0; rotate: 0deg; scale: 1; opacity: 1; }
  45%  { translate: 0 30px; rotate: 14deg; scale: 1; opacity: 1; }
  70%  { scale: .55 1; }
  100% { translate: 0 54px; rotate: 90deg; scale: .18 .9; opacity: 0; }
}
[data-state="armed"] .machine__coin, [data-state="turning"] .machine__coin,
[data-state="dispensing"] .machine__coin, [data-state="open"] .machine__coin {
  opacity: 0; scale: .4; animation: none; pointer-events: none;
}

.machine__knob {
  position: relative; flex: none;
  width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid var(--pearl); padding: 0; cursor: pointer;
  background: radial-gradient(circle at 34% 28%, var(--chrome-hi), var(--pearl-soft) 58%, var(--chrome-lo));
  box-shadow: 0 12px 24px -12px rgba(56,16,79,.5), inset 0 1px 0 #fff;
  display: grid; place-items: center;
}
.machine__knob::after { /* gold "ready" ping once the token is in */
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 3px solid var(--gold); opacity: 0; pointer-events: none;
}
[data-state="armed"] .machine__knob::after { animation: ready-ping calc(var(--clock) / 8) ease-out infinite; }
@keyframes ready-ping {
  0% { transform: scale(.92); opacity: .9; }
  75%, 100% { transform: scale(1.14); opacity: 0; }
}
.machine__knob-face {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--cream-deep) 70%);
  border: 1px solid var(--pearl);
  display: grid; place-items: center;
  transition: transform .35s var(--ease-out);
}
.machine__knob-face::before { /* grip bar */
  content: ''; width: 46px; height: 15px; border-radius: 8px;
  background: linear-gradient(180deg, var(--chrome-hi), var(--chrome-lo));
  border: 1px solid var(--pearl);
  box-shadow: 0 2px 4px rgba(56,16,79,.3);
}
.machine__knob:hover .machine__knob-face { transform: rotate(16deg); }
[data-state="turning"] .machine__knob-face { animation: knob-turn 1.25s var(--ease-out) forwards; }
@keyframes knob-turn { /* small wind-up, then the full crank */
  0%   { transform: rotate(0); }
  18%  { transform: rotate(-28deg); }
  100% { transform: rotate(360deg); }
}
[data-state="turning"] .dome-wrap { animation: machine-shake .38s ease-in-out 3; }
@keyframes machine-shake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-4px, 2px) rotate(-.5deg); }
  60% { transform: translate(4px, -2px) rotate(.6deg); }
}
[data-state="turning"] .capsule { animation: tumble .55s ease-in-out calc((var(--depth, 1) - 1) * -.5s) infinite; }
@keyframes tumble {
  0%, 100% { transform: translate(0, -1%) rotate(-7deg); }
  30% { transform: translate(-3%, -7%) rotate(6deg); }
  55% { transform: translate(3%, -11%) rotate(-9deg); }
  80% { transform: translate(-2%, -4%) rotate(4deg); }
}

.machine__hatch {
  flex: none; width: 96px; height: 62px; border-radius: 14px;
  margin-top: .5rem;
  background: #2A0C3B;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.65), 0 1px 0 rgba(255,255,255,.8);
  position: relative;
}
.machine__flap {
  position: absolute; inset: 5px; border-radius: 10px;
  background: linear-gradient(165deg, rgba(255,255,255,.65), var(--lilac-soft) 55%, color-mix(in srgb, var(--lilac) 45%, var(--lilac-soft)));
  border: 1px solid color-mix(in srgb, var(--aura) 30%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease-out);
}
[data-state="dispensing"] .machine__flap, [data-state="open"] .machine__flap {
  transform: perspective(320px) rotateX(-62deg);
}

.machine__tag {
  position: absolute; left: 50%; bottom: 0;
  translate: -50% 55%; rotate: -1.4deg;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--aura) 25%, transparent);
  border-radius: 14px; padding: .3rem .7rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap;
  box-shadow: 0 8px 16px -10px rgba(56,16,79,.35);
}
.machine__tag::before {
  content: ''; display: inline-block; width: 9px; height: 9px; margin-right: .45em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F2C14E'%3E%3Cpath d='M12 0c1 7 5 11 12 12-7 1-11 5-12 12-1-7-5-11-12-12 7-1 11-5 12-12z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- the prize capsule ---------- */
.machine__prize {
  position: absolute; z-index: 5; left: 50%; top: 46%;
  translate: -50% -8%;
  width: min(330px, 92%);
  border: 0; border-radius: 30px; background: none; padding: 0; cursor: pointer;
  display: grid; justify-items: center; gap: .9rem;
  animation: dispense .95s var(--ease-out);
}
.machine__prize[hidden] { display: none; }
.machine__prize::before { /* cream glow lifts the prize off the busy dome */
  content: ''; position: absolute; inset: -14%; z-index: -1;
  background: radial-gradient(circle at 50% 42%, rgba(255,245,234,.95), rgba(255,245,234,.5) 48%, transparent 72%);
  filter: blur(6px);
}
[data-state="dispensing"] .dome-wrap, [data-state="open"] .dome-wrap { filter: brightness(.9) saturate(.75); }
.dome-wrap { transition: filter .5s var(--ease-out); }
[data-state="dispensing"] .machine__tag, [data-state="open"] .machine__tag { opacity: 0; }
.machine__tag { transition: opacity .3s; }
@keyframes dispense { /* out of the hatch, one hop, held up to the glass */
  0%   { translate: -50% 92%; scale: .3; opacity: 0; }
  20%  { opacity: 1; }
  50%  { translate: -50% 6%; scale: .8; }
  72%  { translate: -50% -12%; scale: .98; }
  100% { translate: -50% -8%; scale: 1; }
}
.machine__prize-ball { position: relative; width: min(250px, 76%); aspect-ratio: 1; }
.machine__prize-ball img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  box-shadow: 0 34px 60px -20px rgba(56,16,79,.55), inset 0 3px 6px rgba(255,255,255,.4);
}
.machine__prize-ball::after { /* gloss, gone once the shell opens */
  content: ''; position: absolute; top: 6%; left: 12%; width: 30%; height: 20%;
  background: rgba(255,255,255,.85); border-radius: 50%;
  transform: rotate(-24deg); filter: blur(2px);
  transition: opacity .4s;
}
[data-state="open"] .machine__prize-ball::after { opacity: 0; }
.machine__prize-shell {
  position: absolute; inset: -1% -1% 45% -1%;
  background: linear-gradient(180deg, var(--shell, rgba(199,125,255,.6)) 55%, color-mix(in srgb, var(--shell, rgba(199,125,255,.6)) 60%, transparent) 85%, transparent);
  border-bottom: 3px solid rgba(255,255,255,.85);
  border-radius: 50% 50% 8% 8% / 50% 50% 14% 14%;
  box-shadow: 0 3px 6px -2px rgba(56,16,79,.3);
  transform-origin: 18% 88%;
  transition: transform .65s var(--ease-out) .15s, opacity .5s .3s;
}
[data-state="open"] .machine__prize-shell { transform: rotate(-28deg) translate(-16%, -74%); opacity: 0; }
.machine__prize-name {
  display: grid; justify-items: center; gap: .05rem;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--aura) 25%, transparent);
  border-radius: 14px; padding: .5rem .95rem;
  rotate: 1deg;
  box-shadow: 0 10px 20px -12px rgba(56,16,79,.4);
  opacity: 0; translate: 0 6px;
  transition: opacity .4s var(--ease-out) .35s, translate .4s var(--ease-out) .35s;
}
[data-state="open"] .machine__prize-name { opacity: 1; translate: 0 0; }
.machine__prize-name b { font-size: .9rem; font-weight: 700; color: var(--ink); }
.machine__prize-name small {
  font-size: .66rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid color-mix(in srgb, var(--aura) 22%, transparent);
  background: linear-gradient(90deg, var(--lilac-soft), var(--cream) 30%, var(--sky-soft) 70%, var(--lilac-soft));
  padding: .7rem 0; position: relative; z-index: 2;
}
.marquee__track { display: inline-flex; gap: 2.4rem; animation: slide calc(var(--clock) * 2.2) linear infinite; padding-right: 2.4rem; }
.marquee__track span {
  font-family: var(--display); font-size: 1.05rem; color: var(--aura);
  display: inline-flex; align-items: center; gap: 2.4rem;
}
.marquee__track svg { width: 13px; height: 13px; fill: var(--gold); align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(4rem, 9vh, 7rem) 0; scroll-margin-top: 5.5rem; }
.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 5vh, 3.5rem); position: relative; z-index: 2; }
.section__head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: var(--ink); margin-bottom: .5rem; }
.section__head h2 em { font-style: normal; color: var(--aura); }
.section__head p { color: var(--ink-soft); font-size: 1.02rem; max-width: 52ch; }

/* scroll reveals */
.rv { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: clamp(.8rem, 1.6vw, 1.4rem); position: relative; z-index: 2; }
.gal figure { margin: 0; position: relative; overflow: hidden; box-shadow: var(--shadow-soft); background: var(--cream-deep); isolation: isolate; }
/* keep the border-radius clip intact while the child image scales on hover:
   the figure must own a compositing layer even after .rv.in resets transform,
   and the image is promoted up front so the clip never pops mid-transition */
.gal figure.rv.in { transform: translateZ(0); }
.gal figure img { will-change: transform; }
.gal figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.gal figure:hover img { transform: scale(1.045); }
.gal button.gal__zoom {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: none; border: 0; cursor: zoom-in; border-radius: inherit;
  z-index: 1; /* the will-change-promoted img paints above a z:auto button; keep the click target on top */
}
.gal button.gal__zoom:focus-visible { outline-offset: -4px; }
/* capsule-pill shape rhythm */
.gal figure { border-radius: 26px; }
.gal figure:nth-child(3n)   { border-radius: var(--radius-pill) var(--radius-pill) 26px 26px; }
.gal figure:nth-child(4n+1) { border-radius: 26px 26px var(--radius-pill) var(--radius-pill); }
.gal figure:nth-child(7n)   { border-radius: var(--radius-pill); }
/* size rhythm: one hero piece per hand of five, sides alternating, no holes */
.gal figure { grid-column: span 3; aspect-ratio: 3 / 4; }
.gal figure:nth-child(5n+1) { grid-column: span 6; grid-row: span 2; aspect-ratio: auto; }
.gal figure:nth-child(6) { grid-column: 7 / span 6; }

/* specimen label */
.gal figcaption {
  position: absolute; left: .7rem; right: .7rem; bottom: .7rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--aura) 15%, transparent);
  border-radius: 14px; padding: .5rem .8rem;
  rotate: -.6deg;
  transition: rotate .3s var(--ease-out);
}
.gal figure:nth-child(even) figcaption { rotate: .6deg; }
.gal figure:hover figcaption { rotate: 0deg; }
/* pill-bottomed figures curve into the caption zone — inset it clear of the arc */
.gal figure:nth-child(4n+1) figcaption,
.gal figure:nth-child(7n) figcaption { left: 15%; right: 15%; bottom: 1.6rem; justify-content: center; text-align: center; }
.gal figcaption { pointer-events: none; } /* taps fall through to the zoom button */
.gal figcaption b { font-size: .82rem; font-weight: 700; color: var(--ink); }
.gal figcaption span { font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.gal figcaption span::before {
  content: ''; display: inline-block; width: .62em; height: .62em; margin-right: .32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F2C14E'%3E%3Cpath d='M12 0c1 7 5 11 12 12-7 1-11 5-12 12-1-7-5-11-12-12 7-1 11-5 12-12z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 720px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(56, 16, 79, .82); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 22px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.lightbox figcaption { color: var(--cream); text-align: center; font-size: .85rem; font-weight: 600; padding-top: .7rem; }
.lightbox__close {
  position: fixed; top: 1rem; right: 1rem;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,245,234,.4); background: rgba(255,245,234,.12);
  color: var(--cream); cursor: pointer; display: grid; place-items: center;
}
.lightbox__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }

/* ---------- package viewer (an opened capsule) ---------- */
.pack {
  border: 0; padding: 0; background: transparent; color: var(--cream);
  width: min(96vw, 880px); max-width: none; max-height: 92vh; margin: auto;
  display: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: .9rem;
}
.pack[open] { display: grid; }
.pack::backdrop { background: rgba(56, 16, 79, .82); backdrop-filter: blur(8px); }
.pack__head { display: flex; align-items: center; gap: .8rem; }
.pack__ball {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.95), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, var(--tier, var(--lilac)) 48%, var(--cream-deep) 48%);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--tier, var(--lilac)) 90%, black);
}
.pack__ball svg { width: 17px; height: 17px; fill: var(--cream); }
.pack__titles { display: grid; margin-right: auto; }
.pack__titles b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; letter-spacing: .02em; }
.pack__count { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--tier, var(--lilac)) 60%, var(--cream)); }
.pack__close {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid rgba(255,245,234,.4); background: rgba(255,245,234,.12);
  color: var(--cream); cursor: pointer; display: grid; place-items: center;
  transition: background .3s, rotate .4s var(--ease-out);
}
.pack__close:hover { background: rgba(255,245,234,.24); rotate: 90deg; }
.pack__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }

.pack__track {
  display: flex; gap: .8rem; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.pack__track::-webkit-scrollbar { display: none; }
.pack__track:focus-visible { outline: 3px solid var(--aura-bright); outline-offset: 3px; }
.pack__slide {
  margin: 0; flex: 0 0 100%; min-width: 0; scroll-snap-align: center;
  display: grid; place-items: center;
}
.pack__slide img {
  /* min-width keeps a visible card while the photo loads — an image with no
     intrinsic size renders 0 wide and the slide looks like it vanished */
  height: min(62vh, 540px); width: auto; min-width: min(72%, 300px); max-width: 100%; object-fit: contain; display: block;
  border-radius: 22px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  background: color-mix(in srgb, var(--tier, var(--lilac)) 18%, rgba(56,16,79,.6));
}

.pack__foot { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.pack__nav {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid rgba(255,245,234,.4); background: rgba(255,245,234,.12);
  color: var(--cream); cursor: pointer; display: grid; place-items: center;
  transition: background .3s, transform .3s var(--ease-out);
}
.pack__nav:hover:not(:disabled) { background: rgba(255,245,234,.24); }
.pack__nav[data-dir="-1"]:hover:not(:disabled) { transform: translateX(-2px); }
.pack__nav[data-dir="1"]:hover:not(:disabled) { transform: translateX(2px); }
.pack__nav:disabled { opacity: .3; cursor: default; }
.pack__nav svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.pack__book {
  display: inline-flex; align-items: center; gap: .55rem;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  border: 1px solid #D99E23; border-radius: var(--radius-pill);
  padding: .6rem 1.1rem .6rem .6rem; color: var(--ink);
  font-size: .82rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(242,193,78,.8); rotate: -1deg;
  transition: rotate .4s var(--ease-out), translate .3s var(--ease-out);
}
.pack__book:hover { rotate: .5deg; translate: 0 -1px; }
.pack__book-coin {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%, var(--gold-soft), var(--gold));
  border: 2px solid #D99E23;
}
.pack__book-coin svg { width: 12px; height: 12px; fill: var(--ink); }

/* ---------- packages ---------- */
.tiers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem); align-items: end; position: relative; z-index: 2;
}
.tier {
  text-align: center; padding: 0 .4rem 1.6rem; border-radius: 30px;
  position: relative;
  background: linear-gradient(180deg, transparent 90px, color-mix(in srgb, var(--tier, var(--lilac)) 14%, var(--cream)) 90px);
  border: 1px solid color-mix(in srgb, var(--tier, var(--lilac)) 35%, transparent);
  box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--tier, var(--lilac)) 60%, rgba(56,16,79,.4));
}
.tier__open {
  display: grid; justify-items: center; gap: .55rem;
  background: none; border: 0; padding: 0; margin: 0 auto; cursor: pointer;
  font: inherit; color: inherit;
}
.tier__open:focus-visible { outline: 3px solid var(--aura-bright); outline-offset: 6px; border-radius: 30px; }
.tier__capsule {
  width: 132px; height: 132px; margin: 24px auto 0; border-radius: 50%;
  position: relative; display: block;
  background: var(--cream-deep);
  box-shadow: 0 18px 32px -14px color-mix(in srgb, var(--tier, var(--lilac)) 80%, black), inset 0 -6px 12px rgba(56,16,79,.12);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
/* what's inside the capsule: a real set from the package */
.tier__peek {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
}
/* the two halves — they part along the seam when the capsule opens */
.tier__lid, .tier__base {
  position: absolute; left: 0; right: 0; display: grid; place-items: center;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
.tier__lid {
  top: 0; height: 50%; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(circle at 32% 34%, rgba(255,255,255,.95), rgba(255,255,255,0) 62%),
    var(--tier, var(--lilac));
  box-shadow: inset 0 3px 8px rgba(255,255,255,.6), 0 1px 0 rgba(255,255,255,.85);
}
.tier__base {
  bottom: 0; height: 50%; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, var(--cream-deep), color-mix(in srgb, var(--tier, var(--lilac)) 18%, var(--cream-deep)));
  box-shadow: inset 0 -6px 12px rgba(56,16,79,.12);
}
.tier__lid, .tier__base { filter: drop-shadow(0 0 0 rgba(56,16,79,0)); transition: transform .5s var(--ease-out), filter .5s var(--ease-out); }
.tier:hover .tier__lid, .tier:hover .tier__base,
.tier__open:focus-visible .tier__lid, .tier__open:focus-visible .tier__base { filter: drop-shadow(0 6px 10px rgba(56,16,79,.28)); }
.tier__lid svg { width: 44px; height: 44px; fill: var(--cream); filter: drop-shadow(0 2px 4px rgba(56,16,79,.35)); }

/* open: halves swing apart, the set inside comes forward */
.tier:hover .tier__lid, .tier__open:hover .tier__lid, .tier__open:focus-visible .tier__lid { transform: translateY(-64%) rotate(-13deg); }
.tier:hover .tier__base, .tier__open:hover .tier__base, .tier__open:focus-visible .tier__base { transform: translateY(64%) rotate(10deg); }
.tier:hover .tier__capsule, .tier__open:hover .tier__capsule, .tier__open:focus-visible .tier__capsule {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -14px color-mix(in srgb, var(--tier, var(--lilac)) 85%, black),
              0 0 0 3px color-mix(in srgb, var(--tier, var(--lilac)) 45%, transparent);
}
.tier__open:active .tier__capsule { transform: translateY(-2px) scale(.97); }

/* the standing invitation — no hover required, so it reads on touch too */
.tier__hint {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--tier, var(--lilac)) 55%, transparent);
  border-radius: var(--radius-pill); padding: .34rem .7rem;
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--tier, var(--lilac)) 80%, black);
  rotate: -1.2deg; transition: rotate .4s var(--ease-out), background .3s, box-shadow .4s var(--ease-out);
}
.tier:nth-child(even) .tier__hint { rotate: 1.2deg; }
.tier:hover .tier__hint, .tier__open:focus-visible .tier__hint {
  rotate: 0deg; background: color-mix(in srgb, var(--tier, var(--lilac)) 22%, var(--cream));
  box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--tier, var(--lilac)) 80%, black);
}
.tier__hint svg { width: 10px; height: 10px; fill: var(--gold); flex: none; }

/* ambient: every capsule breathes its lid open a crack, so the affordance shows itself */
.tier__lid { animation: lid-tease calc(var(--clock) * 2) var(--ease-out) infinite; animation-delay: var(--d, 0s); }
.tier:hover .tier__lid, .tier__open:focus-visible .tier__lid { animation: none; }
@keyframes lid-tease {
  0%, 86%, 100% { transform: translateY(0) rotate(0deg); }
  91% { transform: translateY(-9%) rotate(-2.2deg); }
}

.tier h3 { margin-top: 1rem; font-size: 1.45rem; letter-spacing: .02em; }
.tier__tag { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); display: block; margin: .25rem 0 .9rem; }
.tier ul { list-style: none; margin: 0 auto; padding: 0 1.1rem; max-width: 24ch; text-align: center; display: grid; gap: .45rem; }
.tier li { font-size: .86rem; font-weight: 500; color: var(--ink); }
.tier li + li { border-top: 1px dashed color-mix(in srgb, var(--tier, var(--lilac)) 40%, transparent); padding-top: .45rem; }
.tier--featured { rotate: 0deg; }
.tier--featured::before {
  content: ''; position: absolute; inset: -14px; border-radius: 40px; z-index: -1;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tier) 45%, transparent), transparent 70%);
  filter: blur(18px);
  animation: breathe calc(var(--clock) / 1.6) ease-in-out infinite;
}
.tiers-note {
  margin-top: 2.2rem; text-align: center; font-size: .95rem; color: var(--ink-soft);
  position: relative; z-index: 2;
}
.tiers-note a { font-weight: 700; }
.tiers-cta { display: flex; justify-content: center; margin-top: 2rem; position: relative; z-index: 2; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 2; }
.about__media { position: relative; }
.about__media img {
  border-radius: var(--radius-pill);
  aspect-ratio: 3 / 4.4; object-fit: cover; width: 100%;
  box-shadow: var(--shadow-soft);
  rotate: -2deg;
}
.about__media::after {
  content: ''; position: absolute; inset: -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,125,255,.35), transparent 70%);
  filter: blur(30px);
}
.about__badge {
  position: absolute; right: -.6rem; bottom: 2.2rem;
  background: var(--cream); border: 1px solid color-mix(in srgb, var(--aura) 25%, transparent);
  border-radius: 18px; padding: .7rem 1rem; rotate: 3deg;
  box-shadow: var(--shadow-soft);
  font-size: .78rem; font-weight: 700; color: var(--aura); max-width: 21ch; text-align: center;
}
.about__text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.about__text h2 em { font-style: normal; color: var(--aura); }
.about__text p { color: var(--ink); font-size: 1rem; max-width: 56ch; }
.about__text p.soft { color: var(--ink-soft); font-size: .95rem; }

/* ---------- finale ---------- */
.finale { text-align: center; padding-bottom: clamp(5rem, 10vh, 8rem); }
.finale h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); position: relative; z-index: 2; max-width: 18ch; margin: 0 auto .8rem; }
.finale h2 em { font-style: normal; color: var(--aura); }
.finale p { position: relative; z-index: 2; color: var(--ink-soft); max-width: 44ch; margin-inline: auto; }
.finale .token-cta { margin-top: 1.6rem; scale: 1.12; }
.finale__meta {
  position: relative; z-index: 2;
  margin-top: 3.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
}
.finale__meta a, .finale__meta span {
  display: inline-flex; align-items: center; gap: .45rem;
  background: color-mix(in srgb, var(--cream) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--aura) 20%, transparent);
  border-radius: var(--radius-pill); padding: .55rem 1.1rem;
  font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.finale__meta a:nth-child(odd) { rotate: -1deg; }
.finale__meta a:nth-child(even), .finale__meta span { rotate: 1deg; }
.finale__meta a:hover { background: var(--lilac-soft); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid color-mix(in srgb, var(--aura) 15%, transparent);
  background: var(--cream-deep);
  padding: 2rem 0 2.4rem; position: relative; z-index: 2;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer p { margin: 0; font-size: .78rem; color: var(--ink-soft); }
.footer nav { display: flex; gap: 1.2rem; }
.footer nav a { font-size: .8rem; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero { min-height: auto; padding-top: 8.5rem; }
  .hero__lede, .hero__sub { margin-inline: auto; }
  .hero__logo { margin-inline: auto; }
  .machine { max-width: 420px; margin-top: 1.5rem; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 340px; margin-inline: auto; }
  .tiers { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
  .gal figure, .gal figure:nth-child(6) { grid-column: span 6; aspect-ratio: 3 / 4; grid-row: auto; }
  .gal figure:nth-child(5n+1) { grid-column: span 12; aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  .nav { top: .6rem; flex-wrap: wrap; justify-content: center; row-gap: .2rem; }
  .section { scroll-margin-top: 8rem; }
  .spark { display: none; }
  .nav__links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .hero { padding-top: 10.5rem; }
  .tiers { grid-template-columns: 1fr; }
  .gal figcaption { display: none; }
  /* vw-sized blobs shrink too far on phones; scale composes with the breathe transform */
  .aura { scale: 1.9; }
  /* the featured halo bleeds over the neighboring card in the stacked layout */
  .tier--featured::before { display: none; }
  .gal { gap: .7rem; }
  .token-cta { rotate: 0deg; }
  .finale .token-cta { scale: 1; }
  .machine__base { width: 64%; }
  .machine__slot { width: 54px; height: 54px; }
  .machine__knob { width: 80px; height: 80px; }
  .machine__knob-face { width: 56px; height: 56px; }
  .machine__knob-face::before { width: 40px; height: 13px; }
  .machine__hatch { width: 80px; height: 54px; }
  .pack__slide img { height: min(56vh, 440px); }
  .pack__book { font-size: .76rem; padding: .55rem .8rem .55rem .55rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aura, .spark, .capsule, .marquee__track, .tier--featured::before { animation: none; }
  .cascade > * { animation-duration: .01s; animation-delay: 0s; }
  .rv { transition: none; opacity: 1; transform: none; }
  .gal figure img, .tier__capsule, .tier__lid, .tier__base, .tier__hint { transition: none; }
  .tier__lid { animation: none; }
  .pack__track { scroll-behavior: auto; }
  /* machine states still switch (feedback stays), spatial theatre stops */
  .machine__coin, [data-state] .machine__coin, .machine__knob::after,
  [data-state="turning"] .machine__knob-face, [data-state="turning"] .dome-wrap,
  [data-state="turning"] .capsule, .machine__prize { animation: none; }
  .machine__flap, .machine__prize-shell, .machine__prize-name,
  .machine__knob-face, .machine__prize-ball::after { transition: none; }
  /* armed feedback stays: a still gold ring instead of the ping */
  [data-state="armed"] .machine__knob::after { opacity: .9; transform: none; }
}
