/* ============================================================
   continuum.quest — Submerged Digital Magazine
   Ocean Deep Palette / Seapunk Editorial / Dreamy-Ethereal
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Palette — Ocean Deep */
    --sunlit-shallows: #0A3D5C;
    --twilight-column: #062640;
    --abyssal-navy: #0B1D3A;
    --hadal-black: #030B14;
    --bio-cyan: #00E5FF;
    --phosphor-green: #7FFFD4;
    --jellyfish-magenta: #FF006E;
    --pale-foam: #C8E6F0;
    --deep-current: #4A7A8C;
    --spine-cyan: #00E5FF12; /* Design ref #0AF2 alternate notation */

    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-subhead: 'Barlow Condensed', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Grid */
    --gutter: 48px;
    --gutter-mobile: 24px;

    /* Animation timings */
    --ease-submersion: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--pale-foam);
    background: linear-gradient(180deg,
        var(--sunlit-shallows) 0%,
        var(--twilight-column) 25%,
        var(--abyssal-navy) 55%,
        var(--hadal-black) 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Keyframe Animations --- */
@keyframes biopulse {
    0%, 100% { opacity: 0.3; filter: blur(0px); }
    50% { opacity: 0.85; filter: blur(1px); }
}

@keyframes biopulse-fast {
    0%, 100% { opacity: 0.3; filter: blur(0px); }
    50% { opacity: 0.85; filter: blur(1px); }
}

@keyframes depthpulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 0.9;
        transform: translateY(8px);
    }
}

@keyframes letterFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spotDrift {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sonarSweep {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fragmentSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spotScaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spineFade {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.08; }
}

/* --- Spine Line --- */
#spine-line {
    position: fixed;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100vh;
    background: var(--bio-cyan);
    opacity: 0.05;
    z-index: 5;
    pointer-events: none;
    animation: spineFade 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    #spine-line {
        display: none;
    }
}

/* --- Depth Navigation --- */
#depth-nav {
    position: fixed;
    right: 0;
    top: 0;
    width: 36px;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.depth-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    height: 60%;
    justify-content: space-between;
}

.depth-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px 0;
}

.depth-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--deep-current);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.depth-marker.active .depth-dot {
    background: var(--bio-cyan);
    box-shadow: 0 0 8px var(--bio-cyan);
    animation: biopulse 4s ease-in-out infinite;
}

.depth-marker:hover .depth-dot {
    animation-duration: 2s;
}

.depth-label {
    position: absolute;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 300;
    color: var(--deep-current);
    letter-spacing: 0.06em;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.depth-marker:hover .depth-label {
    opacity: 1;
    transform: translateX(0);
}

.depth-title {
    position: absolute;
    right: 60px;
    font-family: var(--font-subhead);
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--pale-foam);
    letter-spacing: 0.04em;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.depth-marker:hover .depth-title {
    opacity: 0.7;
    transform: translateX(0);
}

/* Tick marks */
.depth-marker::before {
    content: '';
    position: absolute;
    right: 12px;
    width: 8px;
    height: 1px;
    background: var(--deep-current);
    opacity: 0.4;
}

.depth-marker.active::before {
    background: var(--bio-cyan);
    opacity: 0.6;
}

.depth-readout {
    position: absolute;
    bottom: 20px;
    font-family: var(--font-mono);
    font-size: clamp(0.6rem, 1vw, 0.72rem);
    font-weight: 300;
    color: var(--bio-cyan);
    opacity: 0.5;
    letter-spacing: 0.06em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

@media (max-width: 768px) {
    #depth-nav {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 40px;
        flex-direction: row;
        padding: 0 20px;
        background: rgba(3, 11, 20, 0.8);
        backdrop-filter: blur(8px);
    }

    .depth-track {
        flex-direction: row;
        height: auto;
        width: 100%;
    }

    .depth-marker::before {
        display: none;
    }

    .depth-label, .depth-title {
        display: none;
    }

    .depth-readout {
        display: none;
    }
}

/* --- Spread Layout System --- */
.spread {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spread-grid {
    display: grid;
    grid-template-columns: var(--gutter) 1fr 1fr var(--gutter);
    grid-template-rows: 1fr;
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding-right: 36px; /* Space for depth nav */
}

@media (max-width: 768px) {
    .spread-grid {
        grid-template-columns: var(--gutter-mobile) 1fr var(--gutter-mobile);
        padding-right: 0;
        padding-bottom: 40px; /* Space for mobile depth nav */
    }
}

/* --- HERO Section --- */
#hero {
    min-height: 100vh;
}

#hero .spread-grid {
    place-items: center;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(5rem, 14vw, 12rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--bio-cyan);
    text-transform: uppercase;
    line-height: 1;
    display: flex;
}

