/* ---------- self-hosted fonts ---------- */
/* Fraunces (variable: opsz, wght, SOFT, WONK) + Satoshi, served from /fonts so
   text no longer reflows when a third-party CDN font arrives late on load. */
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/fraunces-latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/fraunces-latin-ext.woff2") format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Satoshi";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("/fonts/satoshi-300.woff2") format("woff2");
}
@font-face {
    font-family: "Satoshi";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/satoshi-400.woff2") format("woff2");
}
@font-face {
    font-family: "Satoshi";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/satoshi-500.woff2") format("woff2");
}
@font-face {
    font-family: "Satoshi";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/satoshi-700.woff2") format("woff2");
}

:root {
    --cream: #fffbf5;
    --ink: #04082b;
    --shallow: #2cb4b9;
    --mid: #015b71;
    --deep: #011f39;
    --shell: #fbd2cf;
    --coral: #eb5a6f;
    --measure: 34rem;
    --gutter: clamp(1.25rem, 5vw, 3rem);
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: var(--deep);
}
#waitlist {
    scroll-margin-top: 2rem;
}
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family:
        "Satoshi",
        system-ui,
        -apple-system,
        sans-serif;
    font-weight: 400;
    font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.125rem);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ---------- depth zones ---------- */
/* Each zone owns its colours and hangs a wave off its own top edge,   */
/* so the transition is cut into the zone below rather than drawn on   */
/* top of the zone above. Contrast rule: light zone → ink text,        */
/* dark zones → cream text. Never the other way.                       */
.zone {
    --cap: clamp(100px, 12vw, 250px);
    position: relative;
    background: var(--bg);
    color: var(--fg);
}
.zone__cap {
    position: absolute;
    left: 0;
    top: 1px;
    width: 100%;
    height: var(--cap);
    transform: translateY(-100%);
    display: block;
    fill: var(--bg);
    pointer-events: none;
}
.zone--surface {
    --bg: var(--cream);
    --fg: var(--ink);
    --line: rgba(4, 8, 43, 0.14);
    --dim: 0.66;
    --accent: var(--ink);
}
.zone--shallow {
    --bg: var(--shallow);
    --fg: var(--ink);
    --line: rgba(4, 8, 43, 0.2);
    --dim: 0.72;
    --accent: var(--ink);
}
.zone--mid {
    --bg: var(--mid);
    --fg: var(--cream);
    --line: rgba(255, 251, 245, 0.22);
    --dim: 0.84;
    --accent: var(--shell);
}
.zone--deep {
    --bg: var(--deep);
    --fg: var(--cream);
    --line: rgba(255, 251, 245, 0.16);
    --dim: 0.8;
    --accent: var(--shell);
}

