/* ============================================================
   HOSTIVORA — apex hosting organism
   palette: void green-black · acid bioluminescence · bone
   type:    Bricolage Grotesque · Instrument Serif (italic) · Martian Mono
   ============================================================ */

:root {
  --bg0: #050907;
  --bg1: #081009;
  --panel: #0a140d;
  --panel-2: #0d1a11;
  --line: rgba(233, 246, 230, 0.09);
  --line-acid: rgba(168, 255, 62, 0.28);
  --bone: #eaf6e6;
  --moss: #93ab97;
  --acid: #a8ff3e;
  --acid-soft: rgba(168, 255, 62, 0.12);
  --ember: #ff6b35;
  --black: #020403;

  --font-d: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-s: "Instrument Serif", Georgia, serif;
  --font-m: "Martian Mono", "Courier New", monospace;

  --gutter: clamp(1.25rem, 4vw, 5rem);
  --notch: 14px;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  background: var(--bg0);
  color: var(--bone);
  font-family: var(--font-d);
  font-weight: 380;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--acid); color: var(--black); }

/* slim scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: #1c2b1e; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--acid); }

.mono {
  font-family: var(--font-m);
  font-weight: 400;
  letter-spacing: 0.08em;
}

em {
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  background: var(--acid); color: var(--black);
  padding: 0.6rem 1.2rem; font-family: var(--font-m); font-size: 0.8rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 250; pointer-events: none;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%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)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain-shift 0.9s steps(2) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(2%, -1%); }
  100% { transform: translate(-1%, 2%); }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  animation: loader-failsafe 0.6s ease 7s forwards; /* safety: hides itself if JS never runs */
}
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

.jaw { position: absolute; left: 0; width: 100%; height: 51%; background: #071009; }
.jaw-top {
  top: 0;
  clip-path: polygon(0% 0%, 100% 0%, 100% 86%, 93.75% 100%, 87.5% 86%, 81.25% 100%, 75% 86%, 68.75% 100%, 62.5% 86%, 56.25% 100%, 50% 86%, 43.75% 100%, 37.5% 86%, 31.25% 100%, 25% 86%, 18.75% 100%, 12.5% 86%, 6.25% 100%, 0% 86%);
}
.jaw-bottom {
  bottom: 0; background: #060c08;
  clip-path: polygon(0% 14%, 6.25% 0%, 12.5% 14%, 18.75% 0%, 25% 14%, 31.25% 0%, 37.5% 14%, 43.75% 0%, 50% 14%, 56.25% 0%, 62.5% 14%, 68.75% 0%, 75% 14%, 81.25% 0%, 87.5% 14%, 93.75% 0%, 100% 14%, 100% 100%, 0% 100%);
}

.loader-core {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.9rem; text-align: center;
}
.loader-mark { width: 44px; color: var(--acid); animation: mark-pulse 1.1s ease-in-out infinite; }
@keyframes mark-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.88); opacity: 0.6; } }
.loader-name { font-weight: 800; letter-spacing: 0.42em; text-indent: 0.42em; font-size: 0.95rem; }
.loader-line { font-size: 0.62rem; color: var(--moss); letter-spacing: 0.22em; }
.loader-pct {
  position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: clamp(0.5rem, 3vh, 2rem);
  font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 300; color: var(--acid);
  line-height: 1;
}

/* ============================================================
   CURSOR (fine pointers only — enabled by JS)
   ============================================================ */
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; z-index: 280; top: 0; left: 0;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--acid); pointer-events: none; opacity: 0;
  }
  .cursor-ring {
    display: block; position: fixed; z-index: 279; top: 0; left: 0;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--line-acid); pointer-events: none; opacity: 0;
    transition: width 0.25s, height 0.25s, background-color 0.25s;
  }
  .cursor-ring.is-hover { width: 56px; height: 56px; background: var(--acid-soft); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  transition: padding 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 0.65rem;
  background: rgba(5, 9, 7, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 800; letter-spacing: 0.18em; font-size: 0.92rem;
}
.nav-logo svg { width: 26px; color: var(--acid); flex: none; }

.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2.4rem); }
.nav-links a {
  font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.18em;
  color: var(--moss); padding: 0.4rem 0; position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--acid);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; gap: 0.6rem; }

