/* ── BYOND coming soon — cinematic system ─────────────────────────────
   Fonts: Kiona (display) · Tall Films Expanded (credits) · Geist Mono (HUD)
   Palette: #050c0d teal-black ground · #e6f1ef ice text · #46e0cf portal accent
--------------------------------------------------------------------- */

@font-face {
  font-family: 'kiona';
  src: url('../fonts/kiona-regular-webfont.woff2') format('woff2'),
       url('../fonts/kiona-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'tall_films';
  src: url('../fonts/tall_films_expanded-webfont.woff2') format('woff2'),
       url('../fonts/tall_films_expanded-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ferrite_core';
  src: url('../fonts/ferritecore-regular-webfont.woff2') format('woff2'),
       url('../fonts/ferritecore-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::after,
*::before { box-sizing: border-box; }

/* ── Viewport foundation ──────────────────────────────────────────────
   Every fluid size on this page resolves through these. js/viewport.js
   overwrites them with the measured viewport in pixels; the values below
   are the pre-script (and no-script) fallback, so nothing here depends on
   the engine supporting dvh/svh — which Fire TV Silk and older Chromium
   builds do not. --app-h is the honest usable height in every browser.
--------------------------------------------------------------------- */
:root {
  --vw: 1vw;
  --vh: 1vh;
  --vmin: 1vmin;
  --vmax: 1vmax;
  --app-w: 100vw;
  --app-h: 100vh;

  /* HUD frame offsets. Large displays are usually TVs and projectors, where
     3-5% of every edge can be lost to overscan, so the frame and its corner
     labels are held further in there (see the min-width rule below). */
  --frame-inset: 1.25rem;
  --hud-x: 2.6rem;
  --hud-y: 2.4rem;

  font-size: 14px;
}

html {
  /* TV and mobile Chromium (Silk included) "boost" text on pages it judges
     to be desktop-width, which silently inflates every rem in the design.
     Opt out so the sizes below are the sizes that render. */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Overscan allowance: hold the frame and its corner labels further in on
   large displays, and scale that inset with the screen's short axis. */
@media (min-width: 1600px) {
  :root { --frame-inset: 2.6vmin; --hud-x: 4.5vmin; --hud-y: 4vmin; }
}

/* Base size steps up only on displays that are large on BOTH axes, so
   rem-sized chrome (HUD, buttons, credits) stays legible at TV viewing
   distance without a short, wide viewport ever triggering the bump.
   1920x1080 deliberately sits below the first step, so a 1080p screen
   renders at exactly the size it always has. */
@media (min-width: 2000px) and (min-height: 1150px) { :root { font-size: 15px; } }
@media (min-width: 2800px) and (min-height: 1500px) { :root { font-size: 17px; } }
@media (min-width: 3600px) and (min-height: 1900px) { :root { font-size: 20px; } }

/* Short viewports — landscape phones, split screens, TVs in overscan modes.
   Pull the base down so the vertical rhythm compresses with the type. */
@media (max-height: 620px) { :root { font-size: 13px; } }
@media (max-height: 460px) { :root { font-size: 12px; } }

body {
  margin: 0;
  /* Portal palette — the hero's teal-black space world, carried site-wide.
     Ground biased teal (not pure black) so it reads as one continuous field
     with the WebGL portal; gold kept as the sharp emphasis accent. */
  --color-bg: #050c0d;
  --color-text: #e6f1ef;
  --color-portal: #5ad9cb;
  --color-portal-deep: #0e2a2b;
  /* Emphasis accent — a brighter, lit portal teal that reads as energy
     against the ice headings. This is now the site-wide accent. */
  --color-accent: #46e0cf;
  /* Legacy accent name, unified to the teal accent so every gate / intro /
     HUD element that referenced gold now renders in the portal blue. */
  --color-gold: var(--color-accent);
  --color-muted: #6f8480;
  --f-display: 'Marcellus', 'Times New Roman', serif;
  --f-hero: 'ferrite_core', 'Michroma', sans-serif;
  --f-body: 'Jost', 'Helvetica Neue', sans-serif;
  --f-credits: 'tall_films', 'Arial Narrow', sans-serif;
  --f-mono: 'Geist Mono', 'Courier New', monospace;
  --anim-time: 3s;
  --anim-delay-first: 1s;
  --anim-delay-second: calc(var(--anim-delay-first) + var(--anim-time));
  --anim-time-total: calc(var(--anim-time) + var(--anim-delay-first)/3 + var(--anim-delay-second));
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: var(--f-mono);
  overflow: hidden;
}

canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100% !important;
  height: 100% !important;
}

.hidden {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ── Loading ── */
.p5_loading {
  background: var(--color-bg);
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.p5_loading__inner {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-gold);
  opacity: .5;
  animation: loaderAnim 0.9s cubic-bezier(0.32, 0.72, 0, 1) infinite alternate forwards;
}
@keyframes loaderAnim {
  to { opacity: 1; transform: rotate(45deg) scale(0.6); }
}

/* ── Buttons ── */
.button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--color-muted);
  cursor: pointer;
  font-family: var(--f-mono);
}
.button:hover,
.button:focus { outline: none; color: var(--color-text); }
.button:focus-visible { outline: 1px solid var(--color-gold); outline-offset: 4px; }

.button--box {
  pointer-events: auto;
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 1rem 3.5rem;
  margin: 2rem 0 0;
  font-size: 0.86rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .4s cubic-bezier(0.32, 0.72, 0, 1),
              color .4s cubic-bezier(0.32, 0.72, 0, 1),
              letter-spacing .4s cubic-bezier(0.32, 0.72, 0, 1);
}
.button--box:hover,
.button--box:focus {
  background: var(--color-gold);
  color: var(--color-bg);
  letter-spacing: .4em;
}
.button--box:active { transform: scale(.96); }

/* Accent variant — teal to match the portal palette (waitlist + apply CTAs).
   Fills solid on hover with a soft glow so the primary action reads as lit. */
.button--accent {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.button--accent:hover,
.button--accent:focus {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 0 34px rgba(70, 224, 207, .35);
}

/* ── HUD frame ── */
.hud {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
  text-transform: uppercase;
}
.hud::before {
  content: '';
  position: absolute;
  inset: calc(var(--frame-inset) + env(safe-area-inset-top, 0px))
         calc(var(--frame-inset) + env(safe-area-inset-right, 0px))
         calc(var(--frame-inset) + env(safe-area-inset-bottom, 0px))
         calc(var(--frame-inset) + env(safe-area-inset-left, 0px));
  border: 1px solid rgba(242, 239, 233, .12);
  pointer-events: none;
}
.hud__brand {
  position: absolute;
  top: calc(var(--hud-y) + env(safe-area-inset-top, 0px));
  left: calc(var(--hud-x) + env(safe-area-inset-left, 0px));
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: .24em;
  color: var(--color-text);
  text-decoration: none;
  pointer-events: auto;
}
.hud__brand span { color: var(--color-gold); }
.hud__sound {
  position: absolute;
  top: calc(var(--hud-y) - .1rem + env(safe-area-inset-top, 0px));
  right: calc(var(--hud-x) + env(safe-area-inset-right, 0px));
  pointer-events: auto;
}
.toggle__icon {
  position: relative;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto;
  fill: currentColor;
}
.toggle__icon--off { display: none; }
.toggle--on .toggle__icon--on { display: none; }
.toggle--on .toggle__icon--off { display: block; }
.start-anim .toggle { pointer-events: auto; }

.hud__corner {
  position: absolute;
  bottom: calc(var(--hud-y) + env(safe-area-inset-bottom, 0px));
  font-size: 0.72rem;
  letter-spacing: .3em;
  color: var(--color-muted);
}
.hud__corner--bl { left: calc(var(--hud-x) + env(safe-area-inset-left, 0px)); }
.hud__corner--br { right: calc(var(--hud-x) + env(safe-area-inset-right, 0px)); }
.hud__pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 .35em;
  background: var(--color-gold);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: .25; }
  50% { opacity: 1; }
}

/* ── Hero stage — sticky; parallaxes up and fades into the portal field ── */
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: var(--app-h);
  z-index: 1000;
  will-change: transform, opacity;
}
/* The background layers (portal image + scrim) dissolve toward their bottom
   edge so the hero never meets the atmosphere with a hard line — it melts
   into the same teal-space field below it. .content (title/credits/scroll)
   is a sibling above these and stays fully opaque. */
.hero-stage canvas,
.hero-scrim {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
}

/* ── Hero scrim — teal-black to match the atmosphere it fades into ── */
.hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: var(--app-h);
  z-index: 1100;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 12, 13, .40) 0%,
    rgba(5, 12, 13, .12) 30%,
    rgba(5, 12, 13, .34) 55%,
    rgba(5, 12, 13, .74) 80%,
    rgba(5, 12, 13, .92) 100%
  );
}

