/* ==========================================================
   HHASSL.com — Digital Terrarium
   Maximalist zen paradox · single-column scroll poem
   ========================================================== */

:root {
    /* Digital Terrarium palette */
    --bg-primary: #FFF8F0;       /* Warm Cream */
    --bg-alt: #E8EFDE;           /* Soft Sage Mist */
    --text-primary: #2C3A2E;     /* Deep Moss */
    --text-secondary: #6B7B6E;   /* Warm Slate */
    --accent-warm: #F4B8A5;      /* Blushed Peach */
    --accent-cool: #8CBCB0;      /* Lichen Teal */
    --accent-highlight: #E8C87A; /* Golden Pollen */
    --ambient-glow: #F0D6D1;     /* Pale Rose Quartz */
    --tech-trace: #A3C4A8;       /* Faded Circuit Green */
    --deep-accent: #7A5C7E;      /* Twilight Plum */

    --corridor-max: 680px;
    --section-pad-y: clamp(100px, 14vh, 180px);
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Quicksand", system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.85;
    color: var(--text-primary);
    background:
        radial-gradient(ellipse 1200px 800px at 50% -10%, var(--ambient-glow) 0%, transparent 60%),
        linear-gradient(175deg, var(--bg-primary) 0%, var(--bg-alt) 35%, var(--ambient-glow) 70%, var(--bg-primary) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Subtle moss-like noise */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(163, 196, 168, 0.08) 0%, transparent 6%),
        radial-gradient(circle at 78% 22%, rgba(240, 214, 209, 0.10) 0%, transparent 6%),
        radial-gradient(circle at 34% 62%, rgba(232, 200, 122, 0.08) 0%, transparent 5%),
        radial-gradient(circle at 88% 74%, rgba(163, 196, 168, 0.09) 0%, transparent 6%),
        radial-gradient(circle at 22% 88%, rgba(244, 184, 165, 0.08) 0%, transparent 5%);
    mix-blend-mode: multiply;
}

/* ==========================================================
   Scroll progress indicator (thin vertical line, right edge)
   ========================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 2px;
    height: 100vh;
    background: rgba(140, 188, 176, 0.12);
    z-index: 50;
    pointer-events: none;
}
.scroll-progress__fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent-cool) 0%, var(--deep-accent) 100%);
    transition: height 120ms linear;
    box-shadow: 0 0 8px rgba(140, 188, 176, 0.45);
}

/* ==========================================================
   Floating label (ambient)
   ========================================================== */
.floating-label {
    position: fixed;
    top: 28px;
    left: 28px;
    font-family: "Varela Round", system-ui, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: var(--text-secondary);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.85;
    mix-blend-mode: multiply;
}
.floating-label__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-cool);
    box-shadow: 0 0 0 0 rgba(140, 188, 176, 0.4);
    animation: nodePulse 4s ease-in-out infinite;
}

/* ==========================================================
   Ambient decorative layer (bokeh + gradient blobs, fixed)
   ========================================================== */
.ambient-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bokeh {
    position: absolute;
    border-radius: 50%;
    filter: blur(14px);
    will-change: transform;
}
.bokeh--1 { top: 8vh; left: 12vw; width: 120px; height: 120px;
    background: radial-gradient(circle, var(--ambient-glow) 0%, transparent 70%);
    animation: drift 22s ease-in-out infinite; }
.bokeh--2 { top: 45vh; left: 76vw; width: 180px; height: 180px;
    background: radial-gradient(circle, var(--accent-highlight) 0%, transparent 70%);
    opacity: 0.55;
    animation: drift 26s ease-in-out infinite reverse; }
.bokeh--3 { top: 74vh; left: 22vw; width: 140px; height: 140px;
    background: radial-gradient(circle, var(--ambient-glow) 0%, transparent 70%);
    animation: drift 19s ease-in-out infinite; }
