/* =====================================================================
   Kasper → Ndanu — public site
   Palette: deep forest, warm ivory, copper, rose, muted gold.
   ===================================================================== */

:root {
    --forest-950: #0a1611;
    --forest-900: #0e1f18;
    --forest-800: #142a20;
    --forest-700: #1c3a2c;
    --forest-600: #2b5140;
    --moss: #6f8f6a;
    --sage: #a8b89c;

    --ivory: #f6efe3;
    --ivory-2: #efe5d3;
    --paper: #fbf5ea;
    --ink: #1a251f;
    --ink-soft: #4b574f;

    --copper: #b8734a;
    --copper-2: #d9976b;
    --rose: #c9727a;
    --blush: #efc9c1;
    --gold: #c9a86a;
    --gold-2: #e4cb95;
    --night: #07110f;

    --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --hand: "Caveat", "Segoe Script", cursive;
    --sign: "Mrs Saint Delafield", "Caveat", cursive;

    --gutter: clamp(1rem, 4vw, 3rem);
    --ease: cubic-bezier(.22, .8, .24, 1);
    --ease-soft: cubic-bezier(.45, 0, .2, 1);
    --shadow-deep: 0 50px 90px -40px rgba(3, 10, 7, .85), 0 18px 40px -24px rgba(3, 10, 7, .6);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--forest-900);
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--copper); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; border-radius: 4px; }

.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; z-index: 2; }

.skip-link {
    position: fixed; left: 1rem; top: -4rem; z-index: 500; padding: .7rem 1rem; border-radius: 999px;
    background: var(--ivory); color: var(--forest-900); text-decoration: none; font-weight: 600; transition: top .3s;
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------------
   Atmosphere layers: grain, petals, cursor light, scroll thread
   ------------------------------------------------------------------- */
.grain {
    position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .075;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 1.2 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
    0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
    60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; }

.cursor-light {
    position: fixed; left: 0; top: 0; z-index: 85; width: 560px; height: 560px; margin: -280px 0 0 -280px;
    border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .8s;
    background: radial-gradient(circle, rgba(236, 176, 132, .22) 0%, rgba(201, 114, 122, .08) 38%, transparent 66%);
    mix-blend-mode: soft-light; will-change: transform;
}
.cursor-light.is-on { opacity: 1; }
@media (hover: none) { .cursor-light { display: none; } }

.scroll-thread { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.scroll-thread span {
    display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
    background: linear-gradient(90deg, var(--copper), var(--rose), var(--gold-2));
}

/* ---------------------------------------------------------------------
   Top bar
   ------------------------------------------------------------------- */
.topbar {
    position: fixed; inset: 0 0 auto 0; z-index: 110;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.15rem var(--gutter);
    transition: background .5s var(--ease), transform .6s var(--ease), padding .4s var(--ease), border-color .5s;
    border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
    background: rgba(12, 27, 21, .92); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-color: rgba(228, 203, 149, .12); padding-block: .75rem;
}
.topbar.is-hidden { transform: translateY(-110%); }

.monogram {
    font-family: var(--serif); font-style: italic; font-size: 1.45rem; letter-spacing: .08em; text-decoration: none; color: var(--ivory);
    white-space: nowrap;
}
.topbar__nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.topbar__nav a {
    position: relative; text-decoration: none; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(246, 239, 227, .7);
    padding: .3rem 0; transition: color .3s;
}
.topbar__nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--copper-2);
    transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.topbar__nav a:hover, .topbar__nav a.is-current { color: var(--ivory); }
.topbar__nav a:hover::after, .topbar__nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.sound-pill {
    display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem .5rem .85rem; cursor: pointer;
    border: 1px solid rgba(246, 239, 227, .24); border-radius: 999px; background: rgba(246, 239, 227, .04);
    font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; transition: border-color .3s, background .3s;
}
.sound-pill:hover { border-color: var(--gold); background: rgba(228, 203, 149, .08); }
.sound-pill__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-pill__bars i { width: 2px; height: 100%; background: var(--gold-2); border-radius: 2px; transform-origin: bottom; transform: scaleY(.25); }
.is-sound-on .sound-pill__bars i { animation: pill-bar .9s var(--ease-soft) infinite alternate; }
.is-sound-on .sound-pill__bars i:nth-child(2) { animation-delay: -.3s; }
.is-sound-on .sound-pill__bars i:nth-child(3) { animation-delay: -.6s; }
.is-sound-on .sound-pill__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes pill-bar { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

@media (max-width: 900px) {
    .topbar__nav { display: none; }
}

/* ---------------------------------------------------------------------
   Shared typography
   ------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .9rem; margin: 0 0 1.4rem;
    font-size: .7rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-2);
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--center { display: flex; justify-content: center; }
.eyebrow--center::after { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: .7; }

.display {
    margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5.8vw, 5.6rem);
    line-height: .98; letter-spacing: -.015em;
}
.display em, .hero__title em, .closing__title em, .chapter__title em, .letter__title em {
    font-style: italic; font-weight: 400; color: var(--copper-2);
}

.section-head { max-width: 860px; margin-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: .7; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.5rem 4rem; align-items: end; }
.section-head__intro { margin: 1.6rem 0 0; font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.8; max-width: 46ch; opacity: .8; }
.section-head--center .section-head__intro { margin-inline: auto; }
.section-head--split .section-head__intro { margin: 0; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

.empty-state { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.4rem; opacity: .7; padding: 3rem 1rem; }

/* ---------------------------------------------------------------------
   Reveal system — only hides content once JavaScript is running
   ------------------------------------------------------------------- */
.js [data-reveal] { transition: opacity 1.1s var(--ease) var(--delay, 0s), translate 1.2s var(--ease) var(--delay, 0s), clip-path 1.5s var(--ease) var(--delay, 0s), scale 1.4s var(--ease) var(--delay, 0s); }
.js [data-reveal="fade"] { opacity: 0; }
.js [data-reveal="up"] { opacity: 0; translate: 0 34px; }
.js [data-reveal="rise"] { opacity: 0; translate: 0 70px; }
.js [data-reveal="clip"] { clip-path: inset(100% 0 0 0); }
.js [data-reveal="drop"] { opacity: 0; translate: 0 -40px; }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0); }