/* ── Reveal content ── */
.content {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 4rem;
  width: 100%;
  max-width: var(--app-w);
  height: 100vh;
  height: var(--app-h);
  position: relative;
  justify-content: flex-end;
  align-items: center;
  z-index: 1200;
  cursor: default;
  text-transform: uppercase;
  pointer-events: none;
  text-align: center;
}
.content a { pointer-events: auto; }

.content__subtitle {
  font-family: var(--f-mono);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: .6em;
  text-indent: .6em;
  color: var(--color-gold);
  margin: 0 0 1.2rem;
}
.content__title {
  font-family: var(--f-hero);
  /* Bound on BOTH axes: a width share, handing over to a height share once
     the screen is wide enough for height to be the tighter limit (see the
     aspect-ratio rule below). Written this way rather than with min()
     because Amazon Silk on Fire TV is an older Chromium that has neither
     min() nor clamp() — there, a min() would drop the whole declaration and
     the wordmark would fall back to something that overruns the screen.
     vw/vh and min-aspect-ratio are supported everywhere.
     19vw x 4.725em/char = 90vw, so the width path cannot overflow either. */
  font-size: 19vw;
  font-size: calc(var(--fit, 1) * 19vw);
  font-weight: normal;
  letter-spacing: .06em;
  text-indent: .06em;
  line-height: .95;
  margin: 0;
  color: var(--color-text);
  text-shadow: 0 0 80px rgba(194, 169, 106, .35);
}
/* 19vw and 27vh are equal at w/h = 27/19 = 1.421, so the size is continuous
   across the handover — no jump, exactly like min(19vw, 27vh). */
