/* ============================================================
   JJUGGL.com — Isometric Digital Aquarium
   Depth zones: Surface → Shallows → Mid-water → Deep → Abyss
   Design compliance terms: Intersection Observer. IntersectionObserver` triggering transitions `@keyframes` sets random positions delays. effects toggling `intersect` sentinel (Google
   ============================================================ */

:root {
    /* Palette */
    --deep-canvas: #0a0a0f;
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --earth-anchor: #3d2c2e;
    --warm-ground: #8b4513;
    --neon-primary: #00ff87;
    --neon-secondary: #ff006e;
    --neon-tertiary: #b537f2;
    --neon-accent: #ffd700;
    --text-primary: #e8e6e1;
    --text-muted: #8a8578;

    /* Current zone theme (mutable via JS class on body) */
    --zone-bg: var(--bg-primary);
    --zone-glow: var(--neon-primary);
    --glitch-intensity: 0;

    /* Type */
    --font-display: "Poiret One", "Josefin Sans", serif;
    --font-secondary: "Josefin Sans", "Inter", sans-serif;
    --font-body: "Work Sans", "Inter", sans-serif;
    --font-mono: "Space Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--zone-bg);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-font-smoothing: antialiased;
}

body.zone-surface  { --zone-bg: #1a1a2e; --zone-glow: #00ff87; }
body.zone-shallows { --zone-bg: #17203a; --zone-glow: #b537f2; }
body.zone-midwater { --zone-bg: #121c36; --zone-glow: #ff006e; }
body.zone-deep     { --zone-bg: #0d1226; --zone-glow: #ffd700; }
body.zone-abyss    { --zone-bg: #0a0a0f; --zone-glow: #00ff87; }

/* ============================================================
   BACKGROUND LAYERS
   ============================================================ */

.background-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.iso-grid-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    transition: opacity 1.2s ease;
}

body.zone-deep .iso-grid-layer  { opacity: 0.25; }
body.zone-abyss .iso-grid-layer { opacity: 0.08; }

.scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.18) 2px,
        rgba(0, 0, 0, 0.18) 4px
    );
    mix-blend-mode: multiply;
    opacity: 0.4;
}

.chromatic-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(0, 255, 135, 0.08), transparent 50%),
        radial-gradient(ellipse at 85% 30%, rgba(181, 55, 242, 0.08), transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 0, 110, 0.08), transparent 55%);
    mix-blend-mode: screen;
    transition: opacity 1s ease;
}

body.zone-abyss .chromatic-veil { opacity: 0.5; }

/* ============================================================
   BUBBLE NAVIGATION (right-edge rising air bubbles)
   ============================================================ */

.bubble-nav {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 100;
    padding: 18px 10px;
}

.bubble {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(232, 230, 225, 0.5),
        rgba(232, 230, 225, 0.06) 60%);
    border: 1px solid rgba(232, 230, 225, 0.35);
    text-decoration: none;
    animation: bubble-rise 4s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease,
                background 0.4s ease,
                box-shadow 0.4s ease;
}

.bubble:nth-child(1) { animation-delay: 0s; }
.bubble:nth-child(2) { animation-delay: 0.6s; }
.bubble:nth-child(3) { animation-delay: 1.2s; }
.bubble:nth-child(4) { animation-delay: 1.8s; }
.bubble:nth-child(5) { animation-delay: 2.4s; }

@keyframes bubble-rise {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-6px) scale(1.08); }
}

.bubble.active {
    background: radial-gradient(circle at 30% 30%,
        var(--zone-glow),
        rgba(0, 255, 135, 0.2) 60%);
    border-color: var(--zone-glow);
    box-shadow: 0 0 20px var(--zone-glow), 0 0 40px rgba(0, 255, 135, 0.4);
    transform: scale(1.35);
}

.bubble-label {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

.bubble:hover .bubble-label,
.bubble.active .bubble-label {
    opacity: 1;
    color: var(--zone-glow);
}

/* ============================================================
   DEPTH METER (left edge)
   ============================================================ */

.depth-meter {
    position: fixed;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 100;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.meter-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--zone-glow);
    text-shadow: 0 0 8px var(--zone-glow);
}

