/* haskell.monster - Deep Sea Functional Programming Journal */

:root {
    --deep-abyss: #070b14;
    --code-bg: #0a1628;
    --twilight-zone: #0e1a2e;
    --mesopelagic: #162742;
    --biolum-glow: #7dd3fc;
    --biolum-mid: #38bdf8;
    --biolum-deep: #0284c7;
    --anglerfish-lure: #fbbf24;
    --surface-light: #e2e8f0;
    --midwater: #94a3b8;
    --coral-flash: #f472b6;
    --cool-slate: #64748b;
    --light-blue-gray: #c8d6e5;
    --text-on-light: #1e3a5f;
    --depth-bg: #0e1a2e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    background-color: var(--depth-bg);
    color: var(--light-blue-gray);
    overflow-x: hidden;
    line-height: 1.72;
    font-size: 17px;
    font-weight: 400;
}

/* Particles canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Vertical Nav */
#depth-nav {
    position: fixed;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.nav-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--biolum-glow);
    border: none;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.6s ease, transform 0.3s ease, box-shadow 0.6s ease;
    position: relative;
}

.nav-dot.active {
    opacity: 1;
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(125, 211, 252, 0.6);
    animation: navPulse 3s ease-in-out infinite;
}

@keyframes navPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Watermarks */
.watermark {
    position: absolute;
    font-family: 'Roboto Slab', serif;
    font-size: 400px;
    font-weight: 700;
    opacity: 0.04;
    color: var(--biolum-glow);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    line-height: 1;
}

#opening .watermark { top: -50px; right: -80px; }
#taxonomy .watermark { top: -30px; left: -60px; }
#specimen .watermark { bottom: -80px; right: -60px; }
#ecosystem .watermark { top: -40px; right: -50px; }
#abyss .watermark { top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 500px; }

/* Viewframe sections */
.viewframe {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 8% 80px 8%;
    overflow: hidden;
}

/* Fade reveal system */
.fade-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-reveal.delay-1 { transition-delay: 120ms; }
.fade-reveal.delay-2 { transition-delay: 240ms; }
.fade-reveal.delay-3 { transition-delay: 360ms; }
.fade-reveal.delay-4 { transition-delay: 480ms; }

/* Fish divider SVGs */
.fish-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 5;
}

.fish-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.fish-path.drawn {
    stroke-dashoffset: 0;
}

/* ===== SECTION 1: OPENING ===== */
#opening {
    background: linear-gradient(180deg, var(--twilight-zone) 0%, var(--mesopelagic) 100%);
}

.opening-content {
    position: relative;
    z-index: 10;
    max-width: 580px;
}

.site-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(48px, 8vw, 88px);
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--surface-light);
    text-shadow: 0 0 40px rgba(125, 211, 252, 0.3);
    margin-bottom: 24px;
}

.site-subtitle {
    font-family: 'Lora', serif;
    font-size: 19px;
    font-style: italic;
    color: var(--midwater);
    line-height: 1.72;
    margin-bottom: 32px;
    max-width: 420px;
}

.type-signature {
    display: inline-block;
}

.type-signature code {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 15px;
    color: var(--biolum-glow);
    background: #0a1628;
    border: 1px solid rgba(125, 211, 252, 0.12);
    padding: 8px 16px;
    border-radius: 4px;
}

/* Lambda Leviathan - hero organism */
.lambda-leviathan {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 300px;
    animation: leviSwim 20s ease-in-out infinite;
    z-index: 5;
}

@keyframes leviSwim {
    0% { transform: translateY(-50%) translate(0, 0); }
    25% { transform: translateY(-50%) translate(15px, -10px); }
    50% { transform: translateY(-50%) translate(-5px, 5px); }
    75% { transform: translateY(-50%) translate(-10px, -5px); }
    100% { transform: translateY(-50%) translate(0, 0); }
}

.organism-layer {
    position: absolute;
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    filter: blur(1px);
}

.layer-1 {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 60% 40% at 30% 50%, rgba(125, 211, 252, 0.25), transparent),
                radial-gradient(ellipse 40% 60% at 70% 40%, rgba(56, 189, 248, 0.18), transparent);
}

.layer-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(2, 132, 199, 0.2), transparent),
                radial-gradient(circle at 60% 40%, rgba(251, 191, 36, 0.08), transparent);
}

.layer-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    background: radial-gradient(circle at 50% 50%, rgba(125, 211, 252, 0.3), transparent);
    border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
}

.layer-4 {
    width: 30%;
    height: 30%;
    top: 35%;
    left: 35%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 50%;
    animation: corePulse 4s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.scroll-indicator span {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cool-slate);
}

.scroll-indicator svg {
    color: var(--cool-slate);
    animation: bobDown 2s ease-in-out infinite;
}