.bokeh--4 { top: 130vh; left: 68vw; width: 160px; height: 160px;
    background: radial-gradient(circle, var(--accent-highlight) 0%, transparent 70%);
    opacity: 0.5;
    animation: drift 24s ease-in-out infinite reverse; }
.bokeh--5 { top: 220vh; left: 16vw; width: 200px; height: 200px;
    background: radial-gradient(circle, var(--ambient-glow) 0%, transparent 70%);
    animation: drift 28s ease-in-out infinite; }

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform;
}
.gradient-blob--rose {
    top: 20vh; left: 8vw; width: 380px; height: 380px;
    background: var(--accent-warm);
    animation: drift 30s ease-in-out infinite;
}
.gradient-blob--sage {
    top: 110vh; left: 62vw; width: 420px; height: 420px;
    background: var(--tech-trace);
    opacity: 0.4;
    animation: drift 34s ease-in-out infinite reverse;
}
.gradient-blob--pollen {
    top: 240vh; left: 34vw; width: 340px; height: 340px;
    background: var(--accent-highlight);
    opacity: 0.38;
    animation: drift 28s ease-in-out infinite;
}

/* ==========================================================
   Stream container
   ========================================================== */
.stream {
    position: relative;
    z-index: 2;
    display: block;
}

/* ==========================================================
   Section base
   ========================================================== */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: var(--section-pad-y) 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.section-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.content-corridor {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--corridor-max);
    margin: 0 auto;
}

/* ==========================================================
   Typography
   ========================================================== */
.eyebrow {
    font-family: "Varela Round", system-ui, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--deep-accent);
    margin-bottom: 28px;
    opacity: 0.85;
}

.section-title {
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    letter-spacing: 0.015em;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 40px;
    max-width: 16ch;
}

.prose {
    font-family: "Quicksand", system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.85;
    color: var(--text-primary);
    margin-bottom: 26px;
    max-width: 62ch;
}

.prose--quote {
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 32px 0 8px 28px;
    border-left: 3px solid var(--accent-cool);
    margin-top: 20px;
}

/* ==========================================================
   HERO
   ========================================================== */
.section--hero {
    min-height: 100vh;
    padding-top: 18vh;
}

.hero-sky {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 900px 500px at 50% 0%, #FFF2DC 0%, transparent 60%),
        linear-gradient(180deg, #FFF8F0 0%, #F7E9DF 30%, #E8EFDE 70%, #F0D6D1 100%);
}

.leaf-overlay,
.circuit-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.leaf {
    transform-origin: 50% 50%;
}
.leaf--drift-a { animation: leafDrift 18s ease-in-out infinite; }
.leaf--drift-b { animation: leafDrift 22s ease-in-out infinite reverse; }
.leaf--drift-c { animation: leafDrift 26s ease-in-out infinite; }
.leaf--drift-d { animation: leafDrift 20s ease-in-out infinite reverse; }

.circuit-overlay .node {
    filter: drop-shadow(0 0 0 rgba(163, 196, 168, 0));
    animation: nodeDropPulse 4s ease-in-out infinite;
}
.circuit-overlay .node:nth-child(2) { animation-delay: 0.4s; }
.circuit-overlay .node:nth-child(3) { animation-delay: 0.9s; }
.circuit-overlay .node:nth-child(4) { animation-delay: 1.3s; }
.circuit-overlay .node:nth-child(5) { animation-delay: 1.8s; }
.circuit-overlay .node:nth-child(6) { animation-delay: 2.2s; }
.circuit-overlay .node:nth-child(7) { animation-delay: 2.7s; }
.circuit-overlay .node:nth-child(8) { animation-delay: 3.1s; }

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-eyebrow {
    font-family: "Varela Round", system-ui, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--deep-accent);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 900ms var(--ease-soft), transform 900ms var(--ease-soft);
}
.hero-eyebrow.is-revealed { opacity: 0.9; transform: translateY(0); }

