/* =============================================================================
   $FUPA — "Obsidian Stage"
   A calm cinematic black gallery with Swiss structural discipline.
   Strictly monochrome: every value sits on the R=G=B axis. Zero hue.
   ============================================================================= */

/* ----------------------------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------------------------- */
:root {
  /* Backgrounds — never pure #000 as the page base (true black is for vignette/grain only) */
  --bg-0: #0A0A0B;   /* page base — near-black ink */
  --bg-1: #0E0E10;   /* raised sections / cards / pillars */
  --bg-2: #141416;   /* hover / inset wells */
  --bg-3: #1A1A1D;   /* deepest card-hover / chips */

  /* Text — never pure #FFF (it vibrates against dark) */
  --text-0: #F5F5F4; /* display, headlines, wordmark */
  --text-1: #C9C9C6; /* body copy */
  --text-2: #8A8A86; /* labels, eyebrows, captions, the '$' prefix */
  --text-3: #5A5A57; /* fine print, ghost numerals, trust seals */

  /* Hairlines — translucent white so they read on any layer */
  --line-0: rgba(245, 245, 244, 0.08); /* default dividers */
  --line-1: rgba(245, 245, 244, 0.14); /* card / tile borders */
  --line-2: rgba(245, 245, 244, 0.24); /* hover / focus borders */

  /* The only pure-white fields: primary button + community invert */
  --accent-bg: #FFFFFF;
  --accent-text: #0A0A0B;

  /* Light, never colored */
  --halo: rgba(255, 255, 255, 0.14);
  --glow-ambient: rgba(255, 255, 255, 0.045);
  --glow-cta: rgba(255, 255, 255, 0.16);
  --grain-opacity: 0.035;

  /* Type families */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  /* 8pt spacing scale */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px; --s9: 180px;

  /* Layout */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius-card: 14px;
  --radius-btn: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-med: 250ms;
}

/* ----------------------------------------------------------------------------
   2. RESET / BASE
   ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'tnum' 1; /* tabular numerals everywhere — stable data */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin: 0; }

strong { color: var(--text-0); font-weight: 600; }

::selection { background: var(--text-0); color: var(--bg-0); }

/* Visible, on-brand keyboard focus */
:focus-visible {
  outline: 1px solid var(--line-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------------------------
   3. ATMOSPHERE — grain + vignette (fixed, non-interactive)
   ---------------------------------------------------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  /* Tiling SVG fractal noise so black surfaces read as printed ink, not flat pixels */
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.vignette {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Keep real content above the atmosphere */
.nav, main, .footer { position: relative; z-index: 2; }

/* ----------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   ---------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Sections separated by full-bleed hairlines (one continuous ruled sheet) */
.section {
  position: relative;
  padding-block: clamp(96px, 14vh, 160px);
  border-top: 1px solid var(--line-0);
}

.section--center { text-align: center; }

/* Eyebrow index — the Swiss device */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--s4);
}
.eyebrow--center { display: inline-block; }

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-0);
  max-width: 22ch;
  margin-bottom: var(--s6);
}
.section__title--center { max-width: none; margin-inline: auto; }

/* Ambient white glows (faint, never colored) */
.ambient {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: min(900px, 90vw); height: 420px;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, var(--glow-ambient), transparent 70%);
}
.ambient--top { top: 0; }
.ambient--center { top: 50%; transform: translate(-50%, -50%); }
.section > .wrap { position: relative; z-index: 1; }

/* ----------------------------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out),
              background-color var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              color var(--t-med) var(--ease-out);
}

.btn--primary {
  background: var(--accent-bg);
  color: var(--accent-text);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--glow-cta);
}

.btn--ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--line-1);
}
.btn--ghost:hover {
  color: var(--text-0);
  border-color: var(--line-2);
  background: var(--bg-2);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------------------
   6. NAV
   ---------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 68px;
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              backdrop-filter var(--t-med) var(--ease-out);
}
/* Solidifies once the hero scrolls out (toggled in JS) */
.nav.is-solid {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom-color: var(--line-0);
}