.js [data-reveal="lines"] > * { opacity: 0; translate: 0 22px; transition: opacity 1s var(--ease), translate 1.1s var(--ease); transition-delay: calc(var(--delay, 0s) + var(--line, 0) * .14s); }
.js [data-reveal="lines"].is-in > * { opacity: 1; translate: 0 0; }
.js [data-reveal="lines"] { transition: none; }

/* Split headlines: each word rises out of its own mask. */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.word > span { display: inline-block; }
.js [data-split] .word > span { translate: 0 108%; rotate: 4deg; transition: translate 1.25s var(--ease), rotate 1.25s var(--ease); transition-delay: calc(var(--delay, 0s) + var(--w) * .055s); }
.js [data-split].is-in .word > span { translate: 0 0; rotate: 0deg; }

/* ---------------------------------------------------------------------
   Botanicals — grown by animations.js adding .is-grown
   ------------------------------------------------------------------- */
.bloom { overflow: visible; }
.bloom__stem { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-soft); }
.bloom__leaf { transform-box: fill-box; scale: 0; transition: scale 1.2s var(--ease) .9s; }
.bloom__leaf--l { transform-origin: 100% 100%; }
.bloom__leaf--r { transform-origin: 0% 100%; transition-delay: 1.15s; }
.bloom__head { transform-box: view-box; transform-origin: 100px 128px; }
.bloom__petal { transform-box: view-box; transform-origin: 100px 120px; scale: 0; transition: scale 1.3s var(--ease); transition-delay: calc(1.3s + var(--p) * .08s); }
.bloom__heart { transform-box: fill-box; transform-origin: center; scale: 0; transition: scale .9s var(--ease) 2.4s; }
.bloom.is-grown .bloom__stem { stroke-dashoffset: 0; }
.bloom.is-grown .bloom__leaf, .bloom.is-grown .bloom__petal, .bloom.is-grown .bloom__heart { scale: 1; }
.bloom.is-grown .bloom__head { animation: sway 7s var(--ease-soft) 3s infinite alternate; }
@keyframes sway { from { rotate: -3deg; } to { rotate: 4deg; } }

.sprig { overflow: visible; }
.sprig__stem { stroke: #5b7a5c; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-soft); }
.sprig__leaf { opacity: .92; transform-box: fill-box; transform-origin: center; scale: 0; transition: scale 1s var(--ease); transition-delay: calc(.4s + var(--l) * .12s); }
.sprig.is-grown .sprig__stem { stroke-dashoffset: 0; }
.sprig.is-grown .sprig__leaf { scale: 1; }

/* ---------------------------------------------------------------------
   1 · Hero
   ------------------------------------------------------------------- */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(6.5rem, 12vh, 9rem) var(--gutter) clamp(5rem, 10vh, 7rem);
    background:
        radial-gradient(60% 70% at 78% 40%, rgba(185, 115, 74, .18), transparent 70%),
        radial-gradient(50% 60% at 10% 90%, rgba(43, 81, 64, .55), transparent 70%),
        linear-gradient(180deg, var(--forest-950), var(--forest-900) 60%, var(--forest-900));
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__halo {
    position: absolute; width: 46vmax; height: 46vmax; right: -10vmax; top: -12vmax; border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 203, 149, .16), transparent 65%);
    animation: breathe 12s var(--ease-soft) infinite alternate;
}
.hero__halo--rose { right: auto; left: -16vmax; top: auto; bottom: -22vmax; background: radial-gradient(circle, rgba(201, 114, 122, .16), transparent 65%); animation-delay: -6s; }
@keyframes breathe { from { scale: .92; opacity: .7; } to { scale: 1.08; opacity: 1; } }

.hero__grid {
    position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto;
    display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 6rem); align-items: center;
}
.hero__eyebrow { margin-bottom: 2rem; }

.pair {
    display: flex; align-items: center; gap: 1rem; margin: 0 0 1.2rem;
    font-size: .8rem; letter-spacing: .38em; text-transform: uppercase; color: var(--ivory);
}
.pair__arrow { position: relative; display: inline-block; width: 64px; height: 10px; }
.pair__arrow i {
    position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: linear-gradient(90deg, var(--copper), var(--gold-2));
    transform-origin: left; animation: arrow-draw 3.6s var(--ease) infinite;
}
.pair__arrow i::after {
    content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px;
    border-top: 1px solid var(--gold-2); border-right: 1px solid var(--gold-2); rotate: 45deg;
}
@keyframes arrow-draw { 0% { scale: 0 1; opacity: 0; } 25% { opacity: 1; } 55%, 85% { scale: 1 1; opacity: 1; } 100% { scale: 1 1; opacity: 0; } }

.hero__title {
    margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(3.1rem, 7.4vw, 7.6rem);
    line-height: .9; letter-spacing: -.025em; color: var(--ivory); text-wrap: balance;
}
.hero__title em { display: inline-block; }
.hero__lede { margin: 2.2rem 0 0; max-width: 36ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.8; color: rgba(246, 239, 227, .74); }
.hero__days { display: flex; align-items: center; gap: 1.1rem; margin: 2.4rem 0 0; }
.hero__days-num { font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; color: var(--copper-2); font-variant-numeric: lining-nums; }
.hero__days-label { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(246, 239, 227, .6); line-height: 1.8; padding-left: 1.1rem; border-left: 1px solid rgba(228, 203, 149, .3); }