.hero-title {
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 36px;
    min-height: 1em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.02em;
    background: linear-gradient(135deg, #2C3A2E 0%, #7A5C7E 50%, #6B7B6E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms var(--ease-soft), transform 600ms var(--ease-soft);
}
.hero-title .char.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-sub {
    font-family: "Quicksand", system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 46ch;
    margin: 0 auto 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1000ms var(--ease-soft) 300ms, transform 1000ms var(--ease-soft) 300ms;
}
.hero-sub.is-revealed { opacity: 1; transform: translateY(0); }

.hero-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-family: "Varela Round", system-ui, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.7;
}
.hero-scroll-hint__line {
    width: 1px;
    height: 58px;
    background: linear-gradient(180deg, var(--accent-cool) 0%, transparent 100%);
    animation: scrollHint 3s ease-in-out infinite;
}

/* ==========================================================
   Divider bands (nature → tech)
   ========================================================== */
.divider {
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.divider--nature-tech {
    background:
        linear-gradient(90deg,
            rgba(163, 196, 168, 0.0) 0%,
            rgba(163, 196, 168, 0.35) 25%,
            rgba(232, 239, 222, 0.55) 50%,
            rgba(244, 184, 165, 0.45) 75%,
            rgba(244, 184, 165, 0.0) 100%);
}
.divider--mossy-peach {
    background:
        linear-gradient(90deg,
            rgba(240, 214, 209, 0.0) 0%,
            rgba(240, 214, 209, 0.4) 30%,
            rgba(232, 200, 122, 0.3) 55%,
            rgba(163, 196, 168, 0.35) 80%,
            rgba(163, 196, 168, 0.0) 100%);
}
.divider-traces {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================
   Intro section
   ========================================================== */
.section--intro {
    background: linear-gradient(180deg, transparent 0%, rgba(232, 239, 222, 0.5) 100%);
}

.bokeh-ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.bokeh-ambient--a {
    top: 10%; left: 8%; width: 220px; height: 220px;
    background: var(--ambient-glow);
    opacity: 0.55;
    animation: drift 24s ease-in-out infinite;
}
.bokeh-ambient--b {
    bottom: 12%; right: 10%; width: 260px; height: 260px;
    background: var(--accent-highlight);
    opacity: 0.38;
    animation: drift 28s ease-in-out infinite reverse;
}
.bokeh-ambient--warm {
    top: 18%; right: 6%; width: 300px; height: 300px;
    background: var(--accent-warm);
    opacity: 0.35;
    filter: blur(80px);
    animation: drift 26s ease-in-out infinite;
}
.bokeh-ambient--gold {
    top: 14%; left: 10%; width: 280px; height: 280px;
    background: var(--accent-highlight);
    opacity: 0.42;
    filter: blur(80px);
    animation: drift 24s ease-in-out infinite reverse;
}
.bokeh-ambient--rose {
    bottom: 16%; right: 8%; width: 240px; height: 240px;
    background: var(--ambient-glow);
    opacity: 0.55;
    filter: blur(70px);
    animation: drift 22s ease-in-out infinite;
}
.bokeh-ambient--sage {
    top: 20%; left: 12%; width: 260px; height: 260px;
    background: var(--tech-trace);
    opacity: 0.28;
    filter: blur(80px);
    animation: drift 30s ease-in-out infinite;
}
.bokeh-ambient--settle-1 {
    top: 30%; left: 20%; width: 320px; height: 320px;
    background: var(--accent-warm);
    opacity: 0.25;
    filter: blur(90px);
    animation: drift 32s ease-in-out infinite;
}
.bokeh-ambient--settle-2 {
    bottom: 20%; right: 18%; width: 280px; height: 280px;
    background: var(--ambient-glow);
    opacity: 0.4;
    filter: blur(70px);
    animation: drift 28s ease-in-out infinite reverse;
}

.leaf-scatter {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.leaf-float--1 { animation: leafDrift 18s ease-in-out infinite; transform-origin: 50% 50%; }
.leaf-float--2 { animation: leafDrift 22s ease-in-out infinite reverse; transform-origin: 50% 50%; }
.leaf-float--3 { animation: leafDrift 20s ease-in-out infinite; transform-origin: 50% 50%; }
.leaf-float--4 { animation: leafDrift 24s ease-in-out infinite reverse; transform-origin: 50% 50%; }

/* Dot grid */
.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--bg-alt) 2px, transparent 2.5px);
    background-size: 32px 32px;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: multiply;
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
}

