/* ============================================================
   АБИССАЛЬ — deep sea expedition
   ============================================================ */

:root {
  --bg: #04121a;
  --bg-soft: #071b25;
  --panel: rgba(10, 33, 44, 0.55);
  --line: rgba(150, 210, 218, 0.14);
  --line-strong: rgba(150, 210, 218, 0.26);
  --text: #e7f4f3;
  --muted: #89a9b0;
  --aqua: #63f0d2;
  --blue: #6aa8ff;
  --coral: #ff8f70;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(99, 240, 210, 0.28);
  color: #fff;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #04121a;
}
::-webkit-scrollbar-thumb {
  background: rgba(120, 180, 190, 0.24);
  border-radius: 99px;
  border: 2px solid #04121a;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 240, 210, 0.4);
}

/* ---------- Ambient background + grain ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 12% -10%, rgba(38, 132, 148, 0.22), transparent 60%),
    radial-gradient(70% 50% at 90% 8%, rgba(40, 76, 160, 0.18), transparent 65%),
    radial-gradient(60% 40% at 50% 105%, rgba(36, 152, 138, 0.12), transparent 70%),
    var(--bg);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(150, 210, 218, 0.05) 1px, transparent 1px);
  background-size: 25% 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
}

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

/* ---------- Utilities ---------- */

.container {
  width: calc(100% - var(--pad) * 2);
  max-width: 1180px;
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(84px, 11vw, 156px) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--aqua);
  color: #04121a;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.skip:focus {
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--aqua);
  opacity: 0.8;
}

h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-top: 22px;
  max-width: 20ch;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.section-head {
  margin-bottom: clamp(44px, 6vw, 78px);
}

.section-head__lede {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label span {
  font-family: var(--display);
  font-weight: 400;
  font-size: 12px;
  color: var(--aqua);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  transition:
    transform 0.35s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  will-change: transform;
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--aqua);
  color: #032019;
  box-shadow: 0 0 0 0 rgba(99, 240, 210, 0);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: #7ff8df;
  box-shadow: 0 14px 40px -12px rgba(99, 240, 210, 0.6);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 240, 210, 0.55);
  color: var(--aqua);
  background: rgba(99, 240, 210, 0.06);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(4, 18, 26, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.brand:hover {
  color: var(--aqua);
}
.brand__mark {
  width: 24px;
  height: 24px;
  color: var(--aqua);
  flex: none;
}

.nav__links {
  display: flex;
  gap: 34px;
  margin-left: auto;
  margin-right: 14px;
}

.nav__links a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s var(--ease);
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
}
.nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  padding: 11px 22px;
  font-size: 13px;
}

/* Burger */
.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  margin-left: auto;
}
.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.burger span:first-child {
  transform: translate(-50%, -4px);
}
.burger span:last-child {
  transform: translate(-50%, 4px);
}
body.menu-open .burger span:first-child {
  transform: translate(-50%, 0) rotate(45deg);
}
body.menu-open .burger span:last-child {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: calc(var(--nav-h) + 20px) var(--pad) 40px;
  background:
    radial-gradient(80% 50% at 20% 0%, rgba(38, 132, 148, 0.24), transparent 70%),
    var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    visibility 0.4s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.menu__nav {
  display: flex;
  flex-direction: column;
}
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(26px, 8vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.menu__nav a span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--aqua);
}
.menu__nav a:hover {
  color: var(--aqua);
}
.menu .btn {
  align-self: flex-start;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 44px;
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.9;
}

