/* ==========================================================================
   INM Conquests — design system
   ========================================================================== */

:root {
  --bg: #000000;
  --text: #F5F5F7;
  --muted: #86868B;
  --accent: #2997FF;
  --accent-glow: rgba(41, 151, 255, 0.35);
  --error: #FF6B6B;
  --line: rgba(245, 245, 247, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1440px;
  --vh: 100vh;

  --fs-display: clamp(64px, 11vw, 200px);
  --fs-head: clamp(42px, 6vw, 112px);
  --fs-num: clamp(88px, 14vw, 236px);
  --fs-lead: clamp(22px, 1.7vw, 30px);
  --fs-small: 18px;
}

@supports (height: 100svh) {
  :root { --vh: 100svh; }
}

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

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Reserve the scrollbar's space from the first frame, so nothing shifts when it appears */
html { scrollbar-gutter: stable; scrollbar-color: #2c2c2e #000; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #2c2c2e; border-radius: 10px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: #48484a; }

body {
  background: var(--bg);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: var(--fs-lead);
  line-height: 1.35;
  overflow-x: hidden;
}

html.is-loading body { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, video, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- Type ---------- */

.display {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.headline {
  font-size: var(--fs-head);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--muted);
}

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

.accent { font-style: normal; color: var(--accent); }

.dot {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin-left: 0.08em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.5em var(--accent-glow);
}

/* ---------- Shared ---------- */

.stage {
  position: relative;
  min-height: var(--vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
}

.media-fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.media-fade.is-ready { opacity: 1; }
/* Once a video plays, its poster fades away so no stale frame shows underneath */
img.media-fade.is-ready.is-covered { opacity: 0; }

/* Placeholders: shown until real assets exist, then covered by fading media */
.ph {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #050505;
}
.ph::before,
.ph::after {
  content: "";
  position: absolute;
  inset: -25%;
  will-change: transform;
}
.ph::before { animation: drift 22s ease-in-out infinite alternate; }
.ph::after  { animation: drift 30s ease-in-out infinite alternate-reverse; }

.ph--hero::before {
  background:
    radial-gradient(34% 28% at 50% 56%, rgba(255, 255, 255, 0.14), transparent 70%),
    radial-gradient(16% 14% at 46% 52%, rgba(255, 255, 255, 0.10), transparent 70%);
}
.ph--hero::after {
  background:
    radial-gradient(22% 18% at 60% 48%, rgba(41, 151, 255, 0.16), transparent 70%),
    radial-gradient(60% 40% at 50% 115%, rgba(255, 255, 255, 0.08), transparent 70%);
}
.ph--safety::before {
  background: radial-gradient(30% 24% at 50% 50%, rgba(255, 255, 255, 0.16), transparent 70%);
}
.ph--safety::after {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.07) 0 1px, transparent 1px 34px);
  mask-image: radial-gradient(30% 26% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(30% 26% at 50% 50%, #000, transparent 80%);
}
.ph--memory::before {
  background:
    radial-gradient(3px 3px at 30% 40%, #fff, transparent),
    radial-gradient(2px 2px at 62% 32%, #fff, transparent),
    radial-gradient(3px 3px at 54% 62%, var(--accent), transparent),
    radial-gradient(2px 2px at 40% 70%, #fff, transparent),
    radial-gradient(2px 2px at 70% 58%, #fff, transparent),
    radial-gradient(3px 3px at 46% 46%, var(--accent), transparent),
    radial-gradient(45% 35% at 50% 52%, rgba(255, 255, 255, 0.08), transparent 70%);
}
.ph--memory::after {
  background: radial-gradient(30% 25% at 58% 40%, rgba(255, 255, 255, 0.06), transparent 70%);
}
.ph--personality::before {
  background:
    conic-gradient(from 200deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, 0.16) 60deg, transparent 140deg, rgba(41, 151, 255, 0.18) 220deg, transparent 300deg);
  mask-image: radial-gradient(38% 34% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(38% 34% at 50% 50%, #000, transparent 75%);
}
.ph--invest::before {
  background: radial-gradient(50% 40% at 70% 40%, rgba(255, 255, 255, 0.08), transparent 70%);
}
.ph--invest::after {
  background: radial-gradient(70% 30% at 50% 100%, rgba(41, 151, 255, 0.10), transparent 70%);
}

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.08); }
}

/* Grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  pointer-events: none;
}
.motion .intro { display: flex; }

.intro-mark {
  opacity: 0;
}
.intro-mark img {
  display: block;
  width: auto;
  height: clamp(40px, 5vw, 80px);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--gutter);
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.nav.is-solid::before { opacity: 1; }
.nav.is-hidden { transform: translate3d(0, -100%, 0); opacity: 0; }
.motion.is-loading .nav { opacity: 0; }

.nav-logo {
  display: inline-flex;
  align-items: center;
}
.nav-logo img {
  display: block;
  width: auto;
  height: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 48px;
  min-width: 148px;
  justify-content: center;
  padding: 0 40px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.pill:hover {
  background: #fff;
  box-shadow: 0 0 32px 2px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  height: var(--vh);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero-media-inner {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 40% at 50% 50%, rgba(0,0,0,0.6), rgba(0,0,0,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.75) 100%);
}
.hero-dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 40px);
  padding: 0 var(--gutter);
  text-align: center;
  will-change: transform, opacity;
}

.hw { display: inline-block; }
.hero-sub { color: var(--text); opacity: 0.85; }

/* One accent word per line, set in an elegant italic serif */
.serif {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.12em;
  line-height: 1;
}
.hero-sub .serif { color: transparent; -webkit-text-fill-color: transparent; }
.lead strong .serif { color: var(--accent); }

/* Title + subtitle react to the cursor: a soft blue light follows the mouse through the letters */
.hero-title .hw,
.hero-sub {
  --mx: -999px;
  --my: -999px;
  --tx: -999px;
  --ty: -999px;
  --glow: 0;
  /* Room for glyph overhang so background-clip never trims the last letter */
  padding: 0 0.1em 0.12em;
  margin: 0 -0.1em -0.12em;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, calc(var(--glow) * 0.32)) 0 1px, rgba(0, 0, 0, 0) 1px 4px),
    radial-gradient(circle 180px at var(--mx) var(--my), rgba(12, 72, 190, var(--glow)) 0%, rgba(12, 72, 190, 0) 100%),
    radial-gradient(circle 460px at var(--mx) var(--my), rgba(22, 104, 220, calc(var(--glow) * 0.85)) 0%, rgba(22, 104, 220, 0) 75%),
    radial-gradient(circle 540px at var(--tx) var(--ty), rgba(70, 120, 200, calc(var(--glow) * 0.45)) 0%, rgba(70, 120, 200, 0) 70%),
    linear-gradient(var(--text), var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- 2. Statement ---------- */

.statement-text {
  max-width: 16ch;
  text-align: left;
  text-wrap: balance;
}
.statement-text .w { display: inline-block; will-change: opacity; }

/* ---------- 3. Proof ---------- */

.proof { position: relative; }

.proof-stage {
  gap: clamp(40px, 8vh, 96px);
  padding-top: 20vh;
  padding-bottom: 20vh;
  overflow: hidden;
}

.proof-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90vmax;
  height: 90vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.beats {
  position: relative;
  display: grid;
  gap: 18vh;
  width: 100%;
  text-align: center;
}

.beat { display: grid; gap: clamp(12px, 2vh, 28px); justify-items: center; }

.num {
  font-size: var(--fs-num);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.num--accent {
  position: relative;
  color: var(--text);
}
/* Soft glow as its own layer: digit reels clip text-shadow into hard boxes */
.num--accent::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 4.2em;
  height: 1.9em;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(41, 151, 255, 0.32), rgba(41, 151, 255, 0.12) 55%, rgba(41, 151, 255, 0) 100%);
  filter: blur(20px);
  pointer-events: none;
}

.curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  overflow: visible;
}
.curve-line {
  fill: none;
  stroke: url(#curveGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(41, 151, 255, 0.6));
}
.curve-area { fill: url(#areaGrad); }
.curve-head { fill: #fff; }
.curve-proj {
  fill: none;
  stroke: rgba(245, 245, 247, 0.7);
  stroke-width: 2.5;
  stroke-dasharray: 6 10;
  stroke-linecap: round;
}
.proj-label { fill: var(--muted); font-size: 22px; font-weight: 500; font-family: inherit; }
.curve-halo { fill: var(--accent); opacity: 0.35; filter: blur(6px); }

.since {
  position: relative;
  margin-top: clamp(8px, 2vh, 24px);
  font-size: clamp(28px, 2.8vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: center;
}

/* Docked stats (top-left) — filled as each number lands */
.dock { display: none; }
.dock-item { display: flex; align-items: baseline; gap: 12px; }
.dock-num {
  font-size: clamp(44px, 4.6vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.dock-label { font-size: var(--fs-lead); font-weight: 500; color: var(--muted); }

/* Pinned layout (motion only) */
.motion .proof-stage { padding-top: 0; padding-bottom: 0; height: var(--vh); }
.motion .beats { position: absolute; inset: 0 0 12vh 0; display: block; }
.motion .beat {
  position: absolute;
  inset: 0;
  align-content: center;
  opacity: 0;
  will-change: transform, opacity, filter;
}
.motion .num { will-change: transform; }
.motion .beat:last-child { padding-top: 16vh; }
.motion .dock {
  position: absolute;
  z-index: 2;
  top: calc(80px + 5vh);
  left: var(--gutter);
  display: flex;
  gap: clamp(32px, 4vw, 80px);
}
.motion .dock-item { opacity: 0; }
.motion .since { opacity: 0; }
.motion .curve { bottom: 0; width: 82%; right: auto; }

/* ---------- 4. Systems ---------- */

.systems { position: relative; }

.sys-heading {
  padding: 14vh var(--gutter) 8vh;
  font-size: clamp(40px, 4.4vw, 80px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: var(--max);
  margin: 0 auto;
}

.sys-stage {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 16vh;
  display: grid;
  gap: 18vh;
}

.sys {
  display: grid;
  gap: 40px;
}

.sys-copy { display: grid; gap: 20px; align-content: center; }

.sys-index {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.sys-title {
  font-size: clamp(56px, 7vw, 128px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.sys-copy .lead { max-width: 20ch; }

.sys-fig {
  position: relative;
  order: -1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  transform: translateZ(0);
}
/* Transparent PNG/WebP art floats on black: drop the placeholder once it lands */
.sys-fig .ph { transition: opacity 1.2s var(--ease); }
.sys-fig:has(img.is-ready) .ph { opacity: 0; }
.sys-fig .media-fade { object-fit: contain; }

.rail { display: none; }
.rail i {
  position: relative;
  display: grid;
  gap: 14px;
  width: clamp(120px, 11vw, 180px);
  font-style: normal;
}
.rail i::before {
  content: "";
  height: 6px;
  border-radius: 6px;
  background: rgba(245, 245, 247, 0.14);
}
.rail b {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(41, 151, 255, 0.5);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.rail em {
  font-style: normal;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
  opacity: 0.35;
  text-align: center;
}

/* Vertical progress rails (stats + statement): right edge, centered */
.motion .rail--v {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rail--v i {
  display: grid;
  grid-template-columns: auto 6px;
  align-items: center;
  column-gap: 16px;
  width: auto;
  height: clamp(64px, 9vh, 96px);
}
.rail--v i::before { grid-column: 2; grid-row: 1; width: 6px; height: 100%; }
.rail--v b {
  left: auto;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  height: auto;
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.rail--v em { grid-column: 1; grid-row: 1; text-align: right; }
.rail--statement i { height: clamp(140px, 22vh, 220px); }



/* Desktop pinned layout (motion + wide) */
@media (min-width: 769px) {
  .motion .systems { height: var(--vh); }
  .motion .sys-heading {
    position: absolute;
    z-index: 2;
    top: calc(80px + 5vh);
    left: 0;
    right: 0;
    padding: 0 var(--gutter);
  }
  .motion .sys-stage {
    height: var(--vh);
    padding: 0 var(--gutter);
    display: block;
  }
  .motion .sys {
    position: absolute;
    inset: 0;
    padding: 0 var(--gutter);
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    align-items: center;
    padding-top: 6vh;
  }
  .motion .sys-copy { will-change: transform, opacity, filter; }
  .motion .sys-fig {
    order: 0;
    justify-self: end;
    width: auto;
    height: min(78svh, 78vh);
    max-width: 100%;
    will-change: transform, opacity;
  }
  /* Progress rail: centered, big, labelled, so every scroll visibly moves it */
  .motion .systems .rail {
    position: absolute;
    left: 50%;
    bottom: 6vh;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
  }

}

/* ---------- 5. Invest ---------- */

/* The whole form fits one screen: arrive, fill, submit. */
.invest {
  position: relative;
  min-height: var(--vh);
  display: flex;
  align-items: center;
  padding: calc(80px + 4vh) var(--gutter) 6vh;
}

/* Clip the background media here, not on .invest, so the Check size dropdown can drop past the section's bottom edge */
.invest-bg { position: absolute; inset: 0; overflow: hidden; }
.invest-bg .media-fade {
  inset: auto 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 55%, #000 55%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 60% 55%, #000 55%, transparent 100%);
}
@media (min-width: 1025px) {
  .invest-bg .media-fade { top: 50%; bottom: auto; width: 60%; transform: translateY(-50%); }
}
.invest-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.55) 25%, rgba(0,0,0,0.65) 70%, #000 100%);
}

.invest-inner {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 5vh, 64px);
}

.invest-inner .headline { font-size: clamp(42px, 5.4vw, 96px); }

.form-wrap { position: relative; }

/* Desktop: form on the left, the video's art stays visible on the right */
@media (min-width: 1025px) {
  .invest-inner { max-width: var(--max); }
  .form-wrap { max-width: 680px; }
  .invest-shade {
    background:
      linear-gradient(to right, #000 0%, rgba(0,0,0,0.85) 38%, rgba(0,0,0,0.1) 70%),
      linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, #000 100%);
  }
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.6vh, 40px) 48px;
}

.field { position: relative; display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
  transition: color 0.5s var(--ease);
}
.field label .opt { opacity: 0.7; }
.field:focus-within label { color: var(--text); }

.field input,
.field textarea {
  width: 100%;
  height: 56px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: clamp(22px, 1.6vw, 26px);
  font-weight: 500;
  outline: none;
  transition: border-color 0.5s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: none; line-height: 1.4; overflow: hidden; }

.select { position: relative; }
.select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 1.6vw, 26px);
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: color 0.5s var(--ease);
}
.select.has-value .select-btn { color: var(--text); }
.select-chev {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.6s var(--ease);
}
.select.is-open .select-chev { transform: rotate(180deg); }
.field:has(.select.is-open)::after { transform: scaleX(1); }
.field:has(.select.is-open) label { color: var(--text); }

.select-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  padding: 8px;
  list-style: none;
  background: rgba(20, 20, 22, 0.97);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  outline: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: 50% 0;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), visibility 0s linear 0.55s;
}
.select.is-open .select-list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), visibility 0s;
}
.select-list li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.4s var(--ease);
}
.select-list li.is-active { background: rgba(255, 255, 255, 0.08); }
.select-list li[aria-selected="true"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(41, 151, 255, 0.7);
}

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #000 inset;
  transition: background-color 9999s;
}

/* Animated blue underline */
.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.field:focus-within::after { transform: scaleX(1); }
.field.has-error::after { transform: scaleX(1); background: var(--error); }

/* Errors float under the line so they never push the layout */
.field-error {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  font-size: var(--fs-small);
  line-height: 1.2;
  color: var(--error);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.field.has-error .field-error { opacity: 1; transform: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: clamp(4px, 1vh, 12px);
}

.btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  height: 68px;
  min-width: 220px;
  padding: 0 44px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.btn:hover { background: #fff; box-shadow: 0 0 48px 4px rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.btn:disabled { cursor: default; }

.btn > * { grid-area: 1 / 1; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }

.btn-spin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  opacity: 0;
  transform: scale(0.6);
  animation: spin 0.9s linear infinite;
}
.btn-check { width: 30px; height: 30px; opacity: 0; transform: scale(0.6); }
.btn-check path {
  fill: none;
  stroke: #000;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s var(--ease) 0.15s;
}

.btn.is-loading .btn-label,
.btn.is-done .btn-label { opacity: 0; transform: scale(0.9); }
.btn.is-loading .btn-spin { opacity: 1; transform: scale(1); }
.btn.is-done .btn-check { opacity: 1; transform: scale(1); }
.btn.is-done .btn-check path { stroke-dashoffset: 0; }

@keyframes spin { to { rotate: 360deg; } }

.form-status {
  font-size: var(--fs-small);
  color: var(--error);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.form-status.is-visible { opacity: 1; }

.thanks {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
}

/* ---------- 6. Footer ---------- */

.footer {
  position: relative;
  padding: 16vh var(--gutter) 48px;
  overflow: hidden;
}

.footer-mark {
  overflow: hidden;
  padding-bottom: 0.06em;
}
.footer-mark span {
  display: block;
  font-size: 14vw;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
  white-space: nowrap;
  will-change: transform;
}
.m-br { display: none; }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
}
.footer-row .copy { margin-left: auto; }

.link {
  position: relative;
  transition: color 0.5s var(--ease);
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.6s var(--ease);
}
.link:hover { color: var(--text); }
.link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
  .nav { height: 68px; }
  .nav-logo img { height: 20px; }
  .pill { height: 44px; min-width: 118px; padding: 0 28px; }

  .hero-title .hw { display: block; }
  .hero-title { font-size: clamp(64px, 18vw, 120px); }
  .hero-sub { max-width: 14ch; }

  .statement-text { max-width: none; }

  .num { font-size: clamp(80px, 22vw, 160px); }
  .motion .beats { inset: 0 var(--gutter) 10vh; }
  .motion .dock { top: 92px; gap: 28px; }
  .motion .rail--v { right: 6px; }
  .rail--v em { display: none; }
  .rail--v i { column-gap: 0; height: 56px; }
  .rail--v i::before, .rail--v b { width: 4px; }
  .rail--v i { grid-template-columns: 4px; }
  .rail--statement i { height: 120px; }
  .dock-num { font-size: clamp(36px, 10vw, 52px); }
  .dock-label { font-size: 18px; }
  .motion .curve { bottom: 4vh; }

  .sys-heading {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: calc(68px + 2vh) var(--gutter) 3vh;
    background: #000;
  }
  .sys-heading::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 48px;
    background: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0));
    pointer-events: none;
  }
  .since { font-size: 26px; text-wrap: balance; }

  .sys-title { font-size: clamp(52px, 15vw, 88px); }
  .sys-stage { gap: 5vh; padding-bottom: 8vh; }
  .sys { gap: 20px; }
  .sys-fig { width: min(100%, 320px); aspect-ratio: 1 / 1; margin: 0 auto; }

  .invest { padding: 84px var(--gutter) 24px; }
  .invest-inner { gap: 28px; }
  .invest-inner .headline { font-size: clamp(40px, 11vw, 56px); }
  .form { grid-template-columns: 1fr; gap: 20px; }
  .field input, .field textarea, .select-btn { height: 48px; padding: 8px 0; }
  .btn { width: 100%; min-width: 0; height: 60px; }

  .footer-mark span { font-size: 19vw; line-height: 0.92; }
  .m-br { display: inline; }
  .footer-row { gap: 20px 32px; }
  .footer-row .copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ph::before, .ph::after { animation: none; }
}

/* Readability over the bright spheres: a soft dark halo hugs the letters
   (drop-shadow works with the clipped-text glow; text-shadow would paint over it) */
.hero-title {
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.55))
    drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55))
    drop-shadow(0 6px 40px rgba(0, 0, 0, 0.5));
}
.hero-sub {
  opacity: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)) drop-shadow(0 2px 18px rgba(0, 0, 0, 0.8));
}