.hero__art { position: relative; width: min(100%, 540px); aspect-ratio: 4 / 5; justify-self: center; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.hero__arch {
    position: absolute; inset: 0 7% 7% 12%; z-index: 2; margin: 0; overflow: hidden;
    border-radius: 999px 999px 26px 26px; box-shadow: var(--shadow-deep); background: var(--forest-800);
}
.hero__arch::after { content: ""; position: absolute; inset: 12px; border-radius: 999px 999px 18px 18px; border: 1px solid rgba(246, 239, 227, .38); pointer-events: none; }
.hero__arch-img { position: absolute; inset: -8% 0; }
.hero__arch-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.02); animation: kenburns 24s var(--ease-soft) infinite alternate; }
@keyframes kenburns { from { scale: 1.02; } to { scale: 1.12; } }

.hero__print {
    position: absolute; left: -4%; bottom: 0; z-index: 4; width: 38%; margin: 0; padding: 9px 9px 0;
    background: var(--paper); rotate: -7deg; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .75);
}
.hero__print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__print figcaption { font-family: var(--hand); font-size: 1.2rem; color: var(--ink); text-align: center; padding: .35rem 0 .45rem; }

.hero__sun {
    position: absolute; top: -3%; right: -1%; z-index: 1; width: 34%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 38% 36%, #f7d3a8 0%, #d9976b 38%, #b8734a 62%, transparent 72%);
    filter: blur(1px); opacity: .9; animation: breathe 9s var(--ease-soft) infinite alternate;
}

.orbit {
    position: absolute; left: 52%; top: 46%; z-index: 1; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    border: 1px solid rgba(228, 203, 149, .22);
}
.orbit i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 18px 3px rgba(228, 203, 149, .55); }
.orbit--1 { width: 118%; animation: orbit-a 48s linear infinite; }
.orbit--1 i { top: -4px; left: calc(50% - 4px); }
.orbit--2 { width: 142%; border-style: dashed; border-color: rgba(228, 203, 149, .14); animation: orbit-b 90s linear infinite; }
.orbit--2 i { bottom: 14%; left: 5%; background: var(--blush); box-shadow: 0 0 16px 3px rgba(239, 201, 193, .5); }
.orbit--2 i + i { bottom: auto; top: 12%; left: auto; right: 8%; width: 5px; height: 5px; background: var(--ivory); }
.orbit--3 { width: 96%; border-color: rgba(201, 114, 122, .2); animation: orbit-c 34s linear infinite; }
.orbit--3 i { top: 50%; right: -4px; width: 6px; height: 6px; background: var(--rose); box-shadow: 0 0 14px 3px rgba(201, 114, 122, .6); }
@keyframes orbit-a { from { transform: translate(-50%, -50%) rotateX(64deg) rotateY(-14deg) rotate(0deg); } to { transform: translate(-50%, -50%) rotateX(64deg) rotateY(-14deg) rotate(360deg); } }
@keyframes orbit-b { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes orbit-c { from { transform: translate(-50%, -50%) rotateX(72deg) rotateY(18deg) rotate(0deg); } to { transform: translate(-50%, -50%) rotateX(72deg) rotateY(18deg) rotate(360deg); } }

.hero__bloom { position: absolute; right: -9%; bottom: -8%; z-index: 5; width: 30%; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .45)); }
.hero__sprig { position: absolute; left: -2%; top: -6%; z-index: 3; width: 34%; rotate: -12deg; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .35)); }

.note {
    position: absolute; z-index: 6; margin: 0; padding: .55rem 1.05rem .65rem;
    font-family: var(--hand); font-size: clamp(1.1rem, 1.55vw, 1.45rem); line-height: 1.1; color: var(--ink);
    background: var(--paper); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .7);
    animation: float 7s var(--ease-soft) infinite alternate; white-space: nowrap;
}
.note::before { content: ""; position: absolute; left: 50%; top: -9px; width: 44px; height: 16px; translate: -50% 0; rotate: -4deg; background: rgba(201, 168, 106, .55); }
.note--1 { top: 9%; right: -9%; rotate: 5deg; }
.note--2 { top: 48%; left: -16%; rotate: -6deg; animation-delay: -2.5s; background: var(--blush); }
.note--3 { bottom: 3%; right: 1%; rotate: 3deg; animation-delay: -4.5s; }
@keyframes float { from { transform: translateY(-7px); } to { transform: translateY(7px); } }

.scroll-cue {
    position: absolute; left: 50%; bottom: 1.6rem; z-index: 3; translate: -50% 0;
    display: flex; flex-direction: column; align-items: center; gap: .8rem; text-decoration: none;
    font-size: .64rem; letter-spacing: .34em; text-transform: uppercase; color: rgba(246, 239, 227, .62);
}
.scroll-cue i { position: relative; width: 1px; height: 54px; background: rgba(246, 239, 227, .2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold-2); animation: cue 2.4s var(--ease-soft) infinite; }
@keyframes cue { to { top: 110%; } }

@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 4rem; }
    .hero__art { width: min(78vw, 440px); margin-top: .5rem; }
    .note--2 { left: -8%; }
    .note--1 { right: -5%; }
}
@media (max-width: 560px) {
    .hero { padding-top: 6rem; }
    .pair { font-size: .7rem; letter-spacing: .28em; }
    .hero__art { width: 80vw; }
    .note { font-size: 1.05rem; padding: .4rem .75rem .5rem; }
    .note--2 { left: -4%; top: 56%; }
    .note--1 { right: -3%; top: 4%; }
    .hero__bloom { right: -6%; width: 32%; }
    .scroll-cue { display: none; }
}

/* ---------------------------------------------------------------------
   2 · Atmosphere
   ------------------------------------------------------------------- */
.atmos {
    position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
    display: grid; place-items: center; text-align: center; padding: 7rem var(--gutter);
    background: radial-gradient(ellipse 90% 70% at 50% 110%, #1f4332 0%, var(--forest-950) 62%);
    isolation: isolate;
}
.atmos__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.atmos__glow {
    position: absolute; left: 0; top: 0; z-index: 0; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 151, 107, .26) 0%, rgba(201, 114, 122, .1) 36%, transparent 64%);
    transform: translate(var(--gx, 50vw), var(--gy, 50vh)); pointer-events: none; will-change: transform;
}
.atmos__inner { position: relative; z-index: 2; max-width: 820px; }
.atmos__inner .eyebrow { justify-content: center; }
.atmos__inner .eyebrow::after { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: .7; }
.atmos__text { margin: 1.8rem auto 3rem; max-width: 50ch; font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.85; color: rgba(246, 239, 227, .76); }