@media (min-aspect-ratio: 1421/1000) {
  .content__title {
    font-size: 27vh;
    font-size: calc(var(--fit, 1) * 27vh);
  }
}
/* Movie-poster billing block: condensed italic caps, connectors smaller */
.content__credits {
  font-family: var(--f-body);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: .03em;
  line-height: 1.55;
  margin: 2.4rem 0 0;
  max-width: 48rem;
  color: var(--color-text);
  text-wrap: balance;
}
.content__credits small {
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: .05em;
  padding: 0 .15em;
}
.content__credits--tag {
  font-size: 1.15rem;
  margin-top: 1rem;
  max-width: 54rem;
  letter-spacing: .14em;
}

.billing {
  display: flex;
  gap: 3.2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 2.8rem;
}
.billing__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
}
.billing__name {
  font-family: var(--f-credits);
  font-size: 1.5rem;
  letter-spacing: .14em;
  text-indent: .14em;
  line-height: 1;
  white-space: nowrap;
}
.billing__org {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--color-gold);
}

.content__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.4rem;
}
.content__coming {
  font-size: 0.72rem;
  letter-spacing: .5em;
  text-indent: .5em;
  color: var(--color-muted);
}

/* Content rises after the intro cards complete */
.js .content > * { opacity: 0; }
.start-anim .content > * {
  animation: riseIn 1.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: calc(var(--anim-time-total) + .4s);
}
.start-anim .content__title { animation-delay: calc(var(--anim-time-total) + .55s); }
.start-anim .content__credits { animation-delay: calc(var(--anim-time-total) + .75s); }
.start-anim .content__credits--tag {
  font-size: 1.15rem;
  margin-top: 1rem;
  max-width: 54rem;
  letter-spacing: .14em;
}

