/* ===========================================================
   footprint.broker — frutiger-aero glossy-tech
   eight-color palette, eight depths, slow watery easing
   =========================================================== */

:root {
    --c-surface: #9ed7ff;
    --c-aqua: #5cb8e0;
    --c-pressure: #1f6489;
    --c-trench: #0a2f4a;
    --c-foam: #fefaf2;
    --c-chrome: #c8d6dc;
    --c-mint: #9af3c8;
    --c-coral: #ff8a4a;

    --c-rb-1: #ff9ec5;
    --c-rb-2: #ffd17e;
    --c-rb-3: #d6f17a;
    --c-rb-4: #7ad6f1;
    --c-rb-5: #a17ef1;
    --c-rb-6: #ff7eb1;

    --water-ease: cubic-bezier(0.22, 0.61, 0.36, 1.0);

    --font-display: "Reem Kufi Fun", "Inter", system-ui, sans-serif;
    --font-body: "Fraunces", "Lora", Georgia, serif;
    --font-mono: "DM Mono", "Space Mono", "Courier New", monospace;
}

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

html, body {
    background: #9ed7ff;
    color: var(--c-trench);
    font-family: var(--font-body);
    font-variation-settings: 'opsz' 14, 'SOFT' 50, 'WONK' 1;
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: none;
}

body {
    background: linear-gradient(180deg,
        #9ed7ff 0%,
        #5cb8e0 22%,
        #1f6489 58%,
        #0a2f4a 92%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* ============================================================
   CURSOR
   ============================================================ */
.cursor-bubble,
.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s var(--water-ease);
}
.cursor-bubble {
    width: 12px; height: 12px;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.35));
    box-shadow: 0 0 14px rgba(255,255,255,0.55), inset 0 0 4px rgba(255,255,255,0.6);
    mix-blend-mode: screen;
}
.cursor-trail {
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0.05));
}
.cursor-trail.t1 { width: 8px; height: 8px; opacity: 0.7; }
.cursor-trail.t2 { width: 6px; height: 6px; opacity: 0.5; }
.cursor-trail.t3 { width: 4px; height: 4px; opacity: 0.35; }

.cursor-bubble.over-interactive {
    width: 22px; height: 22px;
    box-shadow: 0 0 22px rgba(154,243,200,0.65), inset 0 0 6px rgba(255,255,255,0.7);
}

/* ============================================================
   BUBBLE CANVAS
   ============================================================ */
.bubble-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   CHROME SPINE (right edge pressure-gauge)
   ============================================================ */
.chrome-spine {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 64px;
    z-index: 50;
    pointer-events: none;
    font-family: var(--font-mono);
}
.spine-rail {
    position: absolute;
    top: 4%;
    right: 24px;
    width: 4px;
    height: 92%;
    background: linear-gradient(180deg, #e8eef1 0%, #c8d6dc 30%, #8ea3ad 50%, #c8d6dc 70%, #e8eef1 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255,255,255,0.18), inset 0 0 1px rgba(255,255,255,0.5);
}
.spine-fill {
    position: absolute;
    top: 4%;
    right: 24px;
    width: 4px;
    height: 0%;
    background: linear-gradient(180deg, rgba(154,243,200,0.7), rgba(255,138,74,0.35));
    border-radius: 2px;
    transition: height 0.35s var(--water-ease);
    pointer-events: none;
}
.spine-markers {
    list-style: none;
    position: absolute;
    top: 4%;
    right: 0;
    height: 92%;
    width: 64px;
}
.spine-markers li {
    position: absolute;
    top: var(--pos);
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(-50%);
    color: var(--c-chrome);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.spine-markers .rivet {
    position: absolute;
    right: 21px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #c8d6dc 60%, #6f8189);
    box-shadow: 0 0 4px rgba(255,255,255,0.3), inset 0 -1px 1px rgba(0,0,0,0.2);
}
.spine-markers .atm-label {
    position: absolute;
    right: 38px;
    white-space: nowrap;
    color: rgba(254,250,242,0.6);
    text-shadow: 0 0 6px rgba(0,0,0,0.18);
}

.spine-readout {
    position: absolute;
    bottom: 1.4%;
    right: 8px;
    text-align: right;
    color: var(--c-foam);
    font-family: var(--font-mono);
    font-feature-settings: 'tnum' on, 'zero' on;
}
.readout-num {
    display: block;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 0 8px rgba(154,243,200,0.4);
}
.readout-unit {
    display: block;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--c-chrome);
    text-transform: uppercase;
}

/* ============================================================
   DEPTH SECTIONS
   ============================================================ */
.depth {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 6vh 8vw 6vh 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}
.depth-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.depth-header {
    position: relative;
    margin: 0 auto 4vh auto;
    text-align: center;
    max-width: 760px;
    z-index: 3;
}
.depth-stamp {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    color: var(--c-chrome);
    padding: 4px 12px;
    border: 1px solid rgba(200,214,220,0.45);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.depth-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--c-foam);
    font-size: clamp(2.4rem, 5.4vw, 4.6rem);
    letter-spacing: -0.005em;
    line-height: 1.06;
    text-shadow: 0 2px 22px rgba(31,100,137,0.5);
}
.depth-sub {
    margin-top: 12px;
    font-style: italic;
    color: rgba(254,250,242,0.78);
    font-size: clamp(1rem, 1.18vw, 1.18rem);
    letter-spacing: 0.005em;
}

