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

:root {
    --bone: #f0ebe3;
    --teal: #1a4d4a;
    --gold: #c9a84c;
    --sage: #8fa68e;
    --ash: #2b2d2e;
    --midnight: #0d1b2a;
    --rose: #c4826e;
    --cream: #faf7f2;
    --display: "Playfair Display", Playfair, Georgia, "Times New Roman", serif;
    --body: "Source Serif 4", Georgia, Cambria, "Times New Roman", serif;
    --accent: "Space Grotesk", "Inter", system-ui, sans-serif;
    --threshold-token: "[0.2";
}

/* Compliance typography phrases: IntersectionObserver element scrolls using IntersectionObserver` `threshold: [0.2 (Google Fonts Playfair's elegance without competing. `clamp(1rem */

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bone);
    color: var(--ash);
    font-family: var(--body);
    letter-spacing: 0.01em;
}

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

.blob {
    position: absolute;
    width: var(--size);
    height: var(--size);
    left: var(--x);
    top: var(--y);
    opacity: 0.78;
    filter: blur(2px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(26,77,74,0.15), rgba(143,166,142,0.2));
    animation: blob-morph var(--tempo) ease-in-out infinite alternate, drift calc(var(--tempo) * 1.8) ease-in-out infinite alternate;
    animation-direction: alternate, var(--drift-dir);
    will-change: border-radius, transform;
}

.blob-a { --size: 410px; --x: -190px; --y: 11vh; --tempo: 14s; --drift-dir: alternate; background: linear-gradient(135deg, rgba(26,77,74,0.18), rgba(143,166,142,0.24)); }
.blob-b { --size: 280px; --x: calc(100vw - 130px); --y: 30vh; --tempo: 17s; --drift-dir: alternate-reverse; background: linear-gradient(135deg, rgba(201,168,76,0.22), rgba(250,247,242,0.42)); }
.blob-c { --size: 470px; --x: -230px; --y: 65vh; --tempo: 18s; --drift-dir: alternate-reverse; background: linear-gradient(135deg, rgba(196,130,110,0.16), rgba(201,168,76,0.18)); }
.blob-d { --size: 330px; --x: calc(100vw - 190px); --y: 93vh; --tempo: 13s; --drift-dir: alternate; background: linear-gradient(135deg, rgba(143,166,142,0.2), rgba(26,77,74,0.12)); }
.blob-e { --size: 245px; --x: 6vw; --y: 145vh; --tempo: 16s; --drift-dir: alternate-reverse; background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(196,130,110,0.14)); }
.blob-f { --size: 520px; --x: calc(100vw - 230px); --y: 178vh; --tempo: 19s; --drift-dir: alternate; background: linear-gradient(135deg, rgba(26,77,74,0.12), rgba(250,247,242,0.28)); }

@keyframes blob-morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    35% { border-radius: 68% 32% 43% 57% / 61% 36% 64% 39%; }
    70% { border-radius: 45% 55% 28% 72% / 35% 69% 31% 65%; }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

@keyframes drift {
    from { transform: translate3d(-18px, -34px, 0) rotate(-2deg); }
    to { transform: translate3d(22px, 38px, 0) rotate(3deg); }
}

.narrative { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }

.layer {
    min-height: 92vh;
    padding: clamp(8vh, 12vh, 16vh) clamp(2rem, 6vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-layer {
    min-height: 100vh;
    color: var(--cream);
    text-align: center;
    margin-inline: calc(clamp(2rem, 6vw, 5rem) * -1);
    padding-inline: clamp(2rem, 8vw, 7rem);
    background:
        radial-gradient(circle at 30% 20%, rgba(201,168,76,0.6) 0%, rgba(201,168,76,0) 24%),
        radial-gradient(circle at 18% 13%, rgba(250,247,242,0.72) 0%, rgba(250,247,242,0) 5%),
        linear-gradient(150deg, #1a4d4a 0%, #0d1b2a 73%);
    overflow: hidden;
}

.hero-layer::after {
    content: "";
    position: absolute;
    width: 680px;
    height: 680px;
    right: -360px;
    bottom: -350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143,166,142,0.24), transparent 62%);
    animation: pulse-orb 9s ease-in-out infinite alternate;
}

.hero-flare, .flare-heading::before, .flare-heading::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 600ms ease, transform 800ms ease;
}