/* ---------- Mobile layout fixes (desktop untouched) ---------- */
@media (max-width: 768px) {
  /* Hero: show the whole 16:9 scene as a band in the upper half instead of
     blowing it up behind the title; title sits below the spheres. */
  .hero-media .media-fade {
    object-fit: contain;
    transform: translateY(-14%) scale(1.45);
    /* Feather the band's top and bottom so it melts into the page */
    -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 40%, #000 60%, transparent 70%);
    mask-image: linear-gradient(to bottom, transparent 30%, #000 40%, #000 60%, transparent 70%);
  }
  .hero-shade {
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.85) 78%, #000 100%);
  }
  .hero-copy {
    justify-content: flex-end;
    padding-bottom: calc(19vh + env(safe-area-inset-bottom));
    gap: 16px;
  }

  .ph--hero { display: none; }

  /* Keep text clear of the right-edge progress bars */
  .statement .stage { padding-right: 36px; }
  .motion .beats { inset: 0 34px 12vh 20px; }
  .beat .lead { max-width: 30ch; margin-inline: auto; }

  /* Growth curve spans the width and owns the lower part of the screen */
  .motion .curve { width: 100%; bottom: 3vh; }
  .proj-label { display: none; }
}


/* ---------- Glitch: short RGB-split + slice bursts on the hero text ---------- */
.hero-title.is-glitch { animation: glitch-title 0.3s steps(1, end); }
.hero-sub.is-glitch { animation: glitch-sub 0.26s steps(1, end); }
@keyframes glitch-title {
  0%   { transform: translate(0); filter: drop-shadow(2px 0 0 rgba(255, 40, 90, 0.5)) drop-shadow(-2px 0 0 rgba(30, 140, 255, 0.6)); }
  20%  { transform: translate(-2px, 0); clip-path: inset(22% 0 50% 0); filter: drop-shadow(-3px 0 0 rgba(255, 40, 90, 0.55)) drop-shadow(3px 0 0 rgba(30, 140, 255, 0.65)); }
  40%  { transform: translate(2px, 0); clip-path: none; filter: drop-shadow(1px 0 0 rgba(255, 40, 90, 0.4)) drop-shadow(-1px 0 0 rgba(30, 140, 255, 0.5)); }
  60%  { transform: translate(-1px, 0); clip-path: inset(58% 0 12% 0); }
  100% { transform: none; clip-path: none; }
}
@keyframes glitch-sub {
  0%   { transform: translate(0); filter: drop-shadow(1px 0 0 rgba(255, 40, 90, 0.55)) drop-shadow(-1px 0 0 rgba(30, 140, 255, 0.65)); }
  30%  { transform: translate(-2px, 0); clip-path: inset(0 0 50% 0); }
  60%  { transform: translate(1px, 0); clip-path: none; }
  100% { transform: none; clip-path: none; }
}

