/* ============================================================
   FRAMEX — stealth / precision-instrument aesthetic
   Dark bookends (hero, stats, footer), a bright gallery stage
   in the middle where the product lives, crisp editorial text.
   ============================================================ */

:root {
  --ink:        #0a0b0d;
  --bg:         #0d0f12;
  --bg-2:       #0b0e14;
  --panel:      #14171c;

  --fg:         #eceef1;
  --fg-dim:     #9aa1a9;
  --fg-mute:    #666d75;

  --on-light:      #14171b;
  --on-light-dim:  #4a5058;

  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-ink:    rgba(20, 23, 27, 0.14);

  --sol:  #14f195;
  --eth:  #8aa2ff;
  --glow: rgba(20, 241, 149, 0.55);

  --font-display: "Bricolage Grotesque", "Familjen Grotesk", sans-serif;
  --font-body:    "Familjen Grotesk", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* grain — atmospheric, sits under the header chrome */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: soft-light;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--sol); color: #05130d; }

:focus-visible {
  outline: 2px solid var(--sol);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: min(78vw, 320px);
}
.loader-brand { width: 42px; height: 42px; opacity: 0.9; animation: breathe 2.6s var(--ease) infinite; }
@keyframes breathe { 50% { opacity: 0.35; transform: translateY(-2px); } }
.loader-track {
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
#loader-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--fg-mute), var(--sol));
  transition: width 0.3s linear;
}
.loader-meta {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.loader-tag {
  margin-left: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.6rem;
  color: var(--fg-mute);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(0.9rem, 2vw, 1.4rem) var(--pad-x);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 11, 13, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand img { width: 24px; height: 24px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
  padding-left: 0.28em;
  color: var(--fg);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--fg-dim);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--sol);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover { color: var(--fg); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* App button — visually identical to the text links */
.site-nav .nav-link {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--fg-dim);
  background: none;
  border: 0;
  padding: 0 0 2px;
  cursor: pointer;
  position: relative;
  transition: color 0.25s var(--ease);
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--sol);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav .nav-link:hover { color: var(--fg); }
.site-nav .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* X (Twitter) icon link */
.nav-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin: -0.4rem 0;
  border-radius: 999px;
  color: var(--fg-dim);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-x svg { display: block; }
.nav-x:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }

/* Presale CTA — pill with a live green glow */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 0.5rem 1.05rem;
  border: 1px solid rgba(20, 241, 149, 0.42);
  border-radius: 999px;
  background: rgba(20, 241, 149, 0.09);
  cursor: pointer;
  white-space: nowrap;
  animation: ctaGlow 3.4s var(--ease) infinite;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.nav-cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sol);
  box-shadow: 0 0 8px var(--glow);
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: rgba(20, 241, 149, 0.17);
  border-color: var(--sol);
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 12px -3px rgba(20, 241, 149, 0.28); }
  50%      { box-shadow: 0 0 20px 1px rgba(20, 241, 149, 0.5); }
}

.header-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 0.34rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: fixed;
  inset: 0;
  z-index: 12;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  background: radial-gradient(120% 90% at 15% 0%, #14171d 0%, var(--ink) 55%);
  overflow: hidden;
  will-change: opacity, transform;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px);
  mask-image: radial-gradient(90% 70% at 30% 40%, #000 0%, transparent 78%);
  opacity: 0.5;
}
.hero-inner { position: relative; max-width: 60rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sol);
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}
.eyebrow span { color: var(--fg-mute); margin: 0 0.5em; }
.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 11.5vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.hero-heading .line { display: block; overflow: hidden; }
.hero-heading .w { display: inline-block; will-change: transform; }
.hero-heading .accent {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--fg);
  position: relative;
}
.hero-heading .accent::after {
  content: "live.";
  position: absolute;
  inset: 0;
  color: var(--sol);
  -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
  animation: fillLive 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) 0.65s forwards;
}
@keyframes fillLive { to { clip-path: inset(0 0 0 0); } }
.hero-tagline {
  margin-top: clamp(1.6rem, 3.5vw, 2.8rem);
  max-width: 34rem;
  font-size: clamp(1rem, 1.05rem + 0.2vw, 1.2rem);
  color: var(--fg-dim);
  line-height: 1.62;
}
/* ---------- Hero foot: scroll cue + contract badge ---------- */
.hero-foot {
  position: fixed;
  left: 32px;
  right: 32px;
  bottom: 32px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.hero-foot > * { pointer-events: auto; }
.hero-foot.dim { opacity: 0; pointer-events: none; }

/* centered animated down-arrow, on the same baseline as the CA badge */
.scroll-cue {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #cbced3;
  pointer-events: none;
}
.scroll-cue-arrow {
  display: block;
  filter: drop-shadow(0 0 7px rgba(16, 185, 129, 0.4));
  animation: cueArrow 1.9s var(--ease) infinite;
}
@keyframes cueArrow {
  0%, 100% { transform: translateY(-4px); opacity: 0.6; }
  50%      { transform: translateY(5px); opacity: 1; }
}

.ca-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a1a1aa;
  white-space: nowrap;
}
.ca-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  flex-shrink: 0;
}
.ca-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0 -5px 0 0.1rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #71717a;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
              color 0.2s var(--ease), background 0.2s var(--ease);
}
.ca-badge:hover .ca-copy,
.ca-badge:focus-within .ca-copy { opacity: 1; transform: none; }
.ca-copy:hover { color: var(--fg); background: rgba(255, 255, 255, 0.08); }
.ca-copy-ok { display: none; }
.ca-copy.copied { color: var(--sol); }
.ca-copy.copied .ca-copy-i { display: none; }
.ca-copy.copied .ca-copy-ok { display: block; }

