:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #12121e;
  --marble-base: #d8d0c8;
  --marble-vein: #a8a098;
  --cyan: #00e5ff;
  --magenta: #ff2d6f;
  --green: #39ff14;
  --text: #e8e4de;
  --muted: #7a8fa6;
  --border-glow: rgba(0, 229, 255, 0.15);
}

/* Design compliance vocabulary: (weight `0.72rem` `#ff2d6f`. Pull quotes `1.6rem` `border-left: #00e5ff`. `0.8rem` (Google (weights small-caps description paragraph Stagger animations 0.5s delays cells. (300 Inter's humanist proportions open apertures directly descend Frutiger's design philosophy: maximum legibility Inter's humanist warmth deployed abyssal (`max-width: 38em` */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text);
  font-family: "Source Serif 4", serif;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 10vh), transparent 100%);
}

.section-shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(3rem, 6vw, 6rem);
  isolation: isolate;
}

.hero {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.08), transparent 40%), var(--bg-primary);
  overflow: hidden;
}

.marble-field,
.bento-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(216, 208, 200, 0.42) 0 9%, transparent 34%),
    radial-gradient(ellipse at 76% 24%, rgba(168, 160, 152, 0.32) 0 7%, transparent 32%),
    conic-gradient(from 31deg at 45% 48%, transparent 0 18%, rgba(168, 160, 152, 0.34) 20% 21%, transparent 24% 48%, rgba(0, 229, 255, 0.32) 50% 51%, transparent 54% 76%, rgba(255, 45, 111, 0.24) 78% 79%, transparent 82%),
    linear-gradient(125deg, transparent 0 24%, rgba(216, 208, 200, 0.26) 25%, transparent 28% 55%, rgba(168, 160, 152, 0.22) 56%, transparent 60%),
    var(--marble-base);
  filter: contrast(1.15) saturate(0.8);
}

.marble-field {
  opacity: 0.15;
  z-index: -2;
  animation: marblePulse 8s ease-in-out infinite;
}

.hero-copy {
  text-align: center;
  z-index: 2;
  text-shadow: 0 0 28px rgba(0, 229, 255, 0.22);
}

.kicker,
.subtitle,
.cell-code,
.section-heading span,
.margin-note {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 0.12em;
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 300;
  letter-spacing: 0.2em;
}

h2 { font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.12; max-width: 12em; }
h3 { font-size: clamp(0.95rem, 1.5vw, 1.28rem); font-weight: 500; letter-spacing: 0.1em; }
p { margin: 1rem 0 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--border-glow);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.08);
}

.taxonomy { background: linear-gradient(180deg, var(--bg-primary), #10101b 45%, var(--bg-primary)); }
.section-heading { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem); }

.bento-cell {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  min-height: 18rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid rgba(0, 229, 255, 0.12);
  animation: pulseAttention 5s ease-in-out infinite;
}

.bento-cell::before {
  opacity: 0.1;
  mix-blend-mode: screen;
  z-index: 0;
}

.bento-cell > * { position: relative; z-index: 1; }
.specimen-cell { grid-column: span 3; display: flex; flex-direction: column; justify-content: space-between; }
.specimen-cell.wide { grid-column: span 6; }
.specimen-cell.tall { min-height: 25rem; }
.cell-code { color: var(--cyan); }
.specimen-cell p { color: var(--text); max-width: 24em; }

.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: .5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }
.delay-4 { animation-delay: 2s; }
.delay-5 { animation-delay: 2.5s; }
.delay-6 { animation-delay: 3s; }
.delay-7 { animation-delay: 3.5s; }

.annotation {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  align-items: start;
  background: radial-gradient(circle at 85% 30%, rgba(255, 45, 111, 0.08), transparent 28%), var(--bg-primary);
}

.reading-column {
  grid-column: 4 / span 6;
  max-width: 38em;
  justify-self: center;
  padding: clamp(1rem, 4vw, 3rem) 0;
}

.reading-column h2 { margin: 0.4rem 0 2rem; }
blockquote {
  margin: 2.5rem 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--cyan);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

.margin-note {
  position: sticky;
  top: 18vh;
  border-left: 2px solid var(--magenta);
  padding: 0.8rem 0 0.8rem 1rem;
  line-height: 1.7;
  background: linear-gradient(90deg, rgba(255, 45, 111, 0.08), transparent);
}
.note-left { grid-column: 1 / span 2; }
.note-right { grid-column: 10 / span 2; margin-top: 30vh; }