/* burger */
.burger {
  display: none; position: relative; z-index: 130;
  width: 44px; height: 44px; flex: none;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--bone); transition: transform 0.35s, top 0.35s, background-color 0.35s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); background: var(--acid); }
.burger.open span:nth-child(2) { top: 21px; transform: rotate(-45deg); background: var(--acid); }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 95; /* below .nav so logo + burger stay reachable */
  background: rgba(4, 8, 6, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  transform: translateY(-102%);
  visibility: hidden;
}
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; gap: 1rem;
  font-weight: 800; font-size: clamp(2rem, 9vw, 3.4rem); letter-spacing: 0.02em;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
}
.menu-links a:active { color: var(--acid); }
.menu-idx { font-size: 0.7rem; color: var(--acid); letter-spacing: 0.2em; }
.menu-foot { margin-top: auto; padding-top: 2rem; font-size: 0.62rem; color: var(--moss); letter-spacing: 0.18em; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font-size: 0.72rem; letter-spacing: 0.16em; white-space: nowrap;
  padding: 0.95em 1.9em;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn-solid { background: var(--acid); color: var(--black); }
.btn-solid:hover { background: var(--bone); }
.btn-ghost {
  color: var(--bone);
  box-shadow: inset 0 0 0 1px rgba(233, 246, 230, 0.25);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--acid); color: var(--acid); }
.btn-lg { padding: 1.25em 2.4em; font-size: 0.78rem; }
.btn-block { width: 100%; }

/* ============================================================
   SHARED SECTION CHROME
   ============================================================ */
.section { padding: clamp(5rem, 13vh, 10rem) var(--gutter); position: relative; }
section { scroll-margin-top: 84px; }

.eyebrow {
  font-size: 0.66rem; color: var(--acid); letter-spacing: 0.26em;
  margin-bottom: 1.4rem;
}