.listen {
    position: relative; width: 176px; height: 176px; border-radius: 50%; cursor: pointer; margin: 0 auto;
    border: 1px solid rgba(228, 203, 149, .55); background: radial-gradient(circle at 50% 38%, rgba(246, 239, 227, .1), rgba(246, 239, 227, .02) 70%);
    display: grid; place-items: center; transition: border-color .5s, background .5s, scale .6s var(--ease);
}
.listen:hover { scale: 1.04; border-color: var(--gold-2); }
.listen__label { position: relative; z-index: 1; max-width: 8ch; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.15; }
.listen__ring { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(228, 203, 149, .5); opacity: 0; }
.is-sound-on .listen { background: radial-gradient(circle at 50% 38%, rgba(217, 151, 107, .28), rgba(185, 115, 74, .06) 70%); }
.is-sound-on .listen__ring { animation: ring 3.2s var(--ease-soft) infinite; }
.is-sound-on .listen__ring--2 { animation-delay: 1.6s; }
@keyframes ring { from { scale: 1; opacity: .8; } to { scale: 1.9; opacity: 0; } }

.bars { display: flex; align-items: center; justify-content: center; gap: 5px; height: 70px; margin: 3rem auto 0; }
.bars span {
    width: 3px; height: 100%; border-radius: 3px; transform-origin: center;
    background: linear-gradient(180deg, var(--gold-2), var(--copper-2) 50%, var(--rose));
    transform: scaleY(var(--lvl, .06)); opacity: .85;
    animation: idle-bar 2.6s var(--ease-soft) infinite alternate; animation-delay: calc(var(--b) * -.13s);
}
.bars.is-live span { animation: none; }
@keyframes idle-bar { from { transform: scaleY(.05); } to { transform: scaleY(.22); } }

.atmos__hint { margin: 2rem 0 0; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 239, 227, .45); }

/* ---------------------------------------------------------------------
   3 · Our story
   ------------------------------------------------------------------- */
.story {
    position: relative; overflow: hidden; padding: clamp(6rem, 12vw, 11rem) 0;
    background:
        radial-gradient(70% 50% at 100% 0%, rgba(239, 201, 193, .35), transparent 70%),
        radial-gradient(60% 40% at 0% 100%, rgba(168, 184, 156, .3), transparent 70%),
        var(--ivory);
    color: var(--ink);
}
.story .eyebrow { color: var(--copper); }
.story .display { color: var(--forest-800); }
.story .display em { color: var(--copper); }
.story .section-head__intro { color: var(--ink-soft); opacity: 1; }

.story__bloom { position: absolute; right: 7%; top: -2.5rem; width: clamp(150px, 15vw, 220px); filter: drop-shadow(0 24px 24px rgba(20, 42, 32, .22)); }
.story__sprig { position: absolute; right: 17%; top: 2rem; width: clamp(110px, 11vw, 170px); rotate: -28deg; opacity: .9; }
@media (max-width: 860px) { .story__bloom, .story__sprig { display: none; } }

.vine { position: absolute; top: 0; z-index: 1; width: 150px; height: 100%; pointer-events: none; overflow: visible; }
.vine--left { left: 0; }
.vine--right { right: 0; }
.vine__stem { fill: none; stroke: #587859; stroke-width: 2; stroke-linecap: round; }
.vine__leaf { transform-box: fill-box; scale: 0; transition: scale 1s var(--ease); }
.vine__leaf.is-on { scale: 1; }
.vine__flower { transform-box: fill-box; transform-origin: center; scale: 0; rotate: -60deg; transition: scale 1.2s var(--ease), rotate 1.4s var(--ease); }
.vine__flower.is-on { scale: 1; rotate: 0deg; }
@media (max-width: 1100px) { .vine { width: 80px; opacity: .55; } .vine--right { display: none; } }
@media (max-width: 700px) { .vine { display: none; } }

.chapters { display: grid; gap: clamp(5rem, 11vw, 10rem); }
.chapter { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6.5rem); align-items: center; }
.chapter--flip .chapter__media { order: 2; }
.chapter__media { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 16px 16px; box-shadow: 0 60px 80px -50px rgba(20, 42, 32, .55); background: var(--ivory-2); }
.chapter--flip .chapter__media { border-radius: 16px 16px 999px 999px; aspect-ratio: 5 / 6; }
.chapter:nth-child(4n+3) .chapter__media { border-radius: 16px; aspect-ratio: 4 / 3.6; }
.chapter__img { position: absolute; inset: -10% 0; }
.chapter__img img { width: 100%; height: 100%; object-fit: cover; }
.chapter__numeral {
    position: absolute; right: 1.2rem; bottom: .4rem; font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: clamp(4rem, 8vw, 7rem); line-height: 1; color: var(--ivory); opacity: .85; text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.chapter--flip .chapter__numeral { right: auto; left: 1.2rem; top: .6rem; bottom: auto; }
.chapter__label { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.2rem; font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--copper); }
.chapter__label::before { content: ""; width: 2.4rem; height: 1px; background: currentColor; }
.chapter__title { margin: 0 0 1.8rem; font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.2vw, 3.8rem); line-height: 1; color: var(--forest-800); letter-spacing: -.01em; }
.chapter__title em { color: var(--copper); }
.chapter__body p { margin: 0 0 1.2rem; font-size: 1.06rem; line-height: 1.9; color: var(--ink-soft); max-width: 48ch; }
.chapter__body p:first-child { font-family: var(--serif); font-size: clamp(1.35rem, 1.9vw, 1.6rem); line-height: 1.5; color: var(--ink); }
.chapter__body em { color: var(--copper); }

@media (max-width: 860px) {
    .chapter, .chapter--flip { grid-template-columns: 1fr; }
    .chapter--flip .chapter__media { order: 0; }
    .chapter__media, .chapter--flip .chapter__media { width: min(100%, 460px); }
}