@media (max-width: 600px) {
  .hero-foot { left: 18px; right: 18px; bottom: 18px; }
  .ca-badge { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-arrow { animation: none; opacity: 0.7; }
}

/* ---------- Canvas stage ---------- */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 3;
  clip-path: circle(0% at 50% 52%);
  will-change: clip-path;
  background: #e9e5df;
}
#frame-canvas {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1.08);
  object-fit: cover;
}
.canvas-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(115% 115% at 50% 46%, transparent 58%, rgba(0,0,0,0.16) 100%);
}

/* ---------- Dark overlay ---------- */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: #06070a;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ---------- Marquee ---------- */
.marquee, 
.marquee-row {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

.marquee-row i {
  font-style: normal;
  -webkit-text-stroke: 0;
  color: var(--sol);
  font-size: 0.5em;
  transform: translateY(-0.1em);
}

/* ---------- Scroll driver + beats ---------- */
#scroll-container {
  position: relative;
  z-index: 8;
  height: 560vh;
}
.beat {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 12vh, 8rem) var(--pad-x) clamp(4rem, 10vh, 6rem);
  pointer-events: none;
  z-index: 8;
}
.align-left  { justify-content: flex-start; }
.align-right { justify-content: flex-end; }

.beat-inner {
  max-width: 27rem;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.72), rgba(10, 12, 16, 0.64));
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
  box-shadow:
    0 44px 100px -34px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.align-right .beat-inner { text-align: right; }

.beat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.align-right .beat-label { flex-direction: row-reverse; }
.beat-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--sol);
}

.beat-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.beat-body {
  margin-top: 1.4rem;
  font-size: clamp(0.95rem, 0.95rem + 0.15vw, 1.06rem);
  line-height: 1.62;
  color: var(--fg-dim);
}
.beat-body strong, .beat-heading strong { font-weight: 700; color: var(--fg); }

/* child stagger targets */
.beat-label, .beat-heading, .beat-body, .stat, .cta-heading, .cta-sub, .cta-top, .spec-list > div {
  will-change: transform, opacity;
}

/* ---------- Stats ---------- */
.beat-stats { justify-content: center; text-align: center; }
.stats-inner { width: min(92vw, 60rem); }
.beat-label.centered { justify-content: center; color: var(--fg-dim); }
.beat-label.centered::before { display: none; }
.stats-grid {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-left: 1px solid var(--line);
  padding-left: clamp(0.8rem, 2vw, 1.6rem);
}
.stat:first-child { border-left: 0; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--sol);
  margin-top: 0.3rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- Specs ---------- */
.beat-specs .beat-inner { max-width: 34rem; }
.spec-list {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.spec-list dt {
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  padding-top: 0.15rem;
  white-space: nowrap;
}
.spec-list dd { color: var(--fg-dim); text-align: right; }

/* ---------- CTA ---------- */
.beat-cta {
  position: absolute;
  top: auto;
  bottom: 0;
  height: 100svh;
}
.cta-inner {
  width: min(92vw, 30rem);
  text-align: center;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.74), rgba(10, 12, 16, 0.66));
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.6rem);
  box-shadow: 0 44px 100px -34px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.beat-cta .beat-label.centered { color: var(--sol); }