@keyframes bobDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ===== SECTION 2: TAXONOMY GRID ===== */
#taxonomy {
    background: linear-gradient(180deg, var(--mesopelagic) 0%, #0c1d35 100%);
}

.section-header {
    max-width: 580px;
    margin-bottom: 60px;
}

.section-header-right {
    margin-left: auto;
    text-align: right;
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cool-slate);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--surface-light);
    text-shadow: 0 0 40px rgba(125, 211, 252, 0.3);
    margin-bottom: 16px;
}

.section-desc {
    font-family: 'Lora', serif;
    font-size: 17px;
    color: var(--midwater);
    max-width: 580px;
    line-height: 1.72;
}

/* Taxonomy cards */
.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 960px;
}

.taxonomy-card {
    background: rgba(22, 39, 66, 0.6);
    border: 1px solid rgba(125, 211, 252, 0.08);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    gap: 24px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.taxonomy-card:hover {
    border-color: rgba(125, 211, 252, 0.2);
    box-shadow: 0 0 30px rgba(125, 211, 252, 0.05);
}

/* Card organisms */
.card-organism {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    position: relative;
}

/* Type Jellyfish */
.type-jellyfish .jelly-bell {
    width: 60px;
    height: 50px;
    background: radial-gradient(ellipse at 50% 30%, rgba(125, 211, 252, 0.4), rgba(56, 189, 248, 0.1), transparent);
    border-radius: 50% 50% 30% 30%;
    position: absolute;
    top: 10px;
    left: 20px;
    animation: jellyPulse 4s ease-in-out infinite;
}

@keyframes jellyPulse {
    0%, 100% { transform: scaleX(1) scaleY(1); }
    50% { transform: scaleX(1.05) scaleY(0.95); }
}

.jelly-tentacle {
    position: absolute;
    width: 2px;
    height: 35px;
    bottom: 5px;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.3), transparent);
    border-radius: 0 0 2px 2px;
}

.jelly-tentacle.t1 { left: 30px; animation: tentDrift 3s ease-in-out 0s infinite; }
.jelly-tentacle.t2 { left: 45px; animation: tentDrift 3s ease-in-out 0.5s infinite; }
.jelly-tentacle.t3 { left: 60px; animation: tentDrift 3s ease-in-out 1s infinite; }

@keyframes tentDrift {
    0%, 100% { transform: translateX(0) skewX(0deg); }
    50% { transform: translateX(3px) skewX(5deg); }
}

/* Monad Nautilus */
.monad-nautilus .nautilus-shell {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(251, 191, 36, 0.1), rgba(125, 211, 252, 0.2), rgba(251, 191, 36, 0.1), rgba(125, 211, 252, 0.2));
    position: absolute;
    top: 15px;
    left: 15px;
}

.nautilus-spiral {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, 0.15);
    position: absolute;
    top: 25px;
    left: 25px;
    animation: nautiSpin 12s linear infinite;
}

@keyframes nautiSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nautilus-glow {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent);
    position: absolute;
    top: 40px;
    left: 40px;
    animation: corePulse 4s ease-in-out infinite;
}

/* Functor Manta Ray */
.functor-ray .ray-body {
    width: 50px;
    height: 30px;
    background: radial-gradient(ellipse at 50% 50%, rgba(125, 211, 252, 0.3), transparent);
    border-radius: 50%;
    position: absolute;
    top: 35px;
    left: 25px;
}

.ray-wing {
    width: 35px;
    height: 20px;
    background: radial-gradient(ellipse at 50% 50%, rgba(56, 189, 248, 0.2), transparent);
    position: absolute;
    top: 38px;
}

.ray-wing.wing-left {
    left: 0;
    border-radius: 50% 0 0 50%;
    animation: wingFlap 2s ease-in-out infinite;
    transform-origin: right center;
}

.ray-wing.wing-right {
    right: 0;
    border-radius: 0 50% 50% 0;
    animation: wingFlap 2s ease-in-out 0.3s infinite;
    transform-origin: left center;
}

@keyframes wingFlap {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(20deg); }
}

.ray-glow {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.5), transparent);
    position: absolute;
    top: 40px;
    left: 42px;
}

/* Applicative Coral */
.applicative-coral .coral-branch {
    position: absolute;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(244, 114, 182, 0.4), rgba(244, 114, 182, 0.1));
}

.coral-branch.b1 { height: 50px; bottom: 10px; left: 30px; }
.coral-branch.b2 { height: 40px; bottom: 10px; left: 45px; transform: rotate(10deg); }
.coral-branch.b3 { height: 55px; bottom: 10px; left: 60px; transform: rotate(-5deg); }