/* ---------------------------------------------------------------------
   4 · Gallery
   ------------------------------------------------------------------- */
.gallery {
    position: relative; padding: clamp(6rem, 12vw, 10rem) 0;
    background:
        radial-gradient(60% 40% at 90% 10%, rgba(185, 115, 74, .16), transparent 70%),
        radial-gradient(60% 50% at 0% 80%, rgba(111, 143, 106, .16), transparent 70%),
        var(--forest-800);
}
.masonry { columns: 3 280px; column-gap: clamp(1rem, 2.2vw, 2rem); }
.tile { break-inside: avoid; margin: 0 0 clamp(1.4rem, 2.6vw, 2.4rem); }
.tile__open {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; overflow: hidden;
    border-radius: 6px; background: var(--forest-700); aspect-ratio: 4 / 5; box-shadow: 0 30px 50px -34px rgba(0, 0, 0, .9);
}
.tile--landscape .tile__open { aspect-ratio: 4 / 3; }
.tile--square .tile__open { aspect-ratio: 1; }
.tile:nth-child(5n+2) .tile__open { border-radius: 999px 999px 6px 6px; }
.tile__open img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.94); transition: scale 1.6s var(--ease), filter 1s var(--ease); }
.tile__open::after {
    content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 22, 17, .6));
    opacity: 0; transition: opacity .8s var(--ease);
}
.tile__open:hover img, .tile__open:focus-visible img { scale: 1.08; filter: saturate(1.08) brightness(1); }
.tile__open:hover::after, .tile__open:focus-visible::after { opacity: 1; }
.tile__index {
    position: absolute; left: 1rem; bottom: .8rem; z-index: 1; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ivory);
    opacity: 0; translate: 0 10px; transition: opacity .6s var(--ease), translate .6s var(--ease);
}
.tile__open:hover .tile__index, .tile__open:focus-visible .tile__index { opacity: 1; translate: 0 0; }
.tile__caption { position: relative; display: grid; gap: .25rem; padding: .95rem 0 0; }
.tile__caption::before { content: ""; position: absolute; left: 0; top: 0; width: 2.2rem; height: 1px; background: var(--copper-2); transition: width .9s var(--ease); }
.tile:hover .tile__caption::before { width: 100%; }
.tile__caption time { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); }
.tile__caption span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.4; color: rgba(246, 239, 227, .86); transition: translate .7s var(--ease); }
.tile:hover .tile__caption span { translate: 6px 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4.5rem var(--gutter) 5.5rem; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(7, 17, 13, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .5s var(--ease); }
.lightbox__stage { position: relative; z-index: 1; margin: 0; display: grid; justify-items: center; gap: 1.2rem; max-width: min(1200px, 100%); opacity: 0; scale: .96; transition: opacity .6s var(--ease), scale .8s var(--ease); }
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox.is-open .lightbox__stage { opacity: 1; scale: 1; }
.lightbox__frame img { max-width: 100%; max-height: calc(100vh - 13rem); max-height: calc(100svh - 13rem); width: auto; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow-deep); transition: opacity .35s var(--ease), translate .45s var(--ease); }
.lightbox.is-swapping .lightbox__frame img { opacity: 0; translate: var(--swap, 0) 0; }
.lightbox__caption { display: grid; gap: .3rem; text-align: center; max-width: 60ch; }
.lightbox__caption time { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); }
.lightbox__caption span { font-family: var(--serif); font-style: italic; font-size: 1.35rem; }
.lightbox__count { position: absolute; left: 50%; top: 1.5rem; translate: -50% 0; z-index: 2; margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: rgba(246, 239, 227, .7); }
.lightbox__btn, .lightbox__close, .memory-view__close, .memory-view__nav button {
    cursor: pointer; border: 1px solid rgba(246, 239, 227, .25); border-radius: 999px; background: rgba(14, 31, 24, .6);
    padding: .65rem 1.2rem; font-family: var(--sans); font-style: normal; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory);
    transition: border-color .3s, background .3s;
}
.lightbox__btn:hover, .lightbox__close:hover, .memory-view__close:hover, .memory-view__nav button:hover { border-color: var(--gold-2); background: rgba(185, 115, 74, .25); }
.lightbox__btn { position: absolute; z-index: 2; bottom: 1.5rem; }
.lightbox__btn--prev { left: var(--gutter); }
.lightbox__btn--next { right: var(--gutter); }
.lightbox__btn--prev::before { content: "\2190\00a0\00a0"; }
.lightbox__btn--next::after { content: "\00a0\00a0\2192"; }
.lightbox__close { position: absolute; z-index: 2; top: 1.1rem; right: var(--gutter); }
body.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------------
   5 · Memory wall
   ------------------------------------------------------------------- */
.wall {
    position: relative; overflow: hidden; padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 9vw, 8rem);
    color: var(--ink);
    background:
        linear-gradient(rgba(26, 37, 31, .045) 1px, transparent 1px) 0 0 / 100% 38px,
        radial-gradient(80% 60% at 50% 0%, rgba(239, 201, 193, .45), transparent 70%),
        var(--ivory-2);
}
.wall .eyebrow { color: var(--copper); }
.wall .display { color: var(--forest-800); }
.wall .display em { color: var(--rose); }
.wall .section-head__intro { color: var(--ink-soft); opacity: 1; }