/* Token / chat stream behind the stats */
.stream { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.motion .beats { z-index: 1; }
.dock-num { display: inline-block; transform-origin: 0 60%; }

/* Mobile: invest video gets its own visible band above the form */
@media (max-width: 768px) {
  .invest { flex-direction: column; align-items: stretch; padding-top: calc(72px + 2vh); }
  .invest-bg {
    position: relative;
    inset: auto;
    order: -1;
    width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter)) -6vh;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .invest-bg .ph { display: none; }
  .invest-shade { display: none; }
  .invest-bg .media-fade {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transform: scale(1.15);
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Fade on the box itself (the scaled video overflowed its own mask) */
  .invest-bg {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 70%, transparent 99%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 70%, transparent 99%);
  }
}

/* ---------- Odometer counters: each digit is a rolling reel ---------- */
.odo { display: inline-flex; align-items: flex-start; line-height: 1; }
.odo-fix { display: inline-block; height: 1em; line-height: 1em; }
.odo-col {
  position: relative;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  /* soft fade at the reel window edges, like a mechanical counter */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.odo-strip { display: block; will-change: transform; }
.odo-strip span { display: block; height: 1em; line-height: 1em; text-align: center; }

/* Subtitle: same blue light, but no scanlines (too fine for small text) */
.hero-sub {
  background:
    radial-gradient(circle 180px at var(--mx) var(--my), rgba(12, 72, 190, var(--glow)) 0%, rgba(12, 72, 190, 0) 100%),
    radial-gradient(circle 460px at var(--mx) var(--my), rgba(22, 104, 220, calc(var(--glow) * 0.85)) 0%, rgba(22, 104, 220, 0) 75%),
    linear-gradient(var(--text), var(--text));
  -webkit-background-clip: text;
  background-clip: text;
}


/* ---------- Nav links (desktop): text rolls up into a lit copy ---------- */
.nav-right { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav-links { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.nav-link {
  position: relative;
  display: inline-block;
  height: 1.3em;
  overflow: hidden;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.3em;
  color: rgba(245, 245, 247, 0.72);
}
.nav-link span { display: block; transition: transform 0.6s var(--ease); }
.nav-link span::after {
  content: attr(data-t);
  display: block;
  color: #fff;
  text-shadow: 0 0 14px rgba(41, 151, 255, 0.9), 0 0 2px rgba(41, 151, 255, 0.6);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  opacity: 0;
  transform: translateY(4px) scale(0.4);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.nav-link:hover span, .nav-link:focus-visible span { transform: translateY(-50%); }
.nav-link:hover::after, .nav-link:focus-visible::after { opacity: 1; transform: none; }
.nav-link:focus-visible { outline: none; }

.burger { display: none; }

/* ---------- Mobile: two-line burger + menu sliding in from the left ---------- */
.menu { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.menu-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(84vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 96px 32px calc(40px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 16, 0.86);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  transform: translateX(-102%);
  transition: transform 0.75s var(--ease);
}
.menu-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-size: 34px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.035em;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), color 0.4s var(--ease);
}
.menu-link:active { color: var(--accent); }
.menu-num { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--accent); }
.menu-foot {
  margin-top: auto;
  font-size: 15px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.menu.is-open { pointer-events: auto; }
.menu.is-open .menu-scrim { opacity: 1; }
.menu.is-open .menu-panel { transform: none; }
.menu.is-open .menu-link { opacity: 1; transform: none; }
.menu.is-open .menu-link:nth-child(1) { transition-delay: 0.15s; }
.menu.is-open .menu-link:nth-child(2) { transition-delay: 0.22s; }
.menu.is-open .menu-link:nth-child(3) { transition-delay: 0.29s; }
.menu.is-open .menu-link:nth-child(4) { transition-delay: 0.36s; }
.menu.is-open .menu-foot { opacity: 1; transition-delay: 0.43s; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right { gap: 14px; }
  .burger {
    position: relative;
    z-index: 70;
    display: grid;
    align-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .burger i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.6s var(--ease), width 0.6s var(--ease);
  }
  .burger i:last-child { width: 62%; justify-self: end; }
  .burger[aria-expanded="true"] i:first-child { transform: translateY(4.5px) rotate(45deg); }
  .burger[aria-expanded="true"] i:last-child { width: 100%; transform: translateY(-4.5px) rotate(-45deg); }
}

/* Menu open: the menu has its own Invest link, so the pill steps aside */
.nav .pill { transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease), opacity 0.5s var(--ease); }
.nav.menu-open .pill { opacity: 0; transform: translateY(-6px); pointer-events: none; }

@media (max-width: 768px) {
  /* Fade the video itself to transparent so it blends into the page with no seam */
  .invest-bg {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 50%, rgba(0,0,0,0.35) 75%, transparent 96%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 50%, rgba(0,0,0,0.35) 75%, transparent 96%);
  }
}


/* ---------- Statement underline ---------- */
/* Hand-drawn underline: one natural marker stroke that draws itself in */
.ul { position: relative; white-space: nowrap; }
.ul-mark {
  position: absolute;
  left: -0.02em;
  bottom: -0.2em;
  width: calc(100% + 0.06em);
  height: 0.3em;
  overflow: visible;
  pointer-events: none;
}
.ul-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000 2000;
  stroke-dashoffset: 1000;
  opacity: 0;
}

