/* ============================================================
   NEON DEPTHS — style
   Palette: abyss #020610 · deepteal #062033 · cyan #4DF3FF
            magenta #FF4DA6 · violet #8B7BFF · foam #C9E9F2
   ============================================================ */

:root {
  --abyss: #020610;
  --deepteal: #062033;
  --cyan: #4DF3FF;
  --magenta: #FF4DA6;
  --violet: #8B7BFF;
  --foam: #C9E9F2;
  --foam-dim: rgba(201, 233, 242, 0.55);
  --hairline: rgba(77, 243, 255, 0.18);
  --font-display: 'Michroma', sans-serif;
  --font-body: 'Spectral', serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: crosshair;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(77,243,255,.25); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-width: thin; scrollbar-color: rgba(77,243,255,.35) var(--abyss); }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--abyss); }
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(77,243,255,.4), rgba(139,123,255,.3));
  border-radius: 6px; border: 2px solid var(--abyss);
}

#sea {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* ---------- loading veil ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--abyss);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.1s cubic-bezier(.22,1,.36,1), visibility 1.1s;
}
.veil.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.veil-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.veil-tick {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  border-top-color: var(--cyan);
  animation: spin 1.1s linear infinite;
}
.veil-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .35em;
  color: var(--foam-dim);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- top scrim (text fades before it reaches the HUD) ---------- */
.scrim-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 190px;
  z-index: 15;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(2,6,16,.98) 0%,
    rgba(2,6,16,.88) 34%,
    rgba(2,6,16,.5) 66%,
    rgba(2,6,16,0) 100%);
}

/* ---------- HUD ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 26px 34px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 1.4s ease .35s, transform 1.4s cubic-bezier(.22,1,.36,1) .35s;
}
.hud.on { opacity: 1; transform: none; }

.hud-readouts { display: flex; gap: 30px; }
.ro { display: flex; flex-direction: column; gap: 5px; }
.ro-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .3em;
  color: rgba(77,243,255,.55);
}
.ro-value {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--foam);
  font-variant-numeric: tabular-nums;
}
.ro-value em { font-style: normal; font-size: 10px; color: var(--foam-dim); margin-left: 3px; }

/* nav cluster (right side of HUD) */
.hud-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.hud-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .3em;
  color: var(--foam-dim);
  text-decoration: none;
  padding: 4px 0;
  transition: color .3s ease;
}
.hud-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 8px var(--cyan);
}
.hud-link:hover { color: var(--foam); }
.hud-link:hover::after { transform: scaleX(1); }
.hud-link.active { color: var(--cyan); }
.hud-link.active::after { transform: scaleX(1); }

.hud-guide {
  pointer-events: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--cyan);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(2,6,16,.35);
  transition: background .35s ease, box-shadow .35s ease, color .35s ease;
}
.hud-guide:hover {
  background: rgba(77,243,255,.1);
  box-shadow: 0 0 24px rgba(77,243,255,.25);
  color: #fff;
}

/* ---------- sonar contact chip (click payoff) ---------- */
.sonar-chip {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translate(-50%, 12px);
  z-index: 30;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border: 1px solid rgba(77,243,255,.35);
  border-radius: 999px;
  background: rgba(2,10,20,.62);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 34px rgba(77,243,255,.22), inset 0 0 24px rgba(8,40,60,.4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--foam);
  opacity: 0;
  transition: opacity .4s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.sonar-chip.show { opacity: 1; transform: translate(-50%, 0); }
.sonar-chip .sc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: scPing 1.1s ease-out infinite;
}
.sonar-chip .sc-label { color: var(--cyan); letter-spacing: .3em; }
.sonar-chip em { font-style: normal; color: var(--foam-dim); }
.sonar-chip b { font-weight: 400; color: var(--foam); font-variant-numeric: tabular-nums; }
@keyframes scPing {
  0% { transform: scale(.7); opacity: 1; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- depth rail ---------- */
.rail {
  position: fixed;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  height: 58vh;
  width: 40px;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease .8s;
}
.rail.on { opacity: 1; }
.rail-line {
  position: absolute;
  right: 8px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(77,243,255,.4), rgba(139,123,255,.25));
}
.rail-mark {
  position: absolute; right: 0;
  display: flex; align-items: center; gap: 6px;
  transform: translateY(-50%);
}
.rail-mark i { width: 9px; height: 1px; background: rgba(77,243,255,.45); order: 2; }
.rail-mark b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: .12em;
  color: rgba(201,233,242,.4);
  order: 1;
}
.rail-cursor {
  position: absolute;
  right: 4px;
  top: 2%;
  transform: translateY(-50%);
  z-index: 2;
}
.rail-blip {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 30px rgba(77,243,255,.5);
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.72); opacity: .75; }
}