/* ==========================================================
   Breath sections (visual breathing spaces)
   ========================================================== */
.section--breath {
    padding: var(--section-pad-y) 24px;
    min-height: 100vh;
}

.breath-caption {
    position: absolute;
    top: 12vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: "Varela Round", system-ui, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    color: var(--text-secondary);
}
.breath-caption__num {
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--deep-accent);
    letter-spacing: 0;
}

.section--breath-1 {
    background:
        radial-gradient(ellipse 1000px 600px at 50% 50%, rgba(232, 200, 122, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(232, 239, 222, 0.4) 0%, var(--bg-primary) 100%);
}
.section--breath-2 {
    background:
        radial-gradient(ellipse 1000px 600px at 50% 50%, rgba(140, 188, 176, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-primary) 0%, rgba(240, 214, 209, 0.3) 100%);
}

/* Fern composition */
.fern-composition {
    position: relative;
    width: 100%;
    max-width: 620px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    z-index: 2;
}
.fern-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.fern-stem {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawStem 3.5s ease-out forwards;
    animation-delay: 0.5s;
}
.fern-leaflets path {
    opacity: 0;
    animation: fadeInUp 800ms var(--ease-soft) forwards;
}
.fern-leaflets path:nth-child(1) { animation-delay: 1.2s; }
.fern-leaflets path:nth-child(2) { animation-delay: 1.4s; }
.fern-leaflets path:nth-child(3) { animation-delay: 1.6s; }
.fern-leaflets path:nth-child(4) { animation-delay: 1.8s; }
.fern-leaflets path:nth-child(5) { animation-delay: 2.0s; }
.fern-leaflets path:nth-child(6) { animation-delay: 2.2s; }

.fiddlehead {
    transform-origin: 340px 90px;
    animation: fiddleRotate 20s linear infinite;
}

.node-pulse {
    transform-origin: center;
    transform-box: fill-box;
    animation: nodeDropPulse 4s ease-in-out infinite;
}

/* Ripple composition */
.ripple-composition {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    z-index: 2;
}
.ripple-core,
.ripple-glow,
.ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ripple-core {
    width: 22px;
    height: 22px;
    background: var(--accent-highlight);
    box-shadow:
        0 0 20px 4px rgba(232, 200, 122, 0.55),
        0 0 40px 10px rgba(232, 200, 122, 0.3);
    animation: corePulse 4s ease-in-out infinite;
    z-index: 4;
}
.ripple-glow {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(232, 200, 122, 0.35) 0%, transparent 70%);
    filter: blur(8px);
    z-index: 3;
    animation: coreGlow 4s ease-in-out infinite;
}
.ripple-ring {
    width: 80px;
    height: 80px;
    border: 1.5px solid var(--accent-cool);
    opacity: 0;
    z-index: 2;
}
.ripple-ring--1 { animation: rippleOut 4s ease-out infinite; }
.ripple-ring--2 { animation: rippleOut 4s ease-out infinite 1s; }
.ripple-ring--3 { animation: rippleOut 4s ease-out infinite 2s; }
.ripple-ring--4 { animation: rippleOut 4s ease-out infinite 3s; }

/* ==========================================================
   Mycelium section
   ========================================================== */
.section--core-mycelium {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(232, 239, 222, 0.5) 100%);
}
.mycelium-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

/* Mandala */
.mandala-wrap {
    margin: 48px auto 36px;
    width: 240px;
    height: 240px;
    position: relative;
}
.mandala {
    width: 100%;
    height: 100%;
    animation: mandalaSpin 60s linear infinite;
}
.mandala circle.node-pulse {
    filter: drop-shadow(0 0 6px rgba(232, 200, 122, 0.6));
}