.hero__aura {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.hero__aura--one {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -14%;
  right: -8%;
  background: radial-gradient(circle, rgba(46, 150, 170, 0.34), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero__aura--two {
  width: 40vw;
  height: 40vw;
  max-width: 540px;
  max-height: 540px;
  bottom: -20%;
  left: -12%;
  background: radial-gradient(circle, rgba(38, 78, 170, 0.3), transparent 65%);
  animation: drift 28s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 6%, 0) scale(1.12);
  }
}

.hero__inner {
  position: relative;
}

.hero__title {
  margin-top: 26px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(36px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 15ch;
}

.hero__title em {
  font-size: 1.06em;
  background: linear-gradient(100deg, var(--aqua), #b8fff1 45%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.hero__lede {
  margin-top: 30px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  list-style: none;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__stats b {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero__stats span {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero__scroll {
  position: absolute;
  right: calc(var(--pad) + 8px);
  bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero__scroll i {
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, var(--aqua), transparent);
  animation: scroll-line 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ---------- Depth meter ---------- */

.depth {
  position: fixed;
  right: clamp(12px, 2vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.depth__rail {
  position: relative;
  width: 1px;
  height: 200px;
  background: var(--line);
}
.depth__fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: linear-gradient(to bottom, var(--aqua), rgba(99, 240, 210, 0.15));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.1s linear;
}
.depth__dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 14px rgba(99, 240, 210, 0.9);
  transform: translateY(-50%);
  transition: top 0.1s linear;
}
.depth__readout {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  white-space: nowrap;
}
.depth__readout b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--aqua);
}
.depth__readout i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.depth__unit {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: rgba(7, 27, 37, 0.5);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__inner {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee i {
  font-style: normal;
  font-size: 8px;
  color: var(--aqua);
  opacity: 0.7;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   MISSION
   ============================================================ */

.mission__grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 3fr;
  gap: clamp(28px, 6vw, 90px);
}

.mission__content {
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 4vw, 56px);
}

.big-text {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.big-text em {
  font-size: 1.08em;
  color: var(--aqua);
}

.mission__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 44px);
  margin-top: clamp(36px, 5vw, 56px);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.mission__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.mission__facts dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.mission__facts dd {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ============================================================
   ZONES
   ============================================================ */

@property --z1 {
  syntax: "<color>";
  inherits: false;
  initial-value: #1d6a7a;
}
@property --z2 {
  syntax: "<color>";
  inherits: false;
  initial-value: #04121a;
}

.zones__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 1.55fr;
  gap: clamp(18px, 2.5vw, 32px);
  align-items: stretch;
}

.zones__tabs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.zone-tab {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: left;
  color: var(--muted);
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.zone-tab:hover {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}
.zone-tab[aria-selected="true"] {
  background: rgba(99, 240, 210, 0.07);
  border-color: rgba(99, 240, 210, 0.24);
  color: var(--text);
  transform: translateX(3px);
}
.zone-tab__num {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.zone-tab[aria-selected="true"] .zone-tab__num {
  color: var(--aqua);
}
.zone-tab__name {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.zone-tab__depth {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.zone-panel {
  --z1: #1d6a7a;
  --z2: #062330;
  position: relative;
  min-height: 440px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 110% at 85% 0%, var(--z1), transparent 62%),
    linear-gradient(155deg, var(--z1), var(--z2) 65%, #04121a);
  transition:
    --z1 0.9s var(--ease),
    --z2 0.9s var(--ease),
    border-color 0.6s var(--ease);
  isolation: isolate;
}

.zone-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px),
    radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.5px);
  background-size: 120px 120px, 170px 170px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.zone-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 18, 26, 0.6), transparent 55%);
}

.zone-panel.is-switching .zone-panel__inner {
  animation: zone-in 0.6s var(--ease);
}
@keyframes zone-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.zone-panel__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(26px, 3.6vw, 46px);
}

.zone-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.zone-panel__index {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--aqua);
}
.zone-panel__range {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(4, 18, 26, 0.25);
  backdrop-filter: blur(6px);
}

.zone-panel__name {
  margin-top: auto;
  padding-top: 48px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.zone-panel__desc {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(231, 244, 243, 0.82);
}

.zone-panel__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.zone-panel__meta dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(231, 244, 243, 0.6);
}
.zone-panel__meta dd {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

/* ============================================================
   SPECIES
   ============================================================ */

.species {
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(38, 90, 150, 0.12), transparent 70%);
}

.species__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.species-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 33, 44, 0.7), rgba(6, 22, 30, 0.55));
  transition:
    transform 0.5s var(--ease),
    border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.species-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 240, 210, 0.26);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.species-card__art {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 62%);
  border-bottom: 1px solid var(--line);
}
.species-card__art::before {
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--glow);
  opacity: 0.1;
  filter: blur(38px);
  transition: opacity 0.6s var(--ease);
}
.species-card:hover .species-card__art::before {
  opacity: 0.22;
}
.species-card__art::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 62%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent, var(--glow), transparent);
  opacity: 0.25;
}
.species-card__art svg {
  position: relative;
  z-index: 1;
  width: 82%;
  height: auto;
  color: color-mix(in srgb, var(--glow) 78%, #ffffff);
  opacity: 0.9;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--glow) 30%, transparent));
  animation: float 9s ease-in-out infinite alternate;
  transition: transform 0.6s var(--ease);
}
.species-card:nth-child(2) .species-card__art svg {
  animation-delay: -3s;
}
.species-card:nth-child(3) .species-card__art svg {
  animation-delay: -6s;
}
.species-card:hover .species-card__art svg {
  transform: scale(1.04);
}
@keyframes float {
  from {
    transform: translateY(-5px) rotate(-0.6deg);
  }
  to {
    transform: translateY(7px) rotate(0.6deg);
  }
}

