:root {
  color-scheme: dark;
  --ink: #f1fbff;
  --soft: #c7dce4;
  --muted: #7f9aa6;
  --abyss: #02060b;
  --deep: #03111a;
  --pool: #061e2a;
  --glow: #66fff2;
  --blue: #4ea4ff;
  --violet: #9d6cff;
  --coral: #ff5f72;
  --amber: #ffd166;
  --line: rgba(184, 246, 255, 0.18);
  --panel: rgba(6, 22, 31, 0.62);
  --shadow: 0 32px 120px rgba(0, 0, 0, 0.54);
  font-family:
    Inter, "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(157, 108, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 78% 12%, rgba(102, 255, 242, 0.16), transparent 34rem),
    linear-gradient(180deg, #010409 0%, #03111a 34%, #061b23 64%, #02060b 100%);
  overflow-x: clip;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, black, transparent 84%);
}

body::after {
  z-index: -1;
  background:
    repeating-linear-gradient(
      100deg,
      transparent 0 8rem,
      rgba(102, 255, 242, 0.035) 8.5rem 9.25rem,
      transparent 10rem 16rem
    ),
    radial-gradient(circle at 50% 110%, rgba(78, 164, 255, 0.16), transparent 42rem);
  mix-blend-mode: screen;
  opacity: 0.7;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 0.9rem;
  color: #021016;
  background: var(--amber);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4.75rem);
  background: linear-gradient(180deg, rgba(1, 6, 10, 0.82), rgba(1, 6, 10, 0.28));
  border-bottom: 1px solid rgba(184, 246, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--glow);
  border-radius: 50% 50% 46% 46%;
  box-shadow: 0 0 22px rgba(102, 255, 242, 0.9);
}

.nav {
  gap: clamp(0.5rem, 2vw, 1.35rem);
  color: var(--soft);
  font-size: 0.86rem;
}

.nav a {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.82;
}

.nav a:hover {
  color: var(--glow);
  opacity: 1;
}

.hero {
  position: relative;
  --drift-x: 0px;
  --drift-y: 0px;
  min-height: 92svh;
  padding: clamp(6rem, 8vw, 7.25rem) clamp(1rem, 5vw, 5rem) 3.25rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  left: clamp(1rem, 5vw, 5rem);
  right: clamp(1rem, 5vw, 5rem);
  bottom: 2rem;
  z-index: 10;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(102, 255, 242, 0.5), transparent);
}

.hero-backdrop,
.drifter,
.water-ray {
  position: absolute;
  pointer-events: none;
}

.hero-backdrop {
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform:
    perspective(1200px)
    rotateX(calc(var(--drift-y) * -0.11deg))
    rotateY(calc(var(--drift-x) * 0.11deg))
    translate3d(calc(var(--drift-x) * -0.18), calc(var(--drift-y) * -0.18), 0);
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  z-index: 4;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 58% 45%, transparent 0 20rem, rgba(2, 6, 11, 0.2) 34rem, rgba(2, 6, 11, 0.78) 100%),
    linear-gradient(90deg, rgba(2, 6, 11, 0.9) 0%, rgba(2, 6, 11, 0.44) 38%, transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%, rgba(2, 6, 11, 0.56));
}

.hero-media::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 65% 38%, rgba(102, 255, 242, 0.24), transparent 16rem),
    radial-gradient(circle at 38% 72%, rgba(157, 108, 255, 0.2), transparent 20rem),
    linear-gradient(130deg, transparent 12%, rgba(102, 255, 242, 0.16), transparent 42%);
  mix-blend-mode: screen;
}

.hero-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(1.2) contrast(1.08) blur(0.4px);
  transform: scale(1.08) translate3d(calc(var(--drift-x) * -0.06), calc(var(--drift-y) * -0.06), -60px);
}

.jelly-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 61% 46%, rgba(102, 255, 242, 0.24), transparent 23rem),
    linear-gradient(150deg, rgba(2, 6, 11, 0.98), rgba(5, 33, 46, 0.72) 52%, rgba(2, 6, 11, 0.96));
}

