/* NUTRO — stage site */
@property --bright { syntax: '<color>'; inherits: true; initial-value: #8fcc1c; }
@property --deep   { syntax: '<color>'; inherits: true; initial-value: #1a3004; }
@property --glow   { syntax: '<color>'; inherits: true; initial-value: #c8ff5c; }

:root {
  --vel: 0; --film: 0;
  --bright: #8fcc1c; --deep: #1a3004; --glow: #c8ff5c;
  --hero: 1; --flood: 0; --smoke: 0; --after: 0; --say: 0; --dive: 0; --line: 0;
  /* Headlines match the NUTRO wordmark: Futura (built into Apple devices), Jost as the free web match. */
  --display: 'Futura PT', Futura, 'Jost', 'Century Gothic', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  transition: --bright .9s ease, --deep .9s ease, --glow .9s ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0; background: #050505; color: #fff; font-family: var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.micro { font-size: 11px; letter-spacing: .2em; font-weight: 500; opacity: .75; }

/* ---------- Backdrop ---------- */
.bg { position: fixed; inset: 0; pointer-events: none; }
.bg-studio {
  z-index: 0;
  background:
    radial-gradient(60% 40% at 50% 0%, #1b1b1d 0%, transparent 70%),
    linear-gradient(180deg, #040404 0%, #0a0a0b 40%, #1d1b1c 55%, #5c5759 67%, #b9b3b5 82%, #d6d1d3 100%);
}
.bg-studio::after { /* the dark "after" state used by the FAQ / join / footer */
  content: ''; position: absolute; inset: 0; opacity: var(--after);
  background: linear-gradient(180deg, #040404 0%, #09090a 55%, #2b282a 88%, #474244 100%);
}
.bg-flood {
  z-index: 0; opacity: var(--flood);
  background:
    radial-gradient(70% 30% at 50% 74%, color-mix(in srgb, var(--glow) 55%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--deep) 0%, color-mix(in srgb, var(--bright) 55%, var(--deep)) 38%, var(--bright) 66%, color-mix(in srgb, var(--bright) 82%, #fff) 71%, var(--bright) 80%, color-mix(in srgb, var(--bright) 80%, var(--deep)) 100%);
}
.bg-smoke { z-index: 0; opacity: var(--smoke); overflow: hidden; filter: blur(60px); }
.bg-smoke i {
  position: absolute; width: 60vmax; height: 40vmax; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 70%, #fff) 0%, transparent 100%);
  opacity: .55; animation: drift 18s ease-in-out infinite alternate;
}
.bg-smoke i:nth-child(1) { left: -15vmax; top: -10vmax; }
.bg-smoke i:nth-child(2) { right: -20vmax; top: 10vh; animation-duration: 23s; animation-delay: -6s; }
.bg-smoke i:nth-child(3) { left: 10vw; bottom: -20vmax; animation-duration: 27s; animation-delay: -12s; background: radial-gradient(closest-side, var(--deep) 0%, transparent 100%); opacity: .7; }
.bg-smoke i:nth-child(4) { right: 0; bottom: -10vmax; animation-duration: 21s; animation-delay: -3s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vw, 6vh) scale(1.25); } }
.bg-floorglow {
  z-index: 0; opacity: var(--hero);
  background:
    radial-gradient(16% 5% at 50% 66%, color-mix(in srgb, var(--glow) 75%, transparent) 0%, transparent 100%),
    radial-gradient(36% 10% at 50% 72%, color-mix(in srgb, var(--glow) 30%, transparent) 0%, transparent 100%);
  mix-blend-mode: screen;
}

/* Statement words sit behind the can */
/* Filmed spin: fades in over the 3D stage in the statement section */
.film { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: var(--film); background: #000; }
.film.off { visibility: hidden; }
.film video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(calc(1.06 - var(--film) * .06)); }
.film::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.45) 100%); }
.statement {
  position: fixed; inset: 0; z-index: 4; mix-blend-mode: overlay; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(56px, 10vw, 180px); line-height: .95; letter-spacing: .03em;
  color: rgba(255,255,255,.34); opacity: var(--say);
  transform: scale(calc(1.15 - var(--say) * .15)); filter: blur(calc((1 - var(--say)) * 14px));
}
.statement span { white-space: nowrap; }
.statement span:last-child { margin-left: 0; }

.fx-vignette { position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 42%, transparent 52%, rgba(0,0,0,.5) 100%); }
.fx-grain { position: fixed; inset: -60%; z-index: 7; pointer-events: none; opacity: .11; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 17% { transform: translate(-4%, 3%); } 33% { transform: translate(3%, -5%); } 50% { transform: translate(-6%, -2%); } 67% { transform: translate(5%, 4%); } 83% { transform: translate(-2%, 6%); } 100% { transform: translate(0, 0); } }
.fallback { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: max(var(--hero), var(--flood)); }
.fallback img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no3d #stage { display: none; }
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none; display: block; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 50; background: #050505;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity .9s ease, visibility .9s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-logo { width: 150px; }
.loader-logo svg { display: block; width: 100%; }
.loader-bar { width: 150px; height: 2px; background: #222; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--load, .05)); transition: transform .4s ease; }

/* ---------- Header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px clamp(18px, 3vw, 40px); pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { width: 112px; display: block; }
.brand svg { display: block; width: 100%; filter: drop-shadow(0 2px 12px rgba(0,0,0,.35)); }
.sound { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .18em; justify-self: start; }
.sound b { font-weight: 700; }
.sound em { font-style: normal; opacity: .6; }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.bars i { width: 2px; height: 3px; background: #fff; border-radius: 1px; transition: height .3s; }
.sound[aria-pressed="true"] .bars i { animation: eq .9s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.top-right { justify-self: end; display: flex; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 18px;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .18em; transition: background .25s, color .25s, transform .25s;
}
.pill.ghost { border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255,255,255,.04); }
.pill.ghost:hover { background: #fff; color: #050505; }
.pill.solid { background: #fff; color: #050505; }
.pill.solid:hover { transform: translateY(-1px); background: var(--glow); }

.menu {
  position: fixed; inset: 0; z-index: 19; background: rgba(5,5,5,.86); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 8vw; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu a { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.12; letter-spacing: .04em; text-transform: uppercase; width: max-content; transition: color .2s, transform .3s; }
.menu a:hover { color: var(--glow); transform: translateX(12px); }
.menu p { margin: 40px 0 0; font-size: 12px; letter-spacing: .16em; opacity: .6; text-transform: uppercase; }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.hud section { position: absolute; inset: 0; }
.hud button { pointer-events: auto; }

.hero-ui { opacity: var(--hero); visibility: visible; }
.hero-ui.off { visibility: hidden; }
.arrow {
  position: absolute; top: 37%; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, border-color .2s, transform .2s;
}
.arrow svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.arrow:active { transform: scale(.94); }
.prev { left: calc(50% - var(--arrow-gap, 200px) - 44px); }
.next { left: calc(50% + var(--arrow-gap, 200px)); }
.hero-name { position: absolute; left: 50%; top: 76.5%; transform: translateX(-50%); text-align: center; width: min(640px, 92vw); }
.hero-kicker { display: block; font-size: 10px; letter-spacing: .3em; font-weight: 500; color: #1a1819; opacity: .7; margin-bottom: 8px; }
.hero-name h1 {
  margin: 0; font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(28px, 3.2vw, 46px); line-height: 1.02; letter-spacing: .06em; color: #fff;
  text-shadow: 0 2px 22px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.4);
}
.hero-name h1.swap { animation: nameIn .7s cubic-bezier(.2,.8,.2,1); }
@keyframes nameIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.spectrum { position: relative; height: 3px; margin: 16px auto 0; width: 100%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #ff3d86 15%, #4dffc7 38%, #c8ff5c 62%, #ffa25c 85%, transparent); }
.spectrum i { position: absolute; left: 50%; top: 50%; width: 46%; height: 26px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(8px); opacity: .95; }
.spectrum::after { content: ''; position: absolute; inset: -18px 5%; background: inherit; filter: blur(16px); opacity: .55; }
.hero-hint { display: block; margin-top: 14px; font-size: 10px; letter-spacing: .28em; color: #1a1819; font-weight: 700; opacity: .75; }
.hero-count { position: absolute; left: clamp(18px, 3vw, 40px); bottom: 26px; font-size: 11px; letter-spacing: .2em; color: #1a1819; }
.hero-count b { font-weight: 700; }

/* Flavour dive */
.dive-ui { opacity: var(--dive); }
.dive-ui.off { visibility: hidden; }
.chapter { position: absolute; left: clamp(22px, 7vw, 120px); top: 50%; transform: translateY(-50%); width: min(430px, 40vw); }
.ch-kicker { display: block; font-size: 11px; letter-spacing: .22em; font-weight: 700; margin-bottom: 16px; opacity: .85; }
.ch-title {
  position: relative; display: inline-block; margin: 0 0 18px; font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 4vw, 64px); line-height: 1; text-transform: uppercase; letter-spacing: .04em;
}
.ch-title .wipe { position: absolute; left: -6px; right: -10px; top: 0; bottom: -4px; background: color-mix(in srgb, var(--glow) 55%, #fff); transform: scaleX(0); transform-origin: left; z-index: 1; }
.ch-title.swap .wipe { animation: wipe .9s cubic-bezier(.7,0,.2,1) forwards; }
.ch-title.swap .txt { animation: txtIn .9s steps(1) forwards; }
@keyframes wipe { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes txtIn { 0% { opacity: 1; } 47% { opacity: 0; } 50% { opacity: 1; } }
.ch-body { margin: 0; font-size: 15px; line-height: 1.55; max-width: 360px; opacity: .9; transition: opacity .35s, transform .35s; }
.ch-body.fade { opacity: 0; transform: translateY(6px); }
.rail { position: absolute; right: clamp(18px, 3.4vw, 52px); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.rail button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); display: grid; place-items: center; transition: background .3s, transform .3s; }
.rail svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.rail button.on { background: #fff; transform: scale(1.08); }
.rail button.on svg { stroke: var(--deep); }

/* Lineup */
.lineup-ui { opacity: var(--line); left: clamp(22px, 7vw, 120px) !important; top: 16vh !important; bottom: auto !important; right: auto !important; width: min(560px, 86vw); height: auto; }
.lineup-ui h2 { margin: 10px 0 14px; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5vw, 84px); line-height: 1; letter-spacing: .04em; }
.lineup-ui p { margin: 0; font-size: 14px; letter-spacing: .04em; opacity: .9; }

/* ---------- Content ---------- */
main { position: relative; z-index: 4; }
.journey { height: 840vh; }

.faq { position: relative; min-height: 100vh; padding: 18vh clamp(22px, 7vw, 120px) 14vh; display: grid; grid-template-columns: 1.05fr 1fr; gap: 6vw; align-items: start; }
.faq-head { position: sticky; top: 22vh; }
.faq-head p { margin: 22px 0 0; font-size: 15px; opacity: .7; max-width: 320px; }
.title-stack { position: relative; }
/* Ghost trails appear only while scrolling fast; at rest the headline stands alone. */
.title-stack .echo { position: absolute; left: 0; top: 0; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5);
  transform: translateY(calc(var(--i) * var(--vel) * 40px)); opacity: calc(var(--vel) * (.6 - var(--i) * .1)); pointer-events: none; }
.extrude {
  position: relative; margin: 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(38px, 5vw, 88px); line-height: 1; color: #fff; letter-spacing: .04em; white-space: nowrap;
}
.faq-list { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.16); }
.faq-list details { border-bottom: 1px solid rgba(255,255,255,.16); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 18px; font-weight: 500; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 24px; line-height: 1; font-weight: 400; transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--glow); }
.faq-list details p { margin: -6px 0 24px; max-width: 520px; font-size: 15px; line-height: 1.6; opacity: .75; }

.join { position: relative; height: 260vh; }
.join-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; perspective: 1400px; }
.card { position: relative; width: min(380px, 84vw); height: min(560px, 78vh); transform-style: preserve-3d; will-change: transform; }
.face {
  position: absolute; inset: 0; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #ecebeb 100%); color: #0a0a0a;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px;
  box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.06);
}
.face.back { transform: rotateY(180deg); }
.icon-circle { width: 52%; margin-bottom: 26px; }
.icon-circle svg { width: 100%; display: block; fill: none; stroke: #0a0a0a; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.icon-circle .dot { fill: #0a0a0a; stroke: none; }
.face h3 { margin: 10px 0 12px; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: .05em; }
.face .micro { opacity: .55; }
.face p { margin: 0 0 18px; font-size: 14px; line-height: 1.5; opacity: .7; max-width: 260px; }
.scroll-note { margin-top: 18px; font-size: 10px; letter-spacing: .24em; opacity: .5; font-weight: 700; }
.face.back .icon-circle { width: 34%; margin-bottom: 12px; }
#join-form { display: flex; width: 100%; gap: 6px; padding: 5px; border-radius: 999px; background: #0a0a0a; }
#join-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 0 14px; font: 500 14px var(--body); outline: none; }
#join-form input::placeholder { color: rgba(255,255,255,.5); }
#join-form button { height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; color: #0a0a0a; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.face small { margin-top: 14px; font-size: 11px; line-height: 1.4; opacity: .55; max-width: 270px; }
.face small.ok { opacity: .9; font-weight: 700; }

.end { position: relative; height: 100vh; }
.end-links { position: absolute; top: 50%; display: flex; flex-direction: column; gap: 12px; transform: translateY(-50%); }
.end-links.left { right: calc(50% + 140px); align-items: flex-end; }
.end-links.right { left: calc(50% + 140px); align-items: flex-start; }
.end-bottom { position: absolute; left: clamp(18px, 3vw, 40px); right: clamp(18px, 3vw, 40px); bottom: 26px; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; letter-spacing: .2em; opacity: .7; border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 820px) {
  .brand { width: 92px; }
  .sound b { display: none; }
  .pill { height: 30px; padding: 0 13px; }
  .chapter { left: 22px; right: 22px; width: auto; top: auto; bottom: 8vh; transform: none; }
  .ch-title { font-size: clamp(30px, 8.5vw, 46px); }
  .ch-body { font-size: 14px; }
  .rail { top: 22%; right: 14px; }
  .rail button { width: 32px; height: 32px; }
  .faq { grid-template-columns: 1fr; padding-top: 14vh; }
  .faq-head { position: relative; top: 0; }
  .end-links.left { right: calc(50% + 70px); }
  .end-links.right { left: calc(50% + 70px); }
  .end-bottom { flex-direction: column; gap: 6px; }
  .hero-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-smoke i, .fx-grain { animation: none; }
}