.species-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 28px;
}

.tag {
  align-self: flex-start;
  padding: 5px 11px;
  border: 1px solid rgba(99, 240, 210, 0.28);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--aqua);
  background: rgba(99, 240, 210, 0.05);
}

.species-card h3 {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 300;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.species-card__latin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

.species-card__text {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ============================================================
   LOG
   ============================================================ */

.log__list {
  border-top: 1px solid var(--line);
}

.log__row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: 30px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.log__row:hover {
  background: rgba(99, 240, 210, 0.025);
  padding-left: 18px;
}

.log__date {
  padding-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.log__body h3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.log__body p {
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.log__depth {
  font-family: var(--display);
  font-weight: 300;
  font-size: 14px;
  color: var(--aqua);
  white-space: nowrap;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   JOIN
   ============================================================ */

.join {
  padding-top: 0;
}

.join__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 80px);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(32, 110, 128, 0.32), transparent 62%),
    linear-gradient(180deg, rgba(9, 31, 42, 0.85), rgba(5, 19, 27, 0.95));
  isolation: isolate;
}

.join__aura {
  position: absolute;
  z-index: -1;
  top: -40%;
  left: 50%;
  width: 640px;
  height: 640px;
  max-width: 120vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 240, 210, 0.16), transparent 62%);
  animation: pulse 9s ease-in-out infinite alternate;
}
@keyframes pulse {
  from {
    opacity: 0.55;
    transform: translateX(-50%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

.join .eyebrow {
  justify-content: center;
}
.join .eyebrow::before {
  display: none;
}

.join h2 {
  margin-top: 20px;
  max-width: none;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.02;
}

.join__lede {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.join__form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  margin-top: 36px;
}

.join__form input {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(4, 18, 26, 0.55);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.join__form input::placeholder {
  color: rgba(137, 169, 176, 0.65);
}
.join__form input:hover {
  border-color: rgba(150, 210, 218, 0.4);
}
.join__form input:focus {
  outline: none;
  border-color: var(--aqua);
  background: rgba(4, 18, 26, 0.8);
}
.join__form input[aria-invalid="true"] {
  border-color: var(--coral);
}

.join__form .btn {
  flex: none;
}

.join__note {
  margin-top: 16px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.join__error {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--coral);
}

.join__note.is-success {
  color: var(--aqua);
  font-size: 13px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0 28px;
  background: rgba(4, 15, 22, 0.6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
}

.footer__brand p {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer__col h4,
.footer__title {
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__col a {
  font-size: 13.5px;
  color: rgba(231, 244, 243, 0.78);
  transition: color 0.3s var(--ease);
}
.footer__col a:hover {
  color: var(--aqua);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .zones__layout {
    grid-template-columns: 1fr;
  }
  .zones__tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .zone-tab {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 12px 14px;
  }
  .zone-tab__num {
    display: none;
  }
  .zone-tab__name {
    font-size: 12.5px;
  }
  .zone-tab__depth {
    font-size: 10px;
  }
  .zone-tab[aria-selected="true"] {
    transform: none;
  }
  .zone-panel {
    min-height: 400px;
  }
}

@media (max-width: 1380px) {
  .depth {
    display: none;
  }
}

@media (max-width: 960px) {
  .mission__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .mission__content {
    border-left: 0;
    padding-left: 0;
  }
  .mission__cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .mission__facts {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .species__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .burger {
    display: block;
  }
  .hero__scroll {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 68px;
  }
  .zones__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .zone-tab {
    padding: 10px 10px 12px;
    border-radius: 10px;
  }
  .zone-panel__name {
    padding-top: 36px;
  }
  .zone-panel__meta {
    gap: 10px;
  }
  .zone-panel__meta dd {
    font-size: 13.5px;
  }
  .species__grid {
    grid-template-columns: 1fr;
  }
  .log__row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 4px;
  }
  .log__date {
    color: var(--aqua);
    font-size: 10.5px;
  }
  .log__depth {
    font-size: 13px;
    padding-top: 0;
  }
  .log__row:hover {
    padding-left: 4px;
  }
  .join__form {
    flex-direction: column;
  }
  .join__form .btn {
    width: 100%;
  }
  .hero__stats {
    gap: 22px 32px;
  }
  .hero__stats li {
    flex: 1 1 40%;
  }
  .footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .mission__facts {
    grid-template-columns: 1fr;
  }
  .zone-panel {
    min-height: 380px;
  }
  .zone-panel__desc {
    font-size: 13.5px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .brand {
    font-size: 13px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