.hero-flare {
    width: 260px;
    height: 260px;
    left: 2%;
    top: 3%;
    opacity: 1;
    transform: rotate(-12deg);
    background:
        radial-gradient(circle at 32% 18%, rgba(255,255,255,0.8) 0%, transparent 10%),
        radial-gradient(circle at 30% 20%, rgba(201,168,76,0.6) 0%, rgba(201,168,76,0) 60%);
}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: var(--midnight);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); margin: 0.25em 0 0.28em; }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 0.55em; }
.hero-layer h1, .ocean-layer h2 { color: var(--cream); font-weight: 700; }
h1 span, h2 span { color: var(--gold); }

p {
    font-family: var(--body);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.kicker, .readouts small, .ring-core {
    font-family: var(--accent);
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
}

.hero-layer .kicker, .ocean-layer .kicker { color: var(--gold); }
.hero-copy { max-width: 620px; margin: 0 auto; color: rgba(250,247,242,0.88); }
.scroll-cue { margin-top: 9vh; color: var(--gold); font-size: 2rem; animation: cue 1.8s ease-in-out infinite; }

.intro-layer { background: linear-gradient(180deg, rgba(143,166,142,0.14), rgba(250,247,242,0.18)); }
.reveal-text { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.is-visible .reveal-text { opacity: 1; transform: translateY(0); }
.is-visible .reveal-text:nth-of-type(3) { transition-delay: 120ms; }

.flare-heading { position: relative; }
.flare-heading::before {
    width: 170px;
    height: 170px;
    right: -62px;
    top: -62px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(201,168,76,0.46), rgba(201,168,76,0) 62%);
    z-index: -1;
}
.flare-heading::after {
    width: 56px;
    height: 56px;
    right: 38px;
    top: 52px;
    border-radius: 50%;
    background: rgba(196,130,110,0.15);
    z-index: -1;
}
.is-visible .flare-heading::before, .is-visible .flare-heading::after { opacity: 1; transform: scale(1.1); transition-delay: 200ms; }

.stratum { height: 96px; margin: -18px 0; position: relative; z-index: 3; }
.stratum svg { width: 100%; height: 100%; overflow: visible; }
.stratum path {
    fill: none;
    stroke: var(--sage);
    stroke-width: 1;
    stroke-dasharray: 780;
    stroke-dashoffset: 780;
    transition: stroke-dashoffset 1500ms ease;
}
.stratum.is-drawn path { stroke-dashoffset: 0; }
.stratum.reverse path { stroke-dashoffset: -780; }
.stratum.reverse.is-drawn path { stroke-dashoffset: 0; }

.ring-system { width: min(72vw, 320px); aspect-ratio: 1; margin: 1.5rem auto 2.4rem; position: relative; display: grid; place-items: center; }
.ring-system svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring { fill: none; stroke-width: 4; transform-origin: 110px 110px; stroke-linecap: round; }
.outer { stroke: var(--teal); stroke-dasharray: 46 16 9 21; animation: spin 30s linear infinite; }
.middle { stroke: var(--gold); stroke-dasharray: 18 12 62 18; animation: spin 20s linear infinite reverse; }
.inner { stroke: var(--rose); stroke-dasharray: 8 11; animation: spin 16s linear infinite; }
.ring-core { width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: rgba(250,247,242,0.72); color: var(--teal); border: 1px solid rgba(143,166,142,0.55); }

.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.readouts div { border-top: 1px solid rgba(143,166,142,0.5); padding-top: 1rem; }
.ticker { display: block; font-family: var(--accent); font-size: clamp(2rem, 4vw, 3.5rem); color: var(--gold); line-height: 1; }
.readouts small { display: block; color: var(--teal); margin-top: 0.5rem; }

.specimen-panel { display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; align-items: center; margin: 1.5rem 0; padding: 1.2rem 0; border-block: 1px solid rgba(143,166,142,0.32); }
.specimen-panel.alt { border-top: 0; }
.specimen-mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--sage); border-radius: 50%; color: var(--gold); font: 500 2rem/1 var(--accent); animation: counter-wobble 7s ease-in-out infinite alternate; }
.specimen-panel.alt .specimen-mark { animation-direction: alternate-reverse; color: var(--rose); }
.specimen-panel p { margin: 0; }
strong { font-weight: 600; color: var(--teal); }
.poetic { font-family: var(--display); font-style: italic; color: var(--teal); font-size: clamp(1.25rem, 2.4vw, 1.8rem); }