/* ==========================================================
   Light section (III) — binary streams + chip row
   ========================================================== */
.section--core-light {
    background: linear-gradient(180deg, rgba(232, 239, 222, 0.5) 0%, rgba(240, 214, 209, 0.35) 100%);
}

.binary-stream {
    position: absolute;
    top: 10%;
    width: 22px;
    height: 80%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 0;
    opacity: 0.5;
}
.binary-stream--left { left: 4%; }
.binary-stream--right { right: 4%; }
.binary-stream .bit {
    width: 14px;
    height: 6px;
    background: var(--tech-trace);
    border-radius: 3px;
    opacity: 0.2;
    animation: bitFlow 6s linear infinite;
}
.binary-stream .bit:nth-child(2n) { opacity: 0.45; animation-duration: 8s; }
.binary-stream .bit:nth-child(3n) { opacity: 0.25; animation-duration: 7s; }
.binary-stream .bit:nth-child(4n) { opacity: 0.5; animation-duration: 9s; }
.binary-stream .bit:nth-child(5n) { opacity: 0.3; animation-duration: 5s; }

/* Chip row */
.chip-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 48px auto 20px;
    flex-wrap: wrap;
}
.chip {
    position: relative;
    width: 100px;
    height: 76px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--bg-alt) 0%, var(--bg-primary) 100%);
    border: 1px solid rgba(122, 92, 126, 0.25);
    box-shadow:
        0 1px 2px rgba(44, 58, 46, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Varela Round", system-ui, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--deep-accent);
    background-image:
        linear-gradient(90deg, rgba(122, 92, 126, 0.12) 1px, transparent 1px),
        linear-gradient(0deg, rgba(122, 92, 126, 0.08) 1px, transparent 1px),
        linear-gradient(145deg, var(--bg-alt) 0%, var(--bg-primary) 100%);
    background-size: 16px 16px, 16px 16px, 100% 100%;
}
.chip-pin {
    position: absolute;
    left: -8px;
    width: 8px;
    height: 4px;
    background: var(--tech-trace);
    border-radius: 1px;
}
.chip-pin:nth-of-type(1) { top: 12px; }
.chip-pin:nth-of-type(2) { top: 26px; }
.chip-pin:nth-of-type(3) { top: 44px; }
.chip-pin:nth-of-type(4) { top: 58px; }
.chip-pin--right { left: auto; right: -8px; }
.chip-pin--right:nth-of-type(5) { top: 12px; }
.chip-pin--right:nth-of-type(6) { top: 26px; }
.chip-pin--right:nth-of-type(7) { top: 44px; }
.chip-pin--right:nth-of-type(8) { top: 58px; }
.chip-label {
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.chip--a { transform: rotate(-1deg); }
.chip--b { transform: rotate(1deg); }
.chip--c { transform: rotate(-0.5deg); }

/* ==========================================================
   Quiet section (IV)
   ========================================================== */
.section--core-quiet {
    background: linear-gradient(180deg, rgba(240, 214, 209, 0.35) 0%, var(--bg-primary) 100%);
}

/* ==========================================================
   Settle (footer)
   ========================================================== */
.section--settle {
    min-height: 90vh;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #FBF4EC 100%);
    text-align: center;
}
.settle-content {
    text-align: center;
}
.section-title--settle {
    margin-left: auto;
    margin-right: auto;
    max-width: 20ch;
}
.prose--settle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--text-secondary);
}

.heartbeat {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 48px auto 32px;
}
.heartbeat-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140, 188, 176, 0.3) 0%, transparent 70%);
    animation: heartbeatHalo 4s ease-in-out infinite;
}
.heartbeat-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border-radius: 50%;
    background: var(--accent-cool);
    box-shadow:
        0 0 16px 2px rgba(140, 188, 176, 0.5),
        0 0 32px 8px rgba(140, 188, 176, 0.25);
    animation: heartbeatCore 4s ease-in-out infinite;
}