/* ============================================================
   GLASS DROPLET (base)
   ============================================================ */
.droplet {
    position: relative;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.08) 18%, rgba(255,255,255,0) 42%),
        radial-gradient(circle at 50% 60%, rgba(94,184,224,0.42), rgba(31,100,137,0.32) 80%);
    box-shadow:
        inset 0 0 28px rgba(255,255,255,0.32),
        inset 0 -8px 22px rgba(31,100,137,0.32),
        0 18px 36px rgba(10,47,74,0.28),
        0 2px 6px rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.7s var(--water-ease), box-shadow 0.7s var(--water-ease);
    cursor: none;
}
.droplet-spec {
    position: absolute;
    top: 6%;
    left: 12%;
    width: 36%;
    height: 22%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0));
    transform: rotate(-25deg);
    pointer-events: none;
    filter: blur(0.4px);
}
.droplet-spec::after {
    content: "";
    position: absolute;
    top: 14%;
    left: 8%;
    width: 70%;
    height: 30%;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    filter: blur(2px);
    opacity: 0.7;
}
.droplet-rainbow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: conic-gradient(from 0deg,
        var(--c-rb-1),
        var(--c-rb-2),
        var(--c-rb-3),
        var(--c-rb-4),
        var(--c-rb-5),
        var(--c-rb-6),
        var(--c-rb-1));
    -webkit-mask: radial-gradient(circle, transparent 53%, black 56%, black 60%, transparent 63%);
            mask: radial-gradient(circle, transparent 53%, black 56%, black 60%, transparent 63%);
    transition: opacity 0.6s var(--water-ease);
}
.droplet:hover .droplet-rainbow,
.droplet.is-hovered .droplet-rainbow {
    opacity: 1;
    animation: rainbow-spin 1.5s linear;
}
@keyframes rainbow-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.droplet-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14%;
    text-align: center;
}

/* ============================================================
   DEPTH 1 — SURFACE
   ============================================================ */
.surface-bg {
    background: linear-gradient(180deg, #d8efff 0%, #9ed7ff 38%, #5cb8e0 60%, #4aa9d4 100%);
}
.depth-1 {
    padding-top: 0;
}
.horizon-line {
    position: absolute;
    top: 38%;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 100%);
    box-shadow: 0 0 14px rgba(255,255,255,0.6);
    z-index: 2;
}
.horizon-shimmer {
    position: absolute;
    top: 38%;
    left: 0; right: 0;
    height: 8vh;
    transform: translateY(-50%);
    background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0));
    filter: blur(2px);
    z-index: 1;
    animation: shimmer-shift 9s var(--water-ease) infinite;
}
@keyframes shimmer-shift {
    0%, 100% { opacity: 0.65; transform: translateY(-50%) scaleY(1); }
    50%      { opacity: 0.95; transform: translateY(-50%) scaleY(1.18); }
}