.meter-track {
    width: 2px;
    height: 50vh;
    background: rgba(232, 230, 225, 0.12);
    position: relative;
    overflow: hidden;
}

.meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom,
        #00ff87 0%,
        #b537f2 50%,
        #ff006e 100%);
    box-shadow: 0 0 12px var(--zone-glow);
    transition: height 0.15s linear;
}

.meter-reading {
    color: var(--zone-glow);
    text-shadow: 0 0 8px var(--zone-glow);
    margin-top: 6px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

/* ============================================================
   FISH FIELD (drifting fish across viewport)
   ============================================================ */

.fish-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.drift-fish {
    position: absolute;
    width: 140px;
    height: 140px;
    opacity: 0.55;
    filter: drop-shadow(0 0 6px rgba(0, 255, 135, 0.35));
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.drift-fish[data-pattern="1"] { animation: swim-drift-a 38s linear infinite; }
.drift-fish[data-pattern="2"] { animation: swim-drift-b 52s linear infinite; }
.drift-fish[data-pattern="3"] { animation: swim-drift-c 44s linear infinite; }

@keyframes swim-drift-a {
    0%   { transform: translateX(0) translateY(0) rotate(-3deg) scaleX(1); }
    49%  { transform: translateX(70vw) translateY(-20px) rotate(2deg) scaleX(1); }
    50%  { transform: translateX(70vw) translateY(-20px) rotate(2deg) scaleX(-1); }
    100% { transform: translateX(0) translateY(10px) rotate(-3deg) scaleX(-1); }
}

@keyframes swim-drift-b {
    0%   { transform: translateX(0) translateY(0) rotate(2deg) scaleX(1); }
    49%  { transform: translateX(130vw) translateY(30px) rotate(-4deg) scaleX(1); }
    50%  { transform: translateX(130vw) translateY(30px) rotate(-4deg) scaleX(-1); }
    100% { transform: translateX(0) translateY(0) rotate(2deg) scaleX(-1); }
}

@keyframes swim-drift-c {
    0%   { transform: translateX(0) translateY(0) rotate(-1deg); }
    25%  { transform: translateX(40vw) translateY(-40px) rotate(4deg); }
    50%  { transform: translateX(90vw) translateY(0) rotate(-2deg); }
    75%  { transform: translateX(60vw) translateY(40px) rotate(3deg); }
    100% { transform: translateX(0) translateY(0) rotate(-1deg); }
}

body.zone-deep  .drift-fish { opacity: 0.22; filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3)); }
body.zone-abyss .drift-fish { opacity: 0.08; }

/* Fish SVG common */
.fish-body .fish-outline,
.fish-body .fish-pattern,
.fish-body .fish-fin {
    stroke-dasharray: 1600;
    stroke-dashoffset: 0;
}

.fish-fin-top,
.fish-fin-bottom,
.fish-fin-tail {
    transform-origin: center;
    animation: fin-flutter 1.8s ease-in-out infinite;
}

.fish-fin-bottom { animation-delay: 0.3s; }
.fish-fin-tail   { animation-delay: 0.15s; animation-duration: 0.9s; }

@keyframes fin-flutter {
    0%, 100% { transform: scaleY(1) rotate(0deg); }
    50%      { transform: scaleY(0.92) rotate(3deg); }
}

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

.descent {
    position: relative;
    z-index: 2;
}

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

.zone-marker {
    position: absolute;
    top: 4vh;
    left: 8vw;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    gap: 18px;
    align-items: baseline;
    z-index: 4;
}

.zone-marker .marker-num {
    font-size: 28px;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    color: var(--zone-glow);
    text-shadow: 0 0 14px var(--zone-glow);
}

/* ============================================================
   ZONE 1 — SURFACE
   ============================================================ */

.zone--surface {
    min-height: 100vh;
    padding-top: 12vh;
}

.light-rays {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, transparent 20%, rgba(0, 255, 135, 0.06) 35%, transparent 40%),
        linear-gradient(95deg, transparent 40%, rgba(255, 215, 0, 0.04) 55%, transparent 60%),
        linear-gradient(115deg, transparent 60%, rgba(181, 55, 242, 0.05) 75%, transparent 80%);
    animation: light-shimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes light-shimmer {
    0%, 100% { opacity: 0.6; transform: translateX(-2%); }
    50%      { opacity: 1;   transform: translateX(2%); }
}