.billing {
  display: flex;
  gap: 3.2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 2.8rem;
}
.billing__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
}
.billing__name {
  font-family: var(--f-credits);
  font-size: 1.5rem;
  letter-spacing: .14em;
  text-indent: .14em;
  line-height: 1;
  white-space: nowrap;
}
.billing__org {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--color-gold);
}

.start-anim .content__scroll { animation-delay: calc(var(--anim-time-total) + .95s); }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Screens (gate + intro cards) ── */
.screen {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--color-bg);
  z-index: 1600;
}
.screen--grid {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
  justify-items: center;
  align-items: center;
}
.screen--flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.start-anim .intro {
  animation: fadeOut 1s var(--anim-time-total) linear forwards;
}
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

.intro {
  text-transform: uppercase;
}
.intro__content {
  font-family: var(--f-display);
  /* Same two-axis bound as the wordmark; crossover at 19/15 = 1.267. */
  font-size: 15vw;
  font-size: calc(var(--fit, 1) * 15vw);
  letter-spacing: .06em;
  text-indent: .06em;
  line-height: 1.05;
  grid-area: 1 / 1 / 2 / 2;
  text-align: center;
  pointer-events: none;
  margin: 0;
  opacity: 0;
  padding: 0 8vw;
}
@media (min-aspect-ratio: 1267/1000) {
  .intro__content {
    font-size: 19vh;
    font-size: calc(var(--fit, 1) * 19vh);
  }
}
.intro__content-line {
  display: block;
  margin: 1.4rem 0;
}
.intro__content-line--small {
  font-family: var(--f-mono);
  font-size: clamp(0.9rem, 1.6vw, 1.5rem);
  letter-spacing: .5em;
  text-indent: .5em;
  color: var(--color-gold);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .intro__content-line--small {
    font-size: 0.78rem;
    letter-spacing: .28em;
    text-indent: .28em;
  }
}
.no-js .intro { display: none; }

.start-anim .intro__content {
  animation: fadeInOut var(--anim-time) var(--anim-delay-first) linear forwards;
}
.start-anim .intro__content:nth-child(2) {
  animation-delay: var(--anim-delay-second);
}
@keyframes fadeInOut {
  0%   { opacity: 0; transform: scale(1); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.04); pointer-events: none; }
}

/* ── Entry gate ── */
.action { z-index: 1700; text-transform: uppercase; }
/* The eyebrow line sets the lockup width; BETA's letters justify across
   the exact same width, so both lines always align edge to edge. */
.action__lockup {
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.action__title {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-display);
  font-size: 3rem;
  font-size: calc(1rem + 5.6 * var(--vmin));
  font-size: clamp(1.6rem, min(6.4vw, 11vh), 5rem);
  line-height: 1;
  margin-bottom: 1.7rem;
}
.action__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.92rem;
  letter-spacing: .5em;
  margin-right: -.5em; /* cancel trailing tracking so edges are flush */
  color: var(--color-gold);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .action__eyebrow { font-size: 0.7rem; letter-spacing: .34em; margin-right: -.34em; }
}
.action .button--box { pointer-events: auto; }
.action__noscript {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}
.start-anim .action {
  transition: opacity .5s;
  opacity: 0;
  pointer-events: none;
}
.start-anim .action .button--box { pointer-events: none; }

/* ── FX overlays ── */
.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.fx--vignette {
  z-index: 1300;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(3, 3, 3, .78) 100%);
}
.fx--grain {
  z-index: 1400;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 3%); }
}

/* ── Portal atmosphere — persistent space field behind the scroll site ── */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 8%, var(--color-portal-deep) 0%, transparent 55%),
    linear-gradient(to bottom, #061214 0%, var(--color-bg) 42%, #03080a 100%);
  will-change: transform;
}
/* Two soft teal light-wells echo the portal ring; the core sits high so it
   reads as the hero's glow continuing downward. */