.hero-depth {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transform: translate3d(calc(var(--drift-x) * 0.16), calc(var(--drift-y) * 0.16), 0);
}

.hero-depth span {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(102, 255, 242, 0.16);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(102, 255, 242, 0.12), transparent 62%);
  animation: slow-drift 16s ease-in-out infinite;
}

.hero-depth span:nth-child(1) {
  top: 8%;
  left: -7rem;
}

.hero-depth span:nth-child(2) {
  right: -9rem;
  bottom: 6%;
  width: 32rem;
  height: 32rem;
  border-color: rgba(157, 108, 255, 0.18);
  background: radial-gradient(circle, rgba(157, 108, 255, 0.12), transparent 64%);
  animation-delay: -5s;
}

.hero-depth span:nth-child(3) {
  top: 45%;
  left: 48%;
  width: 12rem;
  height: 12rem;
  border-color: rgba(255, 95, 114, 0.18);
  background: radial-gradient(circle, rgba(255, 95, 114, 0.12), transparent 64%);
  animation-delay: -9s;
}

.water-ray {
  top: -16%;
  width: 9rem;
  height: 135%;
  background: linear-gradient(180deg, rgba(170, 250, 255, 0.16), transparent 65%);
  filter: blur(10px);
  opacity: 0.48;
  transform: rotate(14deg);
  animation: ray-drift 18s ease-in-out infinite;
}

.ray-a {
  left: 22%;
}

.ray-b {
  left: 56%;
  width: 7rem;
  opacity: 0.32;
  animation-delay: -7s;
}

.ray-c {
  right: 5%;
  width: 11rem;
  opacity: 0.22;
  animation-delay: -12s;
}

.drifter {
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(102, 255, 242, 0.34);
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 45% 28%, rgba(255, 255, 255, 0.32), transparent 16%),
    radial-gradient(circle at 54% 42%, rgba(102, 255, 242, 0.2), rgba(157, 108, 255, 0.08) 58%, transparent 74%);
  box-shadow:
    inset 0 0 55px rgba(102, 255, 242, 0.16),
    0 0 80px rgba(102, 255, 242, 0.12);
  filter: blur(0.1px);
  animation: float 12s ease-in-out infinite;
  transform: translate3d(var(--drift-x), var(--drift-y), 0);
}

.drifter::after {
  position: absolute;
  top: 72%;
  left: 18%;
  width: 64%;
  height: 13rem;
  content: "";
  background: repeating-linear-gradient(90deg, rgba(102, 255, 242, 0.5) 0 2px, transparent 2px 18px);
  mask-image: linear-gradient(180deg, black, transparent);
  filter: drop-shadow(0 0 12px rgba(102, 255, 242, 0.36));
}

.drifter-a {
  top: 18%;
  right: 7%;
  width: min(32vw, 28rem);
  height: min(32vw, 28rem);
  opacity: 0.9;
}

.drifter-b {
  bottom: 14%;
  left: 8%;
  width: 7rem;
  height: 7rem;
  animation-delay: -4s;
}

.drifter-c {
  top: 66%;
  right: 36%;
  width: 8rem;
  height: 8rem;
  animation-delay: -7s;
}