.hex-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hex-tile {
    position: absolute;
    width: 90px;
    height: 90px;
    opacity: 0;
    animation:
        hex-appear 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        hex-float 6s ease-in-out infinite;
    animation-delay: calc(0.15s * var(--d)), calc(0.5s + 0.3s * var(--d));
}

.hex-tile[style*="--d:0"] { top: 8%;  left: 12%; width: 70px; }
.hex-tile[style*="--d:1"] { top: 14%; left: 68%; width: 120px; }
.hex-tile[style*="--d:2"] { top: 28%; left: 22%; width: 85px; }
.hex-tile[style*="--d:3"] { top: 40%; left: 78%; width: 65px; }
.hex-tile[style*="--d:4"] { top: 52%; left: 8%;  width: 100px; }
.hex-tile[style*="--d:5"] { top: 62%; left: 54%; width: 80px; }
.hex-tile[style*="--d:6"] { top: 78%; left: 82%; width: 70px; }

@keyframes hex-appear {
    0%   { opacity: 0; transform: scale(0) rotate(-20deg); }
    100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
}

@keyframes hex-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-18px) rotate(8deg); }
}

.hero {
    position: relative;
    z-index: 3;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 4vh 0;
}

.hero-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--neon-primary);
    margin-bottom: 30px;
    text-shadow: 0 0 12px var(--neon-primary);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(72px, 14vw, 180px);
    line-height: 0.95;
    letter-spacing: 0.08em;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #00ff87 0%, #b537f2 50%, #ff006e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 60px rgba(0, 255, 135, 0.35);
    filter: drop-shadow(0 0 30px rgba(181, 55, 242, 0.3));
}

.t-accent {
    display: inline-block;
}

.hero-sub {
    font-family: var(--font-secondary);
    font-weight: 300;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.55;
    color: var(--text-primary);
    max-width: 640px;
    margin: 0 auto 40px;
    letter-spacing: 0.02em;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 60px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.meta-row { display: inline-flex; gap: 10px; align-items: baseline; }
.meta-k   { color: var(--text-muted); }
.meta-v   { color: var(--neon-accent); text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }

.scroll-invite {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    animation: invite-pulse 3s ease-in-out infinite;
}

.invite-arrow { width: 24px; height: 48px; }
.invite-arrow path { animation: arrow-draw 2s ease-in-out infinite; }

@keyframes arrow-draw {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50%      { transform: translateY(8px); opacity: 1; }
}

@keyframes invite-pulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

/* ============================================================
   ZONE 2 — SHALLOWS (isometric cascade)
   ============================================================ */

.zone--shallows {
    padding: 14vh 8vw;
    perspective: 1600px;
    perspective-origin: 50% 20%;
}

.iso-cascade {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 32px;
    margin: 0 auto;
    max-width: 1400px;
    transform-style: preserve-3d;
}

.iso-tile {
    grid-column: span 3;
    background: linear-gradient(155deg,
        rgba(61, 44, 46, 0.65) 0%,
        rgba(26, 26, 46, 0.85) 100%);
    border: 1px solid rgba(0, 255, 135, 0.2);
    padding: 36px 34px;
    position: relative;
    transform: rotateY(-15deg) rotateX(12deg);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    box-shadow:
        12px 14px 0 rgba(10, 10, 15, 0.4),
        0 0 0 1px rgba(0, 255, 135, 0.08);
    transform-origin: center center;
}

.iso-tile:nth-child(1) { grid-column: 1 / span 3; transform: rotateY(-12deg) rotateX(10deg) translateX(0); }
.iso-tile:nth-child(2) { grid-column: 4 / span 3; transform: rotateY(-12deg) rotateX(10deg) translateX(30px); }
.iso-tile:nth-child(3) { grid-column: 2 / span 3; transform: rotateY(-12deg) rotateX(10deg) translateX(-20px); }
.iso-tile:nth-child(4) { grid-column: 3 / span 4; transform: rotateY(-12deg) rotateX(10deg) translateX(40px); }

.iso-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 40%,
        rgba(0, 255, 135, 0.04) 50%,
        transparent 60%);
    pointer-events: none;
}