.settle-meta {
    font-family: "Varela Round", system-ui, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    color: var(--text-secondary);
    line-height: 2.2;
    margin-top: 32px;
    opacity: 0.75;
}
.settle-meta__row { display: block; }

/* ==========================================================
   Reveal-on-scroll
   ========================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms var(--ease-soft), transform 600ms var(--ease-soft);
    will-change: opacity, transform;
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   Keyframes
   ========================================================== */
@keyframes drift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(24px, -14px); }
    50%  { transform: translate(-8px, -26px); }
    75%  { transform: translate(-18px, 10px); }
    100% { transform: translate(0, 0); }
}

@keyframes leafDrift {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(14px, -8px) rotate(1.5deg); }
    50%  { transform: translate(-6px, -14px) rotate(-1deg); }
    75%  { transform: translate(-12px, 6px) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes nodePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(140, 188, 176, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(140, 188, 176, 0);
    }
}

@keyframes nodeDropPulse {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(163, 196, 168, 0));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(163, 196, 168, 0.7));
    }
}

@keyframes scrollHint {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes drawStem {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 0.55; transform: translateY(0); }
}

@keyframes fiddleRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes corePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 20px 4px rgba(232, 200, 122, 0.55),
            0 0 40px 10px rgba(232, 200, 122, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.18);
        box-shadow:
            0 0 28px 6px rgba(232, 200, 122, 0.7),
            0 0 56px 14px rgba(232, 200, 122, 0.4);
    }
}

@keyframes coreGlow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 0.9; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes rippleOut {
    0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 0.9; border-width: 1.5px; }
    80%  { opacity: 0.05; }
    100% { transform: translate(-50%, -50%) scale(4.5); opacity: 0; border-width: 0.5px; }
}

@keyframes mandalaSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes bitFlow {
    0%   { transform: translateY(-20px); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

@keyframes heartbeatHalo {
    0%, 100% { transform: scale(0.8); opacity: 0.4; }
    50%      { transform: scale(1.3); opacity: 0.8; }
}

@keyframes heartbeatCore {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 16px 2px rgba(140, 188, 176, 0.5),
            0 0 32px 8px rgba(140, 188, 176, 0.25);
    }
    50% {
        transform: scale(1.2);
        box-shadow:
            0 0 24px 4px rgba(140, 188, 176, 0.7),
            0 0 48px 12px rgba(140, 188, 176, 0.35);
    }
}

/* ==========================================================
   Reduced motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .hero-title .char { opacity: 1; transform: none; }
    .hero-eyebrow, .hero-sub { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 680px) {
    :root {
        --section-pad-y: clamp(80px, 12vh, 140px);
    }
    .floating-label { top: 18px; left: 18px; font-size: 0.65rem; }
    .breath-caption { font-size: 0.72rem; top: 9vh; flex-direction: column; gap: 6px; }
    .breath-caption__num { font-size: 1.4rem; }
    .chip-row { gap: 18px; }
    .chip { width: 80px; height: 60px; font-size: 0.62rem; }
    .chip-pin:nth-of-type(1) { top: 8px; }
    .chip-pin:nth-of-type(2) { top: 22px; }
    .chip-pin:nth-of-type(3) { top: 36px; }
    .chip-pin:nth-of-type(4) { top: 48px; }
    .chip-pin--right:nth-of-type(5) { top: 8px; }
    .chip-pin--right:nth-of-type(6) { top: 22px; }
    .chip-pin--right:nth-of-type(7) { top: 36px; }
    .chip-pin--right:nth-of-type(8) { top: 48px; }
    .binary-stream { display: none; }
    .hero-title { font-size: clamp(2.8rem, 14vw, 4.5rem); }
    .mandala-wrap { width: 180px; height: 180px; }
}