/* ---------- content ---------- */
main { position: relative; z-index: 10; }

.zone {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12vh 8vw;
  position: relative;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .42em;
  color: var(--cyan);
  margin-bottom: 26px;
  text-shadow: 0 0 18px rgba(77,243,255,.5);
}

/* hero */
.hero { align-items: center; text-align: center; }
.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 11vw, 148px);
  line-height: .98;
  letter-spacing: .06em;
  color: #EAF9FF;
  text-shadow:
    0 0 22px rgba(77,243,255,.35),
    0 0 90px rgba(77,243,255,.22);
}
.title-line { display: block; overflow: hidden; }
.title-line > span { display: inline-block; }
.hero .lede {
  margin-top: 34px;
  max-width: 480px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 200;
  line-height: 1.75;
  color: var(--foam-dim);
}
.scroll-cue {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cue-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .4em;
  color: var(--foam-dim);
}
.cue-bar {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: cueDrip 2s cubic-bezier(.65,0,.35,1) infinite;
  transform-origin: top;
}
@keyframes cueDrip {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* zone cards */
.zone-card { max-width: 520px; }
.zone-card.right { margin-left: auto; }
.zone-card.left { margin-right: auto; }
.zone-card.center { margin: 0 auto; text-align: center; }

.zone-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6.5vw, 84px);
  letter-spacing: .1em;
  line-height: 1;
  color: #EAF9FF;
  margin-bottom: 28px;
  text-shadow: 0 0 30px rgba(77,243,255,.28);
}
.zone-copy {
  font-size: clamp(15.5px, 1.6vw, 18.5px);
  font-weight: 200;
  line-height: 1.85;
  color: var(--foam-dim);
  margin-bottom: 38px;
}

.stat-row { display: flex; gap: 44px; }
.stat-row.center { justify-content: center; }
.stat { display: flex; flex-direction: column; gap: 7px; max-width: 180px; }
.stat b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(77,243,255,.55);
}
.stat span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  line-height: 1.7;
  text-transform: uppercase;
  color: rgba(201,233,242,.42);
}

/* outro */
.outro { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.btn-guide {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--abyss);
  background: var(--cyan);
  text-decoration: none;
  padding: 17px 34px;
  border-radius: 999px;
  box-shadow: 0 0 34px rgba(77,243,255,.4);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
.btn-guide:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px rgba(77,243,255,.65);
}
.btn-guide:active { transform: translateY(-1px) scale(.985); }
.hint {
  font-size: 13px;
  font-weight: 200;
  color: rgba(201,233,242,.35);
}

/* ---------- reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1.2s cubic-bezier(.22,1,.36,1),
    transform 1.2s cubic-bezier(.22,1,.36,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.in:nth-child(1) { transition-delay: 0s; }

/* stagger inside a card */
.in-view .reveal:nth-of-type(1), .in-view .reveal.d0 { transition-delay: .05s; }
.in-view .reveal:nth-of-type(2), .in-view .reveal.d1 { transition-delay: .16s; }
.in-view .reveal:nth-of-type(3), .in-view .reveal.d2 { transition-delay: .3s; }
.in-view .reveal:nth-of-type(4), .in-view .reveal.d3 { transition-delay: .44s; }

/* ==========================================================
   CATALOG SECTIONS (below the descent) — shared shell
   ========================================================== */