.hero-heading .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterFadeIn 0.4s var(--ease-submersion) forwards;
    animation-delay: calc(300ms + (var(--delay) * 60ms));
}

.hero-subtitle {
    font-family: var(--font-subhead);
    font-size: clamp(1.2rem, 3vw, 2.4rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--phosphor-green);
    margin-top: 0.5em;
    opacity: 0;
    animation: subtitleFadeIn 400ms ease forwards;
    animation-delay: 1100ms;
}

/* Bioluminescent Spots */
.bio-spot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: biopulse 4s ease-in-out infinite;
}

.bio-spot-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, rgba(127, 255, 212, 0.12) 30%, transparent 70%);
    top: 25%;
    left: 15%;
    opacity: 0;
    animation: spotDrift 2s var(--ease-submersion) forwards, biopulse 4s ease-in-out infinite 2.5s;
    animation-delay: 1.8s, 3.8s;
}

.bio-spot-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, rgba(127, 255, 212, 0.15) 30%, transparent 70%);
    top: 60%;
    right: 20%;
    opacity: 0;
    animation: spotDrift 2s var(--ease-submersion) forwards, biopulse 5s ease-in-out infinite 2.8s;
    animation-delay: 2.1s, 4.1s;
}

.bio-spot-3 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.35) 0%, rgba(127, 255, 212, 0.18) 30%, transparent 70%);
    bottom: 25%;
    left: 40%;
    opacity: 0;
    animation: spotDrift 2s var(--ease-submersion) forwards, biopulse 6s ease-in-out infinite 3s;
    animation-delay: 2.4s, 4.4s;
}

/* Scroll Chevron */
.scroll-chevron {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: depthpulse 3s ease-in-out infinite;
}

.chevron-shape {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 1.5px solid var(--bio-cyan);
    border-bottom: 1.5px solid var(--bio-cyan);
    transform: rotate(45deg);
    opacity: 0.6;
}

/* --- Typography --- */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3.6rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--bio-cyan);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.5em;
}

.section-subheading {
    font-family: var(--font-subhead);
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: var(--pale-foam);
    margin-bottom: 1.5em;
}

.body-text {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 300;
    line-height: 1.75;
    color: rgba(200, 230, 240, 0.9);
    max-width: 62ch;
    margin-bottom: 1.5em;
}

.body-text:last-child {
    margin-bottom: 0;
}

.pull-quote {
    font-family: var(--font-subhead);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: var(--phosphor-green);
    transform: rotate(-3deg);
    max-width: 500px;
}

.pull-quote p {
    margin: 0;
}

/* --- Spread Variations --- */

/* Full-Bleed Spread */
.spread-fullbleed .spread-left {
    grid-column: 2 / 3;
    display: flex;
    align-items: center;
    padding: 60px 40px;
}

.spread-fullbleed .spread-right {
    grid-column: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

/* Editorial Spread */
.spread-editorial .spread-left {
    grid-column: 2 / 3;
    display: flex;
    align-items: center;
    padding: 60px 40px;
}

.spread-editorial .spread-right {
    grid-column: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 60px 30px 120px;
    position: relative;
}

/* Collage Spread */
.spread-collage .spread-center {
    grid-column: 2 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    z-index: 2;
}

/* Spread 4 — Reversed full-bleed */
#spread-4 .spread-right {
    grid-column: 3 / 4;
    display: flex;
    align-items: center;
    padding: 60px 40px;
}

#spread-4 .spread-left {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

/* Hadal Spread */
.spread-hadal .spread-center {
    grid-column: 2 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    z-index: 2;
}