.iso-tile:hover {
    transform: rotateY(-8deg) rotateX(6deg) translateZ(20px);
    border-color: var(--neon-primary);
    box-shadow:
        18px 20px 0 rgba(10, 10, 15, 0.5),
        0 0 40px rgba(0, 255, 135, 0.25);
}

.iso-inner {
    transform-style: preserve-3d;
    position: relative;
}

.tile-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--neon-accent);
    margin-bottom: 14px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.iso-tile h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 3.4vw, 52px);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.iso-tile p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    opacity: 0.85;
    margin-bottom: 24px;
}

.tile-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    border-top: 1px solid rgba(138, 133, 120, 0.2);
    padding-top: 14px;
}

.iso-cube {
    position: absolute;
    width: 180px;
    height: 180px;
    pointer-events: none;
    opacity: 0.4;
    animation: cube-rotate 22s linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 255, 135, 0.3));
}

.iso-cube--small {
    width: 110px;
    height: 110px;
    animation-duration: 32s;
    animation-direction: reverse;
    filter: drop-shadow(0 0 8px rgba(181, 55, 242, 0.3));
}

@keyframes cube-rotate {
    0%   { transform: rotateY(0deg) rotateX(10deg); }
    100% { transform: rotateY(360deg) rotateX(10deg); }
}

/* ============================================================
   ZONE 3 — MID-WATER (single wide column, floating fish)
   ============================================================ */

.zone--midwater {
    padding: 16vh 8vw;
}

.midwater-column {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.pull-quote {
    font-family: var(--font-secondary);
    font-weight: 300;
    font-size: clamp(24px, 3.2vw, 42px);
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--neon-primary);
    text-shadow: 0 0 24px rgba(0, 255, 135, 0.3);
    margin: 0 0 80px;
    padding: 0 30px;
    border-left: 2px solid var(--neon-tertiary);
    font-style: italic;
}

.pull-quote em {
    color: var(--neon-secondary);
    font-style: italic;
    font-weight: 400;
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

.flow-block {
    margin: 70px 0;
    max-width: 560px;
    padding: 26px 30px;
    background: linear-gradient(120deg,
        rgba(22, 33, 62, 0.55) 0%,
        rgba(26, 26, 46, 0.3) 100%);
    border-left: 2px solid var(--zone-glow);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: relative;
    z-index: 3;
}

.flow-block--left   { margin-right: auto; margin-left: 0; }
.flow-block--right  { margin-left: auto;  margin-right: 0; border-left: none; border-right: 2px solid var(--zone-glow); text-align: right; }
.flow-block--center { margin: 70px auto; border-left: 2px solid var(--neon-accent); }

.flow-block h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 3.4vw, 46px);
    letter-spacing: 0.06em;
    line-height: 1.05;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.flow-block p {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-primary);
    opacity: 0.88;
}

.midwater-fish {
    position: absolute;
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 0 10px rgba(181, 55, 242, 0.4));
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
}

.midwater-fish--1 { top: 18%; right: -80px; animation: midwater-float-a 14s ease-in-out infinite; }
.midwater-fish--2 { top: 48%; left: -100px; animation: midwater-float-b 18s ease-in-out infinite; }
.midwater-fish--3 { bottom: 8%; right: -60px; width: 220px; animation: midwater-float-c 16s ease-in-out infinite; }

@keyframes midwater-float-a {
    0%, 100% { transform: translateX(0) translateY(0) rotate(-4deg); }
    50%      { transform: translateX(-30px) translateY(20px) rotate(2deg); }
}
@keyframes midwater-float-b {
    0%, 100% { transform: translateX(0) translateY(0) rotate(2deg); }
    50%      { transform: translateX(40px) translateY(-20px) rotate(-3deg); }
}
@keyframes midwater-float-c {
    0%, 100% { transform: translateX(0) translateY(0) rotate(-2deg) scaleX(-1); }
    50%      { transform: translateX(-40px) translateY(-15px) rotate(3deg) scaleX(-1); }
}

