:root {
  --ink: #2b1723;
  --muted: #785f69;
  --cream: #fff8ea;
  --paper: #fffdf8;
  --rose: #d92962;
  --rose-deep: #720e38;
  --rose-dark: #3f1027;
  --sun: #ffc94f;
  --sun-soft: #ffe6a3;
  --line: rgba(84, 36, 55, .14);
  --container: 1180px;
  --shadow-sm: 0 16px 38px rgba(83, 31, 51, .12);
  --shadow-lg: 0 34px 90px rgba(69, 19, 39, .24);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: radial-gradient(circle at 8% 4%, rgba(255, 201, 79, .22), transparent 23rem), radial-gradient(circle at 96% 18%, rgba(217, 41, 98, .10), transparent 30rem), var(--cream);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body:not(.is-open) { overflow: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .12; background-image: radial-gradient(rgba(76, 27, 46, .22) .5px, transparent .7px); background-size: 6px 6px; mix-blend-mode: multiply; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { color: var(--rose-dark); background: var(--sun-soft); }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 14px; color: white; background: var(--rose-deep); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.progress { position: fixed; inset: 0 auto auto 0; z-index: 130; width: 100%; height: 4px; background: linear-gradient(90deg, var(--sun), #ff7696); transform: scaleX(0); transform-origin: left; }

.intro { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; overflow: auto; background: linear-gradient(135deg, rgba(58, 10, 31, .82), rgba(126, 15, 59, .54)), url("assets/veronika/photo_sunset_cherries.jpg") center 34% / cover no-repeat; transition: opacity 650ms var(--ease), visibility 650ms; }
.intro::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 22%, rgba(255, 218, 126, .23), transparent 26rem); pointer-events: none; }
body.is-open .intro { opacity: 0; visibility: hidden; pointer-events: none; }
.invitation { position: relative; z-index: 1; width: min(100%, 500px); padding: clamp(34px, 7vw, 62px); overflow: hidden; color: var(--ink); background: rgba(255, 253, 248, .94); border: 1px solid rgba(255, 255, 255, .78); border-radius: 4px 42px 4px 42px; box-shadow: 0 36px 110px rgba(31, 2, 14, .42), inset 0 0 0 8px rgba(217, 41, 98, .035); text-align: center; backdrop-filter: blur(18px); animation: invitation-in 800ms var(--ease) both; }
.invitation::before { content: ""; position: absolute; top: -80px; right: -65px; width: 180px; aspect-ratio: 1; border: 26px solid rgba(255, 201, 79, .18); border-radius: 50%; }
.invitation-mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 24px; color: white; background: var(--rose); border: 5px solid #ffd972; border-radius: 50%; font-family: "Playfair Display", serif; font-size: 2rem; font-style: italic; box-shadow: 0 12px 30px rgba(217, 41, 98, .25); }
.eyebrow, .section-kicker, .hero-date { margin: 0 0 15px; color: var(--rose); font-size: .7rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.invitation h1 { margin: 0; font-family: "Playfair Display", serif; font-size: clamp(2.25rem, 7vw, 4rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.invitation-copy { max-width: 38ch; margin: 22px auto 28px; color: var(--muted); font-size: .94rem; text-wrap: pretty; }
.intro-actions { display: grid; gap: 8px; width: min(100%, 340px); margin-inline: auto; }
.primary-button, .cake-button { min-height: 54px; padding: 0 24px; color: white; background: var(--rose); border: 0; border-radius: 14px; box-shadow: 0 14px 28px rgba(217, 41, 98, .22); font-weight: 800; cursor: pointer; transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms ease; }
.secondary-button { min-height: 46px; color: var(--muted); background: transparent; border: 0; font-size: .82rem; font-weight: 700; cursor: pointer; }
.primary-button:active, .secondary-button:active, .cake-button:active { transform: translateY(1px) scale(.985); }
.intro-note { margin: 14px 0 0; color: var(--muted); font-size: .68rem; }

.sound-control { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 16px; z-index: 80; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 15px; color: white; background: rgba(55, 11, 29, .66); border: 1px solid rgba(255, 255, 255, .24); border-radius: 13px; box-shadow: 0 10px 28px rgba(50, 5, 24, .16); opacity: 0; pointer-events: none; transform: translateY(-10px); backdrop-filter: blur(16px); transition: opacity 300ms ease, transform 300ms var(--ease), background-color 180ms ease; cursor: pointer; }
body.is-open .sound-control { opacity: 1; pointer-events: auto; transform: translateY(0); }
.sound-dot { width: 8px; height: 8px; background: #ffd66a; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 214, 106, .15); }
.sound-control[aria-pressed="true"] .sound-dot { animation: pulse 1.3s ease-in-out infinite; }
.sound-control span:last-child { font-size: .72rem; font-weight: 800; }

main { position: relative; isolation: isolate; }
.section { position: relative; padding: clamp(70px, 8vw, 116px) 24px; }
.container { width: min(100%, var(--container)); margin-inline: auto; }
.section-title { max-width: 13ch; margin: 0; font-family: "Playfair Display", serif; font-size: clamp(2.7rem, 6.6vw, 6.3rem); font-weight: 700; line-height: .93; letter-spacing: -.055em; text-wrap: balance; }
.section-lede { max-width: 56ch; margin: 24px 0 0; color: var(--muted); font-size: clamp(.95rem, 1.4vw, 1.12rem); line-height: 1.7; text-wrap: pretty; }

.hero { display: grid; align-items: end; min-height: 100dvh; padding: clamp(108px, 15vw, 160px) 24px 9vh; overflow: hidden; color: white; background: linear-gradient(90deg, rgba(46, 7, 25, .88) 0%, rgba(82, 12, 43, .57) 42%, rgba(82, 12, 43, .06) 72%), linear-gradient(0deg, rgba(42, 7, 23, .68), transparent 47%), url("assets/veronika/photo_studio.jpg") 58% 25% / cover no-repeat; }
.hero::before { content: "12"; position: absolute; top: -9vw; right: -1vw; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); font-family: "Playfair Display", serif; font-size: clamp(16rem, 44vw, 44rem); font-weight: 700; line-height: 1; letter-spacing: -.1em; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto -8vw -17vw auto; width: min(48vw, 650px); aspect-ratio: 1; border: 70px solid rgba(255, 201, 79, .22); border-radius: 50%; pointer-events: none; }
.hero-content { position: relative; z-index: 2; width: min(100%, var(--container)); margin-inline: auto; }
.hero-date { color: #ffe29a; }
.hero h2 { max-width: 10ch; margin: 0; font-family: "Playfair Display", serif; font-size: clamp(4.4rem, 10.5vw, 10rem); font-weight: 700; line-height: .77; letter-spacing: -.075em; text-wrap: balance; }
.hero h2 em { display: block; margin-top: .1em; color: var(--sun); font-family: "Caveat", cursive; font-size: .68em; font-weight: 700; line-height: .84; letter-spacing: -.045em; }
.hero-copy { max-width: 44ch; margin: 30px 0 0; color: rgba(255, 255, 255, .82); font-size: clamp(.95rem, 1.4vw, 1.12rem); }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; color: white; font-size: .78rem; font-weight: 800; text-decoration: none; }
.hero-scroll span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 50%; transition: transform 180ms var(--ease), background-color 180ms ease; }
.chapter-mark { position: absolute; right: max(24px, calc((100vw - var(--container))/2)); bottom: 8vh; z-index: 2; display: grid; justify-items: end; }
.chapter-number { color: var(--sun); font-family: "Playfair Display", serif; font-size: clamp(5rem, 11vw, 10rem); line-height: .72; }
.chapter-label { margin-top: 14px; font-size: .69rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.celebration-strip { position: relative; z-index: 3; overflow: hidden; color: var(--rose-dark); background: var(--sun); border-block: 1px solid rgba(75, 24, 43, .15); transform: rotate(-1deg) scale(1.02); }
.celebration-strip div { display: flex; width: max-content; align-items: center; gap: 26px; padding: 12px 0; animation: ticker 22s linear infinite; }
.celebration-strip span { font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.celebration-strip b { color: var(--rose); font-size: 1.1rem; }

.portrait-story { overflow: hidden; background: var(--cream); }
.portrait-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(46px, 8vw, 110px); align-items: center; }
.portrait-stack { position: relative; min-height: clamp(500px, 58vw, 720px); }
.portrait-main, .portrait-detail { position: absolute; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-lg); }
.portrait-main { inset: 0 13% 7% 0; padding: 10px 10px 52px; transform: rotate(-2.4deg); }
.portrait-main img, .portrait-detail img { width: 100%; height: 100%; object-fit: cover; }
.portrait-main::after { content: "смілива · ніжна · справжня"; position: absolute; right: 18px; bottom: 13px; left: 18px; color: var(--rose); font-family: "Caveat", cursive; font-size: 1.55rem; text-align: center; }
.portrait-detail { right: -2%; bottom: -2%; width: 44%; aspect-ratio: .82; padding: 8px; border-radius: 2px; transform: rotate(5.5deg); }
.portrait-stack::before { content: ""; position: absolute; top: 4%; left: -7%; width: 52%; aspect-ratio: 1; background: var(--sun); border-radius: 50%; opacity: .5; }
.tape { position: absolute; top: -10px; left: 50%; z-index: 2; width: 96px; height: 27px; background: rgba(255, 218, 133, .74); transform: translateX(-50%) rotate(-2deg); }
.story-copy blockquote { position: relative; max-width: 37ch; margin: 36px 0 0; padding: 24px 0 0 30px; color: var(--rose-deep); border-top: 1px solid var(--line); font-family: "Playfair Display", serif; font-size: clamp(1.25rem, 2.5vw, 2rem); font-style: italic; line-height: 1.35; }
.story-copy blockquote::before { content: "“"; position: absolute; left: 0; color: var(--sun); font-size: 3rem; line-height: .8; }

.reasons { overflow: hidden; color: white; background: linear-gradient(145deg, var(--rose-dark), var(--rose-deep) 62%, #901541); }
.reasons::before { content: "12"; position: absolute; top: -.28em; right: -.05em; color: rgba(255, 255, 255, .045); font-family: "Playfair Display", serif; font-size: clamp(20rem, 48vw, 47rem); font-weight: 700; line-height: 1; pointer-events: none; }
.reasons .section-kicker { color: var(--sun); }
.reasons .section-lede { color: rgba(255, 255, 255, .68); }
.reason-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(42px, 6vw, 70px); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .16); }
.reason { min-height: 210px; padding: 24px; background: rgba(67, 11, 34, .52); transition: background-color 180ms ease, transform 180ms var(--ease); }
.reason-number { display: block; margin-bottom: 34px; color: var(--sun); font-family: "Playfair Display", serif; font-size: 1rem; }
.reason strong { display: block; margin-bottom: 8px; font-family: "Playfair Display", serif; font-size: 1.38rem; line-height: 1.08; }
.reason p { margin: 0; color: rgba(255, 255, 255, .64); font-size: .82rem; line-height: 1.5; }

.memories { overflow: hidden; background: #f1e2d3; }
.memory-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: clamp(38px, 6vw, 66px); }
.memory-header .section-lede { max-width: 36ch; }
.film-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 29vw); gap: 18px; padding: 10px max(22px, calc((100vw - var(--container))/2)) 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--rose) transparent; }
.memory-card { position: relative; min-height: min(68vh, 590px); padding: 0; overflow: hidden; background: #d7c5b8; border: 0; border-radius: 6px 34px 6px 34px; box-shadow: var(--shadow-sm); scroll-snap-align: center; cursor: zoom-in; }
.memory-card:nth-child(even) { margin-top: 34px; }
.memory-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.memory-card::after { content: ""; position: absolute; inset: 46% 0 0; background: linear-gradient(transparent, rgba(47, 10, 27, .88)); pointer-events: none; }
.memory-caption { position: absolute; right: 22px; bottom: 22px; left: 22px; z-index: 2; color: white; text-align: left; }
.memory-caption span { display: block; margin-bottom: 6px; color: var(--sun-soft); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.memory-caption strong { font-family: "Playfair Display", serif; font-size: clamp(1.35rem, 2.3vw, 2.1rem); line-height: 1.06; }

.archive { overflow: hidden; background: var(--cream); }
.archive-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 46px; align-items: end; margin-bottom: 38px; }
.archive-intro .section-lede { margin: 0; }
.swipe-experience { width: min(100%, 510px); margin-inline: auto; }
.swipe-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.swipe-counter { color: var(--rose); font-variant-numeric: tabular-nums; }
.swipe-hint { display: flex; align-items: center; gap: 7px; }
.swipe-hint::before { content: "←"; }
.swipe-hint::after { content: "→"; }
.swipe-deck { position: relative; width: 100%; height: clamp(500px, 68vw, 630px); outline: none; touch-action: pan-y; }
.swipe-card { position: absolute; inset: 0; overflow: hidden; padding: 0; background: #d9c8ba; border: 0; border-radius: 18px 48px 18px 48px; box-shadow: 0 24px 60px rgba(69, 27, 43, .21); cursor: grab; touch-action: pan-y; user-select: none; will-change: transform, opacity; transform-origin: 50% 110%; }
.swipe-card:active { cursor: grabbing; }
.swipe-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe-card::after { content: none; }
.swipe-stamp { position: absolute; top: 30px; z-index: 5; padding: 7px 13px; color: white; background: rgba(76, 13, 38, .62); border: 2px solid currentColor; border-radius: 8px; font-size: .9rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; opacity: 0; pointer-events: none; backdrop-filter: blur(8px); }
.swipe-stamp-left { right: 24px; transform: rotate(9deg); }
.swipe-stamp-right { left: 24px; transform: rotate(-9deg); }
.swipe-end { position: absolute; inset: 0; display: grid; place-items: center; padding: 38px; color: white; background: linear-gradient(150deg, var(--rose-dark), var(--rose)); border-radius: 18px 48px 18px 48px; text-align: center; box-shadow: var(--shadow-lg); }
.swipe-end div { max-width: 30ch; }
.swipe-end strong { display: block; font-family: "Playfair Display", serif; font-size: clamp(2.2rem, 7vw, 4rem); line-height: .95; }
.swipe-end p { margin: 16px 0 24px; color: rgba(255, 255, 255, .72); }
.swipe-restart { min-height: 48px; padding: 0 22px; color: var(--rose-dark); background: var(--sun); border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; }
.swipe-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.swipe-action { display: grid; place-items: center; width: 74px; height: 74px; padding: 0; color: var(--rose-deep); background: rgba(255, 255, 255, .82); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 11px 27px rgba(68, 32, 45, .11); cursor: pointer; transition: transform 150ms var(--ease), background-color 180ms ease, opacity 180ms ease; }
.swipe-action span { font-size: 1.5rem; line-height: 1; }
.swipe-action small { font-size: .6rem; font-weight: 800; }
.swipe-undo { width: 54px; height: 54px; color: var(--muted); border-radius: 50%; }
.swipe-action:disabled { opacity: .3; cursor: not-allowed; }

.gift-section { overflow: hidden; color: white; background: radial-gradient(circle at 10% 18%, rgba(255, 201, 79, .2), transparent 24rem), linear-gradient(145deg, #3d0b25, #7f123e 62%, #4a0a28); }
.gift-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr); gap: clamp(46px, 8vw, 100px); align-items: center; }
.gift-section .section-kicker { color: var(--sun); }
.gift-section .section-lede { color: rgba(255, 255, 255, .68); }
.gift-progress { width: min(100%, 320px); height: 5px; margin-top: 30px; overflow: hidden; background: rgba(255, 255, 255, .14); border-radius: 99px; }
.gift-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--sun), #fff1c2); transform: scaleX(0); transform-origin: left; transition: transform 350ms var(--ease); }
.gift-progress-copy { margin: 9px 0 0; color: rgba(255, 255, 255, .58); font-size: .7rem; font-weight: 700; }
.gift-vault { position: relative; min-height: 430px; }
.gift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; height: 100%; }
.gift-card { position: relative; min-height: 125px; padding: 18px; color: white; background: rgba(255, 255, 255, .075); border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px 28px 8px 28px; text-align: left; cursor: pointer; backdrop-filter: blur(12px); transition: transform 180ms var(--ease), background-color 180ms ease, opacity 180ms ease; }
.gift-card:last-child { grid-column: 1 / -1; }
.gift-card-number { display: block; color: var(--sun); font-family: "Playfair Display", serif; font-size: 1.8rem; line-height: 1; }
.gift-card-label { position: absolute; right: 18px; bottom: 15px; left: 18px; color: rgba(255, 255, 255, .68); font-size: .7rem; font-weight: 700; }
.gift-card.is-opened { opacity: .48; }
.gift-card.is-opened::after { content: "✓"; position: absolute; top: 12px; right: 14px; color: var(--sun); font-size: 1.1rem; font-weight: 900; }
.gift-message { position: absolute; inset: 6%; z-index: 4; display: grid; align-content: center; padding: clamp(30px, 6vw, 58px); color: var(--ink); background: var(--paper); border: 1px solid rgba(255, 255, 255, .54); border-radius: 8px 36px 8px 36px; box-shadow: 0 28px 80px rgba(24, 3, 12, .35); opacity: 0; visibility: hidden; transform: translateY(18px) scale(.97); transition: opacity 240ms var(--ease), transform 320ms var(--ease), visibility 240ms; }
.gift-message.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.gift-message-number { color: var(--rose); font-size: .68rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.gift-message p { margin: 18px 0 0; font-family: "Playfair Display", serif; font-size: clamp(1.5rem, 3.6vw, 2.65rem); line-height: 1.16; text-wrap: balance; }
.gift-message-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 1.4rem; cursor: pointer; }

.cake-section { overflow: hidden; background: radial-gradient(circle at 90% 8%, rgba(255, 201, 79, .22), transparent 24rem), var(--cream); }
.cake-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr); gap: clamp(44px, 8vw, 100px); align-items: center; }
.wish-note { position: relative; margin-top: 30px; padding: 21px 21px 17px; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--sun); border-radius: 3px 24px 24px 3px; box-shadow: var(--shadow-sm); transform: rotate(-.5deg); }
.wish-note-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--rose); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.wish-note-top strong { display: grid; place-items: center; width: 36px; height: 36px; color: var(--rose-dark); background: var(--sun); border-radius: 50%; font-family: "Playfair Display", serif; font-size: 1rem; }
.wish-note label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.wish-note textarea { display: block; width: 100%; min-height: 84px; padding: 12px 0; color: var(--ink); background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; resize: vertical; line-height: 1.5; }
.wish-note small { display: block; margin-top: 10px; color: var(--muted); font-size: .65rem; }
.cake-stage { position: relative; display: grid; place-items: center; min-height: 610px; }
.cake-glow { position: absolute; width: 76%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 201, 79, .35), rgba(217, 41, 98, .08) 48%, transparent 70%); border-radius: 50%; filter: blur(12px); }
.wish-orbit { position: relative; width: min(86vw, 440px); aspect-ratio: 1; cursor: pointer; }
.wish-orbit-line { position: absolute; inset: 8%; border: 1px solid rgba(217, 41, 98, .2); border-radius: 50%; box-shadow: 0 0 0 13px rgba(255, 255, 255, .3), 0 22px 60px rgba(82, 38, 52, .14); }
.wish-portrait { position: absolute; inset: 20%; overflow: hidden; background: var(--paper); border: 9px solid var(--paper); border-radius: 50%; box-shadow: 0 20px 48px rgba(79, 33, 49, .2); }
.wish-portrait img { width: 100%; height: 100%; object-fit: cover; }
.wish-portrait span { position: absolute; right: 8%; bottom: 6%; display: grid; place-items: center; width: 62px; height: 62px; color: var(--rose-dark); background: var(--sun); border: 4px solid var(--paper); border-radius: 50%; font-family: "Playfair Display", serif; font-size: 1.8rem; box-shadow: 0 10px 25px rgba(90, 27, 48, .2); }
.candles.wish-lights { position: absolute; inset: 0; }
.candle { position: absolute; width: 10px; height: 10px; background: var(--sun); border-radius: 50%; box-shadow: 0 0 0 7px rgba(255, 201, 79, .18), 0 0 25px rgba(255, 181, 55, .85); transform: translate(-50%, -50%); }
.flame { position: absolute; inset: -5px; background: radial-gradient(circle, #fff 0 12%, #ffd05b 36%, #ee6927 72%); border-radius: 50%; box-shadow: 0 0 18px rgba(255, 190, 55, .9); animation: flame 800ms ease-in-out infinite alternate; }
.wish-orbit.is-blown .flame { opacity: 0; transform: translateY(-10px) scale(.92); animation: none; transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.cake-actions { position: absolute; right: 0; bottom: 0; left: 0; display: grid; justify-items: center; gap: 8px; }
.cake-fallback { padding: 8px 12px; color: var(--muted); background: transparent; border: 0; font-size: .76rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.mic-status { display: none; width: min(100%, 320px); padding: 11px 13px; color: var(--muted); background: rgba(255, 255, 255, .76); border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: .76rem; }
.mic-status.is-active { display: block; }
.mic-level { height: 5px; margin-top: 8px; overflow: hidden; background: #f1e3d5; border-radius: 999px; }
.mic-level span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--sun), var(--rose)); transform: scaleX(0); transform-origin: left; }
.wish-result { position: absolute; right: 6%; bottom: 0; left: 6%; z-index: 5; padding: 21px; color: white; background: rgba(105, 14, 51, .94); border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px 26px 8px 26px; box-shadow: var(--shadow-lg); text-align: center; opacity: 0; pointer-events: none; transform: translateY(16px) scale(.97); transition: opacity 420ms var(--ease), transform 420ms var(--ease); backdrop-filter: blur(14px); }
.wish-result.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.wish-result strong { display: block; color: var(--sun); font-family: "Playfair Display", serif; font-size: 1.7rem; line-height: 1.15; }
.wish-result p { margin: 8px 0 0; color: rgba(255, 255, 255, .76); }

.letter-section { overflow: hidden; color: white; background: var(--rose-dark); }
.letter-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(44px, 8vw, 92px); align-items: center; }
.letter-section .section-kicker { color: var(--sun); }
.letter-photo { position: relative; min-height: 560px; overflow: hidden; border-radius: 5px 45px 5px 45px; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); }
.letter-photo img { width: 100%; height: 100%; object-fit: cover; }
.letter-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.letter-paper { position: relative; padding: clamp(34px, 6vw, 66px); color: var(--ink); background: var(--paper); border-radius: 4px 34px 4px 34px; box-shadow: 0 35px 80px rgba(19, 3, 10, .34); transform: rotate(.5deg); }
.letter-paper::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); border-radius: 2px 24px 2px 24px; pointer-events: none; }
.letter-paper p { position: relative; margin: 0 0 17px; font-family: "Playfair Display", serif; font-size: clamp(1.02rem, 1.8vw, 1.34rem); line-height: 1.55; }
.letter-paper .section-kicker { color: var(--rose); font-family: "Manrope", sans-serif; font-size: .68rem; line-height: 1.6; }
.letter-signature { position: relative; margin-top: 26px; color: var(--rose); font-family: "Caveat", cursive; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; }