.coral-polyps {
    position: absolute;
    top: 15px;
    left: 25px;
    width: 50px;
    height: 30px;
    background: radial-gradient(circle at 30% 50%, rgba(244, 114, 182, 0.2), transparent),
                radial-gradient(circle at 70% 40%, rgba(251, 191, 36, 0.15), transparent);
    border-radius: 50%;
}

.card-content {
    flex: 1;
}

.card-class {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cool-slate);
    display: block;
    margin-bottom: 8px;
}

.card-content h3 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--surface-light);
    text-shadow: 0 0 30px rgba(125, 211, 252, 0.2);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.card-content p {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: var(--midwater);
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-content code {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--biolum-glow);
    background: #0a1628;
    border: 1px solid rgba(125, 211, 252, 0.12);
    padding: 2px 6px;
    border-radius: 3px;
}

/* ===== SECTION 3: SPECIMEN DETAIL ===== */
#specimen {
    background: linear-gradient(180deg, #0c1d35 0%, #091525 100%);
}

.specimen-layout {
    display: flex;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
}

.specimen-visual {
    flex-shrink: 0;
    width: 380px;
    height: 380px;
    position: relative;
}

/* Lambda Leviathan Detail */
.lambda-leviathan-detail {
    width: 100%;
    height: 100%;
    position: relative;
}

.lev-body {
    position: absolute;
    width: 280px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse 70% 50% at 40% 50%, rgba(125, 211, 252, 0.2), transparent),
                radial-gradient(ellipse 50% 70% at 60% 40%, rgba(56, 189, 248, 0.15), transparent),
                radial-gradient(circle at 35% 55%, rgba(2, 132, 199, 0.2), transparent);
    border-radius: 60% 40% 45% 55% / 50% 55% 45% 50%;
    filter: blur(2px);
    animation: levBody 8s ease-in-out infinite;
}

@keyframes levBody {
    0%, 100% { border-radius: 60% 40% 45% 55% / 50% 55% 45% 50%; }
    50% { border-radius: 55% 45% 50% 50% / 45% 50% 50% 55%; }
}

.fin {
    position: absolute;
    left: 50%;
    width: 60px;
    height: 40px;
    background: radial-gradient(ellipse at 50% 50%, rgba(56, 189, 248, 0.15), transparent);
    filter: blur(1px);
}

.fin-top {
    top: 60px;
    transform: translateX(-50%);
    border-radius: 50% 50% 20% 20%;
}

.fin-bottom {
    bottom: 60px;
    transform: translateX(-50%);
    border-radius: 20% 20% 50% 50%;
}

.light-node {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.8), rgba(125, 211, 252, 0.2), transparent);
}

.light-node.n1 { width: 8px; height: 8px; top: 45%; left: 25%; animation: nodeBlink 3s ease-in-out 0s infinite; }
.light-node.n2 { width: 6px; height: 6px; top: 40%; left: 40%; animation: nodeBlink 3s ease-in-out 0.5s infinite; }
.light-node.n3 { width: 10px; height: 10px; top: 50%; left: 55%; animation: nodeBlink 3s ease-in-out 1s infinite; }
.light-node.n4 { width: 5px; height: 5px; top: 55%; left: 65%; animation: nodeBlink 3s ease-in-out 1.5s infinite; }
.light-node.n5 { width: 7px; height: 7px; top: 42%; left: 75%; animation: nodeBlink 3s ease-in-out 2s infinite; }

@keyframes nodeBlink {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.lev-eye {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #fbbf24, rgba(251, 191, 36, 0.4), transparent);
    top: 46%;
    left: 30%;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.specimen-text {
    max-width: 520px;
}

.specimen-label {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cool-slate);
    display: block;
    margin-bottom: 12px;
}

.specimen-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--surface-light);
    text-shadow: 0 0 40px rgba(125, 211, 252, 0.3);
    margin-bottom: 24px;
}

.specimen-quote {
    border-left: 3px solid var(--biolum-glow);
    padding-left: 20px;
    margin-bottom: 32px;
}

.specimen-quote p {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--light-blue-gray);
    line-height: 1.6;
}

.specimen-details {
    margin-bottom: 32px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(125, 211, 252, 0.06);
}

.detail-label {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cool-slate);
}

.detail-value {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: var(--light-blue-gray);
}

.detail-value code {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--biolum-glow);
}

.specimen-code pre {
    background: #0a1628;
    border-left: 3px solid var(--biolum-glow);
    border-radius: 0 4px 4px 0;
    padding: 20px;
    overflow-x: auto;
}

.specimen-code code {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--biolum-glow);
    line-height: 1.7;
}

/* ===== SECTION 4: ECOSYSTEM ===== */
#ecosystem {
    background: linear-gradient(180deg, #091525 0%, #06101c 100%);
}

.reef-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
}

.reef-node {
    text-align: center;
    padding: 24px;
}