.h-display {
  font-weight: 800;
  font-size: clamp(2.5rem, 6.5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.h-display em { color: var(--acid); font-size: 1.04em; letter-spacing: 0; }

.hl { display: block; overflow: hidden; padding-block: 0.04em; }
.hl-i { display: inline-block; will-change: transform; }

.sec-head { max-width: 1640px; margin-inline: auto; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.sec-sub { max-width: 54ch; color: var(--moss); margin-top: 1.6rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--gutter) 5.5rem;
  overflow: clip;
}

.hero-glow {
  position: absolute; z-index: 0;
  top: 50%; right: -8%; transform: translateY(-52%);
  width: min(56vw, 900px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(168, 255, 62, 0.13) 0%, rgba(168, 255, 62, 0.04) 38%, transparent 68%);
  pointer-events: none;
}
.hero-grid-dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(233, 246, 230, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 45%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 75% 65% at 60% 45%, black 0%, transparent 70%);
}

.webgl-wrap {
  position: absolute; z-index: 1;
  top: 50%; right: 0; transform: translateY(-52%);
  width: min(52vw, 860px); aspect-ratio: 1;
  pointer-events: none;
}
.webgl-wrap canvas { width: 100% !important; height: 100% !important; }

.hero-content { position: relative; z-index: 2; max-width: 1640px; width: 100%; margin-inline: auto; }

.hero-h1 {
  font-weight: 800;
  font-size: clamp(3.4rem, 11.5vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-left: -0.04em;
}
.hero-h1 em { color: var(--acid); font-size: 1.05em; }

.hero-sub { max-width: 46ch; color: var(--moss); margin-top: 2rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.6rem; }

.readout {
  position: absolute; z-index: 2;
  font-size: 0.6rem; color: var(--moss); letter-spacing: 0.22em;
}
.readout::before { content: "+ "; color: var(--acid); }
.ro-tl { top: 6.2rem; left: var(--gutter); }
.ro-tr { top: 6.2rem; right: var(--gutter); }
.ro-br { bottom: 8.5rem; right: var(--gutter); }

.scroll-hint {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 5.2rem;
  font-size: 0.6rem; color: var(--moss); letter-spacing: 0.22em;
  display: inline-flex; align-items: center; gap: 0.7em;
}
.scroll-arrow { display: inline-block; color: var(--acid); animation: arrow-bob 1.6s ease-in-out infinite; }
@keyframes arrow-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* ticker */
.ticker {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 7, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden; padding-block: 0.85rem;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-roll 36s linear infinite;
}
.ticker-track span {
  font-family: var(--font-m); font-size: 0.64rem; letter-spacing: 0.22em;
  color: var(--moss); white-space: nowrap; flex: none;
}
@keyframes ticker-roll { to { transform: translateX(-50%); } }

/* ============================================================
   STATS
   ============================================================ */
.stats { border-block: 1px solid var(--line); background: var(--bg1); }
.stats-grid {
  max-width: 1640px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1.2rem, 2.5vw, 2.5rem);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 4.2rem); line-height: 1;
  letter-spacing: -0.02em; color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.stat-unit { color: var(--acid); font-size: 0.55em; font-weight: 600; margin-inline: 0.08em; }
.stat-label { margin-top: 0.9rem; font-size: 0.6rem; color: var(--moss); letter-spacing: 0.2em; }

/* ============================================================
   ANATOMY
   ============================================================ */
.an-grid {
  max-width: 1640px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.an-card {
  position: relative; background: var(--bg0);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  min-height: 270px;
  display: flex; flex-direction: column;
  transition: background-color 0.4s;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}
.an-card:hover { background: var(--panel); }
.an-idx {
  font-size: 0.62rem; color: var(--moss); letter-spacing: 0.2em;
  margin-bottom: 2.2rem; transition: color 0.3s;
}
.an-card:hover .an-idx { color: var(--acid); }
.an-icon {
  width: 30px; height: 30px; margin-bottom: 1.1rem;
  fill: none; stroke: var(--acid); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.an-card h3 {
  font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em;
  margin-bottom: 0.7rem;
}
.an-tag {
  font-size: 0.52rem; color: var(--acid); letter-spacing: 0.2em;
  border: 1px solid var(--line-acid); padding: 0.25em 0.7em;
}
.an-card p:last-child { color: var(--moss); font-size: 0.92rem; line-height: 1.55; }

/* ============================================================
   SPECIES / PLANS
   ============================================================ */
.species { background: var(--bg1); border-block: 1px solid var(--line); }

.sp-grid {
  max-width: 920px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
  align-items: stretch;
}
.sp-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 2.8vw, 2.6rem);
  display: flex; flex-direction: column;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  transition: border-color 0.35s, transform 0.35s ease, background-color 0.35s;
}
.sp-card:hover { border-color: var(--line-acid); transform: translateY(-6px); }
.sp-featured {
  background: var(--panel-2);
  border-color: var(--line-acid);
  box-shadow: 0 0 80px rgba(168, 255, 62, 0.07);
}
@media (min-width: 901px) { .sp-featured { transform: translateY(-14px); } .sp-featured:hover { transform: translateY(-20px); } }

.sp-badge {
  align-self: flex-end;
  background: var(--acid); color: var(--black);
  font-size: 0.56rem; letter-spacing: 0.18em; padding: 0.45em 1em;
  margin-bottom: 1.2rem;
}
.sp-latin { font-size: 1.15rem; color: var(--acid); margin-bottom: 0.4rem; }
.sp-latin em { text-transform: none; } /* keep the genus capital: “Hostivora velox” */
.sp-latin em { font-size: 1.1em; }
.sp-card h3 { font-weight: 800; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: 0.01em; line-height: 1.05; }
.sp-type { margin-top: 0.5rem; font-size: 0.6rem; color: var(--moss); letter-spacing: 0.24em; }

.sp-price {
  margin-block: 1.8rem 1.6rem;
  font-weight: 800; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 0.18em;
}
.sp-from { font-size: 0.56rem; color: var(--moss); letter-spacing: 0.2em; margin-right: 0.5em; }
.sp-cents { font-size: 0.45em; color: var(--moss); font-weight: 600; }
.sp-per { font-size: 0.6rem; color: var(--moss); letter-spacing: 0.16em; }

.sp-list { flex: 1; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; }
.sp-list li {
  font-size: 0.68rem; color: var(--bone); letter-spacing: 0.06em;
  padding-left: 1.4em; position: relative; line-height: 1.5;
}
.sp-list li::before { content: "▸"; position: absolute; left: 0; color: var(--acid); }

.sp-note { text-align: center; margin-top: 3rem; font-size: 0.64rem; color: var(--moss); letter-spacing: 0.18em; }
.sp-note a { color: var(--acid); border-bottom: 1px solid var(--line-acid); padding-bottom: 2px; }
.sp-note a:hover { border-bottom-color: var(--acid); }

/* ============================================================
   DOMAINS / TERRITORY
   ============================================================ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.dom-panel {
  max-width: 1100px; margin-inline: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.dom-form { display: flex; gap: 0.8rem; }
.dom-input {
  flex: 1; min-width: 0;
  background: var(--black);
  border: 1px solid var(--line);
  color: var(--bone);
  font-size: 0.95rem; letter-spacing: 0.06em;
  padding: 1.1em 1.4em;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  transition: border-color 0.3s;
}
.dom-input::placeholder { color: #51664f; }
.dom-input:focus { outline: none; border-color: var(--acid); }

.dom-tlds {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  margin-top: 1.6rem;
}
.dom-tlds-label { font-size: 0.56rem; color: var(--moss); letter-spacing: 0.22em; margin-right: 0.4rem; }
.tld-chip {
  font-size: 0.66rem; color: var(--bone); letter-spacing: 0.1em;
  border: 1px solid var(--line); padding: 0.45em 0.95em;
  transition: border-color 0.25s, color 0.25s;
}
.tld-chip:hover { border-color: var(--line-acid); color: var(--acid); }
.tld-chip b { color: var(--acid); font-weight: 400; margin-left: 0.4em; }

.dom-note { margin-top: 1.5rem; font-size: 0.54rem; color: var(--moss); letter-spacing: 0.2em; }

/* ============================================================
   VITALS
   ============================================================ */
.vitals-grid {
  max-width: 1640px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
/* nowrap terminal lines must not inflate the grid track (min-width:auto trap) */
.vitals-grid > * { min-width: 0; }

.ecg { width: 100%; height: 80px; margin-top: 3rem; overflow: visible; }
.ecg-base { stroke: var(--line); stroke-width: 1; fill: none; }
.ecg-line {
  stroke: var(--acid); stroke-width: 2; fill: none;
  stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(168, 255, 62, 0.7));
  stroke-dasharray: 320 1400;
  stroke-dashoffset: 320;
  animation: ecg-run 3.2s linear infinite;
}
@keyframes ecg-run { to { stroke-dashoffset: -1400; } }

.term-panel {
  background: var(--black);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.term-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; background: #1f3322; }
.term-dot:first-child { background: var(--acid); animation: dot-blink 1.6s ease-in-out infinite; }
@keyframes dot-blink { 50% { opacity: 0.3; } }
.term-bar p { font-size: 0.58rem; color: var(--moss); letter-spacing: 0.16em; margin-left: 0.6rem; }

.term-log {
  height: 240px; padding: 1.1rem 1.2rem;
  font-size: 0.62rem; line-height: 1.9; letter-spacing: 0.04em;
  color: var(--moss);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.term-log .t-time { color: #4d6650; }
.term-log .t-ok { color: var(--acid); }
.term-log .t-warn { color: var(--ember); }
.term-log p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ping-table { border-top: 1px solid var(--line); padding: 1.1rem 1.2rem 1.3rem; }
.ping-head { font-size: 0.56rem; color: var(--moss); letter-spacing: 0.22em; margin-bottom: 0.9rem; }
.ping-row {
  display: grid; grid-template-columns: minmax(120px, 0.9fr) 1fr 44px;
  gap: 1rem; align-items: center;
  padding-block: 0.34rem;
  font-size: 0.6rem; letter-spacing: 0.1em;
}
.ping-loc { color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ping-bar { height: 3px; background: #15241a; position: relative; overflow: hidden; }
.ping-bar span {
  position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(90deg, var(--acid), rgba(168, 255, 62, 0.25));
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scaleX(0.1);
}
.ping-ms { color: var(--acid); text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   THE KEEPER / FOUNDER
   ============================================================ */
.keeper { background: var(--bg1); border-block: 1px solid var(--line); }

.keeper-grid {
  max-width: 1640px; margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.keeper-grid > * { min-width: 0; }

.keeper-copy .sec-sub strong { color: var(--bone); font-weight: 650; }
.keeper-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

.file-panel {
  background: var(--black);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.file-rows { padding: 0.6rem 1.2rem 0.9rem; }
.file-row {
  display: grid; grid-template-columns: minmax(110px, 38%) 1fr;
  gap: 1rem; align-items: baseline;
  padding-block: 0.62rem;
  border-bottom: 1px dashed rgba(233, 246, 230, 0.07);
  font-size: 0.6rem; letter-spacing: 0.12em;
}
.file-row:last-child { border-bottom: 0; }
.file-row dt { color: var(--moss); }
.file-row dt::before { content: "+ "; color: var(--acid); }
.file-row dd { color: var(--bone); overflow-wrap: anywhere; }
.file-row dd a { color: var(--acid); border-bottom: 1px solid var(--line-acid); padding-bottom: 1px; }
.file-row dd a:hover { border-bottom-color: var(--acid); }

.kr-badges { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.2rem; }
.kr-badge {
  font-size: 0.54rem; color: var(--acid); letter-spacing: 0.18em;
  border: 1px solid var(--line-acid); padding: 0.5em 0.95em;
  background: var(--acid-soft);
}

/* ============================================================
   FEAST / MIGRATION
   ============================================================ */
.feast {
  background: var(--acid);
  color: var(--black);
  padding-block: 0;
  overflow: clip;
}
.feast-marquee {
  border-bottom: 1px solid rgba(2, 4, 3, 0.25);
  overflow: hidden; padding-block: 0.8rem;
}
.feast-track { display: flex; width: max-content; animation: ticker-roll 22s linear infinite; }
.feast-track span {
  font-family: var(--font-m); font-size: 0.64rem; letter-spacing: 0.22em;
  color: rgba(2, 4, 3, 0.75); white-space: nowrap; flex: none;
}
.feast-inner {
  max-width: 1640px; margin-inline: auto;
  padding: clamp(4.5rem, 11vh, 8.5rem) 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem;
}
.feast .h-display em { color: var(--black); text-shadow: none; }
.feast .sec-sub { color: rgba(2, 4, 3, 0.72); }
.feast .btn-solid { background: var(--black); color: var(--acid); }
.feast .btn-solid:hover { background: #11200d; }

/* ============================================================
   FIELD NOTES
   ============================================================ */
.notes { padding-inline: 0; }
.notes .sec-head { padding-inline: var(--gutter); }

.notes-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 2.2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.notes-track {
  display: flex; gap: 1.4rem; width: max-content;
  animation: ticker-roll 48s linear infinite;
}
.notes-marquee:hover .notes-track { animation-play-state: paused; }

.note-card {
  width: clamp(300px, 34vw, 440px); flex: none;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.9rem;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  display: flex; flex-direction: column; gap: 1.3rem;
  transition: border-color 0.3s;
}
.note-card:hover { border-color: var(--line-acid); }
.note-card blockquote { font-size: 1.05rem; line-height: 1.5; color: var(--bone); }
.note-card blockquote::before { content: "“"; color: var(--acid); font-family: var(--font-s); }
.note-card figcaption { font-size: 0.58rem; color: var(--moss); letter-spacing: 0.2em; margin-top: auto; }
.note-card figcaption::before { content: "— "; color: var(--acid); }

/* ============================================================
   FAQ
   ============================================================ */
.faq .sec-head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.faq-list { max-width: 880px; margin-inline: auto; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0.2rem;
  text-align: left;
  font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: 0.01em;
  transition: color 0.25s;
}
.faq-q:hover { color: var(--acid); }

.faq-ico { position: relative; width: 16px; height: 16px; flex: none; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--acid);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.faq-ico::before { left: 0; right: 0; top: 7px; height: 2px; }
.faq-ico::after { top: 0; bottom: 0; left: 7px; width: 2px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); }
.faq-item.open .faq-ico::before { transform: rotate(180deg); }

.faq-a-wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a { overflow: hidden; }
.faq-a p {
  padding: 0 0.2rem 1.6rem;
  color: var(--moss); max-width: 64ch;
}
.faq-a a { color: var(--acid); border-bottom: 1px solid var(--line-acid); }

/* ============================================================
   JOIN / FINAL CTA
   ============================================================ */
.join {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding-block: clamp(7rem, 18vh, 13rem);
  background:
    radial-gradient(ellipse 60% 45% at 50% 60%, rgba(168, 255, 62, 0.08), transparent 70%),
    var(--bg0);
}
.join .eyebrow { margin-bottom: 1.8rem; }
.join-h { font-size: clamp(3rem, 9.5vw, 9rem); }
.join .sec-sub { margin-inline: auto; }
.join-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.8rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg1); }

.foot-grid {
  max-width: 1640px; margin-inline: auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(3.5rem, 8vh, 6rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
}
.foot-tag { margin-top: 1.4rem; color: var(--moss); line-height: 1.5; }
.foot-status {
  margin-top: 1.6rem; font-size: 0.6rem; color: var(--acid); letter-spacing: 0.2em;
  display: inline-flex; align-items: center; gap: 0.6em;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--acid);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(168, 255, 62, 0.5);
  animation: live-ping 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes live-ping { 70% { box-shadow: 0 0 0 9px rgba(168, 255, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 255, 62, 0); } }

.foot-col { display: flex; flex-direction: column; gap: 0.7rem; }
.foot-head { font-size: 0.58rem; color: var(--moss); letter-spacing: 0.26em; margin-bottom: 0.5rem; }
.foot-col a { color: var(--bone); font-size: 0.92rem; opacity: 0.85; transition: color 0.25s, opacity 0.25s; width: fit-content; }
.foot-col a:hover { color: var(--acid); opacity: 1; }

.foot-word { padding: 0 var(--gutter); }
.foot-word svg { width: 100%; height: auto; }
.foot-word text {
  font-family: var(--font-d); font-weight: 800; font-size: 124px;
  fill: transparent; stroke: rgba(233, 246, 230, 0.13); stroke-width: 1;
  letter-spacing: 0.02em;
}

.foot-base {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding: 1.4rem var(--gutter) 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.56rem; color: var(--moss); letter-spacing: 0.18em;
}
.foot-base a { color: var(--acid); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .readout, .scroll-hint { display: none; }
  .an-grid { grid-template-columns: repeat(2, 1fr); }
  .an-card { min-height: 230px; }
  .vitals-grid { grid-template-columns: 1fr; }
  .keeper-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .burger { display: block; }

  .hero { padding-top: 6rem; padding-bottom: 6.5rem; justify-content: flex-end; }
  .webgl-wrap {
    top: 7%; right: auto; left: 50%; transform: translateX(-50%);
    width: min(96vw, 480px); opacity: 0.75;
    -webkit-mask-image: linear-gradient(180deg, black 58%, transparent 97%);
    mask-image: linear-gradient(180deg, black 58%, transparent 97%);
  }
  .hero-glow { top: 6%; right: auto; left: 50%; transform: translateX(-50%); width: 110vw; }
  .hero-content { margin-top: 42vh; }

  .sp-grid { grid-template-columns: 1fr; max-width: 520px; }
  .sp-featured { order: -1; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }

  .an-grid { grid-template-columns: 1fr; }
  .an-card { min-height: 0; }

  .foot-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-cta .btn-lg { width: 100%; }
  .join-cta { width: 100%; flex-direction: column; }
  .join-cta .btn { width: 100%; }

  .dom-form { flex-direction: column; }
  .dom-form .btn { width: 100%; }
  .file-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .keeper-links { flex-direction: column; }
  .keeper-links .btn { width: 100%; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .ticker-track, .feast-track, .notes-track { animation: none; }
  .ecg-line { animation: none; stroke-dasharray: none; }
  .grain { animation: none; }
}