.finale { position: relative; display: grid; place-items: center; min-height: 72dvh; padding: 86px 24px; overflow: hidden; background: radial-gradient(circle at 50% 38%, rgba(255, 201, 79, .28), transparent 25rem), var(--cream); text-align: center; }
.finale::before, .finale::after { content: ""; position: absolute; width: clamp(180px, 30vw, 440px); aspect-ratio: 1; border: clamp(24px, 5vw, 64px) solid rgba(217, 41, 98, .08); border-radius: 50%; }
.finale::before { top: -18%; left: -10%; }
.finale::after { right: -10%; bottom: -24%; }
.finale-inner { position: relative; z-index: 2; width: min(100%, 800px); }
.finale-mark { display: grid; place-items: center; width: 86px; height: 86px; margin: 0 auto 28px; color: var(--rose-dark); background: var(--sun); border-radius: 50%; font-family: "Playfair Display", serif; font-size: 2.6rem; box-shadow: 0 18px 40px rgba(133, 24, 55, .2); }
.finale h2 { margin: 0; font-family: "Playfair Display", serif; font-size: clamp(3rem, 8vw, 7rem); font-weight: 700; line-height: .9; letter-spacing: -.06em; text-wrap: balance; }
.finale p { max-width: 46ch; margin: 26px auto 0; color: var(--muted); font-size: 1.02rem; text-wrap: pretty; }
.finale-date { display: inline-block; margin-top: 38px; color: var(--rose); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.lightbox { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 22px; background: rgba(45, 5, 24, .94); opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease), visibility 220ms; backdrop-filter: blur(18px); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: min(92vw, 900px); height: min(88dvh, 880px); margin: 0; }
.lightbox-image-wrap { display: grid; place-items: center; min-height: 0; }
.lightbox img { max-width: 100%; max-height: 78dvh; object-fit: contain; box-shadow: 0 30px 90px rgba(0, 0, 0, .34); }
.lightbox figcaption { padding-top: 14px; color: rgba(255, 255, 255, .7); text-align: center; font-size: .8rem; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; color: white; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; cursor: pointer; transition: background-color 160ms ease, transform 140ms var(--ease); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 20px; transform: translateY(-50%); }
.lightbox-nav:active { transform: translateY(-50%) scale(.96); }
.fx-layer { position: fixed; inset: 0; z-index: 150; overflow: hidden; pointer-events: none; }
.confetti { position: absolute; width: 9px; height: 14px; border-radius: 2px; animation: confetti-burst 1200ms var(--ease) forwards; will-change: transform, opacity; }