.reef-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.reef-node h3 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--surface-light);
    text-shadow: 0 0 20px rgba(125, 211, 252, 0.2);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.reef-node p {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: var(--midwater);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* Reef decoration */
.reef-decoration {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
}

.reef-blob {
    position: absolute;
    border-radius: 50% 40% 60% 50% / 60% 50% 40% 50%;
    filter: blur(3px);
}

.rb1 {
    width: 120px; height: 80px;
    bottom: 0; left: 5%;
    background: radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.12), transparent);
}

.rb2 {
    width: 80px; height: 60px;
    bottom: 10px; left: 20%;
    background: radial-gradient(ellipse at 50% 50%, rgba(251, 191, 36, 0.1), transparent);
}

.rb3 {
    width: 150px; height: 90px;
    bottom: 0; left: 40%;
    background: radial-gradient(ellipse at 50% 50%, rgba(125, 211, 252, 0.1), transparent);
}

.rb4 {
    width: 100px; height: 70px;
    bottom: 5px; right: 25%;
    background: radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.08), transparent);
}

.rb5 {
    width: 130px; height: 85px;
    bottom: 0; right: 5%;
    background: radial-gradient(ellipse at 50% 50%, rgba(56, 189, 248, 0.12), transparent);
}

/* ===== SECTION 5: ABYSS ===== */
.abyss-section {
    background: linear-gradient(180deg, #06101c 0%, var(--deep-abyss) 100%);
    text-align: center;
    align-items: center;
}

.abyss-content {
    max-width: 580px;
    position: relative;
    z-index: 10;
}

/* Anglerfish */
.abyss-organism {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 40px;
}

.angler-body {
    width: 80px;
    height: 60px;
    background: radial-gradient(ellipse at 50% 50%, rgba(22, 39, 66, 0.8), rgba(7, 11, 20, 0.4));
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    position: absolute;
    bottom: 0;
    left: 20px;
    border: 1px solid rgba(125, 211, 252, 0.05);
}

.angler-lure {
    width: 2px;
    height: 35px;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.3), transparent);
    position: absolute;
    top: 0;
    left: 55px;
    transform-origin: bottom center;
    animation: lureSway 4s ease-in-out infinite;
}

@keyframes lureSway {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.angler-glow {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #fbbf24, rgba(251, 191, 36, 0.4), transparent);
    position: absolute;
    top: -6px;
    left: 49px;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6), 0 0 40px rgba(251, 191, 36, 0.3);
    animation: lureGlow 2s ease-in-out infinite;
}

@keyframes lureGlow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.abyss-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--surface-light);
    text-shadow: 0 0 40px rgba(125, 211, 252, 0.3);
    margin-bottom: 20px;
}

.abyss-text {
    font-family: 'Lora', serif;
    font-size: 17px;
    color: var(--midwater);
    line-height: 1.72;
    margin-bottom: 24px;
}

.abyss-ascent {
    margin-bottom: 32px;
}

.ascent-text {
    font-family: 'Lora', serif;
    font-size: 17px;
    color: var(--light-blue-gray);
    line-height: 1.72;
}

.biolum-link {
    color: var(--biolum-glow);
    text-decoration: none;
    transition: text-shadow 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid rgba(125, 211, 252, 0.3);
}

.biolum-link:hover {
    text-shadow: 0 0 15px rgba(125, 211, 252, 0.5);
    color: #a5e4ff;
    border-bottom-color: var(--biolum-glow);
}

.abyss-signature {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.abyss-signature code {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--biolum-glow);
    display: block;
}

.abyss-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 40px;
    border-top: 1px solid rgba(125, 211, 252, 0.06);
}

.footer-domain {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--surface-light);
    letter-spacing: 0.02em;
}

.footer-divider {
    color: var(--cool-slate);
}

.footer-tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 15px;
    color: var(--midwater);
}

/* Depth Gauge */
.depth-gauge {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 999;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.depth-gauge:hover {
    opacity: 1;
}

.depth-label,
.depth-value {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cool-slate);
}

.depth-bar {
    width: 3px;
    height: 80px;
    background: rgba(125, 211, 252, 0.1);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.depth-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--biolum-glow), var(--biolum-deep));
    border-radius: 3px;
    transition: height 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .viewframe {
        padding: 60px 6% 60px 6%;
    }

    .lambda-leviathan {
        width: 200px;
        height: 150px;
        right: 5%;
        opacity: 0.5;
    }

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

    .taxonomy-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .specimen-layout {
        flex-direction: column;
        gap: 40px;
    }

    .specimen-visual {
        width: 250px;
        height: 250px;
    }

    .reef-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    #depth-nav {
        display: none;
    }

    .depth-gauge {
        display: none;
    }

    .section-header-right {
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .reef-grid {
        grid-template-columns: 1fr;
    }

    .site-title {
        font-size: 40px;
    }
}