.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo { width: 28px; height: 28px; }
.nav__word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.02em; color: var(--text-0);
}
.nav__links { display: flex; gap: var(--s4); }
.nav__links a {
  font-size: 0.9rem; color: var(--text-2);
  transition: color var(--t-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--text-0); }
.nav__buy { padding: 9px 20px; }

/* ----------------------------------------------------------------------------
   7. HERO
   ---------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--pad) 96px;
  overflow: hidden;
}

/* Single soft white halo behind the logo */
.hero__halo {
  position: absolute; top: 38%; left: 50%;
  width: 640px; height: 640px; max-width: 90vw; max-height: 90vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--halo), transparent 60%);
  pointer-events: none;
  will-change: transform, opacity;
}

.hero__stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.hero__logo {
  width: clamp(112px, 14vw, 150px); height: auto;
  /* The logo emits its own light */
  filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.22));
  will-change: transform;
}

.hero__word {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4.5rem, 12vw, 9rem);
  letter-spacing: -0.04em; line-height: 0.92;
  color: var(--text-0);
  margin-top: var(--s4);
}
.hero__sign { color: var(--text-2); } /* dimmer ticker '$' */

.hero__tagline {
  margin-top: var(--s3);
  font-size: 1.125rem; letter-spacing: 0.01em;
  color: var(--text-1);
}

.hero__cta {
  margin-top: var(--s5);
  display: flex; flex-wrap: wrap; gap: var(--s2);
  justify-content: center;
}

/* Scroll cue */
.scrollcue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 1;
}
.scrollcue__line {
  position: relative; display: block;
  width: 1px; height: 32px; background: var(--line-1); overflow: hidden;
}
.scrollcue__seg {
  position: absolute; top: -8px; left: 0;
  width: 1px; height: 8px; background: var(--text-0);
  animation: scrollSeg 2s var(--ease-out) infinite;
}
.scrollcue__label {
  font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3);
}
@keyframes scrollSeg {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}

/* ----------------------------------------------------------------------------
   8. PILLARS — three boxes cut from one hairline block
   ---------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;                      /* the gap IS the shared hairline... */
  background: var(--line-0);     /* ...revealing this backing line */
  border: 1px solid var(--line-0);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.pillar {
  position: relative;
  background: var(--bg-1);
  padding: 40px;
  transition: background-color var(--t-med) var(--ease-out);
}
.pillar::before { /* top rule that draws in on hover */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line-2); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.pillar:hover { background: var(--bg-2); }
.pillar:hover::before { transform: scaleX(1); }

.pillar__num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.5rem;
  color: var(--text-3); line-height: 1;
  transition: color var(--t-med) var(--ease-out);
}
.pillar:hover .pillar__num { color: var(--text-2); }

.pillar__title {
  font-family: var(--font-display); font-weight: 500; font-size: 1.375rem;
  letter-spacing: -0.01em; color: var(--text-0);
  margin-top: var(--s3); padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line-0);
}
.pillar__body { margin-top: var(--s2); color: var(--text-1); }

/* ----------------------------------------------------------------------------
   9. STORY — asymmetric split + diagram
   ---------------------------------------------------------------------------- */
.story {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(32px, 6vw, 80px);
}
.story__aside { align-self: start; }
@media (min-width: 921px) {
  .story__aside { position: sticky; top: 120px; }
}
.story__standfirst {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--text-0);
}
.story__body > p + p { margin-top: var(--s3); }
.story__body p { max-width: 60ch; }

