:root {
  color-scheme: dark;
  --night: #160d2b;
  --violet: #261344;
  --lavender: #b99aff;
  --pink: #f3c7ff;
  --pale: #e5d4ff;
  --white: #fff;
  --muted: #d3c5e8;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', 'DM Sans', sans-serif;
  --script: 'Great Vibes', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; overflow-x: hidden; background: var(--night); color: var(--white); font-family: var(--sans); font-size: 15px; }
body.intro-locked { overflow: hidden; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { color: var(--night); background: var(--pink); }

.starfield { position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: .65; background-image: radial-gradient(1px 1px at 8% 15%, #fff 80%, transparent), radial-gradient(1.5px 1.5px at 32% 40%, #d8c6ff 80%, transparent), radial-gradient(1px 1px at 74% 21%, #fff 80%, transparent), radial-gradient(1.5px 1.5px at 91% 67%, #e8c9ff 80%, transparent), radial-gradient(1px 1px at 61% 83%, #fff 80%, transparent), radial-gradient(1px 1px at 18% 72%, #d8c6ff 80%, transparent); background-size: 270px 240px; animation: star-drift 70s linear infinite; }
.ambient { position: fixed; width: 40vw; height: 40vw; border-radius: 50%; filter: blur(115px); opacity: .17; pointer-events: none; z-index: -2; }
.ambient-one { top: 20%; left: -20vw; background: #792dce; }
.ambient-two { top: 55%; right: -24vw; background: #c64caf; }
.particle-layer { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.floating-heart, .falling-flower { position: absolute; bottom: -40px; animation: float-up 5s ease-in forwards; color: var(--pink); font-size: 19px; text-shadow: 0 0 16px #f3c7ff; }
.falling-flower { animation-name: fall-down; top: -40px; bottom: auto; }

.intro-screen { position: fixed; z-index: 100; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; padding: 28px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #41216c 0%, #211239 48%, #160d2b 82%); transition: opacity .9s ease, visibility .9s ease, transform .9s ease; }
.intro-screen[hidden] { display: none; }
.intro-screen::before, .intro-screen::after { content: ''; position: absolute; width: 60vmin; height: 60vmin; border: 1px solid #e8caff22; border-radius: 50%; animation: orbit 32s linear infinite; pointer-events: none; }
.intro-screen::after { width: 80vmin; height: 80vmin; animation-direction: reverse; }
.intro-screen.is-hidden { opacity: 0; visibility: hidden; transform: scale(1.08); }
.intro-orbit { position: absolute; width: min(76vmin, 600px); aspect-ratio: 1; border: 1px solid #f3c7ff1f; border-radius: 50%; animation: orbit 24s linear infinite; pointer-events: none; }
.intro-orbit span { position: absolute; color: var(--pink); text-shadow: 0 0 15px var(--pink); }
.intro-orbit span:nth-child(1) { top: 10%; left: 18%; }.intro-orbit span:nth-child(2) { right: 4%; top: 49%; }.intro-orbit span:nth-child(3) { bottom: 8%; left: 31%; }
.intro-eyebrow, .eyebrow { color: var(--lavender); letter-spacing: .22em; text-transform: uppercase; font-size: 10px; font-weight: 600; }
.intro-whisper { margin: 20px 0 4px; color: var(--pale); font: 400 clamp(27px, 5vw, 45px)/1.32 var(--serif); }
.intro-name { margin: 0 0 30px; font: 400 clamp(58px, 12vw, 104px)/1 var(--script); color: #fff; text-shadow: 0 0 28px #d198ffb5; }
.intro-name span { font: 26px var(--sans); vertical-align: middle; }
.intro-footnote { margin-top: 23px; color: #c1b1d3; font-size: 10px; letter-spacing: .08em; }

.site-nav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 76px; padding: 0 max(6vw, 28px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff0d; background: linear-gradient(180deg, #160d2bd9, #160d2b99); backdrop-filter: blur(14px); opacity: 0; transform: translateY(-12px); transition: opacity .6s ease, transform .6s ease; }
body.experience-on .site-nav { opacity: 1; transform: translateY(0); }
.brand { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #b99aff66; border-radius: 50%; font: 400 28px var(--script); color: var(--pale); box-shadow: 0 0 18px #b99aff1f; }
.brand span { margin: -20px 0 0 -7px; color: var(--pink); font: 10px var(--sans); }
.nav-links { display: flex; gap: clamp(17px, 3.2vw, 44px); }
.nav-links a { position: relative; color: #d7cde5; font-size: 11px; transition: color .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--pink); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: var(--pink); transition: width .25s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; }
.menu-toggle span { display: block; width: 21px; height: 1px; margin: 5px; background: var(--pale); }

.section-screen, .section-pad { position: relative; }
.hero { min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 110px 24px 70px; background: radial-gradient(ellipse at 50% 54%, #48266982, transparent 53%); }
.hero-content { position: relative; z-index: 2; text-align: center; width: min(100%, 850px); }
.hero .eyebrow { margin-bottom: 22px; }
.hero-title { margin: 0; font: 500 clamp(54px, 10.5vw, 112px)/.99 var(--serif); letter-spacing: -.055em; text-shadow: 0 0 42px #bd91ff44; }
.hero-title em, .section-heading h2 em, .final-title em { color: var(--pink); font-family: var(--script); font-weight: 400; font-size: 1.16em; letter-spacing: 0; }
.hero-age { margin: 25px 0 8px; color: var(--pale); letter-spacing: .16em; text-transform: uppercase; font-size: clamp(10px, 1.8vw, 13px); }
.hero-age span { color: var(--pink); padding: 0 5px; }
.hero-copy { margin: 0 auto; color: #c9bdd9; font: 400 15px var(--serif); }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 65px; color: #bfb0d3; letter-spacing: .12em; font-size: 9px; text-transform: uppercase; }
.scroll-arrow { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #d5b9fc67; border-radius: 50%; font-size: 16px; animation: bounce 2s infinite; }
.moon-glow { position: absolute; right: 12%; top: 24%; width: 120px; aspect-ratio: 1; border-radius: 50%; background: #d8b6ff0b; box-shadow: 0 0 110px 55px #ad70ed0d; }
.hero-bottom-note { position: absolute; right: 5%; bottom: 30px; color: #9887ad; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.hero-sparkle { position: absolute; color: var(--pink); text-shadow: 0 0 20px var(--pink); animation: twinkle 3s ease-in-out infinite; }
.sparkle-a { left: 18%; top: 30%; font-size: 19px; }.sparkle-b { right: 20%; top: 34%; font-size: 27px; animation-delay: .6s; }.sparkle-c { left: 27%; bottom: 24%; font-size: 13px; animation-delay: 1.3s; }
.butterfly { position: absolute; opacity: .6; font-size: 24px; filter: drop-shadow(0 0 10px #d8a6ff); animation: flutter 9s ease-in-out infinite; }
.butterfly-one { top: 34%; right: 15%; }.butterfly-two { left: 14%; bottom: 24%; font-size: 17px; animation-delay: -3s; }
.section-pad { padding: 125px 24px; }
.section-heading { max-width: 720px; margin: 0 auto 55px; text-align: center; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading h2 { margin: 0; font: 500 clamp(32px, 5.2vw, 55px)/1.16 var(--serif); }
.section-heading > p:last-child { margin: 15px auto 0; max-width: 550px; color: var(--muted); line-height: 1.8; font-size: 13px; }
.age-section { min-height: 600px; overflow: hidden; text-align: center; background: linear-gradient(180deg, #21123933, #4a2a7126, #160d2b33); }
.age-display { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: clamp(25px, 8vw, 105px); }
.age-block { display: flex; flex-direction: column; align-items: center; }
.age-number { font: 500 clamp(90px, 16vw, 160px)/.95 var(--serif); color: #f4eaff; text-shadow: 0 0 35px #c79affaa, 0 0 90px #9f58ff54; }
.age-label { margin-top: 12px; color: var(--lavender); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; }
.age-plus { font: 400 clamp(34px, 5vw, 60px) var(--script); color: var(--pink); text-shadow: 0 0 24px var(--pink); }
.age-caption { max-width: 560px; margin: 36px auto 0; color: #cec1df; font: 400 16px/1.9 var(--serif); }
.age-orbit { position: absolute; top: 39%; left: 50%; width: min(78vw, 680px); aspect-ratio: 1; transform: translate(-50%,-50%); border: 1px solid #e5d4ff10; border-radius: 50%; color: #f3c7ff69; font-size: 24px; animation: orbit 40s linear infinite; pointer-events: none; }

.cake-section { text-align: center; background: radial-gradient(ellipse at 50% 58%, #56257338, transparent 42%); }
.cake-scene { display: flex; align-items: center; flex-direction: column; }
.cake { position: relative; width: min(310px, 80vw); height: 245px; margin: 26px 0 23px; animation: cake-enter 1s .1s both; }
.cake-glow { position: absolute; width: 240px; height: 120px; top: 95px; background: #c98dff20; filter: blur(46px); }
.cake-layer { position: absolute; left: 50%; transform: translateX(-50%); border: 1px solid #e9cfff70; box-shadow: inset 0 8px 18px #ffffff18, 0 14px 30px #09051399; background: linear-gradient(105deg, #56317a, #9f6ec4 46%, #5b347b); }
.layer-top { top: 75px; width: 200px; height: 72px; border-radius: 12px 12px 18px 18px; z-index: 2; }
.layer-bottom { top: 133px; width: 260px; height: 73px; border-radius: 13px 13px 19px 19px; background: linear-gradient(105deg, #41225f, #8153ab 50%, #482565); }
.cake-top { position: absolute; z-index: 3; left: 50%; top: 65px; width: 200px; height: 27px; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(90deg, #d6bcfb, #f3c7ff, #c9aff5); box-shadow: 0 0 22px #efcfff5c; }
.icing-drip { position: absolute; top: 0; left: 8%; width: 18px; height: 22px; border-radius: 0 0 12px 12px; background: #e5d4ff; }
.icing-drip:nth-child(2) { left: 28%; height: 29px; }.icing-drip:nth-child(3) { left: 51%; height: 19px; }.icing-drip:nth-child(4) { left: 72%; height: 28px; }.icing-drip:nth-child(5) { left: 90%; height: 18px; }
.layer-bottom .icing-drip { height: 21px; }.layer-bottom .icing-drip:nth-child(2n) { height: 28px; }
.cake-plate { position: absolute; bottom: 20px; left: 50%; width: 300px; height: 18px; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(#e9dcff, #a586c6); box-shadow: 0 8px 23px #07040f; }
.candle-row { position: absolute; z-index: 4; left: 50%; top: 20px; width: 165px; transform: translateX(-50%); display: flex; justify-content: space-between; }
.candle { position: relative; width: 6px; height: 50px; border-radius: 3px 3px 1px 1px; background: repeating-linear-gradient(145deg, #f8d7ff 0 5px, #b080d9 5px 8px); box-shadow: 0 0 10px #e1beff49; }
.flame { position: absolute; top: -14px; left: 50%; width: 9px; height: 14px; transform: translateX(-50%); border-radius: 50% 50% 50% 0; background: #fff7c0; box-shadow: 0 0 8px 3px #ffd783, 0 0 20px 8px #f49bff9c; animation: flicker .8s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.candle.blown .flame { opacity: 0; transform: translateX(-50%) scale(.1); transition: .4s ease; }
.wish-message { min-height: 31px; margin: 6px auto 18px; color: var(--pink); font: 400 22px var(--script); opacity: 0; transform: translateY(7px); transition: .6s ease; }
.wish-message.visible { opacity: 1; transform: translateY(0); }

.letter-section { background: linear-gradient(180deg, #160d2b, #24143a66, #160d2b); }
.letter-wrap { display: flex; flex-direction: column; align-items: center; }
.envelope { position: relative; width: min(390px, 86vw); height: 235px; margin: 10px 0 32px; perspective: 900px; }
.envelope-back { position: absolute; inset: 0; background: linear-gradient(140deg, #664481, #8e66a7); border-radius: 5px; box-shadow: 0 20px 60px #0805108c; }
.letter-paper { position: absolute; z-index: 1; left: 6%; right: 6%; top: 8px; height: 205px; padding: 18px 19px; overflow: auto; color: #49365a; background: repeating-linear-gradient(#fff9f3 0 31px, #dfcfdf 32px, #fff9f3 33px); border-radius: 3px; transition: transform 1s cubic-bezier(.2,.8,.2,1), height .6s ease; }
.letter-text { margin: 0; white-space: pre-wrap; font: 400 18px/1.55 var(--script); }
.envelope-front { position: absolute; z-index: 3; inset: 0; background: linear-gradient(145deg, #855da2, #5d3b79); clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%); border-radius: 5px; }
.envelope-flap { position: absolute; z-index: 4; inset: 0 0 auto; height: 62%; background: linear-gradient(150deg, #b68bca, #805a9d); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .7s ease; backface-visibility: hidden; }
.envelope-seal { position: absolute; z-index: 5; top: 51%; left: 50%; width: 35px; height: 35px; transform: translate(-50%,-50%); display: grid; place-items: center; border: 1px solid #f3c7ffb0; border-radius: 50%; background: #4a2b61; color: var(--pink); font-size: 16px; box-shadow: 0 0 17px #e8b8ff6b; transition: opacity .3s ease; }
.envelope.open .envelope-flap { transform: rotateX(180deg); z-index: 0; }
.envelope.open .letter-paper { z-index: 6; transform: translateY(-95px); height: min(380px, 54vh); box-shadow: 0 15px 40px #090512a6; }
.envelope.open .envelope-seal { opacity: 0; }
.letter-hint { color: #a998bd; font-size: 10px; }

.memories-section { background: radial-gradient(ellipse at 50% 58%, #47236130, transparent 55%); }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; width: min(1050px, 100%); margin: 0 auto; }
.memory-card { position: relative; aspect-ratio: 1 / 1.15; padding: 7px; overflow: hidden; border: 1px solid #c7a2f15a; border-radius: 12px; background: linear-gradient(145deg, #45295f, #26153b); cursor: zoom-in; box-shadow: 0 10px 30px #09051045; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.memory-card:hover { transform: translateY(-6px) scale(1.025); border-color: #efcfff; box-shadow: 0 12px 38px #bd84ff2a, 0 0 16px #b99aff27; }
.memory-card img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 7px; transition: transform .5s ease; }
.memory-card:hover img { transform: scale(1.08); }
.memory-card figcaption { position: absolute; left: 7px; right: 7px; bottom: 7px; padding: 27px 9px 10px; border-radius: 0 0 7px 7px; color: white; font: 400 17px var(--script); text-shadow: 0 1px 7px #160d2b; background: linear-gradient(transparent, #160d2bd9); }
.gallery-note { margin: 26px auto 0; text-align: center; color: #a99ab9; font-size: 10px; }
.lightbox { position: fixed; z-index: 80; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 60px 20px 30px; background: #10091beF; backdrop-filter: blur(13px); opacity: 0; visibility: hidden; transition: .3s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure { margin: 0; width: min(74vw, 680px); text-align: center; }
.lightbox-figure img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; border: 1px solid #d9b8ff8a; border-radius: 10px; box-shadow: 0 10px 70px #b889ff30; }
.lightbox-figure figcaption { margin-top: 14px; color: var(--pale); font: 400 25px var(--script); }
.lightbox-close, .lightbox-arrow { position: absolute; display: grid; place-items: center; border: 1px solid #d7c0ee68; background: #28163dbd; color: var(--pale); border-radius: 50%; cursor: pointer; transition: .2s ease; }
.lightbox-close:hover, .lightbox-arrow:hover { background: #573575; color: white; }
.lightbox-close { top: 22px; right: 24px; width: 42px; height: 42px; font-size: 28px; }
.lightbox-arrow { position: static; flex: 0 0 43px; width: 43px; height: 43px; font-size: 33px; line-height: 1; }

.gift-section { overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 65%, #55267440, transparent 48%); }
.gift-stars { margin-bottom: 23px; color: var(--pink); letter-spacing: .4em; text-shadow: 0 0 15px var(--pink); animation: twinkle 2.5s infinite; }
.gift-scene { display: flex; align-items: center; flex-direction: column; }
.gift-box { position: relative; width: 190px; height: 170px; margin: 30px 0 35px; transition: transform .4s ease; }
.gift-box.shake { animation: shake .65s ease-in-out; }
.gift-body { position: absolute; bottom: 0; left: 15px; width: 160px; height: 118px; border: 1px solid #e9cfff9c; border-radius: 5px 5px 10px 10px; background: linear-gradient(110deg, #68428c, #ad80cf 50%, #69418e); box-shadow: 0 18px 30px #0805109c, inset 0 0 30px #ffffff16; }
.gift-ribbon { position: absolute; left: 69px; top: 0; width: 23px; height: 100%; background: linear-gradient(90deg, #f1d0ff, #bd8edb); }
.gift-ribbon-horizontal { position: absolute; left: 0; right: 0; top: 32px; height: 19px; background: linear-gradient(#f2d6ff, #be90dc); }
.gift-lid { position: absolute; z-index: 3; top: 24px; left: 6px; width: 178px; height: 37px; border: 1px solid #efd6ff; border-radius: 5px; background: linear-gradient(110deg, #8c62aa, #d0a6e3 50%, #7d539c); box-shadow: 0 8px 20px #0805108a; transition: transform .8s cubic-bezier(.2,.8,.2,1); transform-origin: 12% 90%; }
.gift-bow { position: absolute; top: -24px; left: 76px; width: 27px; height: 28px; border: 6px solid #efceff; border-radius: 50% 50% 4px 50%; transform: rotate(18deg); }
.gift-bow::after { content: ''; position: absolute; left: 10px; top: -4px; width: 27px; height: 28px; border: 6px solid #d1a5ee; border-radius: 50% 50% 50% 4px; transform: rotate(40deg); }
.gift-box.open .gift-lid { transform: translate(-20px,-75px) rotate(-23deg); }
.gift-box.open .gift-sparkles { opacity: 1; transform: translateY(-100px) scale(1.2); }
.gift-sparkles { position: absolute; z-index: 2; top: 0; left: 0; right: 0; color: #fff1bb; font-size: 28px; letter-spacing: .4em; opacity: 0; text-shadow: 0 0 15px #fff3a9; transition: .7s ease; }
.gift-message, .extra-message { max-width: 540px; margin: 24px auto 0; color: var(--pale); font: 400 21px/1.5 var(--script); opacity: 0; transform: translateY(8px); transition: .5s ease; }
.gift-message.visible, .extra-message.visible { opacity: 1; transform: none; }
.button-text { margin-top: 12px; }

.final-section { min-height: 100svh; padding: 100px 24px 80px; display: grid; place-items: center; overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 48%, #592c7b66, transparent 58%); }
.final-content { position: relative; z-index: 2; width: min(780px, 100%); }
.final-content > .eyebrow { margin-bottom: 25px; }
.final-wish { max-width: 630px; margin: 0 auto 32px; color: #d8cce8; font: 400 clamp(16px, 2.5vw, 21px)/1.9 var(--serif); }
.final-title { margin: 0; font: 500 clamp(39px, 7.5vw, 77px)/1.12 var(--serif); }
.final-title em { display: inline-block; margin-top: 5px; }
.final-signoff { margin: 22px 0 30px; color: var(--lavender); font: 400 23px var(--script); }
.fireworks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.firework { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe5ff; box-shadow: 0 0 8px 3px #d6a5ff, 0 0 25px 12px #9e59dd; animation: firework 2.8s ease-out infinite; }

.button { min-height: 48px; padding: 0 26px; border-radius: 99px; cursor: pointer; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 600; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-3px); }
.button:focus-visible, a:focus-visible, .menu-toggle:focus-visible, .memory-card:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.button-glow { border: 1px solid #e9d3ffb0; background: linear-gradient(120deg, #9367b5, #68448e); color: #fff; box-shadow: 0 0 24px #d6a6ff4a, inset 0 0 14px #ffffff13; }
.button-glow:hover { box-shadow: 0 0 36px #dfb4ff9c, inset 0 0 14px #ffffff1f; }
.button-glow span { margin-left: 8px; color: var(--pink); }
.button-outline { border: 1px solid #ca9cf599; color: var(--pale); background: #381e513b; }
.button-outline:hover { background: #512e6c; box-shadow: 0 0 20px #bf8de74b; }
.button-text { border: 0; color: var(--pink); background: none; font-size: 10px; }
.music-player { position: fixed; z-index: 31; right: 23px; bottom: 22px; display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 7px 13px; border: 1px solid #c29ce66b; border-radius: 99px; background: #24143bd9; color: #eee3fb; box-shadow: 0 9px 28px #08051176; backdrop-filter: blur(12px); }
.music-play, .music-mute { border: 0; color: inherit; background: transparent; cursor: pointer; }
.music-play { display: flex; align-items: center; gap: 11px; padding: 0; }
.music-label { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.music-icon { display: flex; align-items: center; gap: 2px; height: 17px; }
.music-icon i { display: block; width: 2px; height: 5px; border-radius: 2px; background: var(--pink); }
.music-player.playing .music-icon i { animation: equalize .7s ease-in-out infinite alternate; }
.music-icon i:nth-child(2) { animation-delay: -.3s; }.music-icon i:nth-child(3) { animation-delay: -.55s; }.music-icon i:nth-child(4) { animation-delay: -.2s; }
.music-mute { display: grid; place-items: center; width: 23px; height: 23px; border-left: 1px solid #d8c5ed45; color: #c6b5d8; font-size: 13px; padding-left: 9px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
body.intro-locked main, body.intro-locked .music-player { opacity: 0; }
main, .music-player { transition: opacity .8s ease; }
body.experience-on main, body.experience-on .music-player { opacity: 1; }
.confetti { position: fixed; z-index: 70; top: -15px; width: 8px; height: 12px; pointer-events: none; animation: confetti-fall 3.5s linear forwards; }

@keyframes twinkle { 0%,100% { opacity: .48; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.16); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes star-drift { to { background-position: 270px 240px; } }
@keyframes flutter { 0%,100% { transform: translate(0,0) rotate(-8deg); } 40% { transform: translate(-22px,-18px) rotate(13deg); } 72% { transform: translate(14px,-27px) rotate(-12deg); } }
@keyframes flicker { from { transform: translateX(-50%) rotate(-5deg) scale(.93); } to { transform: translateX(-50%) rotate(5deg) scale(1.08); } }
@keyframes cake-enter { from { opacity: 0; transform: translateY(30px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes float-up { to { transform: translate(var(--drift), -110vh) rotate(35deg); opacity: 0; } }
@keyframes fall-down { to { transform: translate(var(--drift), 110vh) rotate(220deg); opacity: 0; } }
@keyframes confetti-fall { to { transform: translate(var(--drift), 110vh) rotate(760deg); opacity: .1; } }
@keyframes shake { 20%,60% { transform: rotate(-5deg) translateX(-5px); } 40%,80% { transform: rotate(5deg) translateX(5px); } }
@keyframes firework { 0% { opacity: 0; transform: scale(.2); } 20% { opacity: 1; transform: scale(1.2); } 80% { opacity: .75; transform: scale(.8); } 100% { opacity: 0; transform: scale(.1); } }
@keyframes equalize { to { height: 15px; } }

@media (max-width: 760px) {
  .site-nav { height: 65px; padding: 0 20px; }
  .menu-toggle { display: block; position: relative; z-index: 3; cursor: pointer; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; display: flex; flex-direction: column; gap: 0; padding: 7px 22px 18px; background: #1b102cf5; border-bottom: 1px solid #fff1; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s ease; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 6px; border-bottom: 1px solid #ffffff0b; font-size: 12px; }
  .nav-links a::after { display: none; }
  .section-pad { padding: 95px 20px; }
  .section-heading { margin-bottom: 42px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero { padding-top: 100px; }
  .hero-sparkle.sparkle-a { left: 8%; }.sparkle-b { right: 9%; }
  .butterfly-one { right: 7%; top: 25%; }.butterfly-two { left: 6%; bottom: 18%; }
  .lightbox { gap: 9px; padding-left: 10px; padding-right: 10px; }
  .lightbox-figure { width: calc(100vw - 120px); }
  .lightbox-arrow { flex-basis: 36px; width: 36px; height: 36px; }
  .music-player { right: 12px; bottom: 12px; }
}
@media (max-width: 390px) {
  .intro-footnote { max-width: 250px; line-height: 1.7; }
  .age-display { gap: 18px; }
  .age-number { font-size: 83px; }
  .age-label { font-size: 8px; letter-spacing: .12em; }
  .cake { transform: scale(.88); margin-top: 4px; margin-bottom: 3px; }
  .letter-text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