.catalog {
  position: relative;
  z-index: 10;
  padding: 16vh 7vw;
}
.sec-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.sec-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .42em;
  color: var(--magenta);
  text-shadow: 0 0 16px rgba(255,77,166,.4);
  display: block;
  margin-bottom: 20px;
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 62px);
  letter-spacing: .08em;
  line-height: 1.02;
  color: #EAF9FF;
  text-shadow: 0 0 28px rgba(77,243,255,.26);
  margin-bottom: 22px;
}
.sec-lede {
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 200;
  line-height: 1.8;
  color: var(--foam-dim);
}
.sec-lede em { color: var(--foam); }

/* ---------- BESTIARY (species index) ---------- */
.bestiary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}
.creature-card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(8,28,44,.5), rgba(4,12,24,.42));
  backdrop-filter: blur(9px);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, border-color .5s ease;
  will-change: transform;
}
.creature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77,243,255,.4);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 44px rgba(77,243,255,.16);
}
.creature-card:active {
  transform: translateY(-3px) scale(.992);
  transition-duration: .15s;
}
.cc-port {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(120% 120% at 50% 30%, rgba(10,40,58,.5), rgba(2,7,16,.9) 72%);
  border-bottom: 1px solid var(--hairline);
}
.cc-port canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cc-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(77,243,255,.05) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: .5;
}
.cc-desig {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .28em;
  color: rgba(77,243,255,.7);
}
.cc-trait {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-mono);
  font-size: 8px; letter-spacing: .22em;
  color: var(--foam-dim);
  padding: 4px 9px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(2,6,16,.4);
}
.cc-body { padding: 20px 22px 24px; }
.cc-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .06em;
  color: #EAF9FF;
  margin-bottom: 6px;
}
.cc-latin {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12.5px;
  color: var(--cyan);
  opacity: .8;
  margin-bottom: 14px;
}
.cc-meta {
  display: flex; gap: 18px; margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(77,243,255,.12);
}
.cc-meta div { display: flex; flex-direction: column; gap: 4px; }
.cc-meta span {
  font-family: var(--font-mono);
  font-size: 8px; letter-spacing: .22em;
  color: rgba(201,233,242,.4);
  text-transform: uppercase;
}
.cc-meta b {
  font-family: var(--font-mono);
  font-weight: 400; font-size: 12px;
  color: var(--foam);
  font-variant-numeric: tabular-nums;
}
.cc-behavior {
  font-size: 14px;
  font-weight: 200;
  line-height: 1.7;
  color: var(--foam-dim);
}

/* ---------- STRATA (sonar readouts) ---------- */
.strata {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(3,11,21,.5);
  backdrop-filter: blur(8px);
}
.strata-hdr {
  display: grid;
  grid-template-columns: 132px 1fr 108px;
  gap: 20px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .28em;
  color: rgba(77,243,255,.55);
  text-transform: uppercase;
}
.strata-hdr span:last-child { text-align: right; }
.strat-row {
  display: grid;
  grid-template-columns: 132px 1fr 108px;
  gap: 20px;
  align-items: center;
  padding: 22px 28px;
  position: relative;
  border-bottom: 1px solid rgba(77,243,255,.07);
  transition: background .4s ease;
}
.strat-row:last-child { border-bottom: none; }
.strat-row:hover { background: rgba(77,243,255,.035); }
.strat-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--band, var(--cyan));
  box-shadow: 0 0 14px var(--band, var(--cyan));
  opacity: .8;
}
.sr-band { display: flex; flex-direction: column; gap: 5px; }
.sr-band b {
  font-family: var(--font-display);
  font-weight: 400; font-size: 14px;
  letter-spacing: .05em;
  color: #EAF9FF;
}
.sr-band span {
  font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .18em;
  color: rgba(201,233,242,.42);
}
.sr-fact {
  font-size: 14.5px;
  font-weight: 200;
  line-height: 1.65;
  color: var(--foam-dim);
}
.sr-fact em { color: var(--foam); font-style: italic; }
.sr-read {
  text-align: right;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
}
.sr-read b {
  font-family: var(--font-mono);
  font-weight: 400; font-size: 15px;
  color: var(--band, var(--cyan));
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px currentColor;
}
.sr-read span {
  font-family: var(--font-mono);
  font-size: 8px; letter-spacing: .2em;
  color: rgba(201,233,242,.4);
  text-transform: uppercase;
}
/* animated sonar sweep behind the whole strata block */
.strata-wrap { position: relative; }
.strata-sweep {
  position: absolute; inset: 0;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.strata-sweep::after {
  content: '';
  position: absolute; top: -20%; left: 0;
  width: 40%; height: 140%;
  background: linear-gradient(90deg, transparent, rgba(77,243,255,.05), transparent);
  animation: sweep 6.5s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes sweep { 0% { transform: translateX(-40%); } 100% { transform: translateX(300%); } }

/* ---------- final CTA + footer ---------- */
.finale {
  position: relative;
  z-index: 10;
  padding: 18vh 8vw 0;
  text-align: center;
}
.finale .btn-guide { margin-top: 8px; }
.finale .fin-kicker {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .42em;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(77,243,255,.5);
  margin-bottom: 24px;
}
.finale .fin-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 54px);
  letter-spacing: .07em;
  color: #EAF9FF;
  line-height: 1.05;
  margin-bottom: 22px;
  text-shadow: 0 0 26px rgba(77,243,255,.24);
}
.finale .fin-copy {
  max-width: 520px; margin: 0 auto 42px;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 200; line-height: 1.8;
  color: var(--foam-dim);
}
.finale .fin-copy em { color: var(--foam); }