.cta-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-top: 0.9rem;
}
.cta-sub {
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.cta-top {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cta-top:hover { transform: translateY(-2px); background: rgba(20, 241, 149, 0.12); border-color: var(--sol); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 8;
  background: var(--ink);
  padding: clamp(2.4rem, 5vw, 3.6rem) var(--pad-x) clamp(1.6rem, 4vw, 2.4rem);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.footer-mark { width: 84px; height: auto; opacity: 0.9; }
.footer-nav {
  display: flex;
  gap: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.footer-nav a:hover { color: var(--sol); }
.footer-mail {
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-mail:hover { color: var(--sol); border-color: var(--sol); }
.footer-bottom {
  margin-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat:nth-child(3) { border-left: 0; }
}

@media (max-width: 720px) {
  #scroll-container { height: 440vh; }
  .header-badge { display: none; }
  .site-nav { gap: 1rem; font-size: 0.68rem; }

  .beat { justify-content: center; padding-left: 1.1rem; padding-right: 1.1rem; }
  .align-left, .align-right { justify-content: center; }
  .align-right .beat-inner, .align-left .beat-inner { text-align: left; max-width: 30rem; width: 100%; }
  .beat-label, .align-right .beat-label { flex-direction: row; }
  .cta-inner { width: 100%; padding: 1.7rem 1.4rem; }
  .cta-heading { font-size: clamp(2rem, 7vw, 2.6rem); }
  .cta-top { margin-top: 1.5rem; }
  .spec-list > div { gap: 0.6rem; }
  .marquee-row { font-size: 22vw; }
}

@media (max-width: 400px) {
  .brand-word { display: none; }
}

/* ---------- Reduced motion / static fallback ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-heading .accent { color: var(--sol); -webkit-text-stroke: 0; }
  .hero-heading .accent::after { display: none; }
}

body.reduced .hero {
  position: relative;
  inset: auto;
  height: 100svh;
}
body.reduced .canvas-wrap {
  position: relative;
  inset: auto;
  height: 100svh;
  clip-path: none !important;
}
body.reduced #dark-overlay,
body.reduced .marquee,
body.reduced .hero-foot { display: none; }
body.reduced #scroll-container { height: auto; }
body.reduced .beat {
  position: relative;
  height: auto;
  top: auto !important;
  transform: none !important;
  opacity: 1 !important;
  padding: 12vh var(--pad-x);
}
body.reduced .beat-inner,
body.reduced .cta-inner { border-color: rgba(255, 255, 255, 0.14); }
body.reduced .beat-stats,
body.reduced .beat-cta { background: var(--ink); }

/* ---------- Modals ---------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.modal-root[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}
.modal-root.open .modal-backdrop { opacity: 1; }

.modal-panel {
  position: relative;
  width: min(92vw, 30rem);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(20, 241, 149, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(19, 21, 26, 0.97), rgba(11, 13, 17, 0.97));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: clamp(1.8rem, 4vw, 2.7rem);
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
}
.modal-panel[hidden] { display: none; }
.modal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sol), transparent);
  opacity: 0.6;
}
.modal-root.open .modal-panel { opacity: 1; transform: none; }

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg-dim);
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.modal-close:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}

.modal-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sol);
  margin-bottom: 1.1rem;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.modal-text {
  margin-top: 1.2rem;
  font-size: clamp(0.95rem, 0.95rem + 0.1vw, 1.02rem);
  line-height: 1.62;
  color: var(--fg-dim);
}
.modal-status {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.modal-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sol);
  box-shadow: 0 0 8px var(--glow);
  animation: breathe 2.6s var(--ease) infinite;
}

/* ---------- Nav responsive ---------- */
@media (max-width: 860px) {
  .site-nav { gap: clamp(0.8rem, 2.2vw, 1.4rem); }
}
@media (max-width: 600px) {
  .site-header { gap: 0.9rem; }
  .site-nav .nav-link[data-scroll] { display: none; }
  .nav-cta { padding: 0.46rem 0.9rem; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-cta { animation: none; }
  .modal-status-dot { animation: none; }
  .modal-panel { transform: none; }
}