.lens-flare {
    position: absolute;
    top: 14%;
    left: 6%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(255,209,126,0.32) 22%, rgba(255,255,255,0) 60%);
    pointer-events: none;
    z-index: 3;
    animation: flare-drift 4s var(--water-ease) 1 forwards;
}
.lens-flare::before,
.lens-flare::after {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 4%),
        conic-gradient(from 0deg,
            rgba(255,255,255,0) 0%, rgba(255,255,255,0.32) 16%, rgba(255,255,255,0) 33%,
            rgba(255,255,255,0.32) 50%, rgba(255,255,255,0) 66%,
            rgba(255,255,255,0.32) 83%, rgba(255,255,255,0) 100%);
    -webkit-mask: radial-gradient(circle, black 0%, black 8%, transparent 60%);
            mask: radial-gradient(circle, black 0%, black 8%, transparent 60%);
    opacity: 0.6;
}
.lens-flare::after {
    animation: flare-spin 14s linear infinite;
    opacity: 0.45;
}
@keyframes flare-drift {
    0%   { left: 6%;  opacity: 0; }
    10%  { opacity: 1; }
    100% { left: calc(100% - 380px); opacity: 0.78; }
}
@keyframes flare-spin {
    to { transform: rotate(360deg); }
}
.lens-flare-secondary {
    position: absolute;
    top: 6%;
    right: 10%;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.6), rgba(255,209,126,0.2) 30%, transparent 70%);
    filter: blur(3px);
    z-index: 3;
    animation: flare-pulse 6s var(--water-ease) infinite;
}
@keyframes flare-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 0.85; transform: scale(1.1); }
}

.pelican {
    position: absolute;
    top: 32%;
    width: 80px; height: 28px;
    color: var(--c-pressure);
    opacity: 0.7;
    z-index: 4;
}
.pelican-1 { animation: pelican-cross-1 90s linear infinite; }
.pelican-2 { animation: pelican-cross-2 110s linear infinite; transform: scale(0.7); top: 28%; opacity: 0.55; }
.pelican-3 { animation: pelican-cross-3 75s linear infinite; transform: scale(1.2); top: 36%; opacity: 0.62; }
@keyframes pelican-cross-1 {
    0%   { left: -10%; transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { left: 110%; transform: translateY(2px); }
}
@keyframes pelican-cross-2 {
    0%   { left: -12%; transform: scale(0.7) translateY(0); }
    50%  { transform: scale(0.7) translateY(-4px); }
    100% { left: 112%; transform: scale(0.7) translateY(2px); }
}
@keyframes pelican-cross-3 {
    0%   { left: -14%; transform: scale(1.2) translateY(0); }
    50%  { transform: scale(1.2) translateY(-8px); }
    100% { left: 114%; transform: scale(1.2) translateY(3px); }
}

.surface-content {
    position: relative;
    z-index: 5;
    text-align: center;
    margin: 0 auto;
    padding-top: 8vh;
}

.wordmark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(3rem, 7.6vw, 6.4rem);
    letter-spacing: -0.018em;
    line-height: 1;
    color: var(--c-foam);
    background: linear-gradient(180deg, #fefaf2 0%, #c8efff 55%, #5cb8e0 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 28px rgba(255,255,255,0.18);
    margin-top: 6vh;
    position: relative;
    z-index: 2;
}
.wordmark-reflection {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(3rem, 7.6vw, 6.4rem);
    letter-spacing: -0.018em;
    line-height: 1;
    color: rgba(254,250,242,0.18);
    transform: scaleY(-1);
    filter: blur(2.4px);
    margin-top: -6px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 70%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 70%);
}

.lagoon-index {
    width: 360px; height: 360px;
    margin: 5vh auto 2vh auto;
    position: relative;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.18) 18%, rgba(255,255,255,0) 42%),
        radial-gradient(circle at 50% 60%, rgba(154,243,200,0.32), rgba(94,184,224,0.5) 60%, rgba(31,100,137,0.45) 100%);
    border: 1.5px solid rgba(255,255,255,0.55);
    box-shadow:
        inset 0 0 36px rgba(255,255,255,0.42),
        inset 0 -12px 28px rgba(31,100,137,0.42),
        0 24px 56px rgba(10,47,74,0.35),
        0 0 80px rgba(154,243,200,0.18);
}
.lagoon-index.pulse {
    animation: index-pulse 4s var(--water-ease) infinite;
}
@keyframes index-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.015); }
}
.index-number {
    font-family: var(--font-mono);
    font-feature-settings: 'tnum' on, 'zero' on;
    font-size: clamp(2.4rem, 4.8vw, 3.6rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--c-foam);
    text-shadow: 0 2px 12px rgba(31,100,137,0.4);
    margin-bottom: 8px;
}
.index-label {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 14px;
    color: rgba(254,250,242,0.85);
    letter-spacing: 0.02em;
}
.index-tick {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
}
.tick-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c-coral);
    box-shadow: 0 0 8px rgba(255,138,74,0.7);
    animation: tick-blink 2s var(--water-ease) infinite;
}
@keyframes tick-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.tick-text {
    color: var(--c-mint);
}