.space-bg__glow {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
  filter: blur(60px);
  opacity: .5;
}
.space-bg__glow--core {
  top: -18vh;
  width: 90vw;
  height: 90vh;
  background: radial-gradient(circle, rgba(90, 217, 203, .18) 0%, rgba(90, 217, 203, .05) 38%, transparent 68%);
}
.space-bg__glow--rim {
  top: 60vh;
  width: 140vw;
  height: 120vh;
  opacity: .3;
  background: radial-gradient(circle, rgba(90, 217, 203, .10) 0%, transparent 60%);
}
.space-bg__stars {
  position: absolute;
  inset: -20% 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill='%23cdeee9'%3E%3Ccircle cx='30' cy='50' r='.7'/%3E%3Ccircle cx='120' cy='20' r='.5'/%3E%3Ccircle cx='210' cy='90' r='.8'/%3E%3Ccircle cx='300' cy='40' r='.5'/%3E%3Ccircle cx='380' cy='110' r='.7'/%3E%3Ccircle cx='70' cy='160' r='.6'/%3E%3Ccircle cx='260' cy='180' r='.5'/%3E%3Ccircle cx='170' cy='230' r='.8'/%3E%3Ccircle cx='350' cy='250' r='.6'/%3E%3Ccircle cx='40' cy='300' r='.7'/%3E%3Ccircle cx='140' cy='330' r='.5'/%3E%3Ccircle cx='250' cy='300' r='.6'/%3E%3Ccircle cx='390' cy='340' r='.8'/%3E%3Ccircle cx='90' cy='390' r='.6'/%3E%3Ccircle cx='300' cy='400' r='.5'/%3E%3Ccircle cx='200' cy='130' r='.4'/%3E%3Ccircle cx='20' cy='220' r='.5'/%3E%3Ccircle cx='330' cy='160' r='.5'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
  will-change: transform;
}

/* ── Scroll site ── */
body { overflow: hidden; }
body.can-scroll { overflow-y: auto; overflow-x: hidden; }
/* The hero stage scales to 1.12 as it recedes, so it hangs ~6% past each
   edge. `hidden` on the scroller only clips it visually — the box stays
   programmatically scrollable, and D-pad focus navigation on a TV remote
   will happily shove the whole page sideways into that dead space.
   `clip` cannot be scrolled at all, and unlike `hidden` it does not create
   a scroll container, so the sticky hero still sticks. It has to live on a
   non-scrolling ancestor: `clip` paired with `auto` on the same element is
   spec'd to fall back to `hidden`. */
@supports (overflow-x: clip) {
  main { overflow-x: clip; }
}
body.can-scroll::-webkit-scrollbar { width: 8px; }
body.can-scroll::-webkit-scrollbar-track { background: var(--color-bg); }
body.can-scroll::-webkit-scrollbar-thumb { background: #262319; }
body.can-scroll::-webkit-scrollbar-thumb:hover { background: var(--color-gold); }

.content__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  margin-top: 3rem;
  font-size: 0.6rem;
  letter-spacing: .5em;
  text-indent: .5em;
  color: var(--color-muted);
  text-transform: uppercase;
}
.content__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollDrop 2s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  transform-origin: top;
}
@keyframes scrollDrop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.page {
  position: relative;
  z-index: 1250;
  /* Transparent so the portal atmosphere (and the parallaxing hero above it)
     reads straight through the whole scroll site. */
  background: transparent;
}

/* Sections are even-rhythm stacks; alternating variants push the column to
   one edge so the eye zig-zags down the page. */
.sect {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;               /* even, tighter spacing between every block */
}
.sect > * { margin: 0; }     /* rhythm comes from the flex gap, not margins */

.sect--center { text-align: center; align-items: center; }
.sect--left  { align-items: flex-start; text-align: left; }
.sect--right { align-items: flex-end; text-align: right; }
.gold { color: var(--color-gold); }