@media (max-width: 768px) {
    .spread-fullbleed .spread-left,
    .spread-fullbleed .spread-right,
    .spread-editorial .spread-left,
    .spread-editorial .spread-right,
    .spread-collage .spread-center,
    .spread-hadal .spread-center,
    #spread-4 .spread-left,
    #spread-4 .spread-right {
        grid-column: 2 / 3;
        padding: 40px 0;
    }

    .spread-fullbleed .spread-right,
    .spread-editorial .spread-right,
    #spread-4 .spread-left {
        display: none;
    }

    .pull-quote {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
        transform: rotate(0deg);
    }
}

/* --- Text Blocks --- */
.text-block {
    max-width: 420px;
}

.text-block-narrow {
    max-width: 380px;
}

.text-block-center {
    max-width: 580px;
    text-align: center;
}

.text-block-compressed {
    max-width: 360px;
}

.text-block-hadal {
    max-width: 320px;
    text-align: center;
}

.section-heading-hadal {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.15em;
}

.body-text-hadal {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    line-height: 1.6;
}

/* --- Collage Elements --- */

/* Collage layers */
.collage-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.collage-bg {
    z-index: 1;
}

.collage-fg {
    z-index: 3;
}

/* Sonar Arcs */
.sonar-arc {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
}

.sonar-arc-1 {
    width: 400px;
    height: 400px;
    border-top-color: rgba(0, 229, 255, 0.15);
    top: 10%;
    left: -5%;
    transform: rotate(5deg);
}

.sonar-arc-2 {
    width: 350px;
    height: 350px;
    border-top-color: rgba(0, 229, 255, 0.2);
    border-right-color: rgba(0, 229, 255, 0.1);
    top: 15%;
    left: -2%;
    transform: rotate(12deg);
}

.sonar-arc-3 {
    width: 300px;
    height: 300px;
    border-top-color: rgba(0, 229, 255, 0.25);
    top: 20%;
    left: 2%;
    transform: rotate(-3deg);
}

.sonar-arc-wide-1 {
    width: 600px;
    height: 600px;
    border-top-color: rgba(0, 229, 255, 0.12);
    border-right-color: rgba(0, 229, 255, 0.08);
    top: -10%;
    right: -15%;
    transform: rotate(15deg);
}

.sonar-arc-wide-2 {
    width: 500px;
    height: 500px;
    border-top-color: rgba(0, 229, 255, 0.18);
    top: -5%;
    right: -10%;
    transform: rotate(-8deg);
}

/* Collage animations for visible state */
.spread.is-visible .sonar-arc {
    animation: sonarSweep 1.2s var(--ease-submersion) forwards;
}

.spread.is-visible .data-fragment {
    animation: fragmentSlideUp 1s var(--ease-submersion) forwards;
}

.spread.is-visible .bio-spot-collage-1,
.spread.is-visible .bio-spot-collage-2 {
    animation: spotScaleIn 1s var(--ease-submersion) forwards, biopulse 4s ease-in-out infinite 1.2s;
}

/* Data Fragments */
.data-fragment {
    position: absolute;
    background: repeating-linear-gradient(0deg,
        rgba(0, 229, 255, 0.03) 0px,
        rgba(0, 229, 255, 0.03) 1px,
        transparent 1px,
        transparent 4px
    );
    border-left: 1px solid rgba(0, 229, 255, 0.1);
}

.data-fragment-1 {
    width: 120px;
    height: 60px;
    bottom: 20%;
    right: 10%;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.data-fragment-2 {
    width: 80px;
    height: 40px;
    bottom: 30%;
    right: 25%;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.data-fragment-3 {
    width: 200px;
    height: 80px;
    top: 15%;
    left: 8%;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}

.data-fragment-4 {
    width: 150px;
    height: 60px;
    bottom: 20%;
    right: 5%;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

/* Bioluminescent spots in spreads */
.bio-spot-float-1 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, rgba(127, 255, 212, 0.15) 30%, transparent 70%);
    top: 30%;
    right: 15%;
}

.bio-spot-collage-1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, rgba(127, 255, 212, 0.1) 30%, transparent 70%);
    top: 20%;
    left: 20%;
}

.bio-spot-collage-2 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.15) 0%, rgba(255, 0, 110, 0.05) 40%, transparent 70%);
    bottom: 25%;
    right: 30%;
}

.bio-spot-abyss-1 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, transparent 70%);
    top: 30%;
    left: 20%;
    animation-duration: 6s;
}