.surface-tagline {
    margin-top: 1.6vh;
    font-family: var(--font-body);
    font-size: 11px;
    font-style: italic;
    letter-spacing: 0.04em;
    color: rgba(254,250,242,0.7);
}

/* float droplets (decorative) */
.float-droplet {
    position: absolute;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.78), rgba(255,255,255,0.05) 38%, rgba(255,255,255,0) 60%),
        radial-gradient(circle at 50% 60%, rgba(94,184,224,0.32), rgba(255,255,255,0));
    box-shadow:
        inset 0 0 8px rgba(255,255,255,0.52),
        0 4px 10px rgba(10,47,74,0.18);
    pointer-events: none;
    z-index: 2;
}
.fd-1 { width: 60px; height: 60px; top: 18%; right: 18%; animation: float-bob 14s var(--water-ease) infinite; }
.fd-2 { width: 36px; height: 36px; top: 64%; left: 12%; animation: float-bob 18s var(--water-ease) -3s infinite; }
.fd-3 { width: 22px; height: 22px; top: 78%; right: 22%; animation: float-bob 12s var(--water-ease) -1s infinite; }
.fd-4 { width: 14px; height: 14px; top: 28%; left: 22%; animation: float-bob 16s var(--water-ease) -5s infinite; }
.fd-5 { width: 48px; height: 48px; top: 14%; right: 8%; animation: float-bob 20s var(--water-ease) -2s infinite; }
.fd-6 { width: 28px; height: 28px; top: 84%; left: 6%; animation: float-bob 14s var(--water-ease) -7s infinite; }
.fd-7 { width: 32px; height: 32px; top: 22%; left: 4%; animation: float-bob 19s var(--water-ease) -4s infinite; }
.fd-8 { width: 18px; height: 18px; top: 70%; right: 6%; animation: float-bob 15s var(--water-ease) -6s infinite; }

@keyframes float-bob {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(6px, -14px); }
}

/* ============================================================
   WAVE SEPARATOR
   ============================================================ */
.wave-sep {
    width: 100%;
    height: 30px;
    display: block;
    position: relative;
    z-index: 4;
    margin: -15px 0;
}
.wave-path {
    animation: wave-shift 22s linear infinite;
}
@keyframes wave-shift {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -120; }
}

/* ============================================================
   DEPTH 2 — FOAM LAYER (HONEYCOMB)
   ============================================================ */
.foam-bg {
    background: linear-gradient(180deg, rgba(94,184,224,0.0) 0%, rgba(94,184,224,0.18) 100%);
}
.honeycomb {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(5, 88px);
    gap: 12px 8px;
    padding: 24px 0;
    align-items: center;
    justify-items: center;
}
.droplet-hex {
    width: 168px;
    height: 168px;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.08) 22%, rgba(255,255,255,0) 46%),
        radial-gradient(circle at 50% 65%, rgba(94,184,224,0.42), rgba(31,100,137,0.4) 90%);
    border: 1px solid rgba(255,255,255,0.45);
}
.droplet-hex .droplet-content {
    padding: 18%;
    gap: 6px;
}
.hex-glyph {
    width: 44px; height: 44px;
    color: var(--c-foam);
    margin-bottom: 4px;
}
.hex-glyph svg { width: 100%; height: 100%; }
.hex-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.005em;
    color: var(--c-foam);
    line-height: 1.1;
}
.hex-clarifier {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 10.5px;
    color: rgba(254,250,242,0.75);
    line-height: 1.32;
    margin-top: 2px;
}
.hex-underline {
    margin-top: 6px;
    display: block;
    width: 0;
    height: 1.4px;
    background: var(--c-aqua);
    box-shadow: 0 0 6px rgba(94,184,224,0.6);
    transition: width 0.7s var(--water-ease);
}
.droplet-hex:hover .hex-underline,
.droplet-hex.is-hovered .hex-underline {
    width: 60%;
}
.droplet-hex:hover,
.droplet-hex.is-hovered {
    transform: scale(1.04);
    box-shadow:
        inset 0 0 32px rgba(255,255,255,0.5),
        inset 0 -8px 22px rgba(31,100,137,0.32),
        0 24px 48px rgba(10,47,74,0.4),
        0 2px 6px rgba(255,255,255,0.18);
}