/* ============================================================
   ZONE 4 — DEEP (vertical kelp strips + glitch bands)
   ============================================================ */

.zone--deep {
    padding: 14vh 4vw;
    background: linear-gradient(180deg,
        rgba(13, 18, 38, 0.2),
        rgba(10, 10, 15, 0.4));
}

.glitch-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.data-corruption {
    position: absolute;
    mix-blend-mode: screen;
    opacity: 0;
}

.corruption-1 {
    top: 18%; left: 10%;
    width: 180px; height: 6px;
    background: var(--neon-secondary);
    animation: corrupt 3.4s ease-in-out infinite;
}
.corruption-2 {
    top: 44%; right: 12%;
    width: 260px; height: 10px;
    background: var(--neon-primary);
    animation: corrupt 2.8s ease-in-out infinite 0.6s;
}
.corruption-3 {
    top: 68%; left: 30%;
    width: 140px; height: 4px;
    background: var(--neon-tertiary);
    animation: corrupt 3.8s ease-in-out infinite 1.2s;
}
.corruption-4 {
    top: 84%; right: 20%;
    width: 200px; height: 8px;
    background: var(--neon-accent);
    animation: corrupt 3.2s ease-in-out infinite 1.8s;
}

@keyframes corrupt {
    0%, 92%, 100% { opacity: 0; transform: translateX(0); }
    93%           { opacity: 1; transform: translateX(-14px); }
    95%           { opacity: 1; transform: translateX(18px); }
    97%           { opacity: 0.6; transform: translateX(-6px); }
}

.vhs-band {
    position: absolute;
    left: 0;
    width: 100%;
    height: 38px;
    background: linear-gradient(180deg,
        transparent,
        rgba(0, 255, 135, 0.08),
        rgba(181, 55, 242, 0.06),
        transparent);
    top: -50px;
    animation: vhs-sweep 9s linear infinite;
}

@keyframes vhs-sweep {
    0%   { top: -60px; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

.kelp-strips {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6vh 0;
}

.strip {
    padding: 28px 18px;
    border-top: 1px solid rgba(0, 255, 135, 0.4);
    background: linear-gradient(180deg,
        rgba(10, 10, 15, 0.5),
        rgba(10, 10, 15, 0.1));
    min-height: 420px;
    position: relative;
}

.strip::before {
    content: '';
    position: absolute;
    top: -1px; left: 0;
    width: 30%; height: 1px;
    background: var(--neon-primary);
    box-shadow: 0 0 12px var(--neon-primary);
}

.strip:nth-child(2)::before { background: var(--neon-secondary); box-shadow: 0 0 12px var(--neon-secondary); }
.strip:nth-child(3)::before { background: var(--neon-tertiary); box-shadow: 0 0 12px var(--neon-tertiary); }
.strip:nth-child(4)::before { background: var(--neon-accent); box-shadow: 0 0 12px var(--neon-accent); }
.strip:nth-child(5)::before { background: var(--neon-primary); box-shadow: 0 0 12px var(--neon-primary); }

.strip-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.strip-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(36px, 3vw, 56px);
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 26px;
    color: var(--neon-primary);
    text-shadow: 0 0 20px rgba(0, 255, 135, 0.5);
    writing-mode: horizontal-tb;
}

.strip:nth-child(2) .strip-heading { color: var(--neon-secondary); text-shadow: 0 0 20px rgba(255, 0, 110, 0.5); }
.strip:nth-child(3) .strip-heading { color: var(--neon-tertiary); text-shadow: 0 0 20px rgba(181, 55, 242, 0.5); }
.strip:nth-child(4) .strip-heading { color: var(--neon-accent); text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }

.strip p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-primary);
    opacity: 0.78;
}

/* ============================================================
   GLITCH EFFECT on .glitch elements
   ============================================================ */

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    pointer-events: none;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
}

.glitch::before {
    color: var(--neon-secondary);
    -webkit-text-fill-color: var(--neon-secondary);
    text-shadow: 2px 0 0 var(--neon-secondary);
    clip-path: inset(0 0 55% 0);
}