/* ---------- type ---------- */
h1,
h2,
h3 {
    font-family: "Fraunces", "Times New Roman", serif;
}
h1,
h2 {
    font-variation-settings:
        "opsz" 120,
        "SOFT" 100,
        "WONK" 1;
}
h1 {
    font-weight: 600;
    font-size: clamp(2.5rem, 1.55rem + 4.6vw, 4.875rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    text-wrap: balance;
}
h2 {
    font-weight: 600;
    font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    text-wrap: balance;
}
h3 {
    font-weight: 600;
    font-size: 1.1875rem;
    margin: 0 0 0.35rem;
    font-variation-settings:
        "opsz" 24,
        "SOFT" 100,
        "WONK" 0;
}
p {
    margin: 0 0 1.1em;
    max-width: var(--measure);
}
a {
    color: inherit;
}
.eyebrow {
    font-family: "Satoshi", sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.55;
    margin: 0 0 1.25rem;
    display: block;
}
.lede {
    font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
    line-height: 1.5;
    max-width: 31rem;
    font-weight: 300;
}
.fine {
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: var(--dim);
    max-width: 26rem;
}

/* ---------- layout ---------- */
.wrap {
    width: min(66rem, 100%);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
section {
    padding-block: clamp(4.5rem, 9vw, 8.5rem);
}
.hero {
    padding-block: clamp(3rem, 9vh, 6rem) 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vw, 3.5rem);
    align-items: center;
    position: relative;
}
/* Mobile: the sun sits in the upper-right corner, behind the text —     */
/* where they overlap the text stays on top and readable. On wider       */
/* screens it becomes a real second column beside the text instead.      */
.hero > div {
    position: relative;
    z-index: 1;
}
.hero__art {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: clamp(150px, 32vw, 180px);
    height: auto;
    display: block;
    pointer-events: none;
    animation: bob 9s ease-in-out infinite alternate;
}
@media (min-width: 52rem) {
    .hero {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .hero__art {
        position: static;
        justify-self: center;
        width: clamp(150px, 30vw, 350px);
    }
}
@keyframes bob {
    from {
        transform: translateY(0) rotate(-1.5deg);
    }
    to {
        transform: translateY(-12px) rotate(1.5deg);
    }
}

/* A bigger wave hangs further up into the zone above, so that zone hands  */
/* back the space: last section loses padding, the zone gains the cap.     */
.zone:not(.zone--deep) {
    padding-bottom: var(--cap);
}
.zone:not(.zone--deep) > section:last-of-type {
    padding-bottom: 0;
}

/* ---------- masthead ---------- */
.mast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    padding-block: 1.25rem;
}
.mark {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-family: "Fraunces", serif;
    font-variation-settings:
        "opsz" 24,
        "SOFT" 100,
        "WONK" 1;
    font-weight: 600;
    letter-spacing: -0.015em;
    font-size: 1.1875rem;
}
.mark img {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}
.nav {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 3vw, 1.6rem);
}
.mast a.quiet {
    font-family: "Satoshi", sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    opacity: 0.6;
}
.mast a.quiet:hover {
    opacity: 1;
}
.mast a.quiet[aria-current="page"] {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- inner pages: faq + articles ---------- */
.page {
    width: min(46rem, 100%);
    margin-inline: auto;
    padding-block: clamp(3rem, 8vh, 6rem);
}
.page h1 {
    font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
    margin-bottom: 0.75rem;
}
.page .lede {
    margin-bottom: 2.75rem;
}
.qa {
    border-top: 1px solid var(--line);
    padding: 1.6rem 0;
}
.qa:last-of-type {
    border-bottom: 1px solid var(--line);
}
.qa h2 {
    font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
    margin: 0 0 0.6rem;
}
.qa p {
    max-width: none;
    opacity: var(--dim);
    margin: 0 0 0.8em;
}
.qa p:last-child {
    margin-bottom: 0;
}
.qa a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- empty / coming-soon state ---------- */
.empty {
    min-height: 52vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-block: clamp(3rem, 8vh, 6rem);
}
.empty__art {
    position: relative;
    display: inline-flex;
    margin-bottom: 2rem;
}
.empty img {
    position: relative;
    z-index: 1;
    width: clamp(80px, 18vw, 110px);
    height: auto;
    animation: bob 9s ease-in-out infinite alternate;
}
/* A slow breathing disc behind the seal — flat colour, scales in and out. */
.empty__pulse {
    position: absolute;
    left: 55%;
    top: 40%;
    width: 120%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #bddcdc;
    z-index: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.72);
    animation: pulse 10s ease-in-out infinite;
}
/* Breathe in (0–28%) and out (28–56%), then hold at rest to 100% — that
   held stretch is the pause between cycles. */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.72);
        opacity: 0.35;
    }
    30% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    60%,
    100% {
        transform: translate(-50%, -50%) scale(0.72);
        opacity: 0.35;
    }
}
.empty h1 {
    font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
    margin-bottom: 1rem;
}
.empty p {
    opacity: var(--dim);
    margin-inline: auto;
}
.empty .btn {
    margin-top: 1.75rem;
    text-decoration: none;
    display: inline-block;
}