/* The opener holds a full viewport so the hero parallax drifts behind the
   "Bitcoin for the rest of us" statement before the numbered points stack up. */
#opener { min-height: 100vh; min-height: var(--app-h); justify-content: center; }

/* The waitlist closes the page — hold a full viewport and center the CTA so
   the scroll ends on it rather than trailing off into a footer. The tagline
   above gets a matching top gap from js/site.js (balanceTagline). */
#waitlist { min-height: 100vh; min-height: var(--app-h); justify-content: center; }
/* Short closing copy, two authored lines — let each run on one line. */
#waitlist .body { max-width: none; }

.eyebrow2 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: .55em;
  text-transform: uppercase;
  color: var(--color-portal);
  text-shadow: 0 0 18px rgba(90, 217, 203, .45);
}
.sect h2 {
  font-family: var(--f-display);
  font-size: 3rem;
  font-size: calc(1.1rem + 5.4 * var(--vmin));
  font-size: clamp(1.9rem, min(6vw, 13vh), 5rem);
  font-weight: normal;
  letter-spacing: .04em;
  line-height: 1.16;
  text-transform: uppercase;
  max-width: 16ch;
  text-wrap: balance;
  color: var(--color-text);
  text-shadow: 0 0 42px rgba(90, 217, 203, .18);
}
.sect--right h2 { margin-left: auto; }
/* Content emphasis uses the lit portal teal, not gold. */
.sect h2 .gold,
.motto2 .gold { color: var(--color-accent); }
.sect h2 .gold { text-shadow: 0 0 34px rgba(70, 224, 207, .4); }

/* Line-masked heading reveals: each line clips its riser. The tiny bottom
   padding keeps descenders from shearing against the mask edge. */
.sect h2 .line {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.sect h2 .line-inner { display: block; will-change: transform; }
.body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.9;
  color: #b3c4c0;
  max-width: 40ch;
  text-wrap: pretty;
}
.sect--right .body { margin-left: auto; }
/* Lead line: the section's one-sentence hook, a third larger than the body
   and lit in the full text color so it reads before the paragraph. */
.lead {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-text);
}
.body--center { margin-left: auto; margin-right: auto; }
.sect__note {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: .12em;
  line-height: 2;
  color: var(--color-muted);
  max-width: 560px;
  margin: 3.5rem 0 0;
  padding-left: 1.4rem;
  border-left: 1px solid var(--color-gold);
  text-transform: uppercase;
}

/* Hairline-grid cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(242, 239, 233, .14);
  border: 1px solid rgba(242, 239, 233, .14);
  margin-top: 4rem;
}
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #050505;
  padding: 3rem 2.4rem 3.4rem;
  transition: background .6s cubic-bezier(0.32, 0.72, 0, 1);
}
.card:hover { background: #0b0a07; }
.card--gold { background: #0d0a04; }
.card--gold:hover { background: #121006; }
.card__num {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2rem;
}
.card__title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}
.card__desc {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.18rem;
  line-height: 1.8;
  color: #a39c90;
  margin: 0;
  text-wrap: pretty;
}

.motto2 {
  align-self: stretch;
  font-family: var(--f-display);
  font-size: 3rem;
  font-size: calc(1.1rem + 5.6 * var(--vmin));
  font-size: clamp(1.8rem, min(6.2vw, 13vh), 5.2rem);
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  color: var(--color-text);
  text-shadow: 0 0 50px rgba(90, 217, 203, .22);
  text-wrap: balance;
  will-change: letter-spacing, opacity, filter;
}

/* Tagline scrub */
.scrub {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3rem;
}
.scrub__text {
  font-family: var(--f-display);
  /* Two-line statement, one line per sentence half. Each line is ~12em
     wide, so the vw cap keeps the longer one inside the gutters. */
  font-size: 2.6rem;
  font-size: calc(1rem + 5 * var(--vmin));
  font-size: clamp(1rem, min(6.45vw, 12vh), 5rem);
  letter-spacing: .02em;
  line-height: 1.24;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}