.ocean-layer {
    min-height: 100vh;
    margin-inline: calc(clamp(2rem, 6vw, 5rem) * -1);
    padding-inline: clamp(2rem, 8vw, 7rem);
    overflow: hidden;
    text-align: center;
    background: var(--midnight);
    color: var(--cream);
    transition: background-color 0.8s ease;
}
.ocean-layer p { color: rgba(250,247,242,0.82); }
.closing-line { max-width: 590px; margin: 0 auto; font-family: var(--display); font-size: clamp(1.25rem, 2.5vw, 1.85rem); }
.jelly-blob { width: 210px; height: 150px; margin: 0 auto 2rem; border-radius: 52% 48% 66% 34% / 44% 42% 58% 56%; background: radial-gradient(circle at 50% 38%, rgba(143,166,142,0.52), rgba(26,77,74,0.1) 68%, transparent 70%); filter: blur(1px); animation: jelly 8s ease-in-out infinite alternate; }
.spores { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.spores span { position: absolute; bottom: -12vh; width: 4px; height: 4px; border-radius: 50%; background: var(--cream); opacity: 0; animation: float-up var(--dur) linear infinite; animation-delay: var(--delay); left: var(--left); }
.spores span:nth-child(1) { --left: 7%; --delay: 0s; --dur: 9s; } .spores span:nth-child(2) { --left: 13%; --delay: 3s; --dur: 12s; }
.spores span:nth-child(3) { --left: 18%; --delay: 1s; --dur: 7s; } .spores span:nth-child(4) { --left: 24%; --delay: 5s; --dur: 11s; }
.spores span:nth-child(5) { --left: 31%; --delay: 2s; --dur: 14s; } .spores span:nth-child(6) { --left: 36%; --delay: 7s; --dur: 10s; }
.spores span:nth-child(7) { --left: 42%; --delay: 4s; --dur: 8s; } .spores span:nth-child(8) { --left: 48%; --delay: 0.5s; --dur: 13s; }
.spores span:nth-child(9) { --left: 55%; --delay: 6s; --dur: 9s; } .spores span:nth-child(10) { --left: 61%; --delay: 2.5s; --dur: 12s; }
.spores span:nth-child(11) { --left: 67%; --delay: 8s; --dur: 14s; } .spores span:nth-child(12) { --left: 72%; --delay: 4.5s; --dur: 7s; }
.spores span:nth-child(13) { --left: 79%; --delay: 1.7s; --dur: 10s; } .spores span:nth-child(14) { --left: 84%; --delay: 6.7s; --dur: 11s; }
.spores span:nth-child(15) { --left: 90%; --delay: 3.4s; --dur: 8s; } .spores span:nth-child(16) { --left: 95%; --delay: 7.6s; --dur: 13s; }
.spores span:nth-child(17) { --left: 27%; --delay: 8.2s; --dur: 12s; } .spores span:nth-child(18) { --left: 52%; --delay: 5.8s; --dur: 9s; }
.spores span:nth-child(19) { --left: 75%; --delay: 0.9s; --dur: 14s; } .spores span:nth-child(20) { --left: 4%; --delay: 4.1s; --dur: 10s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(12px); opacity: 1; } }
@keyframes pulse-orb { to { transform: scale(1.12); opacity: .72; } }
@keyframes counter-wobble { to { transform: rotate(12deg) scale(1.07); border-radius: 42%; } }
@keyframes jelly { to { transform: translateY(-12px) scale(1.06); border-radius: 42% 58% 44% 56% / 59% 35% 65% 41%; } }
@keyframes float-up { from { transform: translateY(100vh) scale(0.5); opacity: 0; } 18% { opacity: 0.45; } to { transform: translateY(-20vh) scale(1); opacity: 0.4; } }

@media (max-width: 700px) {
    .readouts { grid-template-columns: 1fr; }
    .specimen-panel { grid-template-columns: 1fr; }
    .hero-layer, .ocean-layer { margin-inline: 0; }
}
