:root {
  --ink: #181027;
  --cream: #f7f0e8;
  --paper: #fffaf5;
  --rose: #d77b92;
  --hot-pink: #ff5fa8;
  --violet: #7b5cff;
  --midnight: #090720;
  --muted: #786f7d;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--midnight); }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); overflow-x: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: #efadc4; color: #24112a; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: white; border-radius: 999px; transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* Compatibility for tabs that still hold an earlier page structure. */
.topbar,
.chapter-rail,
.scroll-cue,
.section-number,
.personal-note__label,
.photo-card figcaption,
.portrait-tall figcaption,
.constellation-line { display: none !important; }

.chapter { position: relative; min-height: 100svh; overflow: hidden; }
.eyebrow { margin: 0 0 1.35rem; text-transform: uppercase; letter-spacing: .28em; font-size: clamp(.63rem, .8vw, .75rem); font-weight: 700; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: .9; }
h1 { max-width: 11ch; font-size: clamp(4rem, 8.3vw, 8.8rem); }
h2 { font-size: clamp(4rem, 8vw, 8rem); }
h1 em, h2 em { color: var(--rose); font-weight: 400; }

.hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.75fr); align-items: center; gap: clamp(2rem,6vw,7rem); padding: 9rem clamp(1.4rem,7vw,8rem) 5rem; background: linear-gradient(135deg, #fffaf5 0%, #f4e9ec 54%, #e9dcea 100%); }
.hero::before { content: ''; position: absolute; width: 30vw; height: 30vw; left: -9vw; top: 10vh; border: 1px solid rgba(124,72,107,.14); border-radius: 50%; box-shadow: 0 0 0 6vw rgba(124,72,107,.03), 0 0 0 12vw rgba(124,72,107,.025); }
.hero__glow { position: absolute; width: 44vw; height: 44vw; right: -8vw; bottom: -20vw; border-radius: 50%; background: radial-gradient(circle, rgba(227,129,165,.42), transparent 66%); filter: blur(4px); }
.hero__copy { position: relative; z-index: 2; }
.hero__lede { max-width: 34rem; margin: 2.1rem 0 0; color: #5f5364; font: 1.02rem/1.8 var(--sans); }
.begin-button { display: inline-flex; align-items: center; gap: 1.5rem; margin-top: 2.4rem; padding: .65rem .7rem .65rem 1.25rem; border: 1px solid rgba(24,16,39,.22); border-radius: 999px; text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; font-weight: 700; transition: transform .25s var(--ease), background .25s, color .25s; }
.begin-button:hover { transform: translateY(-2px); color: white; background: var(--ink); }
.begin-button__arrow { display: grid; place-items: center; width: 2.3rem; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: white; font-size: 1rem; }
.begin-button:hover .begin-button__arrow { background: white; color: var(--ink); }
.hero__portrait { position: relative; z-index: 2; width: min(100%, 31rem); margin: 0 auto; }
.hero__frame { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 50% 50% 1rem 1rem; padding: .55rem; background: rgba(255,255,255,.55); box-shadow: 0 3rem 5rem rgba(76,46,76,.18); }
.hero__frame img { border-radius: inherit; }
.hero__frame::after { content: ''; position: absolute; inset: .55rem; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); pointer-events: none; }
.memory { display: grid; grid-template-columns: minmax(360px,1fr) minmax(0,.95fr); align-items: center; gap: clamp(3rem,8vw,9rem); padding: 8rem clamp(1.5rem,8vw,9rem); background: #f4ecdf; }
.memory__photos { position: relative; min-height: min(72vw, 700px); }
.photo-card { position: absolute; margin: 0; padding: .55rem; background: white; box-shadow: 0 1.7rem 4rem rgba(57,37,44,.16); }
.photo-card img { aspect-ratio: 3/4; }
.photo-card--back { width: min(68%, 21rem); top: 0; left: 0; transform: rotate(-7deg); }
.photo-card--front { width: min(71%, 23rem); right: 1%; bottom: 0; transform: rotate(5deg); }
.chapter-copy { position: relative; z-index: 2; max-width: 42rem; }
.fallback-copy { max-width: 35rem; margin: 2rem 0; color: #5f5662; font: 1.05rem/1.85 var(--sans); }
.personal-note { position: relative; margin: 2.5rem 0 0; padding: 1.6rem 1.7rem 1.6rem 2rem; border-left: 2px solid var(--rose); background: rgba(255,255,255,.46); }
.personal-note p { margin: 0; font: italic clamp(1.15rem,2vw,1.55rem)/1.55 var(--serif); }

.celebrate { padding: 8rem clamp(1.5rem,8vw,9rem); background: linear-gradient(145deg, #26142f 0%, #3d2148 56%, #211433 100%); color: white; }
.celebrate::before { content: ''; position: absolute; inset: 0; opacity: .65; background: radial-gradient(circle at 8% 48%, rgba(255,128,180,.18), transparent 27%), radial-gradient(circle at 88% 12%, rgba(123,92,255,.2), transparent 28%); }
.celebrate::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(circle, rgba(255,255,255,.72) 0 1px, transparent 1.5px); background-size: 83px 83px; mask-image: linear-gradient(90deg, transparent, black 35%, black); }
.celebrate__intro { position: relative; z-index: 2; max-width: 75rem; }
.celebrate__intro h2 { max-width: 12ch; }
.celebrate__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(320px,.9fr) minmax(0,1fr); align-items: center; gap: clamp(4rem,9vw,10rem); max-width: 82rem; margin: 5.5rem auto 0; }
.celebrate__visual { position: relative; min-height: min(68vw, 690px); }
.celebrate__halo { position: absolute; width: 92%; aspect-ratio: 1; left: -14%; top: 5%; border: 1px solid rgba(255,179,216,.35); border-radius: 50%; box-shadow: 0 0 0 2.4rem rgba(255,139,194,.035), 0 0 0 5rem rgba(151,101,220,.025), inset 0 0 4rem rgba(255,110,180,.08); }
.celebrate__halo::before, .celebrate__halo::after { content: ''; position: absolute; border-radius: 50%; filter: blur(28px); }
.celebrate__halo::before { width: 28%; aspect-ratio: 1; right: 8%; top: 4%; background: rgba(255,112,181,.38); }
.celebrate__halo::after { width: 20%; aspect-ratio: 1; left: 10%; bottom: 12%; background: rgba(139,102,255,.4); }
.portrait-tall { position: absolute; z-index: 2; width: 74%; height: 88%; right: 4%; top: 0; margin: 0; padding: .55rem; border-radius: 48% 48% .65rem .65rem; background: rgba(255,255,255,.76); box-shadow: 0 2.5rem 6rem rgba(5,2,12,.45); }
.portrait-tall img { border-radius: inherit; filter: saturate(.9) contrast(1.03); }
.portrait-cameo { position: absolute; z-index: 3; width: 36%; aspect-ratio: 1; left: 1%; bottom: 1%; margin: 0; padding: .42rem; border-radius: 50%; background: #f4dce8; box-shadow: 0 1.5rem 3.5rem rgba(7,3,15,.48), 0 0 0 .6rem rgba(255,255,255,.07); }
.portrait-cameo img { border-radius: 50%; }
.celebrate__copy { position: relative; max-width: 40rem; }
.dropcap { margin: 0; color: #e3d4e6; font: clamp(1.25rem,2.2vw,1.7rem)/1.7 var(--serif); }
.dropcap::first-letter { float: left; padding: .2rem .6rem 0 0; color: #ffa3c9; font: 5rem/.68 var(--serif); }
.celebrate-quote { position: relative; margin: 2.5rem 0 0; padding: 3rem clamp(1.5rem,4vw,3rem) 2.4rem; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 1.35rem; background: linear-gradient(135deg, rgba(255,255,255,.115), rgba(255,255,255,.035)); box-shadow: 0 2rem 5rem rgba(8,3,16,.24); backdrop-filter: blur(16px); }
.celebrate-quote::after { content: ''; position: absolute; width: 14rem; aspect-ratio: 1; right: -7rem; bottom: -9rem; border-radius: 50%; background: radial-gradient(circle, rgba(255,111,181,.26), transparent 68%); }
.celebrate-quote__mark { position: absolute; left: 1.15rem; top: -.25rem; color: #ffa8d1; opacity: .8; font: 6rem/1 var(--serif); }
.celebrate-quote p { position: relative; z-index: 2; margin: 0; color: #f2e8f4; font: italic clamp(1.15rem,1.8vw,1.45rem)/1.65 var(--serif); }

/* Keep pre-repair cached markup composed safely until it refreshes. */
.celebrate__grid > .portrait-tall { position: relative; width: 100%; height: min(68vw, 690px); right: auto; top: auto; margin: 0; }
.celebrate__grid > .portrait-tall img { aspect-ratio: auto; }
.celebrate__grid > .celebrate__copy .personal-note--dark { position: relative; margin-top: 2.5rem; padding: 2rem; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-left: 2px solid #ffa3c9; border-radius: 1.25rem; background: rgba(255,255,255,.08); }
.celebrate__grid > .celebrate__copy .personal-note--dark p { margin: 0; color: #f2e8f4; font: italic clamp(1.15rem,1.8vw,1.45rem)/1.65 var(--serif); }

.next { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.72fr); align-items: center; gap: clamp(2rem,7vw,8rem); padding: 8rem clamp(1.5rem,8vw,9rem); color: #191329; background: #ece7f3; }
.next__backdrop { position: absolute; inset: 0; background: linear-gradient(110deg, #f8f0ed 0 55%, #d7cbe5 55% 100%); }
.next__backdrop::after { content: ''; position: absolute; width: 45vw; aspect-ratio: 1; left: 5vw; top: 20%; border: 1px solid rgba(85,59,110,.11); border-radius: 50%; box-shadow: 0 0 0 5vw rgba(85,59,110,.03),0 0 0 10vw rgba(85,59,110,.025); }
.next__content, .next__photo { position: relative; z-index: 2; }
.next__content { max-width: 47rem; }
.next__content h2 { font-size: clamp(3.8rem,6.7vw,7rem); }
.personal-note--glass { border-color: #8e69ac; background: rgba(255,255,255,.5); backdrop-filter: blur(12px); }
.star-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; min-width: min(100%, 23rem); padding: 1rem 1.15rem 1rem 1.4rem; color: white; background: #211631; border-radius: 999px; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; transition: transform .3s, box-shadow .3s; }
.star-button span:last-child { color: #ff96c4; font-size: 1.1rem; }
.star-button:hover { transform: translateY(-3px); box-shadow: 0 1rem 2rem rgba(31,21,47,.24); }
.next__photo { height: min(72vh, 720px); margin: 0; padding: .6rem; background: rgba(255,255,255,.5); border-radius: 48% 48% 1rem 1rem; box-shadow: 0 3rem 6rem rgba(56,34,78,.18); }
.next__photo img { border-radius: inherit; }

.cosmos { display: grid; place-items: center; min-height: 120svh; padding: 8rem 1.5rem 6rem; color: white; background: #07051c; isolation: isolate; }
.cosmos::before { content: ''; position: absolute; inset: 0; z-index: -4; opacity: .8; background: radial-gradient(circle at 50% 70%, #26104b 0%, #0b0928 40%, #050416 78%); }
.cosmos::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .24; background-image: radial-gradient(circle at 30% 20%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 80% 70%, #fff 0 1px, transparent 1.5px); background-size: 67px 67px, 91px 91px; }
.nebula { position: absolute; z-index: -3; width: 48vw; aspect-ratio: 1.4; border-radius: 50%; filter: blur(75px); opacity: .3; will-change: transform; animation: nebula-drift 18s ease-in-out infinite alternate; }
.nebula--one { top: 12%; left: -8%; background: #7b5cff; transform: rotate(18deg); }
.nebula--two { right: -10%; bottom: 10%; background: #ff4fa1; animation-delay: -9s; }
.starscape { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.starscape::before { content: ''; position: absolute; inset: -8%; opacity: .5; background-image: radial-gradient(circle, rgba(255,255,255,.75) 0 .6px, transparent .9px), radial-gradient(circle, rgba(189,169,255,.65) 0 .7px, transparent 1px), radial-gradient(circle, rgba(255,147,203,.5) 0 .55px, transparent .9px); background-position: 0 0, 17px 23px, 41px 11px; background-size: 31px 31px, 47px 47px, 71px 71px; mask-image: radial-gradient(ellipse at center, black 25%, rgba(0,0,0,.7) 68%, transparent 100%); animation: galaxy-drift 70s linear infinite; }
.starscape::after { content: ''; position: absolute; width: 125%; height: 27%; left: -12%; top: 35%; opacity: .18; border-radius: 50%; background: linear-gradient(90deg, transparent 4%, rgba(112,78,200,.28), rgba(255,143,199,.4), rgba(188,169,255,.28), transparent 96%); filter: blur(28px); transform: rotate(-12deg); animation: galaxy-breathe 14s ease-in-out infinite alternate; }
.starscape i { position: absolute; left: var(--x); top: var(--y); width: var(--size); aspect-ratio: 1; border-radius: 50%; background: #fff; opacity: var(--alpha); box-shadow: 0 0 8px rgba(255,255,255,.78); animation: twinkle var(--duration) ease-in-out var(--delay) infinite; }
.starscape i.star--rose { background: #ffabd3; box-shadow: 0 0 11px rgba(255,101,174,.9); }
.starscape i.star--violet { background: #c8b7ff; box-shadow: 0 0 12px rgba(143,111,255,.95); }
.starscape i.star--far { filter: blur(.35px); }
.starscape i.star--glint::before, .starscape i.star--glint::after { content: ''; position: absolute; left: 50%; top: 50%; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); transform: translate(-50%,-50%); }
.starscape i.star--glint::before { width: 1.15rem; height: 1px; }.starscape i.star--glint::after { width: 1px; height: 1.15rem; }
.shooting-star { position: absolute; z-index: -1; width: 11rem; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95)); transform: rotate(-25deg); filter: drop-shadow(0 0 5px rgba(214,190,255,.9)); animation: shooting 8s linear infinite; }
.shooting-star--one { top: 18%; left: 22%; }.shooting-star--two { top: 37%; right: 10%; animation-delay: -4.5s; animation-duration: 11s; }.shooting-star--three { bottom: 18%; left: 5%; animation-delay: -2s; animation-duration: 13s; }
.cosmos__content { width: min(100%, 62rem); text-align: center; }
.cosmos__content h2 { font-size: clamp(3.8rem,8.5vw,8.4rem); text-shadow: 0 0 45px rgba(139,96,255,.35); }
.cosmos__content h2 em { color: #ff8fc6; }
.player-shell { position: relative; display: grid; place-items: center; width: min(70vw, 22rem); height: min(70vw, 22rem); margin: 3.5rem auto 2rem; isolation: isolate; transition: width 1.5s var(--ease), height 1.5s var(--ease), margin 1.2s var(--ease); }
.player-shell::before { content: ''; position: absolute; inset: 2%; z-index: 0; border: 1px solid rgba(207,187,255,0); border-radius: 48% 48% 1.6rem 1.6rem; opacity: 0; background: radial-gradient(ellipse at 50% 56%, rgba(125,69,205,.24), transparent 40%), linear-gradient(180deg, rgba(12,8,42,.15), rgba(20,10,55,.58)); box-shadow: inset 0 0 6rem rgba(142,83,226,.06), 0 2rem 7rem rgba(0,0,0,.22); transition: opacity 1.2s, border-color 1.2s, box-shadow 1.2s; }
.player-shell::after { content: ''; position: absolute; inset: 7%; z-index: 1; border-radius: 50%; opacity: 0; background-image: radial-gradient(circle, rgba(255,255,255,.86) 0 1px, transparent 1.4px), radial-gradient(circle, rgba(255,153,207,.7) 0 .8px, transparent 1.2px); background-size: 37px 37px, 59px 59px; background-position: 0 0, 18px 24px; mask-image: radial-gradient(ellipse, black, transparent 82%); transition: opacity 1.3s .3s; animation: inner-sky-drift 28s linear infinite; }
.player-shell.is-constellation { width: min(94vw, 50rem); height: clamp(16rem, 38vw, 21rem); margin-top: 3rem; }
.player-shell.is-constellation::before { opacity: 1; border-color: rgba(207,187,255,.19); box-shadow: inset 0 0 6rem rgba(142,83,226,.1), 0 2rem 7rem rgba(0,0,0,.32), 0 0 5rem rgba(119,69,208,.12); }
.player-shell.is-constellation::after { opacity: .46; }
.orbit { position: absolute; inset: 0; z-index: 1; border: 1px solid rgba(205,178,255,.22); border-radius: 50%; animation: orbit-spin 18s linear infinite; transition: inset 1.4s var(--ease), opacity 1.2s, border-color 1.2s; }
.orbit--inner { inset: 12%; animation-direction: reverse; animation-duration: 12s; }
.orbit i { position: absolute; display: block; width: .45rem; aspect-ratio: 1; border-radius: 50%; background: #ffacd2; box-shadow: 0 0 18px #ff62ad; }
.orbit--outer i:nth-child(1){ top: 7%; left: 23%; }.orbit--outer i:nth-child(2){ right: 2%; top: 52%; width: .27rem; }.orbit--outer i:nth-child(3){ bottom: 8%; left: 20%; width: .32rem; }.orbit--inner i { top: 10%; right: 18%; background: #bda8ff; box-shadow: 0 0 14px #9274ff; }
.play-orb { position: absolute; z-index: 5; display: grid; place-items: center; left: 50%; top: 50%; width: 44%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: white; background: radial-gradient(circle at 35% 30%, #ff85c0, #8f4de2 50%, #341971 100%); box-shadow: 0 0 0 .7rem rgba(139,81,225,.1), 0 0 3rem rgba(245,86,172,.48), inset 0 0 2rem rgba(255,255,255,.18); cursor: pointer; transform: translate(-50%,-50%); transition: left 1.4s var(--ease), top 1.4s var(--ease), width 1.4s var(--ease), opacity .8s, transform .3s var(--ease), box-shadow .3s; }
.play-orb:hover { transform: translate(-50%,-50%) scale(1.06); box-shadow: 0 0 0 .9rem rgba(139,81,225,.12), 0 0 4rem rgba(245,86,172,.68), inset 0 0 2rem rgba(255,255,255,.22); }
.play-orb:focus-visible { outline: 3px solid white; outline-offset: 8px; }
.play-orb__glow { position: absolute; inset: -16%; border: 1px solid rgba(255,122,190,.45); border-radius: 50%; opacity: 0; }
.play-icon { width: 0; height: 0; margin-left: .4rem; border-top: .9rem solid transparent; border-bottom: .9rem solid transparent; border-left: 1.4rem solid white; filter: drop-shadow(0 0 7px white); }
.pause-icon { display: none; gap: .38rem; }
.pause-icon i { width: .35rem; height: 1.8rem; border-radius: 999px; background: white; box-shadow: 0 0 7px white; }
.player-shell.is-playing .play-icon { display: none; }.player-shell.is-playing .pause-icon { display: flex; }
.player-shell.is-playing .play-orb { animation: player-pulse 1.9s ease-in-out infinite; }
.player-shell.is-playing .play-orb__glow { animation: signal-pulse 1.9s ease-out infinite; }
.player-shell.is-playing .orbit { animation-duration: 8s; }
.player-shell.is-constellation .orbit { inset: 5%; opacity: .42; border-color: rgba(225,208,255,.24); animation: constellation-orbit-breathe 4.8s ease-in-out infinite alternate; }
.player-shell.is-constellation .orbit--inner { inset: 12%; animation-delay: -2.4s; }
.player-shell.is-constellation .play-orb { left: calc(100% - 3.7rem); top: calc(100% - 3.6rem); width: 4.4rem; box-shadow: 0 0 0 .35rem rgba(139,81,225,.08), 0 0 2rem rgba(245,86,172,.46), inset 0 0 1.2rem rgba(255,255,255,.18); }
.player-shell.is-constellation .play-icon { border-top-width: .55rem; border-bottom-width: .55rem; border-left-width: .85rem; margin-left: .25rem; }
.player-shell.is-constellation .pause-icon i { width: .22rem; height: 1.1rem; }
.player-shell.is-complete .play-orb { opacity: 0; pointer-events: none; transform: translate(-50%,-50%) scale(.35); }
.audio-controls { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem; align-items: center; gap: .75rem; width: min(100%, 31rem); margin: 0 auto; }
.audio-control { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #f4dded; background: rgba(20,11,57,.48); box-shadow: 0 0 1.3rem rgba(199,137,255,.12); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, color .2s; }
.audio-control:hover, .audio-control:focus-visible { border-color: rgba(255,175,215,.78); color: white; transform: translateY(-1px); }
.audio-control:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.audio-control span { font-size: 1rem; line-height: 1; }
.audio-control.is-muted { color: #aa9ab9; border-color: rgba(190,169,217,.24); }
.audio-progress { --progress: 0%; width: 100%; height: 4px; margin: 0; border-radius: 999px; appearance: none; cursor: pointer; background: linear-gradient(90deg, #ff75b9 var(--progress), rgba(255,255,255,.17) var(--progress)); }
.audio-progress::-webkit-slider-thumb { width: 14px; aspect-ratio: 1; border: 0; border-radius: 50%; appearance: none; background: white; box-shadow: 0 0 12px #ff75b9; }
.audio-progress::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: white; box-shadow: 0 0 12px #ff75b9; }
.audio-placeholder { width: min(100%, 39rem); margin: 1rem auto 0; padding: .85rem 1rem; border: 1px dashed rgba(255,157,203,.48); border-radius: .7rem; color: #cbbfd8; text-align: left; font-size: .72rem; line-height: 1.6; }
.audio-placeholder strong { color: #ff9bca; }.audio-placeholder code { color: white; }
.audio-placeholder.nudge { animation: nudge .45s ease; }
.constellation-reveal { position: absolute; inset: 0; z-index: 3; width: 100%; overflow: hidden; opacity: 0; transform: scale(.92); pointer-events: none; transition: opacity 1s ease, transform 1.4s var(--ease); }
.constellation-reveal.is-awake { opacity: 1; transform: scale(1); }
.name-constellation { position: absolute; inset: 0; overflow: hidden; border-radius: 48% 48% 1.6rem 1.6rem; background: radial-gradient(circle at 50% 52%, rgba(130,78,214,.18), transparent 34%); }
.name-constellation::before { content: ''; position: absolute; inset: 0; opacity: .26; background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.4px); background-size: 33px 33px; mask-image: radial-gradient(circle at center, black, transparent 82%); animation: inner-sky-drift 34s linear infinite reverse; }
.name-constellation__aurora { position: absolute; width: 70%; height: 34%; left: 15%; top: 35%; border-radius: 50%; background: linear-gradient(90deg, rgba(255,91,174,.28), rgba(137,96,255,.36), rgba(255,169,211,.24)); filter: blur(42px); opacity: 0; transform: scale(.72); transition: opacity 1.8s, transform 2.2s var(--ease); }
.constellation-reveal.is-named .name-constellation__aurora { opacity: .75; transform: scale(1); }
.name-constellation svg { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; overflow: visible; }
.name-celestial-arcs { fill: none; stroke: rgba(208,187,255,.18); stroke-width: 1; opacity: 0; transform-origin: center; transition: opacity 1.4s .4s; }
.constellation-reveal.is-awake .name-celestial-arcs { opacity: 1; animation: celestial-arcs-breathe 5.5s ease-in-out infinite alternate; }
.name-dust { fill: #fff; opacity: 0; filter: drop-shadow(0 0 4px rgba(255,255,255,.9)); transition: opacity 1.5s 1s; }
.constellation-reveal.is-awake .name-dust { opacity: .82; }
.name-link { fill: none; stroke: rgba(235,216,255,.64); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; filter: drop-shadow(0 0 5px rgba(171,120,255,.7)); transition: stroke-dashoffset 3.2s var(--ease); }
.name-link--2 { transition-delay: .35s; }.name-link--3 { transition-delay: .7s; }.name-link--4 { transition-delay: 1.05s; }
.constellation-reveal.is-tracing .name-link { stroke-dashoffset: 0; }
.name-star { fill: #fff7fb; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: opacity .65s, transform .8s var(--ease); }
.name-star:nth-child(2n) { fill: #f8a9d2; }.name-star:nth-child(3n) { fill: #c5b5ff; }
.name-star:nth-child(2) { transition-delay: .15s; }.name-star:nth-child(3) { transition-delay: .3s; }.name-star:nth-child(4) { transition-delay: .45s; }.name-star:nth-child(5) { transition-delay: .6s; }.name-star:nth-child(6) { transition-delay: .75s; }.name-star:nth-child(7) { transition-delay: .9s; }.name-star:nth-child(8) { transition-delay: 1.05s; }.name-star:nth-child(9) { transition-delay: 1.2s; }.name-star:nth-child(10) { transition-delay: 1.35s; }.name-star:nth-child(11) { transition-delay: 1.5s; }.name-star:nth-child(12) { transition-delay: 1.65s; }
.constellation-reveal.is-awake .name-star { opacity: 1; transform: scale(1); animation: name-star-breathe 2.8s ease-in-out infinite alternate; }
.name-star--small { opacity: 0; }
.name-flare { fill: url(#starCore); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity 1s, transform 1.5s var(--ease); }
.constellation-reveal.is-tracing .name-flare { opacity: .7; transform: scale(1); animation: star-flare-pulse 2.2s ease-in-out infinite alternate; }
.name-runner { fill: #fff; opacity: 0; filter: drop-shadow(0 0 8px #ff8fc6); transition: opacity .8s; }
.name-runner--two { fill: #c7b4ff; filter: drop-shadow(0 0 8px #8f70ff); }
.constellation-reveal.is-tracing .name-runner { opacity: .95; }
.name-outline, .name-word { font-family: Georgia, 'Times New Roman', serif; font-size: 6.9rem; font-weight: 400; letter-spacing: .055em; }
.name-outline { fill: transparent; stroke: url(#nameGlow); stroke-width: 1.15; stroke-dasharray: 1150; stroke-dashoffset: 1150; opacity: .9; filter: drop-shadow(0 0 10px rgba(215,181,255,.68)); transition: stroke-dashoffset 3.6s var(--ease), opacity 1s; }
.constellation-reveal.is-named .name-outline { stroke-dashoffset: 0; }
.name-word { fill: url(#nameGlow); opacity: 0; filter: drop-shadow(0 0 12px rgba(255,133,198,.7)); transition: opacity 1.7s 2.1s; }
.constellation-reveal.is-named .name-word { opacity: 1; }
.door-reveal { position: relative; width: min(100%, 39rem); max-height: 0; margin: 0 auto; padding: 0 clamp(1.35rem,5vw,3rem); overflow: hidden; border: 0 solid transparent; border-radius: 1.4rem; background: linear-gradient(135deg, rgba(255,119,184,.11), rgba(132,94,238,.09)); box-shadow: 0 2rem 6rem rgba(0,0,0,.28), inset 0 0 3rem rgba(255,255,255,.025); opacity: 0; transform: translateY(1.4rem) scale(.97); transition: max-height 1.2s .45s var(--ease), margin 1.2s .45s var(--ease), padding 1.2s .45s var(--ease), border-color 1s .45s, opacity 1.2s .9s, transform 1.4s .9s var(--ease); }
.door-reveal::before { content: ''; position: absolute; width: 13rem; aspect-ratio: 1; right: -7rem; top: -8rem; border-radius: 50%; background: radial-gradient(circle, rgba(255,118,184,.32), transparent 68%); }
.door-reveal__star { display: block; margin-bottom: .9rem; color: #ffa8d2; font-size: 1.25rem; text-shadow: 0 0 18px #ff6caf; }
.door-reveal p { position: relative; margin: 0; color: #cfc3dd; font: italic 1rem/1.65 var(--serif); }
.door-reveal h3 { position: relative; margin: .7rem 0 .9rem; color: white; font: 400 clamp(2.3rem,6vw,4.2rem)/1 var(--serif); letter-spacing: -.035em; text-shadow: 0 0 28px rgba(255,132,194,.3); }
.door-reveal.is-complete { max-height: 26rem; margin-top: 2.2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; border-width: 1px; border-color: rgba(255,187,221,.3); opacity: 1; transform: none; }
.transcript { width: min(100%, 39rem); margin: 1rem auto 0; color: #cbbfd8; text-align: left; border-bottom: 1px solid rgba(255,255,255,.14); }
.transcript summary { padding: .7rem 0; color: #e5d9f0; text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; cursor: pointer; }
.transcript p { max-height: 20rem; overflow: auto; margin: 0; padding: .4rem .5rem 1.25rem 0; color: #bfb3d0; white-space: pre-line; font: 1rem/1.75 var(--serif); }
.ticket-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: 2.2rem; color: #e8dff4; text-underline-offset: .3rem; text-transform: uppercase; letter-spacing: .13em; font-size: .62rem; }
.ticket-link span { color: #ff8cc5; }
.signature { margin: 3.2rem 0 0; color: #968aa9; font: italic 1rem var(--serif); }.signature span { padding: 0 .5rem; color: #ff8cc5; }

.reveal,
.reveal.is-visible,
.hero .reveal { opacity: 1; transform: none; }
@keyframes nebula-drift { to{transform:translate3d(8vw,3vw,0) rotate(-8deg) scale(1.12)} }
@keyframes twinkle { 0%,100%{opacity:calc(var(--alpha) * .42);transform:translate3d(0,0,0) scale(.72)}50%{opacity:1;transform:translate3d(var(--drift-x),var(--drift-y),0) scale(1.42)} }
@keyframes shooting { 0%,72%{opacity:0;transform:translate3d(-14vw,8vw,0) rotate(-25deg)}74%{opacity:1}82%,100%{opacity:0;transform:translate3d(46vw,-18vw,0) rotate(-25deg)} }
@keyframes orbit-spin { to{transform:rotate(360deg)} }
@keyframes player-pulse { 0%,100%{transform:translate(-50%,-50%) scale(1);box-shadow:0 0 0 .7rem rgba(139,81,225,.1),0 0 3rem rgba(245,86,172,.48),inset 0 0 2rem rgba(255,255,255,.18)}50%{transform:translate(-50%,-50%) scale(1.06);box-shadow:0 0 0 1.2rem rgba(139,81,225,.05),0 0 5rem rgba(245,86,172,.75),inset 0 0 2rem rgba(255,255,255,.24)} }
@keyframes signal-pulse { 0%{opacity:.8;transform:scale(.75)}100%{opacity:0;transform:scale(1.45)} }
@keyframes nudge { 0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)} }
@keyframes name-star-breathe { from{filter:drop-shadow(0 0 4px rgba(255,255,255,.55));}to{filter:drop-shadow(0 0 13px rgba(255,145,207,.95));} }
@keyframes galaxy-drift { to{transform:translate3d(3.5rem,2rem,0) rotate(.7deg)} }
@keyframes galaxy-breathe { from{opacity:.12;transform:rotate(-12deg) scale(.96)}to{opacity:.28;transform:rotate(-9deg) scale(1.06)} }
@keyframes inner-sky-drift { to{background-position:80px 42px, -54px 68px} }
@keyframes constellation-orbit-breathe { from{opacity:.22;filter:drop-shadow(0 0 2px rgba(184,153,255,.1))}to{opacity:.55;filter:drop-shadow(0 0 11px rgba(184,153,255,.32))} }
@keyframes celestial-arcs-breathe { from{opacity:.32;transform:scale(.985)}to{opacity:.78;transform:scale(1.012)} }
@keyframes star-flare-pulse { from{opacity:.35;transform:scale(.78)}to{opacity:.82;transform:scale(1.2)} }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; align-items: start; gap: 3rem; min-height: auto; padding: 7rem 1.3rem 5rem; }
  .hero__copy { order: 1; }.hero__portrait { order: 2; width: min(88%,26rem); }
  h1 { max-width: 100%; font-size: clamp(3.5rem,15.5vw,6.3rem); }.hero__lede { font-size: .94rem; }
  .memory { grid-template-columns: 1fr; gap: 3rem; padding: 6rem 1.35rem; }
  .memory__photos { min-height: 118vw; max-height: 680px; }
  .chapter-copy { order: -1; }.photo-card--front { right: 3%; }
  h2 { font-size: clamp(3.6rem,16vw,6.4rem); }
  .celebrate { padding: 6rem 1.35rem; }
  .celebrate__grid { grid-template-columns: 1fr; gap: 3.5rem; margin-top: 3.5rem; }
  .celebrate__visual { min-height: min(124vw, 650px); width: min(100%, 34rem); margin: 0 auto; }
  .portrait-tall { width: 76%; right: 6%; }
  .portrait-cameo { width: 37%; left: 2%; }
  .celebrate__copy { padding-top: 0; }
  .celebrate__grid > .portrait-tall { width: min(86%, 30rem); height: min(122vw, 620px); margin: 0 auto; }
  .next { grid-template-columns: 1fr; padding: 6rem 1.35rem; }
  .next__backdrop { background: linear-gradient(160deg,#f8f0ed 0 64%,#d7cbe5 64%); }
  .next__photo { width: 85%; height: auto; aspect-ratio: 3/4; margin: 1rem auto 0; }
  .cosmos { min-height: 110svh; padding: 7rem 1.1rem 5rem; }
  .cosmos__content h2 { font-size: clamp(3.5rem,15.5vw,6rem); }
  .player-shell { width: min(82vw,20rem); height: min(82vw,20rem); margin-top: 2.5rem; }
  .player-shell.is-constellation { width: min(94vw,48rem); height: clamp(15rem,62vw,19rem); }
  .name-constellation { border-radius: 42% 42% 1.2rem 1.2rem; }
  .name-outline, .name-word { font-size: 6.4rem; letter-spacing: .025em; }
}

@media (max-width: 430px) {
  .eyebrow { letter-spacing: .2em; }
  .hero__portrait { width: 92%; }
  .memory__photos { min-height: 125vw; }
  .photo-card { padding: .42rem; }
  .personal-note { padding: 1.3rem; }.personal-note p { font-size: 1.08rem; }
  .player-shell.is-constellation { width: calc(100vw - 2.2rem); height: 15rem; }
  .name-outline, .name-word { font-size: 5.75rem; }
  .player-shell.is-constellation .play-orb { left: calc(100% - 3rem); top: calc(100% - 3rem); width: 3.7rem; }
  .door-reveal { padding-right: 1.25rem; padding-left: 1.25rem; }
  .door-reveal.is-complete { padding-top: 2rem; padding-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.calm-motion *, .calm-motion *::before, .calm-motion *::after { animation-play-state: paused !important; }
.calm-motion .reveal { opacity: 1; transform: none; }