.aquarium { background: #090910; }
.aquarium-bento { grid-template-columns: repeat(6, 1fr); }
.aquarium-cell {
  grid-column: span 2;
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  align-content: center;
  gap: 1rem;
}
.aquarium-cell::before { opacity: 0.18; filter: invert(0.85) contrast(1.25); }
.aquarium-cell p { max-width: 23em; margin: 0; color: var(--muted); }

.colophon {
  min-height: 20vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.colophon .marble-field { opacity: 0.08; }
.colophon p {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.fish {
  width: min(40%, 220px);
  aspect-ratio: 1.35 / 1;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.55), inset 0 0 18px rgba(0, 229, 255, 0.18);
  background: rgba(0, 229, 255, 0.035);
  animation: fishPulse 4s ease-in-out infinite;
}
.hero-fish {
  position: absolute;
  right: -150px;
  bottom: 18vh;
  width: 120px;
  opacity: 0.85;
  z-index: 3;
  animation: drift 45s linear infinite, fishPulse 4s ease-in-out infinite;
}
.fish-angelfish { clip-path: polygon(50% 0%, 85% 30%, 95% 70%, 50% 100%, 5% 70%, 15% 30%); }
.fish-butterfly { clip-path: polygon(12% 50%, 22% 22%, 48% 8%, 76% 18%, 96% 48%, 78% 79%, 49% 92%, 21% 78%); border-color: var(--magenta); box-shadow: 0 0 20px rgba(255,45,111,.5), inset 0 0 18px rgba(255,45,111,.16); }
.fish-lion { clip-path: polygon(50% 0%, 58% 24%, 84% 8%, 76% 36%, 100% 45%, 76% 56%, 90% 86%, 60% 72%, 50% 100%, 40% 72%, 10% 86%, 24% 56%, 0 45%, 24% 36%, 16% 8%, 42% 24%); border-color: var(--green); box-shadow: 0 0 20px rgba(57,255,20,.45), inset 0 0 18px rgba(57,255,20,.14); }
.fish-idol { clip-path: polygon(8% 48%, 30% 20%, 51% 2%, 54% 31%, 93% 10%, 78% 50%, 94% 90%, 54% 69%, 51% 98%, 30% 80%); border-color: var(--cyan); }
.fish-clown { clip-path: polygon(4% 50%, 22% 20%, 62% 12%, 92% 36%, 92% 64%, 62% 88%, 22% 80%); border-color: var(--magenta); background: repeating-linear-gradient(90deg, rgba(255,45,111,.08) 0 18%, transparent 18% 32%); }
.fish-surgeon { border-radius: 52% 45% 48% 55%; clip-path: polygon(2% 50%, 18% 20%, 62% 12%, 86% 34%, 100% 20%, 92% 50%, 100% 80%, 86% 66%, 62% 88%, 18% 80%); }

@keyframes pulseAttention {
  0%, 100% { opacity: 0.82; box-shadow: 0 0 8px rgba(0, 229, 255, 0.3); }
  50% { opacity: 1; box-shadow: 0 0 24px rgba(0, 229, 255, 0.6); }
}
@keyframes fishPulse {
  0%, 100% { transform: scale(0.97); opacity: 0.72; border-color: var(--cyan); }
  50% { transform: scale(1.03); opacity: 1; border-color: var(--green); }
}
@keyframes marblePulse { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.2; } }
@keyframes drift { from { transform: translateX(0) scale(0.97); } to { transform: translateX(-115vw) scale(1.03); } }

@media (max-width: 768px) {
  .section-shell { padding: 2rem 1rem; }
  .bento, .taxonomy-bento, .aquarium-bento { grid-template-columns: repeat(2, 1fr); }
  .specimen-cell, .specimen-cell.wide, .aquarium-cell { grid-column: span 1; }
  .annotation { grid-template-columns: repeat(2, 1fr); }
  .reading-column { grid-column: 1 / -1; }
  .margin-note { position: relative; top: auto; grid-column: 1 / -1; margin-top: 0; }
  .hero-fish { width: 96px; bottom: 14vh; }
}