.site-footer {
  position: relative;
  z-index: 10;
  margin-top: 16vh;
  padding: 46px 7vw 40px;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(to bottom, transparent, rgba(2,6,16,.55));
}
.foot-grid {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 34px;
}
.foot-brand { max-width: 320px; }
.foot-mark {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.foot-mark .fm-dot {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(77,243,255,.4);
  position: relative;
}
.foot-mark .fm-dot::after {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  background: var(--magenta); box-shadow: 0 0 14px var(--magenta);
}
.foot-mark b {
  font-family: var(--font-display); font-weight: 400;
  font-size: 15px; letter-spacing: .18em; color: #EAF9FF;
}
.foot-brand p {
  font-size: 13.5px; font-weight: 200; line-height: 1.7;
  color: var(--foam-dim);
}
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h4 {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 8.5px; letter-spacing: .3em;
  color: rgba(77,243,255,.6); margin-bottom: 16px;
  text-transform: uppercase;
}
.foot-col a, .foot-col span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .12em;
  color: var(--foam-dim);
  text-decoration: none;
  padding: 5px 0;
  transition: color .3s ease;
}
.foot-col a:hover { color: var(--cyan); }
.foot-base {
  max-width: 1180px; margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(77,243,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .26em;
  color: rgba(201,233,242,.3);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hud-nav { gap: 14px; }
}
@media (max-width: 760px) {
  .hud { padding: 18px 18px; }
  .hud-readouts { gap: 16px; }
  .ro:nth-child(3), .ro:nth-child(4) { display: none; }
  .ro-value { font-size: 13px; }
  .hud-nav { gap: 12px; }
  .hud-link { display: none; }
  .hud-guide { padding: 8px 12px; font-size: 9px; letter-spacing: .22em; }
  .rail { right: 14px; height: 46vh; }
  .rail-mark b { display: none; }
  .zone { padding: 14vh 8vw; }
  .zone-card { max-width: none; }
  .stat-row { gap: 26px; flex-wrap: wrap; }
  .title { letter-spacing: .04em; }
  .catalog { padding: 12vh 6vw; }
  .strata-hdr, .strat-row { grid-template-columns: 96px 1fr; }
  .strata-hdr span:last-child, .sr-read { display: none; }
  .sonar-chip { font-size: 8.5px; letter-spacing: .16em; gap: 8px; padding: 9px 15px; bottom: 30px; }
  .foot-cols { gap: 36px; }
}
@media (max-width: 440px) {
  .bestiary-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .veil { transition: opacity .3s ease; }
  .cue-bar, .rail-blip, .veil-tick { animation: none; }
  .hud, .rail { transition: none; }
  .strata-sweep::after, .sonar-chip .sc-dot { animation: none; }
  .creature-card { transition: none; }
}

/* guard: no horizontal scroll */
html{overflow-x:hidden}