/* ---------- Rails are clickable ---------- */
.motion .rail i { cursor: pointer; pointer-events: auto; }
.rail i em { transition: opacity 0.5s var(--ease), color 0.5s var(--ease); }
.rail i:hover em { opacity: 1 !important; color: #fff; }
.rail i::before { transition: background-color 0.5s var(--ease); }
.rail i:hover::before { background: rgba(245, 245, 247, 0.32); }

/* ---------- Hero scroll cue: a little mouse with a rolling wheel ---------- */
.scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(4vh + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.75);
  pointer-events: none;
}
.motion .scroll-hint > * { opacity: 0; }
.scroll-hint .mouse {
  position: relative;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(245, 245, 247, 0.75);
  border-radius: 14px;
}
.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: wheel 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.scroll-hint .chev {
  width: 12px;
  height: 12px;
  margin-top: -4px;
  stroke: rgba(245, 245, 247, 0.5);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  animation: chev 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes chev {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ---------- (i) info button ---------- */
.num-wrap { position: relative; display: inline-block; }
.info {
  position: absolute;
  top: 6%;
  left: 100%;
  margin-left: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.6s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease);
}
.info span { display: block; transform: translateY(-1px); transition: transform 0.6s var(--ease); }
/* soft idle ping so it gets noticed, without shouting */
.info::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(41, 151, 255, 0.7);
  opacity: 0;
  animation: info-ping 3.2s var(--ease) infinite 1.5s;
  pointer-events: none;
}
@keyframes info-ping {
  0%   { transform: scale(1); opacity: 0.7; }
  60%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.info:hover, .info:focus-visible {
  transform: scale(1.14);
  background: rgba(41, 151, 255, 0.2);
  border-color: rgba(41, 151, 255, 0.9);
  box-shadow: 0 0 0 6px rgba(41, 151, 255, 0.1), 0 0 24px rgba(41, 151, 255, 0.45);
  outline: none;
}
.info:hover span { transform: translateY(-2px) rotate(-8deg); }
.info:hover::before { animation: none; opacity: 0; }

/* ---------- Growth card (morphs from the button) ---------- */
.info-card {
  position: fixed;
  z-index: 80;
  overflow: hidden;
  background: rgba(20, 20, 23, 0.94);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(41, 151, 255, 0.06);
}
.gc-inner { position: relative; padding: 26px 26px 24px; }
.gc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  cursor: pointer;
  transition: background-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.gc-close svg { width: 14px; height: 14px; stroke: var(--text); stroke-width: 2; stroke-linecap: round; fill: none; }
.gc-close:hover { background: rgba(255, 255, 255, 0.14); transform: rotate(90deg); }
.gc-eyebrow { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.gc-rows { list-style: none; display: grid; gap: 14px; margin-bottom: 22px; }
.gc-rows li {
  display: grid;
  grid-template-columns: 92px 1fr 64px;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 500;
}
.gc-m { color: var(--text); }
.gc-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.gc-muted { color: var(--muted); font-weight: 500; font-size: 14px; }
.gc-bar { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.gc-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--w) * 100%);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(41, 151, 255, 0.55), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.is-proj .gc-bar i {
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, rgba(41, 151, 255, 0.35) 8px 12px);
  box-shadow: 0 0 12px rgba(41, 151, 255, 0.6);
}
.is-proj .gc-v { color: var(--accent); }
.gc-note { font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; color: var(--text); }
.gc-note .serif { color: var(--accent); }
.gc-foot { margin-top: 12px; font-size: 13px; color: var(--muted); }

@media (max-width: 768px) {
  .info { top: -30px; left: auto; right: -6px; margin-left: 0; width: 28px; height: 28px; font-size: 18px; }
  .gc-rows li { grid-template-columns: 80px 1fr 58px; font-size: 16px; }
}

/* Close button stays above the animated card content */
.gc-close { z-index: 2; }
.gc-rows li { grid-template-columns: 92px 1fr 92px; }
.gc-v small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); }
.is-proj .gc-v small { color: var(--muted); }
@media (max-width: 768px) { .gc-rows li { grid-template-columns: 78px 1fr 84px; } }

.curve-ext { fill: url(#extGrad); }