/* hex grid placement (irregular honeycomb of 13) */
.h-1  { grid-column: 2; grid-row: 1 / 3; }
.h-2  { grid-column: 4; grid-row: 1 / 3; }
.h-3  { grid-column: 6; grid-row: 3 / 5; transform: translateY(72px); }
.h-4  { grid-column: 1; grid-row: 2 / 4; transform: translateY(36px); }
.h-5  { grid-column: 3; grid-row: 2 / 4; transform: translateY(36px); }
.h-6  { grid-column: 5; grid-row: 2 / 4; transform: translateY(36px); }
.h-7  { grid-column: 7; grid-row: 2 / 4; transform: translateY(36px); }
.h-8  { grid-column: 2; grid-row: 3 / 5; transform: translateY(72px); }
.h-9  { grid-column: 4; grid-row: 3 / 5; transform: translateY(72px); }
.h-10 { grid-column: 6; grid-row: 1 / 3; }
.h-11 { grid-column: 1; grid-row: 4 / 6; transform: translateY(108px); }
.h-12 { grid-column: 3; grid-row: 4 / 6; transform: translateY(108px); }
.h-13 { grid-column: 5; grid-row: 4 / 6; transform: translateY(108px); }

/* anneal sunken */
.droplet-hex.sunken {
    transform: translateY(110px);
}
.droplet-hex.sunken:hover {
    transform: translateY(110px) scale(1.04);
}

/* ============================================================
   DEPTH 3 — KELP / CHARTER
   ============================================================ */
.kelp-bg {
    background: linear-gradient(180deg, rgba(31,100,137,0.0) 0%, rgba(31,100,137,0.35) 100%);
}
.kelp-ribbon {
    position: absolute;
    top: 0;
    width: 220px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.kelp-left  { left: 0; }
.kelp-right { right: 0; transform: scaleX(-1); }

.charter {
    position: relative;
    z-index: 4;
    max-width: 56ch;
    margin: 4vh auto;
    background: var(--c-foam);
    color: var(--c-trench);
    padding: 8vh 7vw;
    border-radius: 18px;
    box-shadow:
        0 24px 64px rgba(10,47,74,0.4),
        0 2px 6px rgba(255,255,255,0.4),
        inset 0 0 0 1px rgba(31,100,137,0.08);
    text-align: left;
}
.charter::before,
.charter::after {
    content: "";
    position: absolute;
    left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31,100,137,0.4), transparent);
}
.charter::before { top: 6%; }
.charter::after  { bottom: 6%; }

.charter-p {
    font-family: var(--font-body);
    font-weight: 500;
    font-variation-settings: 'opsz' 14, 'SOFT' 80, 'WONK' 1;
    font-size: 19px;
    line-height: 1.62;
    color: var(--c-pressure);
    margin-bottom: 1.4em;
}
.charter-p:last-child { margin-bottom: 0; }
.charter-glyph {
    display: block;
    width: 84px; height: 84px;
    margin: 1.6em auto 1.6em auto;
    color: var(--c-pressure);
}

/* ============================================================
   DEPTH 4 — CORAL / LEDGER
   ============================================================ */
.coral-bg {
    background: linear-gradient(180deg, rgba(31,100,137,0.0) 0%, rgba(31,100,137,0.55) 100%);
}
.ledger {
    position: relative;
    width: 100%;
    max-width: 1480px;
    margin: 4vh auto 2vh auto;
    overflow: hidden;
    height: 240px;
    border-top: 1px solid rgba(200,214,220,0.3);
    border-bottom: 1px solid rgba(200,214,220,0.3);
    background: rgba(10,47,74,0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ledger-track {
    display: flex;
    gap: 16px;
    padding: 30px 12px;
    width: max-content;
    will-change: transform;
}
.ledger-edge {
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 5;
}
.ledger-edge-left {
    left: 0;
    background: linear-gradient(90deg, rgba(10,47,74,0.85), rgba(10,47,74,0));
}
.ledger-edge-right {
    right: 0;
    background: linear-gradient(-90deg, rgba(10,47,74,0.85), rgba(10,47,74,0));
}
.ledger-droplet {
    flex: 0 0 auto;
    width: 180px;
    height: 180px;
    border-radius: 36px;
    position: relative;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.5), rgba(255,255,255,0) 38%),
        radial-gradient(circle at 50% 60%, rgba(94,184,224,0.5), rgba(31,100,137,0.35));
    box-shadow:
        inset 0 0 22px rgba(255,255,255,0.32),
        0 14px 28px rgba(10,47,74,0.35);
    border: 1px solid rgba(255,255,255,0.32);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--c-foam);
    font-family: var(--font-mono);
    overflow: hidden;
}
.ledger-code {
    font-size: 10.5px;
    color: var(--c-chrome);
    letter-spacing: 0.04em;
    font-feature-settings: 'tnum' on, 'zero' on;
}
.ledger-wave {
    width: 100%;
    height: 36px;
    color: var(--c-aqua);
}
.ledger-magnitude {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
    color: var(--c-mint);
    letter-spacing: 0.02em;
    font-feature-settings: 'tnum' on, 'zero' on;
}
.ledger-cohort {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 11.5px;
    color: rgba(254,250,242,0.78);
    line-height: 1.25;
}
.ledger-note {
    text-align: center;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 12px;
    color: rgba(200,214,220,0.7);
    margin-top: 2vh;
}