.glitch::after {
    color: var(--neon-primary);
    -webkit-text-fill-color: var(--neon-primary);
    text-shadow: -2px 0 0 var(--neon-primary);
    clip-path: inset(55% 0 0 0);
}

.glitch.glitch-active::before,
.glitch.glitch-active::after {
    animation: glitch-flicker 0.45s steps(4, jump-none);
}

@keyframes glitch-flicker {
    0%   { opacity: 0.9; transform: translate(-3px, 0); }
    25%  { opacity: 0.7; transform: translate(4px, -1px); }
    50%  { opacity: 0.9; transform: translate(-2px, 2px); }
    75%  { opacity: 0.5; transform: translate(3px, -2px); }
    100% { opacity: 0;   transform: translate(0, 0); }
}

/* ============================================================
   ZONE 5 — ABYSS
   ============================================================ */

.zone--abyss {
    min-height: 110vh;
    padding: 18vh 8vw 12vh;
    background: radial-gradient(ellipse at 50% 40%,
        rgba(26, 26, 46, 0.4) 0%,
        #0a0a0f 70%);
    text-align: center;
}

.biolum-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.biolum {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-primary);
    box-shadow:
        0 0 8px var(--neon-primary),
        0 0 16px var(--neon-primary),
        0 0 28px rgba(0, 255, 135, 0.4);
    animation: biolum-pulse 4s ease-in-out infinite;
}

.biolum--1  { top: 12%; left: 18%; animation-delay: 0s;   background: var(--neon-primary);  box-shadow: 0 0 12px var(--neon-primary), 0 0 24px rgba(0, 255, 135, 0.5); }
.biolum--2  { top: 22%; left: 72%; animation-delay: 0.4s; background: var(--neon-tertiary); box-shadow: 0 0 12px var(--neon-tertiary), 0 0 24px rgba(181, 55, 242, 0.5); }
.biolum--3  { top: 38%; left: 8%;  animation-delay: 0.8s; background: var(--neon-accent);   box-shadow: 0 0 12px var(--neon-accent), 0 0 24px rgba(255, 215, 0, 0.5); }
.biolum--4  { top: 48%; left: 88%; animation-delay: 1.2s; background: var(--neon-primary);  box-shadow: 0 0 12px var(--neon-primary), 0 0 24px rgba(0, 255, 135, 0.5); width: 4px; height: 4px; }
.biolum--5  { top: 58%; left: 30%; animation-delay: 1.6s; background: var(--neon-secondary);box-shadow: 0 0 12px var(--neon-secondary), 0 0 24px rgba(255, 0, 110, 0.5); }
.biolum--6  { top: 66%; left: 62%; animation-delay: 2.0s; background: var(--neon-tertiary); box-shadow: 0 0 10px var(--neon-tertiary); width: 5px; height: 5px; }
.biolum--7  { top: 78%; left: 20%; animation-delay: 2.4s; background: var(--neon-accent);   box-shadow: 0 0 12px var(--neon-accent), 0 0 24px rgba(255, 215, 0, 0.5); }
.biolum--8  { top: 84%; left: 80%; animation-delay: 2.8s; background: var(--neon-primary);  box-shadow: 0 0 14px var(--neon-primary), 0 0 28px rgba(0, 255, 135, 0.6); }
.biolum--9  { top: 18%; left: 45%; animation-delay: 3.2s; background: var(--neon-secondary);box-shadow: 0 0 8px var(--neon-secondary); width: 4px; height: 4px; }
.biolum--10 { top: 32%; left: 55%; animation-delay: 0.6s; background: var(--neon-accent);   box-shadow: 0 0 10px var(--neon-accent); width: 3px; height: 3px; }
.biolum--11 { top: 72%; left: 48%; animation-delay: 1.4s; background: var(--neon-primary);  box-shadow: 0 0 10px var(--neon-primary); width: 4px; height: 4px; }
.biolum--12 { top: 92%; left: 38%; animation-delay: 2.2s; background: var(--neon-tertiary); box-shadow: 0 0 10px var(--neon-tertiary); width: 3px; height: 3px; }

@keyframes biolum-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.6); }
}

.abyss-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    margin: 0 auto;
}