.scrub__line { display: block; white-space: nowrap; }
.scrub__text .w { color: rgba(230, 241, 239, .14); }

/* Membership */
.chips { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 5rem; }
.chip {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #b6afa3;
  border: 1px solid rgba(242, 239, 233, .18);
  padding: .8rem 1.5rem;
}
.rows { border-top: 1px solid rgba(242, 239, 233, .14); }
.row {
  display: grid;
  grid-template-columns: 5rem 1fr 1.2fr;
  gap: 2.5rem;
  align-items: baseline;
  padding: 2.6rem 0;
  border-bottom: 1px solid rgba(242, 239, 233, .14);
  transition: padding-left .6s cubic-bezier(0.32, 0.72, 0, 1);
}
.row:hover { padding-left: 1.2rem; }
.row__num {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: .3em;
  color: var(--color-gold);
}
.row__title {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}
.row__desc {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.18rem;
  line-height: 1.8;
  color: #a39c90;
  margin: 0;
}

@media (max-width: 900px) {
  .content__title {
    font-size: 19vw;
    font-size: calc(var(--fit, 1) * 19vw);
  }
  .content__credits { font-size: 0.9rem; max-width: 88%; }
  .sect { padding: 6.5rem 1.8rem; }
  .scrub { min-height: auto; padding: 3rem 1.8rem; }
  .cards, .cards--4 { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 3rem 1fr; }
  .row__desc { grid-column: 2; }
}
@media (max-width: 560px) {
  .cards, .cards--4 { grid-template-columns: 1fr; }
}