.wall__board { position: relative; width: min(1320px, 100% - 2 * var(--gutter)); height: var(--board-h, 720px); margin: 0 auto; }
.fragment {
    position: absolute; left: min(var(--x), calc(100% - var(--w))); top: var(--y); width: var(--w); z-index: 1;
    display: block; padding: 12px 12px 16px; border: 0; cursor: zoom-in; text-align: left;
    background: #fffaf1; rotate: var(--r);
    box-shadow: 0 26px 40px -22px rgba(26, 37, 31, .55), 0 2px 6px rgba(26, 37, 31, .08);
    animation: bob var(--float, 7s) var(--ease-soft) infinite alternate;
    transition: scale .7s var(--ease), rotate .7s var(--ease), box-shadow .7s var(--ease), opacity 1.1s var(--ease) var(--delay, 0s), translate 1.2s var(--ease) var(--delay, 0s);
}
.js .fragment[data-reveal] { transition: scale .7s var(--ease), rotate .7s var(--ease), box-shadow .7s var(--ease), opacity 1.1s var(--ease) var(--delay, 0s), translate 1.2s var(--ease) var(--delay, 0s); }
.fragment:hover, .fragment:focus-visible { z-index: 10; scale: 1.14; rotate: 0deg; box-shadow: 0 50px 70px -30px rgba(26, 37, 31, .6), 0 4px 10px rgba(26, 37, 31, .1); }
@keyframes bob { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
.fragment__tape {
    position: absolute; left: 50%; top: -12px; width: 92px; height: 26px; translate: -50% 0; rotate: -3deg;
    background: rgba(201, 168, 106, .5); box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.fragment:nth-child(3n) .fragment__tape { background: rgba(239, 201, 193, .75); rotate: 4deg; }
.fragment__photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory-2); }
.fragment:nth-child(even) .fragment__photo { aspect-ratio: 1; }
.fragment__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.fragment:hover .fragment__photo img { scale: 1.06; }
.fragment__caption { display: grid; gap: .1rem; padding-top: .7rem; }
.fragment__title { font-family: var(--hand); font-size: 1.45rem; line-height: 1.05; color: var(--ink); }
.fragment time { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--copper); }
.wall__hint { display: none; }

@media (max-width: 760px) {
    .wall__board {
        width: 100%; height: auto; display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
        padding: 2rem var(--gutter) 2.5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .wall__board::-webkit-scrollbar { display: none; }
    .fragment { position: relative; left: auto; top: auto; flex: 0 0 72vw; width: 72vw; scroll-snap-align: center; rotate: calc(var(--r) * .5); }
    .fragment:hover { scale: 1.02; }
    .wall__hint { display: block; text-align: center; margin: 0; font-family: var(--hand); font-size: 1.3rem; color: var(--copper); }
}

/* Memory full-screen view */
.memory-view { position: fixed; inset: 0; z-index: 210; display: grid; grid-template-columns: 1.35fr .65fr; background: var(--forest-950); color: var(--ivory); clip-path: inset(50% 50% 50% 50% round 24px); opacity: 0; transition: clip-path .9s var(--ease), opacity .5s var(--ease); }
.memory-view[hidden] { display: none; }
.memory-view.is-open { clip-path: inset(0 0 0 0 round 0); opacity: 1; }
.memory-view__media { position: relative; overflow: hidden; background: #000; }
.memory-view__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.08; transition: scale 2.4s var(--ease), opacity .4s var(--ease); }
.memory-view.is-open .memory-view__media img { scale: 1; }
.memory-view.is-swapping .memory-view__media img { opacity: 0; }
.memory-view__text { display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; padding: 4rem clamp(1.5rem, 4vw, 3.5rem); background: radial-gradient(80% 60% at 100% 0%, rgba(185, 115, 74, .18), transparent 70%), var(--forest-900); }
.memory-view__text > * { transition: opacity .5s var(--ease), translate .6s var(--ease); }
.memory-view.is-swapping .memory-view__text > :not(.memory-view__nav) { opacity: 0; translate: 0 12px; }
.memory-view__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); }
.memory-view__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.02; }
.memory-view__caption { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.65; color: rgba(246, 239, 227, .8); }
.memory-view__nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; font-family: var(--serif); font-style: italic; color: rgba(246, 239, 227, .6); }
.memory-view__close { position: absolute; top: 1.1rem; right: 1.1rem; }
@media (max-width: 860px) {
    .memory-view { grid-template-columns: 1fr; grid-template-rows: 52vh 1fr; overflow-y: auto; }
    .memory-view__text { justify-content: flex-start; padding: 2rem var(--gutter) 3rem; }
}

/* ---------------------------------------------------------------------
   6 · Love note
   ------------------------------------------------------------------- */
.letter-section {
    position: relative; overflow: hidden; padding: clamp(6rem, 12vw, 10rem) 0;
    background:
        radial-gradient(50% 45% at 50% 30%, rgba(217, 151, 107, .2), transparent 70%),
        radial-gradient(40% 40% at 10% 90%, rgba(201, 114, 122, .16), transparent 70%),
        var(--forest-900);
}
.letter-section::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(transparent, var(--forest-900)); pointer-events: none; }
.letter-section__bloom { position: absolute; z-index: 1; width: clamp(120px, 16vw, 240px); filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .45)); }
.letter-section__bloom--a { left: max(2vw, calc(50% - 640px)); bottom: 3rem; }
.letter-section__bloom--b { right: max(3vw, calc(50% - 620px)); top: 8rem; width: clamp(90px, 11vw, 170px); rotate: 12deg; }
.letter-section__sprig { position: absolute; z-index: 1; right: max(-2vw, calc(50% - 700px)); bottom: -2rem; width: clamp(140px, 18vw, 260px); rotate: 190deg; }

.letter {
    position: relative; max-width: 880px; margin: 0 auto; padding: clamp(2.2rem, 6vw, 5.5rem) clamp(1.5rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem);
    color: var(--ink); rotate: -.6deg; border-radius: 3px;
    background:
        radial-gradient(60% 40% at 90% 0%, rgba(239, 201, 193, .5), transparent 70%),
        radial-gradient(40% 30% at 0% 100%, rgba(201, 168, 106, .18), transparent 70%),
        repeating-linear-gradient(180deg, transparent 0 41px, rgba(184, 115, 74, .08) 41px 42px),
        var(--paper);
    box-shadow: 0 70px 100px -50px rgba(0, 0, 0, .85), 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.letter::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(184, 115, 74, .22); pointer-events: none; }