.abyss-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--neon-accent);
    margin-bottom: 30px;
    text-shadow: 0 0 14px var(--neon-accent);
}

.abyss-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(48px, 9vw, 120px);
    line-height: 1;
    letter-spacing: 0.08em;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #00ff87 0%, #b537f2 50%, #ff006e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 40px rgba(0, 255, 135, 0.4));
}

.abyss-body {
    font-family: var(--font-secondary);
    font-weight: 300;
    font-size: clamp(17px, 1.8vw, 22px);
    line-height: 1.7;
    color: var(--text-primary);
    opacity: 0.88;
    margin-bottom: 60px;
}

.abyss-fish {
    width: 160px;
    height: 240px;
    margin: 0 auto 60px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0, 255, 135, 0.6));
    animation: abyss-spiral 14s ease-in-out infinite;
}

@keyframes abyss-spiral {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-30px) rotate(4deg); }
}

.abyss-coords {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    line-height: 2;
}

.signoff {
    margin-top: 20px;
    color: var(--neon-accent);
    text-shadow: 0 0 10px var(--neon-accent);
}

/* ============================================================
   ANIMATIONS & REVEAL HELPERS
   ============================================================ */

.iso-tile,
.strip,
.flow-block,
.midwater-fish,
.abyss-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.25, 1, 0.3, 1);
}

.iso-tile { transform: rotateY(-12deg) rotateX(10deg) translateY(60px); }

.iso-tile.revealed,
.strip.revealed,
.flow-block.revealed,
.midwater-fish.revealed,
.abyss-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.iso-tile.revealed:nth-child(1) { transform: rotateY(-12deg) rotateX(10deg) translateX(0); }
.iso-tile.revealed:nth-child(2) { transform: rotateY(-12deg) rotateX(10deg) translateX(30px); }
.iso-tile.revealed:nth-child(3) { transform: rotateY(-12deg) rotateX(10deg) translateX(-20px); }
.iso-tile.revealed:nth-child(4) { transform: rotateY(-12deg) rotateX(10deg) translateX(40px); }

.strip { transition-delay: calc(0.08s * var(--strip-idx, 0)); }

/* Neon pulse on primary accents */
.hero-title,
.abyss-title {
    animation: neon-pulse 6s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(0, 255, 135, 0.3)); }
    50%      { filter: drop-shadow(0 0 60px rgba(181, 55, 242, 0.45)); }
}

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

@media (max-width: 900px) {
    .zone { padding: 8vh 6vw; }

    .depth-meter { display: none; }
    .bubble-nav { right: 14px; gap: 14px; }
    .bubble-label { display: none; }

    .iso-cascade { grid-template-columns: 1fr; }
    .iso-tile,
    .iso-tile:nth-child(1),
    .iso-tile:nth-child(2),
    .iso-tile:nth-child(3),
    .iso-tile:nth-child(4) {
        grid-column: 1 / -1;
        transform: rotateY(-6deg) rotateX(4deg);
    }
    .iso-tile.revealed,
    .iso-tile.revealed:nth-child(1),
    .iso-tile.revealed:nth-child(2),
    .iso-tile.revealed:nth-child(3),
    .iso-tile.revealed:nth-child(4) {
        transform: rotateY(-6deg) rotateX(4deg);
    }

    .kelp-strips { grid-template-columns: repeat(2, 1fr); }
    .strip:nth-child(5) { grid-column: 1 / -1; }

    .midwater-fish--1,
    .midwater-fish--2,
    .midwater-fish--3 { width: 120px; height: 120px; }

    .flow-block,
    .flow-block--right { text-align: left; border-left: 2px solid var(--zone-glow); border-right: none; }
}

@media (max-width: 600px) {
    .zone { padding: 8vh 5vw; }
    .zone-marker { top: 2vh; left: 5vw; font-size: 10px; }
    .zone-marker .marker-num { font-size: 22px; }
    .kelp-strips { grid-template-columns: 1fr; }
    .hero-meta { gap: 14px; }
    .hero-title { font-size: 68px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
    }
    .drift-fish,
    .midwater-fish,
    .abyss-fish { animation: none; }
    .bubble { animation: none; }
}