/* ── Section type scale (tablet and up) ──────────────────────────────
   One base, three tiers, built on thirds:
     body       --t-body, fluid off the SHORT axis so TVs and short
                windows scale with it
     display    3x body (section headings, the opener motto, the tagline);
                each keeps its own viewport cap so long lines still fit
     eyebrow    1/2 body (mono caps; the tracking carries its presence)
   The body column spans a third of the screen (never under ~34ch), and
   section rhythm (gaps, vertical padding) is set in multiples of the body
   size so spacing grows with the type. Phones keep their own sizes below.
--------------------------------------------------------------------- */
@media (min-width: 701px) {
  :root { --t-body: clamp(1.5rem, calc(.55rem + min(1.2vw, 2.1vh)), 2.2rem); }
  .sect {
    max-width: max(1180px, 80vw);
    padding-top: calc(var(--t-body) * 5);
    padding-bottom: calc(var(--t-body) * 5);
    gap: var(--t-body);
  }
  .sect .body {
    font-size: var(--t-body);
    line-height: 1.75;
    max-width: max(calc(100vw / 3), 34ch);
  }
  .sect .lead {
    font-size: calc(var(--t-body) * 4 / 3);
    line-height: 1.45;
    max-width: max(40vw, 28ch);
  }
  .sect h2 { font-size: min(calc(var(--t-body) * 3), 6.4vw, 14vh); }
  .motto2 { font-size: min(calc(var(--t-body) * 3), 6.2vw, 13vh); }
  .scrub__text { font-size: min(calc(var(--t-body) * 3), 6.45vw, 12vh); }
  .sect .eyebrow2 { font-size: calc(var(--t-body) * .5); letter-spacing: .5em; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .fx--grain { animation: none; }
  .hud__pulse { animation: none; opacity: 1; }
  body {
    --anim-time: .2s;
    --anim-delay-first: .1s;
  }
  /* No hero parallax to fade the portal out, so give the sections a solid
     ground for guaranteed legibility; the atmosphere still frames the hero. */
  .page { background: var(--color-bg); }
}

/* ── Small screens ── */
@media (max-width: 700px) {
  :root { --frame-inset: 1rem; --hud-x: 2.2rem; --hud-y: 2.2rem; }
  .intro__content {
    font-size: 18vw;
    font-size: calc(var(--fit, 1) * 18vw);
  }
  .hud__brand { font-size: 1rem; }
  .hud__corner { font-size: 0.6rem; }
  .content { padding-bottom: 4.5rem; }
  .content__subtitle { font-size: 0.72rem; margin-bottom: 0.8rem; }
  .content__title {
    font-size: 17vw;
    font-size: calc(var(--fit, 1) * 17vw);
  }
  .content__credits {
    font-size: 0.64rem;
    line-height: 1.8;
    letter-spacing: .04em;
    margin-top: 1.8rem;
    max-width: 88%;
  }
  .content__scroll { margin-top: 2rem; }
  .button--box { padding: 0.9rem 2.4rem; }
  /* Scrub tagline: run large and let each line wrap, balanced. */
  .scrub__text {
    font-size: 2.2rem;
    font-size: clamp(1.6rem, min(8.4vw, 11vh), 2.6rem);
    line-height: 1.2;
  }
  .scrub__line { white-space: normal; text-wrap: balance; }
  .scrub__line + .scrub__line { margin-top: .15em; }
  /* Alternating sections keep their heading offset but read body copy
     naturally at full width on narrow screens. */
  .sect h2 { max-width: 100%; }
  .sect .body { max-width: 100%; }
}

/* Two-axis handover for the narrower breakpoints, mirroring the base rule.
   Crossovers: 26/19 = 1.368 and 22/17 = 1.294 and 18/18 = 1.0. */
@media (max-width: 900px) and (min-aspect-ratio: 1368/1000) {
  .content__title {
    font-size: 26vh;
    font-size: calc(var(--fit, 1) * 26vh);
  }
}
@media (max-width: 700px) and (min-aspect-ratio: 1294/1000) {
  .content__title {
    font-size: 22vh;
    font-size: calc(var(--fit, 1) * 22vh);
  }
}
@media (max-width: 700px) and (min-aspect-ratio: 1/1) {
  .intro__content {
    font-size: 18vh;
    font-size: calc(var(--fit, 1) * 18vh);
  }
}

/* ── Short-viewport rhythm ──────────────────────────────────────────
   Landscape phones, split-screen windows, ultrawide monitors and TVs in
   letterboxed or overscanned modes. The type above already scales off the
   short axis; this compresses the vertical rhythm around it so the hero
   block still lands inside the screen instead of climbing off the top.
--------------------------------------------------------------------- */
@media (max-height: 620px) {
  .content { padding-bottom: 2rem; }
  .content__subtitle { margin-bottom: 0.5rem; letter-spacing: .4em; text-indent: .4em; }
  .content__credits {
    font-size: 0.7rem;
    line-height: 1.55;
    margin-top: 1rem;
    max-width: 64rem;
  }
  .content__scroll { margin-top: 1rem; gap: .4rem; }
  .content__scroll-line { height: 22px; }
  .intro__content-line { margin: .5rem 0; }
  .sect { padding: 4.5rem 3rem; gap: 1rem; }
  .scrub { padding: 2.5rem 2rem; }
  .action__title { margin-bottom: 1rem; }
  .action__lockup { margin-bottom: .4rem; }
  .button--box { padding: .7rem 2.2rem; margin-top: 1.2rem; }
}

/* Below this there is genuinely no room for the billing block alongside the
   wordmark; the wordmark and the scroll cue are what have to survive. */
@media (max-height: 440px) {
  .content__credits { display: none; }
  .content__scroll { margin-top: .6rem; }
  .content__scroll-line { height: 14px; }
  .sect { padding: 3.5rem 2rem; }
}

/* ── Legacy engine fallbacks ──────────────────────────────────────────
   Fire TV Silk and other older Chromium builds ship flexbox without `gap`.
   Without this the vertical rhythm of every section collapses to zero.
--------------------------------------------------------------------- */
@supports not (gap: 1rem) {
  .sect > * + * { margin-top: 1.5rem; }
  .content__scroll > * + * { margin-top: .8rem; }
  .chips > * { margin: 0 .8rem .8rem 0; }
  .billing > * { margin: 0 3.2rem 0 0; }
}