.letter__head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 2.4rem; border-bottom: 1px solid rgba(184, 115, 74, .25); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--copper); }
.letter__title { margin: 0 0 2rem; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.4vw, 4.8rem); line-height: .98; letter-spacing: -.015em; color: var(--forest-800); }
.letter__title em { color: var(--rose); }
.letter__greeting { margin: 0 0 1.2rem; font-family: var(--hand); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--copper); }
.letter__lede { margin: 0 0 2rem; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.55rem); line-height: 1.3; color: var(--ink); }
.letter__lede em, .letter__body em { color: var(--rose); }
.letter__body p { margin: 0 0 1.35rem; font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.42rem); line-height: 1.7; color: var(--ink-soft); }
.letter__body p:last-child { color: var(--ink); font-style: italic; }
.letter__sign { display: flex; flex-direction: column; align-items: flex-end; margin-top: 2.2rem; }
.letter__closing { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); }
.signature { width: min(360px, 80%); height: auto; overflow: visible; margin-top: -.5rem; }
.signature text {
    font-family: var(--sign); font-size: 132px; fill: transparent; stroke: var(--copper); stroke-width: 1.1;
    stroke-dasharray: 1600; stroke-dashoffset: 1600;
}
.signature__flourish { stroke: var(--copper); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; }
.signature.is-signed text { animation: sign 3.4s var(--ease-soft) forwards, ink 1.4s ease 2.6s forwards; }
.signature.is-signed .signature__flourish { transition: stroke-dashoffset 1.2s var(--ease) 3s; stroke-dashoffset: 0; }
@keyframes sign { to { stroke-dashoffset: 0; } }
@keyframes ink { to { fill: var(--copper); } }
@media (max-width: 760px) { .letter-section__bloom--b, .letter-section__sprig { display: none; } .letter-section__bloom--a { left: -30px; bottom: 0; opacity: .8; } .letter { rotate: 0deg; } }

/* ---------------------------------------------------------------------
   7 · Constellation
   ------------------------------------------------------------------- */
.sky {
    position: relative; overflow: hidden; padding: clamp(6rem, 12vw, 10rem) 0 clamp(3rem, 6vw, 5rem);
    background: linear-gradient(180deg, var(--forest-900) 0%, #0a1714 18%, var(--night) 60%, #081310 100%);
}
.sky__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.sky__milky {
    position: absolute; inset: 0; z-index: 0; opacity: .32; mix-blend-mode: screen; pointer-events: none;
    background: url("https://images.unsplash.com/photo-1444703686981-a3abbc4d4fe3?auto=format&fit=crop&w=2200&q=70") center / cover no-repeat;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 55%, #000 20%, transparent 75%);
    mask-image: radial-gradient(70% 60% at 50% 55%, #000 20%, transparent 75%);
}
.sky .display em { color: var(--gold-2); }

.constellation { position: relative; height: clamp(520px, 72vh, 760px); margin-top: -1rem; }
.constellation__sky { position: absolute; inset: 0; }
.constellation__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.constellation__lines path {
    fill: none; stroke: rgba(228, 203, 149, .42); stroke-width: 1; stroke-linecap: round;
    stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
    transition: stroke-dashoffset 1.4s var(--ease-soft), stroke .6s, stroke-width .6s;
    transition-delay: calc(.6s + var(--i) * .28s), 0s, 0s;
}
.constellation.is-in .constellation__lines path { stroke-dashoffset: 0; }
.constellation__lines path.is-lit { stroke: rgba(247, 211, 168, .95); stroke-width: 1.6; }

.star {
    position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 48px; height: 48px; margin: -24px 0 0 -24px;
    padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
    scale: 0; transition: scale 1s var(--ease); transition-delay: calc(.3s + var(--i) * .28s);
}
.constellation.is-in .star { scale: 1; }
.star__core {
    position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: #fffaf0; box-shadow: 0 0 10px 2px rgba(255, 250, 240, .85), 0 0 26px 6px rgba(228, 203, 149, .35);
    animation: twinkle 3.4s var(--ease-soft) infinite alternate; animation-delay: calc(var(--i) * -.7s);
    transition: scale .6s var(--ease);
}
.star__glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(228, 203, 149, .35), transparent 65%); scale: .5; opacity: .6; transition: scale .8s var(--ease), opacity .8s; }
.star--done .star__core { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--gold-2); box-shadow: 0 0 14px 3px rgba(228, 203, 149, .9), 0 0 40px 10px rgba(217, 151, 107, .35); }
.star--done::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid rgba(228, 203, 149, .55); }
.star__label {
    position: absolute; left: 50%; top: calc(100% + 2px); translate: -50% 6px; width: max-content; max-width: 220px;
    font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.25; text-align: center; color: var(--ivory);
    opacity: 0; transition: opacity .5s var(--ease), translate .5s var(--ease); pointer-events: none; text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.star:hover .star__glow, .star:focus-visible .star__glow, .star.is-active .star__glow { scale: 1.5; opacity: 1; }
.star:hover .star__label, .star:focus-visible .star__label { opacity: 1; translate: -50% 0; }
.star.is-active .star__core { scale: 1.7; }
@keyframes twinkle { from { opacity: .55; scale: .85; } to { opacity: 1; scale: 1.1; } }

.dream-card {
    position: absolute; right: 0; bottom: 0; z-index: 3; width: min(380px, 100%); padding: 1.6rem 1.8rem 1.8rem;
    border: 1px solid rgba(228, 203, 149, .22); border-radius: 16px;
    background: rgba(10, 24, 20, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .8);
}
.dream-card > * { transition: opacity .45s var(--ease), translate .55s var(--ease); }
.dream-card.is-changing > * { opacity: 0; translate: 0 10px; }
.dream-card__meta { margin: 0 0 .6rem; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); }
.dream-card__title { margin: 0 0 .7rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.08; }
.dream-card__text { margin: 0; font-size: .98rem; line-height: 1.75; color: rgba(246, 239, 227, .78); }
.dream-card.is-done .dream-card__title { color: var(--gold-2); }