.reveal { transform: translateY(18px); transition: transform 600ms var(--ease), filter 600ms var(--ease); }
.reveal.is-visible { transform: translateY(0); }
button:focus-visible, a:focus-visible, textarea:focus-visible, .swipe-deck:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .primary-button:hover, .cake-button:hover { background: #e83970; transform: translateY(-2px); box-shadow: 0 18px 35px rgba(217, 41, 98, .31); }
  .secondary-button:hover { color: var(--rose); }
  .sound-control:hover { background: rgba(92, 12, 47, .9); }
  .hero-scroll:hover span { background: rgba(255, 255, 255, .12); transform: translateY(4px); }
  .reason:hover { background: rgba(117, 18, 59, .8); transform: translateY(-3px); }
  .memory-card:hover img { transform: scale(1.04); }
  .swipe-action:not(:disabled):hover, .gift-card:hover { transform: translateY(-3px); }
  .gift-card:hover { background: rgba(255, 255, 255, .13); }
  .lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .17); }
}

@keyframes invitation-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(255, 214, 106, .08); } }
@keyframes flame { from { transform: rotate(-4deg) scale(.9); } to { transform: rotate(5deg) scale(1.08); } }
@keyframes confetti-burst { from { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } to { opacity: 0; transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)); } }

@media (max-width: 960px) {
  .portrait-grid, .cake-layout, .gift-layout, .letter-layout { grid-template-columns: 1fr; }
  .story-copy, .cake-copy, .gift-copy { max-width: 680px; }
  .reason-grid { grid-template-columns: repeat(3, 1fr); }
  .gift-vault { min-height: 420px; }
  .letter-layout { gap: 0; }
  .letter-photo { min-height: 72vw; }
  .letter-paper { width: 92%; margin: -54px auto 0; }
}