.diagram {
  position: relative;
  margin: var(--s6) 0 0;
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.diagram__ghost {
  position: absolute; top: 50%; left: 50%;
  width: 280px; transform: translate(-50%, -50%);
  opacity: 0.06; pointer-events: none;
}
.diagram__svg { position: relative; width: 100%; height: auto; }
.dg-line { stroke: var(--line-2); stroke-width: 1; }
.dg-node { fill: none; stroke: var(--text-2); stroke-width: 1.25; }
.dg-node-label {
  fill: var(--text-0); font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
}
.dg-node-sub {
  fill: var(--text-2); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
}
.dg-axis-label {
  fill: var(--text-2); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.32em;
}
.dg-dot {
  fill: var(--text-0);
  animation: dotOscillate 3s ease-in-out infinite alternate;
}
@keyframes dotOscillate {
  from { transform: translateX(0); }
  to   { transform: translateX(248px); }
}

/* ----------------------------------------------------------------------------
   10. TOKENOMICS — 2x2 cards + contract strip
   ---------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}
.card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--t-med) var(--ease-out),
              background-color var(--t-med) var(--ease-out);
}
.card:hover { border-color: var(--line-2); background: var(--bg-2); }
.card__label {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2);
}
.card__figure {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em; color: var(--text-0);
  font-variant-numeric: tabular-nums;
  width: fit-content;
}
.card__figure--xl { font-size: clamp(2.5rem, 7vw, 3.75rem); }
.card__sub {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}

/* Contract address strip */
.ca {
  margin-top: var(--s3);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap;
}
.ca__meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ca__label {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2);
}
.ca__value {
  font-family: var(--font-mono); font-size: 0.875rem;
  color: var(--text-1); word-break: break-all;
  transition: color var(--t-fast) var(--ease-out);
}
.ca__value:hover { color: var(--text-0); text-decoration: underline; text-underline-offset: 3px; }
.ca__copy { flex-shrink: 0; }
.ca__copy.is-copied {
  border-color: var(--text-0); color: var(--text-0);
  animation: ringPulse 1.6s var(--ease-out);
}
@keyframes ringPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 245, 244, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(245, 245, 244, 0); }
}

/* ----------------------------------------------------------------------------
   10b. BUY / SWAP — LibertySwap cross-chain (embedded widget)
   ---------------------------------------------------------------------------- */
.section__title--tight { margin-bottom: var(--s3); }
.section__lead {
  max-width: 64ch; color: var(--text-1);
  margin-bottom: var(--s6);
}

.swap-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px); align-items: start;
}

.swap-feats { display: grid; gap: var(--s2); }
.feat {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-1); border: 1px solid var(--line-1);
  border-radius: var(--radius-card); padding: 22px 24px;
  transition: border-color var(--t-med) var(--ease-out),
              background-color var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out);
}
.feat:hover { border-color: var(--line-2); background: var(--bg-2); transform: translateX(4px); }
.feat__idx {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--text-3); padding-top: 3px; flex-shrink: 0;
}
.feat h4 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem;
  letter-spacing: -0.01em; color: var(--text-0); margin: 0 0 4px;
}
.feat p { font-size: 0.9375rem; color: var(--text-1); line-height: 1.55; margin: 0; }

.chainpills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.chainpills span {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-2);
  border: 1px solid var(--line-1); border-radius: 30px; padding: 6px 12px;
}

.swap-ca {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line-1);
  border-radius: 10px; padding: 10px 12px; margin: var(--s3) 0;
}
.swap-ca code {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-1);
  word-break: break-all; flex: 1; min-width: 0;
}
.swap-ca .ca__copy { flex-shrink: 0; padding: 8px 14px; }

.swap-open { width: 100%; }

.swap-panel {
  background: var(--bg-1); border: 1px solid var(--line-1);
  border-radius: var(--radius-card); padding: 18px;
}
.swap-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.swap-panel__badge {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3);
  border: 1px solid var(--line-1); border-radius: 30px; padding: 4px 10px;
}
.swap-frame {
  border: 1px solid var(--line-1); border-radius: 12px; overflow: hidden;
  background: var(--bg-0); height: 620px;
}
.swap-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.swap-note { font-size: 0.8rem; color: var(--text-3); margin-top: 12px; line-height: 1.55; }

@media (max-width: 900px) {
  .swap-grid { grid-template-columns: 1fr; }
  .swap-frame { height: 560px; }
}