.bio-spot-abyss-2 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(127, 255, 212, 0.15) 0%, transparent 70%);
    top: 55%;
    left: 35%;
    animation-duration: 7s;
}

.bio-spot-abyss-3 {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, transparent 70%);
    top: 70%;
    left: 15%;
    animation-duration: 5s;
}

.bio-spot-hadal-1 {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    top: 30%;
    left: 25%;
    animation: biopulse 8s ease-in-out infinite;
}

.bio-spot-hadal-2 {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.12) 0%, transparent 70%);
    bottom: 35%;
    right: 30%;
    animation: biopulse 10s ease-in-out infinite;
}

/* Specimen Outlines */
.specimen-outline {
    position: absolute;
    pointer-events: none;
}

.specimen-1 {
    width: 150px;
    height: 220px;
    top: 10%;
    right: 8%;
}

.specimen-1 svg {
    width: 100%;
    height: 100%;
}

.specimen-2 {
    width: 180px;
    height: 120px;
    bottom: 15%;
    left: 5%;
}

.specimen-2 svg {
    width: 100%;
    height: 100%;
}

/* Waveform Accent */
.waveform-accent {
    width: 80%;
    max-width: 400px;
    height: 60px;
}

.waveform-accent svg {
    width: 100%;
    height: 100%;
}

/* Pressure Lines */
.pressure-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 229, 255, 0.12) 20%,
        rgba(0, 229, 255, 0.25) 50%,
        rgba(0, 229, 255, 0.12) 80%,
        transparent 100%
    );
}

.pressure-line-thick {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 229, 255, 0.2) 20%,
        rgba(0, 229, 255, 0.4) 50%,
        rgba(0, 229, 255, 0.2) 80%,
        transparent 100%
    );
}

/* Grid Overlays */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.03) 0px, rgba(0, 229, 255, 0.03) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.03) 0px, rgba(0, 229, 255, 0.03) 1px, transparent 1px, transparent 40px);
    pointer-events: none;
    z-index: 0;
}

.grid-overlay-dense {
    background:
        repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.04) 0px, rgba(0, 229, 255, 0.04) 1px, transparent 1px, transparent 30px),
        repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.04) 0px, rgba(0, 229, 255, 0.04) 1px, transparent 1px, transparent 30px);
}

/* Coordinate Overlays */
.coordinate-overlay {
    font-family: var(--font-mono);
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--bio-cyan);
    opacity: 0.4;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.coordinate-overlay-deep {
    position: absolute;
    bottom: 60px;
    right: 80px;
    z-index: 4;
}

.coordinate-overlay-hadal {
    position: absolute;
    top: 80px;
    right: 80px;
    z-index: 4;
    color: var(--jellyfish-magenta);
    opacity: 0.3;
}

.coord-data {
    display: block;
}

/* --- Reveal Animation States --- */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-submersion), transform 0.8s var(--ease-submersion);
}

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

/* Staggered reveal for children */
.reveal-element.is-visible .section-heading {
    animation: revealUp 0.8s var(--ease-submersion) forwards;
}

.reveal-element.is-visible .section-subheading {
    animation: revealUp 0.8s var(--ease-submersion) 0.1s forwards;
}

.reveal-element.is-visible .body-text {
    animation: revealUp 0.8s var(--ease-submersion) 0.2s forwards;
}

/* --- Footer --- */
.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px var(--gutter);
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-domain {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--bio-cyan);
    opacity: 0.4;
}

.footer-meta {
    font-family: var(--font-subhead);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--pale-foam);
    opacity: 0.3;
}

.footer-depth {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--deep-current);
    opacity: 0.4;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px var(--gutter-mobile) 60px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Depth-Based Grid Mutation (via JS custom properties) --- */
.spread-grid {
    --dynamic-gutter: var(--gutter);
}

@media (min-width: 769px) {
    .spread-grid {
        grid-template-columns: var(--dynamic-gutter, var(--gutter)) 1fr 1fr var(--dynamic-gutter, var(--gutter));
    }
}

/* --- Selection Color --- */
::selection {
    background: rgba(0, 229, 255, 0.3);
    color: var(--pale-foam);
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--hadal-black);
}

::-webkit-scrollbar-thumb {
    background: var(--deep-current);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bio-cyan);
}