@media (max-width: 700px) {
  .section { padding: 68px 18px 78px; }
  .section-title { font-size: clamp(2.7rem, 14vw, 4.7rem); }
  .sound-control { right: 12px; }
  .sound-control span:last-child { display: none; }
  .hero { align-items: end; padding: 100px 18px 9vh; background: linear-gradient(0deg, rgba(54, 8, 29, .94) 0%, rgba(71, 10, 37, .55) 48%, rgba(71, 10, 37, .05) 76%), url("assets/veronika/photo_studio.jpg") 56% 16% / cover no-repeat; }
  .hero::before { top: 4%; right: -9%; font-size: 16rem; }
  .hero::after { right: -27vw; bottom: -4vw; width: 72vw; border-width: 34px; }
  .hero h2 { max-width: 8ch; font-size: clamp(4rem, 20vw, 6.5rem); line-height: .79; }
  .hero h2 em { margin-top: .15em; font-size: .6em; line-height: .86; }
  .hero-copy { max-width: 31ch; margin-top: 24px; }
  .hero-scroll { margin-top: 24px; }
  .chapter-mark { display: none; }
  .celebration-strip div { padding-block: 10px; }
  .portrait-stack { min-height: 126vw; }
  .portrait-main { inset: 0 9% 8% 0; }
  .portrait-detail { right: -2%; width: 46%; }
  .story-copy { margin-top: 18px; }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .reason { min-height: 176px; padding: 18px; }
  .reason-number { margin-bottom: 25px; }
  .reason strong { font-size: 1.18rem; }
  .memory-header { display: block; }
  .film-strip { grid-auto-columns: 82vw; padding-inline: 18px; }
  .memory-card { min-height: 62dvh; }
  .archive-intro { grid-template-columns: 1fr; gap: 14px; margin-bottom: 30px; }
  .swipe-deck { height: min(124vw, 580px); }
  .swipe-card { border-radius: 14px 36px 14px 36px; }
  .swipe-actions { gap: 12px; }
  .swipe-action { width: 68px; height: 68px; border-radius: 18px; }
  .swipe-undo { width: 52px; height: 52px; border-radius: 50%; }
  .gift-grid { gap: 9px; }
  .gift-card { min-height: 112px; padding: 15px; }
  .gift-message { inset: 4%; padding: 28px 22px; }
  .cake-stage { min-height: 570px; margin-inline: -18px; }
  .wish-orbit { width: min(88vw, 420px); }
  .letter-photo { min-height: 112vw; }
  .letter-paper { width: 94%; margin-top: -40px; transform: rotate(.35deg); }
  .finale { min-height: 68dvh; padding-block: 78px; }
  .lightbox-nav { top: auto; bottom: 24px; }
  .lightbox-prev { left: calc(50% - 62px); transform: none; }
  .lightbox-next { right: calc(50% - 62px); transform: none; }
  .lightbox-nav:active { transform: scale(.96); }
  .lightbox figcaption { padding-bottom: 64px; }
}

@media (max-width: 420px) {
  .invitation { padding-inline: 22px; border-radius: 4px 30px 4px 30px; }
  .reason { min-height: 168px; }
  .gift-grid { grid-template-columns: 1fr; }
  .gift-card:last-child { grid-column: auto; }
  .gift-vault { min-height: 620px; }
  .wish-portrait span { width: 52px; height: 52px; font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .intro, .sound-control, .reveal, .wish-result, .gift-message { transition: opacity 180ms ease !important; }
  .reveal { transform: none; }
  .memory-card img, .swipe-card { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .gift-card, .sound-control, .wish-result, .invitation { backdrop-filter: none; }
}