/* ----------------------------------------------------------------------------
   11. COMMUNITY — invert-on-hover tiles
   ---------------------------------------------------------------------------- */
.tiles {
  display: grid;
  /* Auto-fits one centered tile now; becomes two columns the moment a 2nd is added */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s3); max-width: 760px; margin-inline: auto;
}
/* Keep a lone tile from stretching edge-to-edge */
.tiles:has(.tile:only-child) { max-width: 420px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 48px 32px;
  background: transparent;
  border: 1px solid var(--line-1);
  border-radius: var(--radius-card);
  color: var(--text-1);
  transition: background-color var(--t-med) var(--ease-out),
              color var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out);
}
.tile__glyph { width: 30px; height: 30px; fill: currentColor; }
.tile__name {
  font-family: var(--font-display); font-weight: 500; font-size: 1.375rem;
  color: var(--text-0); transition: color var(--t-med) var(--ease-out);
}
.tile__cta {
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2);
  transition: color var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
/* The boldest move on the page: a clean black-on-white snap */
.tile:hover {
  background: var(--accent-bg);
  border-color: var(--accent-bg);
  color: var(--accent-text);
  transform: translateY(-3px);
}
.tile:hover .tile__name,
.tile:hover .tile__cta { color: var(--accent-text); }
.tile:hover .tile__cta { transform: translateX(6px); }

/* ----------------------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-0); padding-block: var(--s7) var(--s5); }
.footer__inner { display: flex; flex-direction: column; gap: var(--s4); }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; }
.footer__logo { width: 32px; height: 32px; }
.footer__word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.02em; color: var(--text-0);
}
.footer__ca { display: flex; flex-direction: column; gap: 12px; }
.footer__ca-row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.footer__disclaimer {
  max-width: 70ch; font-size: 0.8125rem; line-height: 1.6; color: var(--text-3);
}
.footer__seals {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4);
  padding-top: var(--s3); border-top: 1px solid var(--line-0);
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
}

/* ----------------------------------------------------------------------------
   13. SCROLL-REVEAL (progressive enhancement; visible by default if no JS)
   ---------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

/* ----------------------------------------------------------------------------
   14. HERO ENTRANCE + AMBIENT MOTION
   ---------------------------------------------------------------------------- */
.js .hero__logo, .js .hero__word, .js .hero__tagline, .js .hero__cta {
  opacity: 0; transform: translateY(16px);
}
.js .hero.is-ready .hero__logo {
  animation: heroIn 900ms var(--ease-out) forwards,
             breathe 6s ease-in-out 900ms infinite alternate;
}
.js .hero.is-ready .hero__word    { animation: heroIn 900ms var(--ease-out) 120ms forwards; }
.js .hero.is-ready .hero__tagline { animation: heroIn 900ms var(--ease-out) 220ms forwards; }
.js .hero.is-ready .hero__cta     { animation: heroIn 900ms var(--ease-out) 320ms forwards; }
.js .hero.is-ready .hero__halo    { animation: haloBreathe 6s ease-in-out 900ms infinite alternate; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes breathe {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(0) scale(1.02); }
}
@keyframes haloBreathe {
  from { opacity: 1; }
  to   { opacity: 1.4; } /* relative bump on the low-alpha halo */
}

/* ----------------------------------------------------------------------------
   15. RESPONSIVE
   ---------------------------------------------------------------------------- */
@media (max-width: 920px) {
  .story { grid-template-columns: 1fr; gap: var(--s4); }
}
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .nav__links { display: none; }            /* keep nav clean on phones; Buy stays */
  .ca { flex-direction: column; align-items: flex-start; }
  .ca__copy { align-self: stretch; }
}

/* ----------------------------------------------------------------------------
   16. REDUCED MOTION — everything renders instantly at final state
   ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .hero__logo, .js .hero__word, .js .hero__tagline, .js .hero__cta {
    opacity: 1 !important; transform: none !important;
  }
  .scrollcue__seg { display: none; }
}