/* ============================================================
   DEPTH 5 — TWILIGHT / TIDE-CLOCK
   ============================================================ */
.twilight-bg {
    background: linear-gradient(180deg, rgba(31,100,137,0.55) 0%, rgba(10,47,74,0.65) 100%);
}
.depth-5 { padding-top: 2vh; padding-bottom: 8vh; }
.tide-clock {
    position: relative;
    width: min(660px, 80vw);
    height: min(660px, 80vw);
    margin: 4vh auto;
}
.tide-clock-center {
    position: absolute;
    top: 50%; left: 50%;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), rgba(154,243,200,0.18) 50%, rgba(31,100,137,0.5));
    box-shadow: inset 0 0 14px rgba(255,255,255,0.3), 0 0 24px rgba(154,243,200,0.32);
    transform: translate(-50%, -50%);
    z-index: 1;
}
.tide-clock-ring {
    position: absolute;
    inset: 16%;
    border-radius: 50%;
    border: 1px dashed rgba(200,214,220,0.4);
    z-index: 0;
}

.tide-marble {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.chain {
    position: absolute;
    top: -50%; left: 50%;
    width: 2px;
    height: calc(50% + 12px);
    transform: translateX(-50%);
    background: linear-gradient(180deg, #e8eef1 0%, #c8d6dc 50%, #8ea3ad 100%);
    box-shadow: 0 0 4px rgba(255,255,255,0.3);
    transform-origin: top center;
    transition: transform 0.6s var(--water-ease);
}
.droplet-marble {
    width: 130px; height: 130px;
    border-radius: 50%;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.65), rgba(255,255,255,0.08) 28%, rgba(255,255,255,0) 50%),
        radial-gradient(circle at 50% 60%, rgba(154,243,200,0.32), rgba(31,100,137,0.6) 80%);
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow:
        inset 0 0 22px rgba(255,255,255,0.32),
        inset 0 -10px 22px rgba(10,47,74,0.4),
        0 14px 28px rgba(10,47,74,0.45);
    overflow: hidden;
    transition: transform 0.7s var(--water-ease);
}
.tide-word {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    color: var(--c-foam);
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.tide-meta {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-chrome);
    white-space: nowrap;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

/* clock placement via JS-set --x and --y; fallback uses --angle */
.tide-marble {
    --r: 44%;
    transform: translate(
        calc(-50% + cos(var(--angle, 0deg)) * var(--r)),
        calc(-50% + sin(var(--angle, 0deg)) * var(--r))
    );
}

/* ============================================================
   DEPTH 6 — BIOLUMINESCENT
   ============================================================ */
.biolum-bg {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(154,243,200,0.08) 0%, rgba(10,47,74,0.0) 60%),
        linear-gradient(180deg, #0a2f4a 0%, #07223a 100%);
}
.depth-6 {
    min-height: 110vh;
    background: #0a2f4a;
}
.jellyfish {
    position: absolute;
    bottom: 20%;
    left: -8%;
    width: 120px; height: 160px;
    z-index: 3;
    filter: drop-shadow(0 0 22px rgba(154,243,200,0.5));
    animation: jellyfish-drift 110s linear infinite, jellyfish-bob 6s var(--water-ease) infinite;
}
@keyframes jellyfish-drift {
    0%   { left: -10%; }
    100% { left: 110%; }
}
@keyframes jellyfish-bob {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-14px) scale(1.05); }
}

