/* Alien Federation Discovery — v6 homepage. */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --ink: #f4f1ea;
  --mute: #8d8b87;
  --dim: #5d5c59;
  --line: rgba(244, 241, 234, .12);
  --accent: #3fb8c8;
  --wrap: 78rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 50; padding: 8px 12px; background: var(--ink); color: #000; transform: translateY(-200%); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled, .nav.open { background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.5rem; padding-inline: var(--pad); max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand-lockup { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .22rem; min-width: 0; }
.brand-name { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; line-height: 1.15; }
.brand-sub { color: var(--mute); font-weight: 500; }
.brand-tagline { font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); line-height: 1.2; white-space: nowrap; }
nav ul { display: flex; gap: 2.4rem; list-style: none; margin: 0; padding: 0; }
nav a, .foot a { font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink); opacity: .78; transition: opacity .2s; }
nav a:hover, .foot a:hover { opacity: 1; }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 10.5rem; padding: 1rem 1.6rem; border: 1px solid var(--ink); background: var(--ink); color: #000;
  font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(244, 241, 234, .45); }
.btn-line:hover { background: var(--ink); color: #000; border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: center;
  background: radial-gradient(120% 80% at 70% 0%, #07131a 0%, #000 55%);
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.planet {
  position: absolute; left: 50%; top: 74%; width: 190vw; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #0d2530 0%, #04090c 14%, #000 32%);
  box-shadow: 0 0 120px 30px rgba(63, 184, 200, .16), inset 0 18px 50px -10px rgba(120, 210, 225, .45);
  animation: rise 2.4s var(--ease) both;
}
.limb {
  position: absolute; inset: -2px; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 99.2%, rgba(170, 235, 245, .9) 99.7%, transparent 100%);
  filter: blur(1px);
}
.planet::after { /* sunrise flare on the limb */
  content: ""; position: absolute; left: 50%; top: -60px; width: 46vw; height: 120px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(210, 245, 250, .55), rgba(63, 184, 200, .12) 45%, transparent 70%);
  filter: blur(6px); animation: breathe 7s ease-in-out infinite;
}
@keyframes rise { from { transform: translate(-50%, 6%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes breathe { 50% { opacity: .65; } }
.hero-in { position: relative; z-index: 2; width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; padding-block: 8rem 14rem; }
.eyebrow, .label { font-size: .74rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.hero h1 {
  font-size: clamp(3.3rem, 10.5vw, 9.5rem); font-weight: 500; line-height: .92; letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 30%, #b9c4c6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 2rem; max-width: 30rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: #c9c6bf; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.6rem; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 2.2rem; width: 1px; height: 56px; transform: translateX(-50%); background: rgba(244, 241, 234, .18); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Panels ---------- */
.panel { position: relative; border-top: 1px solid var(--line); padding-block: clamp(6rem, 14vw, 11rem); scroll-margin-top: 4.5rem; }
.statement { margin-top: 2rem; max-width: 22ch; font-size: clamp(2.2rem, 5.6vw, 4.9rem); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.statement .dim { color: var(--dim); }
.big { margin-top: 1.5rem; font-size: clamp(3rem, 9vw, 8rem); font-weight: 500; line-height: .95; letter-spacing: -.045em; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.pillar { padding: 2rem 2rem 0 0; }
.pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--line); }
.pn { font-size: .72rem; letter-spacing: .2em; color: var(--mute); }
.pillar h3 { margin-top: 2.5rem; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.02em; }
.pillar p { margin-top: .6rem; color: var(--mute); }

.orbit-panel { overflow: hidden; min-height: 80vh; display: flex; align-items: center; }
.orbits { position: absolute; inset: 0; opacity: .9; }
.orbits svg { width: 100%; height: 100%; }
.ring circle { fill: none; stroke: rgba(244, 241, 234, .13); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ring .sat { fill: var(--ink); stroke: none; }
.r1 .sat { fill: var(--accent); }
.core { fill: rgba(63, 184, 200, .08); stroke: rgba(63, 184, 200, .5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.r1 { animation: spin 26s linear infinite; }
.r2 { animation: spin 48s linear infinite reverse; }
.r3 { animation: spin 80s linear infinite; }
.ring { transform-origin: 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 18%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .1)); z-index: 1; }
.orbits { left: 30%; }
.orbit-copy { position: relative; z-index: 2; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
.side { color: var(--mute); font-size: 1.15rem; max-width: 26rem; }
.side p + p { margin-top: 2rem; }
.fedsonar { background: radial-gradient(70% 120% at 100% 100%, rgba(63, 184, 200, .08), transparent 60%); }
.center { text-align: center; }
.center .btn { margin-top: 3rem; }
.contact { padding-block: clamp(7rem, 16vw, 13rem); background: radial-gradient(60% 80% at 50% 120%, rgba(63, 184, 200, .14), transparent 70%); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 2.2rem; color: var(--mute); font-size: .8rem; }
.foot-in { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.foot-in p { letter-spacing: .12em; }
.foot ul { display: flex; flex-wrap: wrap; gap: 1rem 2rem; list-style: none; margin: 0 0 0 auto; padding: 0; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; padding: 0 10px;
  }
  .menu-btn i { display: block; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav.open .menu-btn i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav.open .menu-btn i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .no-js .menu-btn { display: none; }
  .js nav { position: absolute; top: 4.5rem; left: 0; right: 0; background: rgba(0, 0, 0, .94); border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease); }
  .js .nav.open nav { clip-path: inset(0 0 0 0); }
  .js nav ul { flex-direction: column; gap: 0; padding: .5rem var(--pad) 1.5rem; }
  .js nav li { border-top: 1px solid var(--line); }
  .js nav li:first-child { border-top: 0; }
  .js nav a { display: block; padding: 1.15rem 0; font-size: .85rem; }
  .no-js nav ul { gap: 1rem; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pillar h3 { margin-top: 1rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; align-items: start; }
  .orbits { left: 0; opacity: .55; }
  .orbit-panel::before { background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.65) 60%, #000); }
}
@media (max-width: 520px) {
  .brand-name { font-size: .68rem; letter-spacing: .18em; }
  .brand-tagline { font-size: .55rem; letter-spacing: .14em; }
  .brand { gap: .6rem; }
  .hero { align-items: flex-end; }
  .hero-in { padding-block: 7rem 9.5rem; }
  .planet { top: 80%; width: 320vw; }
  .planet::after { width: 90vw; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; }
  .foot ul { margin-left: 0; width: 100%; gap: .9rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- v6 refinements ---------- */
.hero h1 { max-width: 11ch; }
.planet { top: 77%; width: 260vw; background: radial-gradient(circle at 50% 0%, #10303b 0%, #061117 9%, #010304 24%, #000 40%); }
.ring circle { stroke: rgba(244, 241, 234, .2); }
.ring .sat { r: 5; }
.research { overflow: hidden; padding-bottom: clamp(9rem, 18vw, 14rem); }
.signal { position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 4vw, 3rem); height: clamp(70px, 10vw, 120px); }
.signal svg { width: 100%; height: 100%; }
.signal path { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.sig-base { stroke: rgba(244, 241, 234, .14); }
.sig-live { stroke: var(--accent); stroke-dasharray: .08 .92; stroke-dashoffset: 1; animation: sig 6s linear infinite; filter: drop-shadow(0 0 6px rgba(63, 184, 200, .7)); }
@keyframes sig { to { stroke-dashoffset: 0; } }
.side { font-size: 1.2rem; color: #a9a7a2; }
@media (max-width: 520px) {
  .planet { top: 82%; width: 420vw; }
  .hero h1 { font-size: clamp(3.4rem, 17vw, 4.6rem); }
}
.hero h1, .statement, .big { text-wrap: balance; }
.hero h1 { max-width: 14ch; }
@media (max-width: 520px) { .hero h1 { font-size: clamp(3rem, 14.5vw, 4.2rem); } }

/* ---------- Research result card ---------- */
.result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: end;
  margin-top: clamp(3.25rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.result-stat {
  margin: 0;
  font-size: clamp(4.6rem, 13vw, 9.5rem);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -.055em;
  color: var(--ink);
}
.result-copy h2 {
  max-width: 16ch;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.result-copy p {
  margin-top: 1.35rem;
  max-width: 36rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #a9a7a2;
}
.result-credit {
  margin-top: 1.6rem !important;
  font-size: .74rem !important;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute) !important;
}
@media (max-width: 860px) {
  .result { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
}

/* ---------- Models / methods (Research) ---------- */
.methods { margin-top: 2rem; }
.methods .statement { max-width: 14ch; }
.methods-punch {
  margin-top: 1.85rem;
  max-width: 22em;
  font-size: clamp(1.28rem, 2.15vw, 1.62rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: pretty;
}
.methods-line { display: block; }
.methods-line + .methods-line { margin-top: .45em; }
@media (max-width: 520px) {
  .methods-punch { font-size: 1.22rem; max-width: none; }
  .methods-tail { display: block; margin-top: .45em; }
}
.methods-copy {
  margin-top: 1.35rem;
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #a9a7a2;
}
.methods-bridge {
  margin-top: 2.4rem;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .03em;
  color: #8d8b87;
}
.methods + .result { margin-top: 1.15rem; }
.methods-fp {
  margin-top: 1.6rem;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--mute);
  font-variant-ligatures: none;
}
.methods-fp .fp-label {
  letter-spacing: .22em;
  text-transform: uppercase;
}