@media (max-width: 760px) {
    /* The card flows below the sky, never on top of the stars. */
    .constellation { height: auto; }
    .constellation__sky { position: relative; height: 500px; }
    .star__label { display: none; }
    .dream-card { position: relative; width: 100%; margin-top: 1.25rem; }
}

/* ---------------------------------------------------------------------
   8 · Dream list
   ------------------------------------------------------------------- */
.future { position: relative; padding: clamp(4rem, 8vw, 7rem) 0 clamp(6rem, 11vw, 10rem); background: linear-gradient(180deg, #081310, var(--forest-950)); }
.future__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.future__head { position: sticky; top: 7rem; }
.future__head .display { font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
.future .display em { color: var(--gold-2); }
.future__progress { margin-top: 2.4rem; }
.future__progress p { margin: .8rem 0 0; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(246, 239, 227, .6); }
.future__progress strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; font-style: italic; letter-spacing: 0; color: var(--gold-2); }
.future__bar { display: block; height: 2px; background: rgba(246, 239, 227, .12); overflow: hidden; }
.future__bar i { display: block; height: 100%; width: var(--pct); background: linear-gradient(90deg, var(--copper), var(--gold-2)); transform-origin: left; scale: 0 1; transition: scale 2s var(--ease) .4s; }
.future__progress.is-in .future__bar i { scale: 1 1; }

.dream-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(246, 239, 227, .12); }
.dream-row {
    position: relative; display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 1.5rem; align-items: baseline;
    padding: 1.45rem 0; border-bottom: 1px solid rgba(246, 239, 227, .12);
}
.dream-row::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: linear-gradient(90deg, var(--copper), var(--gold-2), transparent); transform-origin: left; scale: 0 1; transition: scale 1s var(--ease); }
.dream-row:hover::after { scale: 1 1; }
.dream-row__year { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--copper-2); }
.dream-row__title { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.2; transition: translate .7s var(--ease); }
.dream-row:hover .dream-row__title { translate: 8px 0; }
.dream-row__status { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(246, 239, 227, .45); white-space: nowrap; }
.dream-row--done .dream-row__title { color: var(--gold-2); }
.dream-row--done .dream-row__status { color: var(--gold-2); }
.dream-row--done .dream-row__status::before { content: "\2726\00a0\00a0"; }
@media (max-width: 860px) {
    .future__grid { grid-template-columns: 1fr; }
    .future__head { position: static; }
    .dream-row { grid-template-columns: 4.5rem 1fr; gap: .3rem 1rem; }
    .dream-row__status { grid-column: 2; }
}

/* ---------------------------------------------------------------------
   9 · Closing
   ------------------------------------------------------------------- */
.closing { position: relative; min-height: 115vh; min-height: 115svh; overflow: hidden; display: grid; place-items: center; text-align: center; padding: 8rem var(--gutter); background: var(--forest-950); }
.closing__media { position: absolute; inset: 0; overflow: hidden; }
.closing__img { position: absolute; inset: -14% 0; }
.closing__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; filter: brightness(.45) saturate(.6); transition: scale 6s var(--ease-soft), filter 4.5s var(--ease-soft); }
.closing.is-in .closing__img img { scale: 1; filter: brightness(.92) saturate(1.05); }
.closing__veil {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, var(--forest-950) 0%, rgba(10, 22, 17, .2) 30%, rgba(10, 22, 17, .05) 55%, rgba(10, 22, 17, .85) 100%),
        radial-gradient(55% 40% at 50% 48%, rgba(10, 22, 17, .5), transparent 80%);
}
.closing__inner { position: relative; z-index: 2; max-width: 1100px; }
.closing__title {
    margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(3.2rem, 9.5vw, 9.6rem); line-height: .9; letter-spacing: -.025em;
    color: var(--ivory); text-wrap: balance;
}
/* No text-shadow here: each word is masked for its reveal, which would clip a shadow into boxes. */
.closing__title em { color: #f7d3a8; }
.closing__sign { margin: 2.4rem 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.9rem); color: var(--ivory); text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.closing__again {
    display: inline-block; margin-top: 3rem; padding: .8rem 1.6rem; border: 1px solid rgba(246, 239, 227, .4); border-radius: 999px; text-decoration: none;
    font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; backdrop-filter: blur(6px); transition: background .4s, border-color .4s;
}
.closing__again:hover { background: rgba(246, 239, 227, .12); border-color: var(--ivory); }

/* Footer */
.site-foot { position: relative; z-index: 2; padding: 2.4rem var(--gutter) 2.8rem; text-align: center; background: var(--forest-950); border-top: 1px solid rgba(228, 203, 149, .1); }
.site-foot p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: rgba(246, 239, 227, .7); }
.site-foot p em { color: var(--copper-2); }
.site-foot__meta { display: flex; justify-content: center; gap: 1.4rem; margin-top: .6rem !important; font-family: var(--sans) !important; font-style: normal !important; font-size: .62rem !important; letter-spacing: .26em; text-transform: uppercase; color: rgba(246, 239, 227, .35) !important; }
.site-foot__key { text-decoration: none; transition: color .3s; }
.site-foot__key:hover { color: var(--gold-2); }

/* ---------------------------------------------------------------------
   Reduced motion: everything is shown, nothing drifts.
   ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
    .js [data-reveal], .js [data-reveal="lines"] > *, .js [data-split] .word > span { opacity: 1 !important; translate: none !important; rotate: none !important; clip-path: none !important; }
    .petals, .cursor-light, .grain { display: none; }
    .star, .bloom__petal, .bloom__leaf, .bloom__heart, .sprig__leaf, .vine__leaf, .vine__flower { scale: 1 !important; rotate: none !important; }
    .bloom__stem, .sprig__stem, .signature__flourish { stroke-dashoffset: 0 !important; }
    .signature text { stroke-dashoffset: 0 !important; fill: var(--copper) !important; }
    .constellation__lines path { stroke-dashoffset: 0 !important; }
    .closing__img img { scale: 1 !important; filter: none !important; }
    .future__bar i { scale: 1 1 !important; }
}
