:root {
  --cream: #fffaf6;
  --cream-deep: #f9efe8;
  --blush: #f6dbe2;
  --blush-strong: #eab8c5;
  --lavender: #e3def6;
  --lavender-deep: #c9bee9;
  --plum: #4f3d58;
  --plum-soft: #705b77;
  --rose: #be7e79;
  --rose-light: #dfada5;
  --ink: #423445;
  --muted: #88788a;
  --line: rgba(110, 79, 99, 0.16);
  --glass: rgba(255, 255, 255, 0.58);
  --shadow: 0 25px 70px rgba(103, 69, 87, 0.13);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --max: 1180px;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--cream); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, input { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: .7rem 1rem; transform: translateY(-200%); border-radius: 100px; background: var(--plum); color: #fff; text-decoration: none; transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noise { pointer-events: none; position: fixed; z-index: 20; inset: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E"); }

.eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; color: var(--rose); font-size: .68rem; font-weight: 700; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.eyebrow--center { justify-content: center; }
.eyebrow span { width: 28px; height: 1px; background: currentColor; opacity: .65; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -.04em; }
h1 em, h2 em { color: var(--rose); font-style: italic; font-weight: 400; }

.intro-screen { position: relative; isolation: isolate; display: grid; min-height: 100svh; place-items: center; overflow: hidden; padding: 3rem 1.35rem 4.2rem; text-align: center; background: radial-gradient(circle at 18% 20%, rgba(238, 197, 210, .82), transparent 35%), radial-gradient(circle at 83% 75%, rgba(206, 194, 237, .72), transparent 37%), linear-gradient(155deg, #fffaf5 6%, #fbf0f1 48%, #f3effc 100%); }
.intro-screen::before, .intro-screen::after { position: absolute; z-index: -1; width: min(48vw, 560px); aspect-ratio: 1; border: 1px solid rgba(168, 124, 142, .16); border-radius: 50%; content: ""; }
.intro-screen::before { top: -20vw; right: -13vw; }
.intro-screen::after { bottom: -23vw; left: -19vw; }
.intro-content { width: min(100%, 740px); animation: introRise 1s cubic-bezier(.22,.85,.32,1) both; }
.intro-content h1 { margin: 0; color: var(--plum); font-size: clamp(3.1rem, 9vw, 6.5rem); line-height: .98; }
.intro-copy { width: min(100%, 425px); margin: 1.6rem auto 2.1rem; color: var(--plum-soft); font-size: clamp(.95rem, 2.5vw, 1.08rem); line-height: 1.75; }
.intro-signature { position: absolute; bottom: 1.55rem; margin: 0; color: rgba(79, 61, 88, .6); font-family: var(--serif); font-size: .86rem; letter-spacing: .05em; }
.intro-screen.is-leaving { pointer-events: none; opacity: 0; transform: translateY(-12px); transition: opacity .62s ease, transform .62s ease; }
.tap-hint { margin: 1.25rem 0 0; color: rgba(79, 61, 88, .6); font-size: .72rem; letter-spacing: .05em; }
.tap-hint__dot { display: inline-block; width: 6px; height: 6px; margin-right: .32rem; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 5px rgba(190,126,121,.14); animation: blink 2s infinite; }
.orbit-one, .orbit-two { position: absolute; z-index: -1; border: 1px solid rgba(190,126,121,.13); border-radius: 50%; }
.orbit-one { width: min(74vw, 720px); aspect-ratio: 1; animation: breathe 7s ease-in-out infinite; }
.orbit-two { width: min(93vw, 920px); aspect-ratio: 1; border-style: dashed; animation: spin 50s linear infinite; }

.primary-button, .secondary-button { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; gap: .72rem; border: 1px solid transparent; border-radius: 100px; font-size: .87rem; font-weight: 700; letter-spacing: .015em; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.primary-button { padding: .9rem 1.35rem .9rem 1.55rem; background: linear-gradient(135deg, var(--rose), #d59d9e); box-shadow: 0 13px 26px rgba(175, 100, 111, .22); color: #fffdfb; }
.primary-button svg, .secondary-button svg, .icon-button svg, .music-player svg, .sound-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 17px 30px rgba(175, 100, 111, .3); }
.primary-button:active, .secondary-button:active { transform: translateY(0) scale(.98); }
.primary-button--small { min-height: 48px; padding: .78rem 1rem .78rem 1.2rem; white-space: nowrap; }
.secondary-button { padding: .88rem 1.1rem .88rem 1.3rem; border-color: rgba(160, 116, 132, .28); background: rgba(255,255,255,.5); color: var(--plum); box-shadow: 0 8px 18px rgba(118, 82, 102, .07); }
.secondary-button:hover { transform: translateY(-2px); border-color: var(--rose-light); background: #fffafa; }

.ambient { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.intro-screen > .ambient--intro { z-index: 0; }
.intro-content, .intro-signature { position: relative; z-index: 1; }
.intro-orbit { z-index: 0; }
.ambient__particle { position: absolute; display: grid; place-items: center; color: rgba(190,126,121,.72); font-size: var(--size, 12px); animation: drift var(--duration, 10s) ease-in-out var(--delay, 0s) infinite alternate; }
.ambient__particle--star { color: rgba(150, 123, 188, .6); }
.ambient__particle--heart { color: rgba(216, 120, 146, .74); text-shadow: 0 0 14px rgba(236, 155, 177, .35); }
.ambient__particle--petal { color: rgba(215, 146, 164, .54); font-size: calc(var(--size, 12px) * 1.3); }

.experience { overflow: hidden; background: linear-gradient(180deg, #fffaf6 0%, #fdf9f7 24%, #faf2f4 53%, #fffaf5 100%); }
.story-header { position: sticky; z-index: 10; top: 0; display: grid; grid-template-columns: 44px 1fr 70px; align-items: center; width: 100%; max-width: 1360px; height: 70px; margin: 0 auto; padding: .65rem 1.35rem; background: linear-gradient(to bottom, rgba(255,250,246,.93), rgba(255,250,246,.71), transparent); backdrop-filter: blur(12px); }
.brand { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(139,95,114,.25); border-radius: 50%; color: var(--plum); font-family: var(--serif); font-size: 1rem; text-decoration: none; }
.brand span { position: absolute; transform: translateY(-1px); color: var(--rose); font-size: .55rem; }
.story-header > p { margin: 0; color: var(--muted); font-size: .64rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.sound-chip { justify-self: end; display: inline-flex; min-height: 36px; align-items: center; gap: .35rem; border: 0; border-radius: 100px; background: rgba(255,255,255,.6); color: var(--plum-soft); font-size: .72rem; }
.sound-chip svg { width: 15px; }

.scene { position: relative; width: min(100%, var(--max)); margin: 0 auto; padding-right: 1.35rem; padding-left: 1.35rem; }
.envelope-scene { display: grid; min-height: min(850px, 100svh); align-items: center; justify-items: center; padding-top: 4rem; padding-bottom: 6rem; text-align: center; }
.section-frame { position: absolute; top: 2rem; left: 50%; color: var(--muted); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; transform: translateX(-50%); white-space: nowrap; }
.section-frame::before, .section-frame::after { position: absolute; top: 50%; width: 60px; height: 1px; background: var(--line); content: ""; }
.section-frame::before { right: calc(100% + 14px); }.section-frame::after { left: calc(100% + 14px); }
.envelope-copy { max-width: 520px; margin-bottom: .7rem; }
.envelope-copy h2, .section-heading h2, .gallery-intro h2, .scratch-copy h2, .secret-card h2, .voice-copy h2, .qr-copy h2, .final-card h2 { margin: 0; font-size: clamp(2.45rem, 7vw, 4.7rem); line-height: .98; }
.envelope-copy > p:last-child { width: min(100%, 380px); margin: 1.25rem auto 0; color: var(--plum-soft); font-size: .93rem; line-height: 1.7; }

.envelope-wrap { position: relative; width: min(76vw, 348px); min-height: 300px; padding: 0; border: 0; background: transparent; color: var(--plum); perspective: 1000px; }
.envelope { position: absolute; bottom: 23px; left: 50%; width: 100%; aspect-ratio: 1.43; transform: translateX(-50%); transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2,.72,.25,1); }
.envelope-wrap:hover .envelope { transform: translateX(-50%) translateY(-5px) rotateX(3deg); }
.envelope-shadow { position: absolute; bottom: 0; left: 10%; width: 80%; height: 32px; border-radius: 50%; background: rgba(93, 63, 85, .18); filter: blur(14px); transition: .5s ease; }
.envelope-wrap:hover .envelope-shadow { transform: scale(.91); opacity: .68; }
.envelope-back, .envelope-front, .envelope-flap { position: absolute; inset: 0; overflow: hidden; border-radius: 5px 5px 10px 10px; }
.envelope-back { background: linear-gradient(138deg, #e9bdc4, #d69da9); box-shadow: 0 20px 31px rgba(105, 64, 86, .22); }
.envelope-front { z-index: 4; top: 21%; height: 79%; background: linear-gradient(145deg, transparent 49%, rgba(255,255,255,.16) 49.4%, rgba(255,255,255,.16) 50.2%, transparent 50.7%), linear-gradient(215deg, transparent 49%, rgba(255,255,255,.17) 49.4%, rgba(255,255,255,.17) 50.2%, transparent 50.7%), linear-gradient(135deg, #e2abb5, #d495a2); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); }
.envelope-flap { z-index: 5; bottom: auto; height: 70%; transform-origin: top center; background: linear-gradient(155deg, #efc6cb, #dc9faa); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .72s cubic-bezier(.2,.75,.2,1), z-index 0s .42s; backface-visibility: hidden; }
.letter { position: absolute; z-index: 2; bottom: 6%; left: 11%; display: flex; width: 78%; height: 88%; flex-direction: column; align-items: center; gap: 9%; padding-top: 16%; border-radius: 3px; background: #fffdf9; box-shadow: 0 4px 8px rgba(91,59,72,.12); transform: translateY(0); transition: transform .85s .25s cubic-bezier(.28,.82,.31,1); }
.letter::before { position: absolute; inset: 7% 9%; border: 1px solid rgba(190,126,121,.18); content: ""; }
.letter__line { position: relative; z-index: 1; display: block; width: 46%; height: 3px; border-radius: 50px; background: #f2d6d6; }.letter__line--long { width: 61%; }.letter__heart { position: relative; z-index: 1; color: var(--rose); font-size: 1.2rem; }
.wax-seal { position: absolute; z-index: 6; bottom: 11%; left: 50%; display: grid; width: 48px; height: 48px; place-items: center; border: 3px solid rgba(255,255,255,.18); border-radius: 50%; background: radial-gradient(circle at 37% 30%, #dca2a5, #af6671); box-shadow: 0 3px 6px rgba(78,45,54,.25); color: #fff4ee; font-family: var(--serif); font-size: 1.2rem; transform: translateX(-50%); transition: opacity .25s .2s; }
.envelope-instruction { position: absolute; right: 0; bottom: -22px; left: 0; color: var(--rose); font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.envelope-wrap.is-open .envelope { transform: translateX(-50%) translateY(6px); }
.envelope-wrap.is-open .envelope-flap { z-index: 1; transform: rotateX(-178deg); }
.envelope-wrap.is-open .letter { z-index: 3; transform: translateY(-83%); }
.envelope-wrap.is-open .wax-seal { opacity: 0; }.envelope-wrap.is-open .envelope-instruction { opacity: 0; }
.envelope-opened-message { position: absolute; bottom: 1.8rem; left: 0; width: 100%; margin: 0; color: var(--rose); font-family: var(--serif); font-size: 1.05rem; opacity: 0; transition: opacity .4s ease; }.envelope-opened-message.is-visible { opacity: 1; }

.welcome { display: grid; min-height: 740px; place-items: center; padding-top: 7rem; padding-bottom: 7rem; }
.welcome::before { position: absolute; z-index: 0; width: min(88vw, 720px); height: min(88vw, 720px); border-radius: 50%; background: radial-gradient(circle, rgba(237,218,233,.87), rgba(255,250,246,0) 69%); content: ""; }
.welcome-card { position: relative; z-index: 1; width: min(100%, 730px); padding: clamp(2.4rem, 8vw, 5.5rem) clamp(1.4rem, 8vw, 6.5rem); text-align: center; }
.glass-card { border: 1px solid rgba(255,255,255,.75); background: linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.36)); box-shadow: var(--shadow); backdrop-filter: blur(15px); }
.welcome-card h2 { margin: 0; font-size: clamp(3.45rem, 12vw, 7rem); line-height: .95; }.welcome-card h2 span { color: var(--rose); font-style: italic; }
.soft-rule { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 1.55rem 0; color: var(--rose); }.soft-rule span { width: 48px; height: 1px; background: rgba(190,126,121,.35); }.soft-rule i { font-size: .82rem; font-style: normal; }
.large-copy { max-width: 540px; margin: 0 auto; font-family: var(--serif); font-size: clamp(1.34rem, 3.4vw, 2rem); line-height: 1.28; }.quiet-copy { max-width: 420px; margin: 1.2rem auto 0; color: var(--plum-soft); font-size: .9rem; line-height: 1.7; }
.tiny-note { position: absolute; right: 7%; bottom: 9%; color: var(--rose); font-family: var(--serif); font-size: .95rem; font-style: italic; transform: rotate(-8deg); }.tiny-note span { display: inline-block; margin-left: .3rem; }
.flourish { position: absolute; color: var(--lavender-deep); font-size: 2rem; }.flourish--left { top: 17%; left: 7%; }

.compliments { padding-top: 7rem; padding-bottom: 8rem; }.section-heading { max-width: 730px; }.section-heading h2 { font-size: clamp(2.65rem, 8vw, 5.45rem); }.compliment-layout { display: grid; grid-template-columns: 1fr; gap: 1.35rem; max-width: 920px; margin: 3.2rem auto 0; }
.compliment-count { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .1em; }.compliment-count span:first-child { color: var(--rose); font-size: 1rem; }.compliment-count i { width: 34px; height: 1px; background: var(--rose-light); }
.compliment-card { position: relative; display: grid; min-height: 260px; place-items: center; overflow: hidden; padding: 3.4rem 2.3rem 2.8rem; border-radius: 3px 42px 3px 42px; text-align: center; transition: transform .35s ease, opacity .25s ease; }.compliment-card.is-switching { transform: translateY(5px) rotate(.5deg); opacity: .15; }.compliment-card::after { position: absolute; right: -11%; bottom: -42%; width: 48%; aspect-ratio: 1; border-radius: 50%; background: rgba(222,205,242,.34); content: ""; }
.quote-mark { position: absolute; top: 1rem; left: 1.45rem; color: rgba(190,126,121,.34); font-family: var(--serif); font-size: 5rem; line-height: 1; }.compliment-card p { position: relative; z-index: 1; max-width: 650px; margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 5vw, 2.7rem); line-height: 1.17; }.card-sparkle { position: absolute; color: var(--rose-light); }.card-sparkle--one { top: 17%; right: 13%; font-size: 1.25rem; }.card-sparkle--two { bottom: 13%; left: 12%; font-size: .9rem; }
.compliment-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }.progress-dots { display: flex; gap: .37rem; }.progress-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(190,126,121,.25); transition: .3s ease; }.progress-dots button.is-active { width: 21px; border-radius: 8px; background: var(--rose); }

.gallery { padding-top: 5rem; padding-bottom: 8rem; }.gallery-intro { max-width: 570px; margin-left: auto; text-align: right; }.gallery-intro h2 { font-size: clamp(2.55rem, 7vw, 5rem); }.gallery-intro > p:last-child { margin: 1.2rem 0 0 auto; color: var(--plum-soft); font-size: .92rem; line-height: 1.72; }.gallery-intro .eyebrow { justify-content: flex-end; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem; margin-top: 3.1rem; }.polaroid { width: 100%; padding: .52rem .52rem 1.05rem; border: 1px solid rgba(237,221,215,.94); border-radius: 3px; background: #fffefa; box-shadow: 0 16px 30px rgba(99,64,83,.13); color: var(--ink); text-align: left; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }.polaroid:nth-child(1) { grid-column: 1 / -1; transform: rotate(-2.5deg) translateY(8px); }.polaroid:nth-child(2) { transform: rotate(3deg); }.polaroid:nth-child(3) { transform: rotate(3.2deg) translateY(-8px); }.polaroid:nth-child(4) { transform: rotate(-2.5deg) translateY(7px); }.polaroid:nth-child(5) { transform: rotate(-1deg) translateY(5px); }.polaroid:nth-child(6) { transform: rotate(2deg) translateY(10px); }.polaroid:hover, .polaroid:focus-visible { z-index: 1; outline: none; box-shadow: 0 24px 39px rgba(94,61,79,.22); transform: rotate(0) translateY(-7px) scale(1.025); }.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: linear-gradient(145deg, #f9e9ed, #eee9fb); }.polaroid figcaption { min-height: 3.2em; padding: .75rem .28rem 0; color: var(--plum-soft); font-family: var(--serif); font-size: .92rem; font-style: italic; line-height: 1.18; }
.gallery-caption { margin: 3rem 0 0; color: var(--rose); font-family: var(--serif); font-size: 1.08rem; font-style: italic; text-align: center; }.gallery-caption span { display: inline-block; margin-left: .3rem; }

.scratch-section { padding-top: 7rem; padding-bottom: 7rem; }.scratch-layout { display: grid; align-items: center; gap: 2.5rem; }.scratch-copy h2 { font-size: clamp(2.65rem, 8vw, 5rem); }.scratch-copy > p:last-child { max-width: 410px; margin: 1.3rem 0 0; color: var(--plum-soft); line-height: 1.72; }.scratch-wrap { min-width: 0; }.scratch-card { position: relative; min-height: 300px; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, #e8d3e2, #e1d4f1); box-shadow: 0 22px 45px rgba(96,65,90,.14); }.scratch-card::before { position: absolute; inset: 13px; border: 1px dashed rgba(106,75,103,.24); border-radius: 9px; content: ""; pointer-events: none; }.scratch-reveal { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; overflow: hidden; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.72), transparent 22%), linear-gradient(135deg, #fffaf5, #f5e7ed 60%, #e9e2f8); text-align: center; }.scratch-reveal p { position: relative; z-index: 1; max-width: 420px; margin: 0; font-family: var(--serif); font-size: clamp(1.55rem, 4vw, 2.2rem); line-height: 1.18; }.scratch-reveal small { position: absolute; bottom: 1.5rem; color: var(--plum-soft); font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }.reveal-sparkle { position: absolute; top: 17%; right: 14%; color: var(--rose); font-size: 1.5rem; }.scratch-card canvas { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }.scratch-label { position: absolute; z-index: 3; top: 50%; left: 50%; display: flex; align-items: center; gap: .45rem; color: var(--plum); font-family: var(--serif); font-size: 1.16rem; font-style: italic; pointer-events: none; transform: translate(-50%,-50%) rotate(-7deg); transition: opacity .3s ease; }.scratch-label i { color: var(--rose); font-size: .85rem; }.scratch-card.is-revealed canvas { pointer-events: none; opacity: 0; transition: opacity .65s ease; }.scratch-card.is-revealed .scratch-label { opacity: 0; }.scratch-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .85rem; color: var(--muted); font-size: .75rem; }.scratch-footer button { padding: 0; border: 0; background: none; color: var(--rose); font-size: .75rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.secret-section { padding-top: 5rem; padding-bottom: 7rem; }.secret-card { width: min(100%, 650px); margin: 0 auto; padding: clamp(2.3rem, 7vw, 4.8rem) clamp(1.35rem, 6vw, 4.5rem); border-radius: 36px 4px 36px 4px; text-align: center; }.secret-lock { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 1.2rem; border-radius: 50%; background: linear-gradient(135deg, #f5dce3, #e0d8f3); color: var(--rose); }.secret-lock svg, .voice-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }.secret-card h2 { font-size: clamp(2.45rem, 7vw, 4.35rem); }.secret-description { max-width: 385px; margin: 1.25rem auto 1.5rem; color: var(--plum-soft); font-size: .9rem; line-height: 1.67; }.secret-form { display: flex; width: min(100%, 410px); min-height: 54px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(164,117,138,.23); border-radius: 100px; background: rgba(255,255,255,.68); }.secret-form input { min-width: 0; flex: 1; padding: .8rem 0 .8rem 1.25rem; border: 0; outline: 0; background: transparent; color: var(--plum); }.secret-form input::placeholder, .qr-form input::placeholder { color: #aa9aa8; }.icon-button { display: grid; width: 46px; place-items: center; margin: 3px; border: 0; border-radius: 50%; background: var(--plum); color: #fff; transition: .2s ease; }.icon-button:hover { background: var(--rose); transform: scale(1.06); }.form-message { min-height: 1.1rem; margin: .8rem 0 0; color: var(--muted); font-size: .73rem; line-height: 1.45; }.form-message.is-error { color: #b45467; }.form-message.is-success { color: #7c6782; }.secret-card.is-error { animation: shake .38s ease; }.secret-reveal { margin-top: 1.45rem; padding: 1.35rem; border-radius: 12px; background: rgba(234,214,231,.45); }.secret-reveal span { color: var(--rose); }.secret-reveal p { margin: .55rem auto 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.33; }

.voice-section { padding-top: 2rem; padding-bottom: 7rem; }.voice-card { position: relative; display: grid; overflow: hidden; padding: clamp(2rem, 8vw, 4.5rem); border: 1px solid rgba(219,202,237,.7); border-radius: 6px 45px 6px 45px; background: linear-gradient(120deg, #eee8fb, #f8e9ed); }.voice-card::after { position: absolute; right: -11%; bottom: -60%; width: 45%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.32); content: ""; }.voice-copy { position: relative; z-index: 1; max-width: 520px; }.voice-copy h2 { font-size: clamp(2.3rem, 6vw, 4.5rem); }.voice-copy > p:last-child { margin: 1.15rem 0 0; color: var(--plum-soft); font-size: .91rem; line-height: 1.7; }.voice-copy audio { width: min(100%, 360px); margin-top: 1.25rem; }.voice-waves { position: absolute; top: 1.3rem; right: 1.2rem; display: flex; align-items: center; gap: 4px; height: 60px; opacity: .45; }.voice-waves i { width: 3px; height: var(--h, 20px); border-radius: 8px; background: var(--rose); }.voice-waves i:nth-child(2n) { --h: 43px; }.voice-waves i:nth-child(3n) { --h: 31px; }.voice-icon { position: absolute; z-index: 1; right: 9%; bottom: 13%; display: grid; width: 65px; height: 65px; place-items: center; border: 1px solid rgba(190,126,121,.19); border-radius: 50%; color: var(--rose); }

.qr-section { display: grid; align-items: center; gap: 2.5rem; padding-top: 4rem; padding-bottom: 8rem; }.qr-copy h2 { font-size: clamp(2.45rem, 7vw, 4.8rem); }.qr-copy > p:last-of-type { max-width: 435px; margin: 1.2rem 0 0; color: var(--plum-soft); font-size: .9rem; line-height: 1.7; }.qr-form { display: flex; gap: .6rem; margin-top: 1.65rem; }.qr-form input { min-width: 0; flex: 1; padding: .7rem 1rem; border: 1px solid rgba(164,117,138,.23); border-radius: 100px; outline: 0; background: rgba(255,255,255,.62); color: var(--plum); }.qr-form input:focus, .secret-form:focus-within { border-color: rgba(190,126,121,.58); box-shadow: 0 0 0 4px rgba(190,126,121,.09); }.qr-output { display: grid; min-height: 300px; place-items: center; padding: 1.6rem; border-radius: 19px 4px 19px 4px; }.qr-placeholder { position: relative; display: grid; width: 162px; aspect-ratio: 1; grid-template-columns: repeat(5,1fr); gap: 5px; padding: 17px; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(104,75,106,.21) 10px 14px), repeating-linear-gradient(0deg, transparent 0 10px, rgba(104,75,106,.21) 10px 14px); opacity: .4; }.qr-placeholder span { width: 35px; aspect-ratio: 1; border: 6px solid var(--plum); }.qr-placeholder span:nth-child(1) { grid-area: 1/1; }.qr-placeholder span:nth-child(2) { grid-area: 1/5; }.qr-placeholder span:nth-child(3) { grid-area: 5/1; }.qr-placeholder i { position: absolute; top: 50%; left: 50%; color: var(--rose); font-size: 1.2rem; transform: translate(-50%,-50%); }.qr-output #qr-code { display: none; max-width: 180px; background: #fff; padding: 8px; }.qr-output #qr-code img, .qr-output #qr-code canvas { width: 164px !important; height: 164px !important; }.qr-output.has-code .qr-placeholder { display: none; }.qr-output.has-code #qr-code { display: block; }.text-button { border: 0; background: transparent; color: var(--rose); font-size: .76rem; font-weight: 700; letter-spacing: .02em; }.text-button span { display: inline-block; margin-left: .2rem; transition: transform .2s ease; }.text-button:hover span { transform: translateY(2px); }.text-button:disabled { color: var(--muted); opacity: .55; }

.final-scene { isolation: isolate; display: grid; min-height: 88svh; place-items: center; overflow: hidden; padding-top: 8rem; padding-bottom: 8rem; text-align: center; }.final-scene::before { position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 26% 32%, rgba(240,207,219,.8), transparent 28%), radial-gradient(circle at 80% 65%, rgba(215,206,242,.84), transparent 30%), linear-gradient(150deg, #fdf8f3, #f8eef3 57%, #f2effb); content: ""; }.final-card { max-width: 850px; }.final-card h2 { margin: .6rem 0 0; font-size: clamp(2.65rem, 7vw, 5.3rem); line-height: 1.05; }.final-card > p { margin: 1.35rem 0 0; color: var(--plum-soft); font-size: .95rem; }.final-rule { margin: 2rem 0 .9rem; color: var(--rose); font-size: 1.25rem; }.final-card h3 { margin: 0; color: var(--plum); font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.35rem); }.final-card h3 span { color: var(--rose); font-style: italic; }.final-surprise-button { margin-top: 1.75rem; }.final-surprise-message { display: grid; max-width: 470px; margin: 1.1rem auto 0; padding: 1rem 1.25rem; border: 1px solid rgba(190,126,121,.19); border-radius: 14px; background: rgba(255,255,255,.49); box-shadow: 0 14px 32px rgba(108,68,92,.1); color: var(--plum); opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .45s ease, transform .45s cubic-bezier(.22,.85,.32,1); }.final-surprise-message[hidden] { display: none; }.final-surprise-message.is-visible { opacity: 1; transform: translateY(0) scale(1); }.final-surprise-message span { color: var(--rose); font-size: 1.35rem; }.final-surprise-message p { margin: .35rem 0 0; font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; }.restart-button { margin-top: 1.2rem; }.restart-button:hover span { transform: rotate(-40deg); }

.music-player { position: fixed; z-index: 30; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); width: min(calc(100vw - 2rem), 330px); padding: .9rem .95rem; border: 1px solid rgba(255,255,255,.82); border-radius: 18px; background: rgba(255,252,249,.85); box-shadow: 0 15px 45px rgba(83,51,77,.18); backdrop-filter: blur(18px); animation: musicEnter .45s cubic-bezier(.22,.85,.32,1) both; }.music-player__header { display: grid; grid-template-columns: 34px 1fr 26px; align-items: center; gap: .65rem; }.album-orb { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 33%, #f9dce3, #cfa9cd 58%, #95769d); color: #fff; font-size: .6rem; }.track-meta { min-width: 0; }.track-meta strong, .track-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.track-meta strong { color: var(--plum); font-size: .74rem; }.track-meta span { margin-top: .08rem; color: var(--muted); font-size: .63rem; }.close-player { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; }.close-player:hover { background: rgba(190,126,121,.11); color: var(--plum); }.visualizer { display: flex; align-items: center; justify-content: center; gap: 3px; height: 17px; margin: .45rem 0 .2rem; }.visualizer i { width: 3px; height: 4px; border-radius: 4px; background: var(--rose); }.music-player.is-playing .visualizer i { animation: equalize .75s ease-in-out infinite alternate; }.music-player.is-playing .visualizer i:nth-child(2) { animation-delay: .2s; }.music-player.is-playing .visualizer i:nth-child(3) { animation-delay: .42s; }.music-player.is-playing .visualizer i:nth-child(4) { animation-delay: .1s; }.music-player.is-playing .visualizer i:nth-child(5) { animation-delay: .3s; }.music-timeline { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: .4rem; color: var(--muted); font-size: .58rem; }.music-timeline input { width: 100%; }.music-controls { display: flex; align-items: center; justify-content: center; margin-top: .38rem; }.music-play { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 50%; background: var(--plum); color: #fff; }.music-play:disabled { background: #b9aeb9; }.music-play svg { width: 15px; }.volume-control { position: absolute; right: 2.5rem; bottom: .95rem; display: flex; align-items: center; gap: .3rem; color: var(--muted); }.volume-control svg { width: 13px; }.volume-control input { width: 52px; }.music-empty { margin: .42rem 0 0; color: var(--muted); font-size: .57rem; line-height: 1.3; text-align: center; }.music-empty code { color: var(--rose); }.music-player.has-track .music-empty { display: none; }
input[type="range"] { accent-color: var(--rose); }

.lightbox { width: min(95vw, 920px); max-width: none; max-height: 90svh; padding: 1rem; border: 0; border-radius: 13px; background: rgba(57,42,60,.94); box-shadow: 0 30px 80px rgba(32,22,32,.38); color: #fff; }.lightbox::backdrop { background: rgba(55,36,52,.62); backdrop-filter: blur(7px); }.lightbox figure { display: grid; max-height: calc(90svh - 2rem); place-items: center; margin: 0; }.lightbox img { max-height: calc(90svh - 72px); object-fit: contain; }.lightbox figcaption { max-width: 78%; margin-top: .75rem; color: #f5dce6; font-family: var(--serif); font-size: 1rem; font-style: italic; text-align: center; }.lightbox-close, .lightbox-arrow { position: absolute; z-index: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }.lightbox-close { top: .6rem; right: .6rem; width: 36px; height: 36px; font-size: 1.5rem; }.lightbox-arrow { top: 50%; width: 40px; height: 40px; font-size: 1.4rem; transform: translateY(-50%); }.lightbox-arrow--prev { left: .7rem; }.lightbox-arrow--next { right: .7rem; }.lightbox-close:hover, .lightbox-arrow:hover { background: rgba(255,255,255,.25); }

.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,.85,.32,1), transform .7s cubic-bezier(.22,.85,.32,1); }.reveal-on-scroll.is-revealed { opacity: 1; transform: translateY(0); }

@keyframes introRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) rotate(0); } to { transform: translate3d(var(--drift-x, 15px), var(--drift-y, -24px), 0) rotate(var(--rotate, 20deg)); } }
@keyframes breathe { 50% { transform: scale(1.045); opacity: .56; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .4; transform: scale(.8); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes equalize { from { height: 4px; } to { height: 16px; } }
@keyframes musicEnter { from { opacity: 0; transform: translateY(18px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 640px) {
  .story-header { padding-right: 2.2rem; padding-left: 2.2rem; }.scene { padding-right: 2.2rem; padding-left: 2.2rem; }.envelope-scene { padding-top: 5rem; }.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.45rem; }.polaroid:nth-child(1) { grid-column: span 2; }.scratch-card { min-height: 350px; }.voice-card { min-height: 310px; }.qr-form { max-width: 560px; }.qr-output { min-height: 330px; }
}
@media (min-width: 850px) {
  .story-header { height: 78px; }.envelope-scene { grid-template-columns: 1fr 1fr; column-gap: 5rem; min-height: 770px; text-align: left; }.envelope-copy { justify-self: end; margin-bottom: 0; }.envelope-copy > p:last-child { margin-right: 0; margin-left: 0; }.envelope-wrap { justify-self: start; width: min(30vw, 380px); }.envelope-opened-message { bottom: 4rem; }.welcome { min-height: 820px; }.compliment-layout { grid-template-columns: 90px 1fr; align-items: end; }.compliment-count { padding-bottom: 1rem; }.compliment-actions { grid-column: 2; }.gallery { padding-top: 7rem; }.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.5rem; }.polaroid:nth-child(1) { grid-column: auto; margin-top: 26px; }.polaroid:nth-child(2) { margin-top: 0; }.polaroid:nth-child(3) { margin-top: 35px; }.polaroid:nth-child(4) { margin-top: 2px; }.polaroid:nth-child(5) { margin-top: 30px; }.polaroid:nth-child(6) { margin-top: 5px; }.scratch-layout { grid-template-columns: .78fr 1.22fr; gap: 4.5rem; }.scratch-section { padding-top: 9rem; padding-bottom: 9rem; }.voice-card { grid-template-columns: 1fr auto; align-items: center; }.voice-icon { position: relative; right: auto; bottom: auto; width: 92px; height: 92px; margin-right: 2rem; }.qr-section { grid-template-columns: 1fr .76fr; gap: 6rem; }.qr-output { min-height: 370px; }.final-scene { min-height: 92svh; }
}
@media (min-width: 1100px) { .envelope-copy { margin-right: 1rem; }.gallery-grid { margin-top: 4rem; }.section-heading { margin-left: 6.5%; }.compliment-layout { margin-top: 4rem; }.scratch-layout { padding-right: 5%; padding-left: 5%; } }
@media (max-width: 399px) { .story-header > p { display: none; }.story-header { grid-template-columns: 44px 1fr; }.sound-chip { grid-column: 2; }.qr-form { flex-direction: column; }.qr-form .primary-button { width: 100%; }.lightbox-arrow { top: auto; bottom: .9rem; transform: none; }.lightbox-arrow--prev { left: calc(50% - 48px); }.lightbox-arrow--next { right: calc(50% - 48px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.ambient__particle, .orbit-one, .orbit-two, .tap-hint__dot, .music-player.is-playing .visualizer i { animation: none !important; }.reveal-on-scroll, .final-surprise-message { transition-duration: .01ms; }.envelope, .envelope-flap, .letter, .wax-seal { transition-duration: .01ms !important; }.primary-button, .secondary-button, .polaroid { transition-duration: .01ms; }.envelope-wrap:hover .envelope, .envelope-wrap.is-open .envelope { transform: translateX(-50%); }.envelope-wrap.is-open .letter { transform: translateY(-58%); }.noise { opacity: .015; } }