.hero-copy {
  position: relative;
  z-index: 12;
  display: grid;
  align-content: end;
  max-width: 36rem;
  min-height: calc(92svh - clamp(9rem, 13vw, 12rem));
  padding-top: 14vh;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--glow);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 11.5ch;
  margin-bottom: 0.95rem;
  font-size: clamp(3rem, 5.4vw, 5.45rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 5.4vw, 6rem);
  font-weight: 920;
  line-height: 0.9;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.64;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 34rem;
  color: var(--soft);
  font-size: clamp(0.96rem, 0.96vw, 1.06rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  min-width: 0;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  text-decoration: none;
  font-weight: 900;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button.primary {
  color: #011016;
  background: linear-gradient(135deg, var(--glow), #9ffff8);
  border-color: transparent;
  box-shadow: 0 0 42px rgba(102, 255, 242, 0.35);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  box-shadow: 0 0 56px rgba(102, 255, 242, 0.5);
}

.button.secondary:hover {
  border-color: rgba(102, 255, 242, 0.5);
  background: rgba(102, 255, 242, 0.08);
}

.fact-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 clamp(1rem, 5vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(4, 16, 23, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.fact-strip article {
  min-height: 5.45rem;
  padding: clamp(0.75rem, 1.7vw, 1rem);
  border-right: 1px solid var(--line);
}

.fact-strip article:last-child {
  border-right: 0;
}

.fact-strip strong {
  display: block;
  color: var(--amber);
  font-size: clamp(1.55rem, 2.35vw, 2.45rem);
  font-weight: 950;
  line-height: 0.95;
}

.fact-strip span {
  color: var(--soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.split-section,
.signals-section,
.life-section,
.species-section,
.myths-section,
.sources-section {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 5vw, 5rem);
}

.parallax-band {
  --scroll-shift: 0px;
  position: relative;
}

.parallax-band::before {
  position: absolute;
  inset: 8% 0 auto;
  z-index: -1;
  height: 28rem;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 20% 50%, rgba(102, 255, 242, 0.13), transparent 26rem),
    radial-gradient(circle at 78% 48%, rgba(157, 108, 255, 0.12), transparent 24rem),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
  opacity: 0.9;
  transform: translate3d(0, calc(var(--scroll-shift) * -0.2), 0);
}

.split-section,
.signals-section {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(20rem, 1.24fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.section-copy p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--soft);
  font-size: 1.02rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.section-heading .eyebrow {
  align-self: start;
  padding-top: 0.5rem;
}

.anatomy-panel,
.signal-orbit,
.timeline article,
.species-card,
.myths-grid article,
.source-list li {
  border: 1px solid rgba(184, 246, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 34%),
    rgba(6, 22, 31, 0.58);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.anatomy-panel {
  display: grid;
  min-height: 34rem;
  place-items: center;
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(102, 255, 242, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(255, 95, 114, 0.12), transparent 34%),
    rgba(5, 23, 33, 0.7);
  transform: translate3d(0, calc(var(--scroll-shift, 0px) * -0.08), 0);
}

.jelly-diagram {
  position: relative;
  width: min(80vw, 31rem);
  height: 30rem;
}

.diagram-bell {
  position: absolute;
  top: 2rem;
  left: 50%;
  width: 18rem;
  height: 12rem;
  border: 2px solid rgba(102, 255, 242, 0.78);
  border-bottom: 0;
  border-radius: 50% 50% 18% 18%;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.24), rgba(102, 255, 242, 0.12) 56%, transparent);
  box-shadow: 0 0 68px rgba(102, 255, 242, 0.28);
  transform: translateX(-50%);
}

.diagram-core {
  position: absolute;
  top: 10rem;
  left: 50%;
  width: 7rem;
  height: 5rem;
  border-radius: 45%;
  background: rgba(255, 95, 114, 0.4);
  filter: blur(1px);
  transform: translateX(-50%);
}

.tentacles {
  position: absolute;
  top: 13rem;
  left: 50%;
  display: flex;
  gap: 1.1rem;
  transform: translateX(-50%);
}

.tentacles i {
  display: block;
  width: 0.22rem;
  height: 14rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--glow), transparent);
  transform-origin: top center;
  animation: sway 4s ease-in-out infinite;
}

.tentacles i:nth-child(2n) {
  height: 16rem;
  animation-delay: -1.5s;
}

.tentacles i:nth-child(3n) {
  height: 11rem;
  animation-delay: -2.7s;
}

.label {
  position: absolute;
  padding: 0.45rem 0.55rem;
  color: var(--ink);
  background: rgba(2, 9, 14, 0.78);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font-size: 0.82rem;
}

.label.bell {
  top: 1rem;
  right: 0;
}

.label.mouth {
  top: 12rem;
  left: 0;
}

.label.sting {
  right: 0.5rem;
  bottom: 3rem;
}

.life-section {
  overflow: hidden;
}

.cycle-orbit {
  position: absolute;
  top: 42%;
  right: 7vw;
  width: min(48vw, 36rem);
  aspect-ratio: 1;
  border: 1px solid rgba(102, 255, 242, 0.18);
  border-radius: 50%;
  opacity: 0.72;
  transform: translate3d(0, calc(var(--scroll-shift, 0px) * -0.12), 0);
}

.cycle-orbit span {
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 28px var(--glow);
  animation: pulse 2.8s ease-in-out infinite;
}

.cycle-orbit span:nth-child(1) {
  top: 5%;
  left: 48%;
}

.cycle-orbit span:nth-child(2) {
  top: 46%;
  right: 4%;
  background: var(--violet);
  box-shadow: 0 0 28px var(--violet);
  animation-delay: -0.7s;
}

.cycle-orbit span:nth-child(3) {
  bottom: 7%;
  left: 46%;
  background: var(--amber);
  box-shadow: 0 0 28px var(--amber);
  animation-delay: -1.4s;
}

.cycle-orbit span:nth-child(4) {
  top: 47%;
  left: 4%;
  background: var(--coral);
  box-shadow: 0 0 28px var(--coral);
  animation-delay: -2.1s;
}

.timeline,
.myths-grid {
  display: grid;
  gap: 1rem;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article,
.myths-grid article {
  min-height: 15rem;
  padding: 1.35rem;
  border-radius: 1rem;
  transform: translate3d(0, calc(var(--scroll-shift, 0px) * 0.035), 0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.timeline article:nth-child(even) {
  margin-top: 4rem;
}

.timeline article:hover,
.species-card:hover,
.myths-grid article:hover {
  border-color: rgba(102, 255, 242, 0.42);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.44), 0 0 44px rgba(102, 255, 242, 0.1);
  transform: translateY(-0.28rem);
}

.timeline span {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  color: #021016;
  background: var(--amber);
  border-radius: 50%;
  font-weight: 950;
}

.species-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.92fr 1.06fr;
  gap: 1rem;
  align-items: stretch;
}

.species-card {
  display: grid;
  grid-template-rows: minmax(18rem, 52vh) auto;
  min-height: 38rem;
  overflow: hidden;
  border-radius: 1.1rem;
  transform: translate3d(0, calc(var(--scroll-shift, 0px) * 0.026), 0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.species-card:nth-child(2) {
  margin-top: 4rem;
}

.species-card:nth-child(3) {
  margin-top: 1.5rem;
}

.species-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.06);
}

.species-photo--portrait {
  padding: 1rem;
  background:
    radial-gradient(circle at 28% 20%, rgba(102, 255, 242, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(6, 26, 40, 0.96), rgba(8, 6, 45, 0.96));
  object-fit: contain;
}

.species-card div {
  padding: 1.2rem;
}

.species-card h3 {
  color: var(--ink);
}

.species-meta {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.species-meta div {
  padding: 0;
}

.species-meta dt {
  margin-bottom: 0.15rem;
  color: var(--glow);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.species-meta dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.myths-section {
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 95, 114, 0.16), transparent 24rem),
    radial-gradient(circle at 70% 44%, rgba(157, 108, 255, 0.16), transparent 28rem);
}

.myths-grid {
  grid-template-columns: repeat(4, 1fr);
}

.myths-grid article {
  border-color: rgba(255, 95, 114, 0.22);
}

.myths-grid article h3 {
  color: #ffe4e8;
}

.signal-orbit {
  position: relative;
  min-height: 31rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(102, 255, 242, 0.24), rgba(157, 108, 255, 0.12) 48%, transparent 70%),
    conic-gradient(from 40deg, transparent, rgba(102, 255, 242, 0.18), transparent, rgba(255, 95, 114, 0.14), transparent);
  box-shadow: inset 0 0 110px rgba(102, 255, 242, 0.18), 0 0 80px rgba(157, 108, 255, 0.16);
  transform: translate3d(0, calc(var(--scroll-shift, 0px) * -0.09), 0);
}

.signal-orbit span {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 32px var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}

.signal-orbit span:nth-child(1) {
  top: 20%;
  left: 50%;
}

.signal-orbit span:nth-child(2) {
  top: 52%;
  right: 15%;
  background: var(--coral);
  box-shadow: 0 0 32px var(--coral);
  animation-delay: -0.6s;
}

.signal-orbit span:nth-child(3) {
  bottom: 18%;
  left: 28%;
  background: var(--amber);
  box-shadow: 0 0 32px var(--amber);
  animation-delay: -1.2s;
}

.signal-orbit span:nth-child(4) {
  top: 35%;
  left: 18%;
  background: var(--violet);
  box-shadow: 0 0 32px var(--violet);
  animation-delay: -1.8s;
}

.sources-section {
  padding-top: 2rem;
}

.sources-section .section-heading {
  display: block;
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.sources-section h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.source-list li {
  min-height: 6.25rem;
  border-radius: 0.85rem;
}

.source-list a {
  display: flex;
  height: 100%;
  align-items: flex-start;
  padding: 1rem;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
  text-decoration: none;
}

.source-list a:hover {
  color: var(--glow);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 3rem, 0);
  transition:
    opacity 780ms ease,
    filter 780ms ease,
    transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  background: rgba(1, 6, 10, 0.62);
}

.site-footer p {
  margin: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  50% {
    transform: translate3d(1rem, -1.4rem, 0) rotate(5deg);
  }
}

@keyframes ray-drift {
  0%,
  100% {
    transform: translate3d(-1rem, 0, 0) rotate(14deg);
  }
  50% {
    transform: translate3d(1.5rem, 2rem, 0) rotate(18deg);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@keyframes slow-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.2rem, -1.6rem, 0) scale(1.08);
  }
}

@media (max-width: 1080px) {
  .section-heading,
  .split-section,
  .signals-section {
    grid-template-columns: 1fr;
  }

  .timeline,
  .myths-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .species-grid {
    grid-template-columns: 1fr;
  }

  .species-card,
  .species-card:nth-child(2),
  .species-card:nth-child(3) {
    min-height: auto;
    margin-top: 0;
  }

  .species-card {
    grid-template-rows: 22rem auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
    padding-block: 0.75rem;
    background: rgba(1, 6, 10, 0.82);
  }

  .nav {
    width: 100%;
    padding-bottom: 0.2rem;
    gap: 0.55rem;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 0.82rem;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 2.35rem;
    padding: 0 0.72rem;
    background: rgba(255, 255, 255, 0.052);
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .hero {
    min-height: calc(100svh - 5.8rem);
    padding-top: 2.5rem;
    padding-bottom: 2.6rem;
  }

  .hero-copy {
    min-height: calc(100svh - 10.5rem);
    padding-top: 30vh;
  }

  .hero-media::before {
    background:
      linear-gradient(180deg, rgba(2, 6, 11, 0.88) 0%, rgba(2, 6, 11, 0.58) 35%, rgba(2, 6, 11, 0.38) 76%, rgba(2, 6, 11, 0.82) 100%),
      radial-gradient(circle at 58% 34%, transparent 0 11rem, rgba(2, 6, 11, 0.48) 28rem);
  }

  h1 {
    max-width: 10.7ch;
    margin-bottom: 0.8rem;
    font-size: clamp(2.35rem, 10vw, 3.35rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
    line-height: 0.94;
  }

  .hero-copy > p:not(.eyebrow) {
    max-width: none;
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-top: 1.15rem;
  }

  .drifter-a {
    top: 14%;
    right: 8%;
    width: 14rem;
    height: 14rem;
  }

  .button {
    width: auto;
    padding-inline: 0.8rem;
  }

  .fact-strip,
  .timeline,
  .myths-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .fact-strip {
    margin-inline: 1rem;
    border-radius: 0.75rem;
  }

  .fact-strip article {
    min-height: auto;
    padding: 0.78rem 0.9rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-strip article:last-child {
    border-bottom: 0;
  }

  .timeline article:nth-child(even) {
    margin-top: 0;
  }

  .species-card {
    grid-template-rows: 17rem auto;
  }

  .jelly-diagram {
    width: 100%;
    transform: scale(0.78);
  }

  .anatomy-panel {
    min-height: 27rem;
  }

  .cycle-orbit {
    display: none;
  }

  .signal-orbit {
    min-height: 22rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .jelly-canvas {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