/* ---------- waitlist ---------- */
.signup {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2rem 0 0.85rem;
    max-width: 30rem;
}
.signup input {
    flex: 1 1 15rem;
    min-width: 0;
    font: inherit;
    font-size: 1rem;
    color: var(--fg);
    background: transparent;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
}
.signup input::placeholder {
    color: var(--fg);
    opacity: 0.42;
}
.signup input:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
    border-color: transparent;
}
.btn {
    font-family: "Satoshi", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    color: var(--ink);
    background: var(--shallow);
    border: 1.5px solid var(--shallow);
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}
.btn:hover {
    background: var(--shell);
    border-color: var(--shell);
    transform: translateY(-1px);
}
.btn:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}
.btn[disabled] {
    opacity: 0.6;
    cursor: default;
    transform: none;
}
.zone--shallow .btn {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}
.zone--shallow .btn:hover {
    background: var(--mid);
    border-color: var(--mid);
}
.said {
    font-family: "Satoshi", sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.said.on {
    opacity: 1;
}
/* MailerLite embedded form adopts the native waitlist layout. The email
   input is wrapped in .ml-field-group, so the group is the flex item and
   the input fills it — the pill styling comes from the .signup input rule. */
.signup-embed {
    max-width: 30rem;
}
.signup .ml-field-group {
    flex: 1 1 15rem;
    min-width: 0;
}
.signup .ml-field-group input {
    width: 100%;
    box-sizing: border-box;
}

/* ---------- two-column truth table ---------- */
.split {
    display: grid;
    gap: clamp(2rem, 4vw, 4.5rem);
    grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
    .split {
        grid-template-columns: 1fr 1fr;
    }
}
.list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.list li {
    display: flex;
    gap: 0.85rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    align-items: baseline;
}
.list li:first-child {
    border-top: 0;
}
.glyph {
    flex: none;
    width: 1.1rem;
    font-weight: 700;
}
.doesnt {
    opacity: 0.82;
}

/* ---------- biome cards ---------- */
.biomes {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
}
@media (min-width: 52rem) {
    .biomes {
        grid-template-columns: repeat(3, 1fr);
    }
}
.card {
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 1.6rem 1.5rem 1.75rem;
    background: rgba(255, 251, 245, 0.06);
}
.card__name {
    font-family: "Fraunces", serif;
    font-variation-settings:
        "opsz" 48,
        "SOFT" 100,
        "WONK" 1;
    font-weight: 600;
    font-size: 1.375rem;
    letter-spacing: -0.015em;
    margin: 0.9rem 0 0.4rem;
}
.card p {
    font-size: 1rem;
    margin: 0;
    opacity: var(--dim);
}
.card svg {
    display: block;
}

/* ---------- principles ---------- */
.princ {
    display: grid;
    gap: 1.75rem 3rem;
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
}
@media (min-width: 44rem) {
    .princ {
        grid-template-columns: 1fr 1fr;
    }
}
.princ h3 {
    color: var(--accent);
}
.princ p {
    font-size: 1rem;
    opacity: var(--dim);
    margin: 0;
}

/* ---------- support: the light in the deep ---------- */
.support {
    background: var(--cream);
    color: var(--ink);
    border-radius: 1.5rem;
    padding: clamp(2rem, 4vw, 3.25rem);
}
.support__hands {
    float: right;
    width: clamp(96px, 14vw, 156px);
    height: auto;
    margin: 0.2rem 0 0.75rem 1.5rem;
    shape-outside: circle(52%);
}
.support .eyebrow {
    opacity: 0.5;
}
.support h2 {
    margin-bottom: 0.75rem;
}
.support p {
    opacity: 0.78;
}
.support a {
    text-underline-offset: 3px;
}
.support .todo {
    border: 1px dashed rgba(4, 8, 43, 0.3);
    border-radius: 0.75rem;
    padding: 1rem 1.2rem;
    font-size: 0.875rem;
    max-width: none;
}

/* ---------- footer ---------- */
footer {
    padding-block: 2.5rem 3.5rem;
    font-size: 0.875rem;
}
.foot {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
    opacity: 0.7;
}
.foot nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* ---------- underwater bubbles ---------- */
/* One layer per underwater zone. inset:0 pins it to the zone and     */
/* overflow:hidden clips every bubble inside it, so nothing drifts up  */
/* into the zone above. Sits behind the content (z-index:0).           */
.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.zone--shallow > section,
.zone--mid > section,
.zone--deep > section,
.zone--deep > footer {
    position: relative;
    z-index: 1;
}
.bubble {
    position: absolute;
    left: calc(var(--x) + var(--bx, 0%));
    bottom: -6%;
    --top: 80%;
    width: calc(var(--s) * 1.35);
    height: calc(var(--s) * 1.35);
    border-radius: 50%;
    background: var(--cream);
    opacity: 0;
    will-change: bottom, transform, opacity;
    animation: rise var(--d) linear var(--delay) infinite;
}
/* Lighter zone → keep the whole layer fainter so it stays subtle.    */
/* Each zone also shifts / mirrors the field so the vents don't line   */
/* up between sections — reads more organic as you scroll.             */
.zone--shallow .bubbles {
    opacity: 0.55;
    --bx: 0%;
}
.zone--mid .bubbles {
    opacity: 0.85;
    --bx: 9%;
    transform: scaleX(-1);
}
.zone--deep .bubbles {
    --bx: -6%;
}
/* Bubbles rise only as far as their own --top height, then burst      */
/* (fade out fast) — so they pop at varied depths and never reach the   */
/* hard clip line where the wave begins.                               */
@keyframes rise {
    0% {
        bottom: -6%;
        transform: translateX(0);
        opacity: 0;
    }
    14% {
        opacity: var(--o);
    }
    50% {
        transform: translateX(var(--drift));
    }
    86% {
        opacity: var(--o);
    }
    100% {
        bottom: var(--top);
        transform: translateX(0);
        opacity: 0;
    }
}
/* Bubbles are grouped into five "vents" (clusters of x positions).   */
/* Within a vent the delays sit close together so a handful burst up   */
/* as a group, then a gap, then the next burst.                        */
/* -- vent A ~12% -- */
.bubble:nth-child(1) {
    --x: 10%;
    --s: 6px;
    --d: 20s;
    --delay: -2s;
    --o: 0.26;
    --drift: 8px;
}
.bubble:nth-child(2) {
    --x: 14%;
    --s: 9px;
    --d: 17s;
    --delay: -6s;
    --o: 0.3;
    --drift: -6px;
}
.bubble:nth-child(3) {
    --x: 9%;
    --s: 5px;
    --d: 24s;
    --delay: -11s;
    --o: 0.22;
    --drift: 10px;
}
.bubble:nth-child(4) {
    --x: 13%;
    --s: 12px;
    --d: 16s;
    --delay: -4s;
    --o: 0.32;
    --drift: -8px;
}
.bubble:nth-child(5) {
    --x: 11%;
    --s: 4px;
    --d: 27s;
    --delay: -14s;
    --o: 0.18;
    --drift: 6px;
}
.bubble:nth-child(6) {
    --x: 15%;
    --s: 7px;
    --d: 21s;
    --delay: -9s;
    --o: 0.26;
    --drift: -10px;
}
/* -- vent B ~31% -- */
.bubble:nth-child(7) {
    --x: 29%;
    --s: 8px;
    --d: 19s;
    --delay: -3s;
    --o: 0.28;
    --drift: 10px;
}
.bubble:nth-child(8) {
    --x: 33%;
    --s: 5px;
    --d: 26s;
    --delay: -13s;
    --o: 0.2;
    --drift: -8px;
}
.bubble:nth-child(9) {
    --x: 30%;
    --s: 11px;
    --d: 18s;
    --delay: -7s;
    --o: 0.3;
    --drift: 12px;
}
.bubble:nth-child(10) {
    --x: 34%;
    --s: 6px;
    --d: 23s;
    --delay: -1s;
    --o: 0.24;
    --drift: -6px;
}
.bubble:nth-child(11) {
    --x: 28%;
    --s: 4px;
    --d: 28s;
    --delay: -16s;
    --o: 0.16;
    --drift: 8px;
}
.bubble:nth-child(12) {
    --x: 32%;
    --s: 13px;
    --d: 15s;
    --delay: -5s;
    --o: 0.34;
    --drift: -12px;
}
/* -- vent C ~50% -- */
.bubble:nth-child(13) {
    --x: 48%;
    --s: 7px;
    --d: 22s;
    --delay: -8s;
    --o: 0.26;
    --drift: 10px;
}
.bubble:nth-child(14) {
    --x: 52%;
    --s: 10px;
    --d: 17s;
    --delay: -2s;
    --o: 0.3;
    --drift: -10px;
}
.bubble:nth-child(15) {
    --x: 49%;
    --s: 5px;
    --d: 25s;
    --delay: -12s;
    --o: 0.2;
    --drift: 6px;
}
.bubble:nth-child(16) {
    --x: 53%;
    --s: 6px;
    --d: 20s;
    --delay: -6s;
    --o: 0.24;
    --drift: -8px;
}
.bubble:nth-child(17) {
    --x: 47%;
    --s: 12px;
    --d: 16s;
    --delay: -10s;
    --o: 0.32;
    --drift: 12px;
}
.bubble:nth-child(18) {
    --x: 51%;
    --s: 4px;
    --d: 29s;
    --delay: -18s;
    --o: 0.16;
    --drift: -6px;
}
/* -- vent D ~69% -- */
.bubble:nth-child(19) {
    --x: 67%;
    --s: 9px;
    --d: 19s;
    --delay: -4s;
    --o: 0.28;
    --drift: 8px;
}
.bubble:nth-child(20) {
    --x: 71%;
    --s: 5px;
    --d: 24s;
    --delay: -14s;
    --o: 0.2;
    --drift: -10px;
}
.bubble:nth-child(21) {
    --x: 68%;
    --s: 7px;
    --d: 21s;
    --delay: -1s;
    --o: 0.26;
    --drift: 10px;
}
.bubble:nth-child(22) {
    --x: 72%;
    --s: 11px;
    --d: 16s;
    --delay: -7s;
    --o: 0.32;
    --drift: -8px;
}
.bubble:nth-child(23) {
    --x: 66%;
    --s: 4px;
    --d: 27s;
    --delay: -11s;
    --o: 0.18;
    --drift: 6px;
}
.bubble:nth-child(24) {
    --x: 70%;
    --s: 6px;
    --d: 23s;
    --delay: -9s;
    --o: 0.24;
    --drift: -12px;
}
/* -- vent E ~88% -- */
.bubble:nth-child(25) {
    --x: 86%;
    --s: 8px;
    --d: 18s;
    --delay: -3s;
    --o: 0.28;
    --drift: 10px;
}
.bubble:nth-child(26) {
    --x: 90%;
    --s: 5px;
    --d: 26s;
    --delay: -15s;
    --o: 0.2;
    --drift: -8px;
}
.bubble:nth-child(27) {
    --x: 87%;
    --s: 12px;
    --d: 16s;
    --delay: -5s;
    --o: 0.34;
    --drift: 12px;
}
.bubble:nth-child(28) {
    --x: 91%;
    --s: 6px;
    --d: 22s;
    --delay: -10s;
    --o: 0.24;
    --drift: -6px;
}
.bubble:nth-child(29) {
    --x: 85%;
    --s: 4px;
    --d: 28s;
    --delay: -17s;
    --o: 0.16;
    --drift: 8px;
}
.bubble:nth-child(30) {
    --x: 89%;
    --s: 9px;
    --d: 19s;
    --delay: -8s;
    --o: 0.28;
    --drift: -10px;
}
/* Burst heights rotate through five values so bubbles pop at mixed   */
/* depths — all well below the wave line at the top (max ~84%).       */
.bubble:nth-child(5n + 1) {
    --top: 84%;
}
.bubble:nth-child(5n + 2) {
    --top: 52%;
}
.bubble:nth-child(5n + 3) {
    --top: 73%;
}
.bubble:nth-child(5n + 4) {
    --top: 43%;
}
.bubble:nth-child(5n + 5) {
    --top: 64%;
}

/* ---------- ambient sea life ---------- */
/* Hand-drawn creatures drift in the side margins of each depth zone,   */
/* behind the copy (z-index:0, like the bubbles). Hidden below 75rem so  */
/* they never crowd the text column on tablets and phones.              */
.deco {
    position: absolute;
    z-index: 0;
    display: none;
    height: auto;
    pointer-events: none;
    user-select: none;
    opacity: 0.9;
    animation: drift var(--dr, 13s) ease-in-out var(--dd, 0s) infinite alternate;
}
@media (min-width: 75rem) {
    .deco {
        display: block;
    }
}
@keyframes drift {
    from {
        transform: translateY(0) rotate(var(--rot, 0deg));
    }
    to {
        transform: translateY(var(--dy, -14px)) rotate(var(--rot, 0deg));
    }
}

/* shallow — kelp rooted at the seabed, a seahorse hanging in the water */
.deco--algae-l {
    left: 0;
    bottom: 0;
    width: clamp(180px, 15vw, 230px);
    --dy: -6px;
    --dr: 16s;
}
.deco--algae-r {
    right: 0;
    bottom: 5%;
    width: clamp(300px, 23vw, 360px);
    --dy: -5px;
    --dr: 19s;
    --dd: -4s;
}
.deco--seahorse {
    right: 8%;
    bottom: 30%;
    width: clamp(100px, 10vw, 130px);
    --rot: -6deg;
    --dy: -16px;
    --dr: 11s;
}

/* mid — the water comes alive: jellies, a turtle, a passing ray */
.deco--jelly {
    left: 5%;
    bottom: 20%;
    width: clamp(300px, 26vw, 450px);
    --dy: -22px;
    --dr: 12s;
}
.deco--turtle {
    right: 7%;
    top: 1%;
    width: clamp(400px, 30vw, 500px);
    --rot: -4deg;
    --dd: -2s;
    --dy: -14px;
    --dr: 18s;
}
.deco--stingray {
    left: 7%;
    bottom: 40%;
    width: clamp(204px, 16vw, 254px);
    --rot: 6deg;
    --dy: -12px;
    --dr: 14s;
    --dd: -5s;
}

/* deep — heavy, still things that live on the bottom */
.deco--anchor {
    right: 5%;
    bottom: 5%;
    width: clamp(208px, 16vw, 262px);
    --rot: 4deg;
    --dy: -8px;
    --dr: 20s;
}
.deco--anemone {
    right: 20%;
    top: 10%;
    width: clamp(230px, 19vw, 302px);
    --dy: -6px;
    --dr: 17s;
    --dd: -3s;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