.biolum-quote {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    z-index: 4;
}
.biolum-quote-text {
    font-family: var(--font-body);
    font-weight: 600;
    font-style: italic;
    font-variation-settings: 'opsz' 60, 'SOFT' 100, 'WONK' 1;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 1.42;
    color: var(--c-foam);
    filter: drop-shadow(0 0 18px rgba(154,243,200,0.42));
    letter-spacing: -0.005em;
}
.biolum-attribution {
    margin-top: 3vh;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--c-chrome);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.biolum-name { color: var(--c-mint); font-weight: 500; }
.biolum-role { color: var(--c-chrome); }
.biolum-stamp { color: rgba(200,214,220,0.5); font-style: italic; font-family: var(--font-body); font-size: 11px; }

/* ============================================================
   DEPTH 7 — TRENCH FLOOR / CONTACT
   ============================================================ */
.trench-bg {
    background: linear-gradient(180deg, #07223a 0%, #051a2c 100%);
}
.depth-7 {
    background: #051a2c;
    min-height: 100vh;
    padding-bottom: 12vh;
}
.trench-header { margin-bottom: 6vh; }
.contact-locket {
    width: 340px; height: 340px;
    margin: 0 auto;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.06) 24%, rgba(255,255,255,0) 48%),
        radial-gradient(circle at 50% 65%, rgba(154,243,200,0.18), rgba(31,100,137,0.5) 60%, rgba(10,47,74,0.55) 100%);
    border: 1.5px solid rgba(200,214,220,0.5);
    box-shadow:
        inset 0 0 38px rgba(255,255,255,0.3),
        inset 0 -14px 26px rgba(10,47,74,0.5),
        0 0 60px rgba(154,243,200,0.12),
        0 30px 58px rgba(0,0,0,0.5);
}
.contact-locket .droplet-content {
    padding: 14%;
    gap: 10px;
}
.lamp-glyph {
    width: 60px; height: 80px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 14px rgba(255,138,74,0.55));
}
.lamp-core {
    transform-origin: center;
    animation: lamp-pulse 2.4s var(--water-ease) infinite;
}
@keyframes lamp-pulse {
    0%, 100% { opacity: 0.85; r: 6; }
    50%      { opacity: 1; r: 7; }
}
.locket-coords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-feature-settings: 'tnum' on, 'zero' on;
    font-size: 12.5px;
    color: var(--c-mint);
    letter-spacing: 0.02em;
}
.coord-sep { color: var(--c-chrome); opacity: 0.5; }
.locket-line {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 12.5px;
    color: rgba(254,250,242,0.75);
    line-height: 1.4;
}
.locket-channel {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: var(--c-chrome);
}

.colophon-ribbon {
    margin: 8vh auto 0 auto;
    padding: 14px 6vw;
    width: 100%;
    background: linear-gradient(180deg, #e8eef1 0%, #c8d6dc 50%, #8ea3ad 100%);
    border-top: 1px solid rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(0,0,0,0.18);
    overflow: hidden;
    position: relative;
}
.ribbon-text {
    display: inline-block;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #2c4856;
    text-transform: lowercase;
    animation: ribbon-scroll 80s linear infinite;
    padding-left: 100%;
}
@keyframes ribbon-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .honeycomb {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        gap: 16px;
    }
    .honeycomb .droplet-hex {
        grid-column: auto !important;
        grid-row: auto !important;
        transform: none !important;
        width: 140px; height: 140px;
    }
    .droplet-hex.sunken { transform: translateY(40px) !important; }

    .lagoon-index { width: 280px; height: 280px; }
    .contact-locket { width: 280px; height: 280px; }
    .charter { padding: 6vh 6vw; }
    .charter-p { font-size: 16.5px; }
    .chrome-spine { width: 44px; }
    .spine-markers .atm-label { display: none; }
}

@media (max-width: 620px) {
    body { background-attachment: scroll; }
    .honeycomb {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .honeycomb .droplet-hex { width: 130px; height: 130px; }
    .lagoon-index { width: 240px; height: 240px; }
    .index-number { font-size: 1.8rem; }
    .biolum-quote-text { font-size: 1.25rem; }
    .lens-flare { width: 200px; height: 200px; }
    .pelican { width: 60px; height: 22px; }
}
