:root {
  --paper: #fff8ef;
  --paper-2: #fffdf9;
  --ink: #302d29;
  --soft-ink: #6d6259;
  --gold: #c8913e;
  --deep-gold: #a97528;
  --rose: #b97970;
  --rose-deep: #9f5952;
  --peach: #f3cbb8;
  --blush: #ffe4d7;
  --shadow: 0 28px 90px rgba(95, 61, 28, .17);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-display: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --font-caps: "Cinzel", "Times New Roman", serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
picture { display:block; width:100%; height:100%; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 216, 190, .65) 0 15%, transparent 33%),
    radial-gradient(circle at 82% 16%, rgba(255, 226, 200, .55) 0 13%, transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(244, 194, 175, .50) 0 16%, transparent 36%),
    linear-gradient(180deg, #fffaf3 0%, #fff4eb 44%, #fff9f4 100%);
  font-family: var(--font-serif);
  overflow-x: hidden;
}

.opening-veil {
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  overflow:hidden;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.97), rgba(255,248,241,.84) 34%, rgba(50,29,28,.58) 100%),
    linear-gradient(135deg, rgba(190,105,105,.35), rgba(196,147,74,.22));
  animation:openingVeil 5.15s cubic-bezier(.2,.8,.2,1) forwards;
}
.opening-veil::before,
.opening-veil::after {
  content:"";
  position:absolute;
  inset:-18%;
  background:
    conic-gradient(from 20deg, transparent 0 10%, rgba(255,255,255,.74) 13%, transparent 16% 44%, rgba(255,220,172,.52) 49%, transparent 53% 100%);
  opacity:.0;
  mix-blend-mode:screen;
  animation:openingSweep 4.4s ease-out forwards;
}
.opening-veil::after {
  transform:rotate(72deg);
  animation-delay:.35s;
}
.opening-flare {
  position:absolute;
  width:min(78vw, 760px);
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.95) 0 4%, rgba(255,222,181,.50) 14%, rgba(190,105,105,.18) 34%, transparent 68%);
  filter:blur(2px);
  opacity:0;
  animation:flareBloom 4.7s ease-out forwards;
}
.opening-flare--one { transform:translate(-22vw, 12vh); }
.opening-flare--two {
  width:min(58vw, 540px);
  transform:translate(24vw, -16vh);
  animation-delay:.45s;
}
.opening-petals,
.opening-message {
  grid-area:1 / 1;
}
.opening-petals {
  position:absolute;
  inset:0;
}
.opening-message {
  position:relative;
  z-index:3;
  width:min(760px, calc(100% - 38px));
  text-align:center;
  color:#2b1716;
  text-shadow:0 1px 0 rgba(255,255,255,.7);
  animation:openingText 4.75s ease forwards;
}
.opening-message p {
  margin:0 0 18px;
  color:#b98136;
  font-family:var(--font-caps);
  font-size:clamp(.78rem, 1.7vw, 1.06rem);
  letter-spacing:.28em;
  text-transform:uppercase;
}
.opening-message h1 {
  margin:0;
  font-family:var(--font-serif);
  font-weight:500;
  font-size:clamp(3rem, 8vw, 7.2rem);
  line-height:.93;
  text-wrap:balance;
}
.opening-message span {
  display:block;
  width:min(230px, 54%);
  height:1px;
  margin:28px auto 0;
  background:linear-gradient(90deg, transparent, rgba(196,147,74,.8), transparent);
}
.opening-petals span {
  position:absolute;
  width:18px;
  height:38px;
  border-radius:90% 20% 80% 20%;
  background:linear-gradient(145deg, rgba(255,244,236,.92), rgba(208,116,106,.44));
  opacity:0;
  animation:petalDrift 4.8s ease-out forwards;
}
.opening-petals span:nth-child(1){left:18%;top:18%;animation-delay:.35s}
.opening-petals span:nth-child(2){left:76%;top:20%;animation-delay:.7s}
.opening-petals span:nth-child(3){left:26%;top:72%;animation-delay:.55s}
.opening-petals span:nth-child(4){left:68%;top:70%;animation-delay:1s}
.opening-petals span:nth-child(5){left:50%;top:12%;animation-delay:1.25s}

@keyframes openingVeil {
  0%,72% { opacity:1; visibility:visible; }
  100% { opacity:0; visibility:hidden; }
}
@keyframes openingText {
  0% { opacity:0; transform:translateY(18px) scale(.96); filter:blur(12px); }
  18%,68% { opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
  100% { opacity:0; transform:translateY(-16px) scale(1.03); filter:blur(10px); }
}
@keyframes openingSweep {
  0% { opacity:0; transform:rotate(-20deg) scale(.86); }
  24%,70% { opacity:.8; }
  100% { opacity:0; transform:rotate(18deg) scale(1.14); }
}
@keyframes flareBloom {
  0% { opacity:0; transform:translate(-22vw, 12vh) scale(.42); }
  28%,72% { opacity:.95; }
  100% { opacity:0; transform:translate(0, 0) scale(1.35); }
}
@keyframes petalDrift {
  0% { opacity:0; transform:translateY(28px) rotate(0deg) scale(.7); }
  25%,78% { opacity:.82; }
  100% { opacity:0; transform:translateY(-80px) rotate(120deg) scale(1.04); }
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background-image:
    radial-gradient(circle, rgba(199, 145, 63, .52) 0 1px, transparent 1.9px),
    radial-gradient(circle, rgba(255, 255, 255, .95) 0 1px, transparent 2px);
  background-size: 76px 76px, 113px 113px;
  background-position: 12px 18px, 38px 45px;
  opacity: .5;
}
body::after {
  background:
    linear-gradient(90deg, rgba(255, 228, 215, .65), transparent 13%, transparent 87%, rgba(255, 228, 215, .68)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.9), transparent 38%);
  mix-blend-mode: soft-light;
}

.birthday-page {
  position: relative;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 60px) clamp(10px, 2vw, 26px) clamp(34px, 6vw, 80px);
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(28px);
  opacity: .42;
  pointer-events: none;
  z-index: 0;
}
.ambient-one {
  width: 34vw;
  height: 34vw;
  min-width: 260px;
  min-height: 260px;
  left: -12vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(248, 187, 155, .65), transparent 67%);
}
.ambient-two {
  width: 30vw;
  height: 30vw;
  min-width: 240px;
  min-height: 240px;
  right: -12vw;
  bottom: 5vh;
  background: radial-gradient(circle, rgba(247, 218, 174, .60), transparent 67%);
}

.sparkle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .85;
  background-image:
    radial-gradient(circle at 8% 15%, rgba(215, 154, 61, .70) 0 1.5px, transparent 2px),
    radial-gradient(circle at 86% 22%, rgba(215, 154, 61, .66) 0 1.5px, transparent 2px),
    radial-gradient(circle at 14% 73%, rgba(215, 154, 61, .52) 0 1.5px, transparent 2px),
    radial-gradient(circle at 78% 81%, rgba(215, 154, 61, .62) 0 1.5px, transparent 2px),
    radial-gradient(circle at 52% 52%, rgba(255,255,255,.90) 0 1px, transparent 2px);
  animation: shimmer 9s ease-in-out infinite alternate;
}

.poster {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4.8vw, 72px) clamp(13px, 3.5vw, 56px) clamp(34px, 5vw, 76px);
  background:
    radial-gradient(circle at 48% 39%, rgba(255,255,255,.96), transparent 21%),
    radial-gradient(circle at 8% 7%, rgba(255, 232, 218, .78), transparent 22%),
    radial-gradient(circle at 97% 88%, rgba(255, 230, 210, .75), transparent 20%),
    linear-gradient(180deg, rgba(255, 254, 250, .98), rgba(255, 246, 238, .96));
  border: 1px solid rgba(200, 145, 62, .18);
  border-radius: clamp(26px, 4vw, 54px);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.82);
  overflow: hidden;
  isolation: isolate;
}
.poster::before,
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.poster::before {
  background:
    repeating-linear-gradient(90deg, rgba(135, 98, 51, .035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg, rgba(135, 98, 51, .025) 0 1px, transparent 1px 6px);
  opacity: .42;
}
.poster::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 53%, rgba(255, 242, 232, .78) 82%, rgba(255, 255, 255, .72) 100%);
}
.paper-glow {
  position: absolute;
  width: 74%;
  height: 50%;
  left: 13%;
  top: 28%;
  background: radial-gradient(ellipse, rgba(255,255,255,.94), rgba(255,252,247,.65) 42%, transparent 74%);
  z-index: 0;
  pointer-events: none;
}

.date-line {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(56px, 1fr) auto minmax(56px, 1fr);
  align-items: center;
  gap: clamp(12px, 2.4vw, 24px);
  width: min(590px, 76%);
  margin: 0 auto clamp(18px, 3.4vw, 38px);
}
.date-line span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(177, 121, 43, .86), transparent);
}
.date-line p {
  position: relative;
  margin: 0;
  color: var(--deep-gold);
  font-family: var(--font-caps);
  font-size: clamp(1.02rem, 2.2vw, 1.65rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  white-space: nowrap;
}
.date-line p::after {
  content: "♥";
  position: absolute;
  left: 50%;
  top: calc(100% + 3px);
  transform: translateX(-50%);
  font-size: .55em;
  color: var(--gold);
  letter-spacing: 0;
}

.memory-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  grid-template-rows: clamp(310px, 36vw, 448px) clamp(340px, 37vw, 480px) clamp(500px, 56vw, 690px);
  grid-template-areas:
    "sunset dinner"
    "title coccole"
    "budapest wish";
  column-gap: clamp(12px, 2vw, 30px);
  row-gap: clamp(12px, 2vw, 26px);
  align-items: stretch;
}

.memory-card {
  margin: 0;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 26px 70px rgba(66, 40, 18, .17);
  transform: translateZ(0);
  background: rgba(255,255,255,.35);
}
.memory-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.85), transparent 24%, transparent 70%, rgba(207, 152, 74, .42)),
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.92), transparent 19%),
    radial-gradient(circle at 90% 90%, rgba(255,255,255,.74), transparent 24%);
  box-shadow: inset 0 0 45px rgba(255, 255, 255, .65), inset 0 0 0 1px rgba(255,255,255,.55);
}
.memory-card::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 84%, rgba(239, 179, 112, .7) 0 1.3px, transparent 2px),
    radial-gradient(circle at 26% 88%, rgba(255,255,255,.9) 0 1.4px, transparent 2px),
    radial-gradient(circle at 84% 14%, rgba(229, 169, 82, .65) 0 1.3px, transparent 2px),
    radial-gradient(circle at 76% 88%, rgba(255,255,255,.75) 0 1.2px, transparent 2px);
  opacity: .8;
}
.memory-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.035);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), filter 1.1s ease;
}
.memory-card:hover img { transform: scale(1.075); filter: saturate(1.06) contrast(1.04); }

.photo-sunset {
  grid-area: sunset;
  border-radius: 40px 22px 82px 28px;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0 89%);
  margin: 0 -12px -18px 0;
  z-index: 4;
}
.photo-sunset img { object-position: 52% 45%; }

.photo-dinner {
  grid-area: dinner;
  border-radius: 28px 46px 28px 94px;
  clip-path: polygon(8% 0, 100% 0, 100% 88%, 0 100%, 0 11%);
  margin: 0 0 -22px -30px;
  z-index: 3;
}
.photo-dinner img { object-position: 52% 42%; }

.title-panel {
  grid-area: title;
  position: relative;
  z-index: 6;
  min-width: 0;
  align-self: center;
  padding: clamp(18px, 2.4vw, 28px) clamp(8px, 1.2vw, 18px) clamp(10px, 1.8vw, 28px);
  text-align: left;
}
.title-panel::before {
  content: "";
  position: absolute;
  inset: -48px -52px -42px -38px;
  z-index: -1;
  background: radial-gradient(ellipse at 48% 51%, rgba(255,255,255,.98) 0 56%, rgba(255,250,244,.75) 71%, transparent 100%);
  filter: blur(.5px);
}
.tiny-heart {
  width: min(250px, 62%);
  margin: 0 0 clamp(5px, 1.2vw, 10px) 16%;
  color: var(--gold);
  font-size: clamp(.9rem, 1.6vw, 1.2rem);
  text-align: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
}
.tiny-heart::before,
.tiny-heart::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.title-panel h1 {
  margin: 0;
  font-weight: normal;
  line-height: .84;
  letter-spacing: 0;
}
.title-small,
.title-main,
.title-name { display: block; }
.title-small {
  color: #393631;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 11vw, 8.6rem);
  font-weight: 500;
  letter-spacing: .015em;
  line-height: .84;
}
.title-main {
  color: var(--rose-deep);
  font-family: var(--font-serif);
  font-size: clamp(3.1rem, 7.6vw, 6.7rem);
  font-weight: 600;
  line-height: .82;
  letter-spacing: -.045em;
  text-transform: none;
}
.title-name {
  margin-top: clamp(6px, 1vw, 12px);
  color: var(--gold);
  font-family: var(--font-script);
  font-size: clamp(5.2rem, 12.4vw, 9.6rem);
  line-height: .78;
  transform: rotate(-2deg) translateX(-.03em);
  text-shadow: 0 8px 22px rgba(176, 112, 45, .13);
}
.title-swish {
  position: absolute;
  width: 54%;
  height: 56px;
  left: 5%;
  bottom: clamp(7px, 2.2vw, 24px);
  border-bottom: 3px solid rgba(199,145,62,.55);
  border-radius: 0 0 100% 100%;
  transform: rotate(-5deg);
  opacity: .85;
  z-index: -1;
}

.photo-coccole {
  grid-area: coccole;
  align-self: start;
  height: min(100%, 430px);
  border-radius: 86px 30px 86px 30px;
  clip-path: polygon(0 8%, 100% 0, 96% 93%, 6% 100%);
  margin: -12px 0 0 -14px;
  z-index: 5;
  box-shadow: 0 24px 80px rgba(36, 12, 65, .24), 0 0 50px rgba(237, 97, 204, .16);
}
.photo-coccole img { object-position: 50% 42%; }
.photo-coccole::before {
  background:
    radial-gradient(circle at 62% 12%, rgba(255, 64, 227, .22), transparent 26%),
    radial-gradient(circle at 8% 85%, rgba(255,255,255,.8), transparent 21%),
    linear-gradient(135deg, rgba(255,255,255,.65), transparent 28%, transparent 70%, rgba(252, 147, 223, .35));
}

.photo-budapest {
  grid-area: budapest;
  border-radius: 28px 88px 36px 38px;
  clip-path: polygon(0 4%, 92% 0, 100% 92%, 12% 100%, 0 93%);
  margin: -38px -10px 0 0;
  z-index: 4;
}
.photo-budapest img { object-position: 45% 35%; }

.wish-panel {
  grid-area: wish;
  position: relative;
  z-index: 5;
  align-self: center;
  margin: clamp(20px, 4vw, 52px) 0 0 clamp(0px, 1vw, 12px);
  padding: clamp(26px, 4.6vw, 56px) clamp(18px, 3vw, 44px);
  border-radius: 48px 24px 48px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,.95), transparent 35%),
    linear-gradient(180deg, rgba(255, 253, 247, .84), rgba(255, 247, 239, .62));
  box-shadow: inset 0 0 0 1px rgba(206, 154, 82, .15), 0 24px 70px rgba(117, 75, 36, .08);
  backdrop-filter: blur(8px);
}
.wish-panel::before {
  content: "";
  position: absolute;
  inset: -40px -25px;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(255,255,255,.98) 0 45%, rgba(255,250,245,.72) 66%, transparent 100%);
}
.divider.ornate {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  width: min(300px, 78%);
  margin: 0 auto 24px;
  color: var(--gold);
}
.divider.ornate span {
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.divider.ornate i { font-style: normal; font-size: 1.05rem; }
.wish-panel p {
  margin: 0 auto clamp(18px, 2.3vw, 26px);
  max-width: 560px;
  color: #47423d;
  font-family: var(--font-caps);
  font-size: clamp(1.02rem, 1.75vw, 1.37rem);
  line-height: 1.82;
  letter-spacing: .075em;
  font-variant: small-caps;
  text-wrap: balance;
}
.heart-mark {
  color: var(--gold);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  margin: -4px 0 clamp(14px, 2vw, 22px);
  filter: drop-shadow(0 7px 11px rgba(169, 103, 38, .14));
}
.signature {
  margin-top: clamp(18px, 3vw, 38px) !important;
  color: var(--rose) !important;
  font-family: var(--font-script) !important;
  font-size: clamp(2.15rem, 4.4vw, 3.8rem) !important;
  line-height: 1.05 !important;
  letter-spacing: .01em !important;
  font-variant: normal !important;
  transform: rotate(-1deg);
}
.last-heart {
  color: var(--rose);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  margin-top: -6px;
}

.floral {
  position: absolute;
  pointer-events: none;
  z-index: 8;
  opacity: .88;
  filter: drop-shadow(0 16px 28px rgba(147, 86, 46, .12));
}
.floral span {
  position: absolute;
  display: block;
  border-radius: 76% 24% 70% 30% / 62% 34% 66% 38%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.86), transparent 20%),
    linear-gradient(135deg, rgba(255, 229, 214, .94), rgba(236, 159, 134, .58));
  box-shadow: inset 0 -10px 20px rgba(165, 98, 66, .07);
}
.floral span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  width: 1px;
  height: 84%;
  background: linear-gradient(180deg, transparent, rgba(177, 107, 70, .36), transparent);
  transform: rotate(14deg);
}
.floral-top-right { width: 260px; height: 260px; right: -72px; top: -38px; transform: rotate(24deg); }
.floral-bottom-left { width: 320px; height: 320px; left: -84px; bottom: -58px; transform: rotate(-28deg); }
.floral-side-left { width: 170px; height: 290px; left: -50px; top: 42%; transform: rotate(12deg); opacity: .56; }
.floral-side-right { width: 170px; height: 290px; right: -62px; top: 51%; transform: rotate(-18deg); opacity: .58; }
.floral span:nth-child(1) { width: 80px; height: 116px; left: 84px; top: 30px; transform: rotate(-16deg); }
.floral span:nth-child(2) { width: 72px; height: 104px; left: 136px; top: 74px; transform: rotate(34deg); }
.floral span:nth-child(3) { width: 62px; height: 96px; left: 50px; top: 94px; transform: rotate(-52deg); }
.floral span:nth-child(4) { width: 56px; height: 86px; left: 112px; top: 154px; transform: rotate(72deg); }
.floral span:nth-child(5) { width: 94px; height: 94px; left: 92px; top: 92px; border-radius: 999px; opacity: .74; }
.floral-side-left span:nth-child(n),
.floral-side-right span:nth-child(n) { width: 42px; height: 72px; }

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  filter: blur(7px);
  transition: opacity .95s ease, transform .95s cubic-bezier(.2,.8,.2,1), filter .95s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes shimmer {
  from { transform: translate3d(0,0,0); opacity: .56; }
  to { transform: translate3d(0,-18px,0); opacity: .94; }
}

@media (min-width: 1080px) {
  .poster { min-height: 1520px; }
}

@media (max-width: 880px) {
  .birthday-page { padding: 0; }
  .poster {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 22px 12px 44px;
  }
  .date-line { width: min(520px, 86%); margin-bottom: 16px; }
  .memory-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "sunset"
      "dinner"
      "title"
      "coccole"
      "budapest"
      "wish";
    gap: 18px;
  }
  .photo-sunset,
  .photo-dinner,
  .photo-coccole,
  .photo-budapest {
    margin: 0;
    clip-path: none;
  }
  .photo-sunset {
    height: clamp(370px, 107vw, 620px);
    border-radius: 26px 26px 74px 26px;
  }
  .photo-dinner {
    width: min(72%, 420px);
    height: clamp(220px, 58vw, 380px);
    justify-self: end;
    margin-top: clamp(-120px, -20vw, -70px);
    margin-right: 4px;
    border: 6px solid rgba(255, 250, 244, .78);
    border-radius: 68px 24px 32px 32px;
    z-index: 7;
    box-shadow: 0 22px 80px rgba(66, 40, 18, .24);
  }
  .title-panel {
    margin-top: clamp(-18px, -1vw, 4px);
    padding: 6px 5px 2px;
    text-align: left;
  }
  .title-panel::before { inset: -42px -10px -22px -10px; }
  .tiny-heart { width: 54%; margin-left: 18%; }
  .title-small { font-size: clamp(4.4rem, 21vw, 7.5rem); }
  .title-main { font-size: clamp(3.1rem, 15vw, 6rem); }
  .title-name { font-size: clamp(5.2rem, 23vw, 8.2rem); }
  .photo-coccole {
    height: clamp(330px, 98vw, 560px);
    border-radius: 30px 72px 30px 72px;
  }
  .photo-budapest {
    height: clamp(460px, 124vw, 700px);
    border-radius: 26px 78px 30px 30px;
  }
  .wish-panel {
    margin: -4px 2px 0;
    padding: 32px 16px 34px;
    border-radius: 36px;
  }
  .wish-panel p { font-size: clamp(.98rem, 4.4vw, 1.25rem); line-height: 1.72; letter-spacing: .055em; }
  .signature { font-size: clamp(2.2rem, 11vw, 3.4rem) !important; }
  .floral-top-right { width: 190px; height: 190px; right: -82px; top: 12px; opacity: .68; }
  .floral-bottom-left { width: 240px; height: 240px; left: -74px; bottom: -46px; opacity: .78; }
  .floral-side-left, .floral-side-right { display: none; }
}

@media (max-width: 520px) {
  .poster { padding-left: 9px; padding-right: 9px; }
  .date-line p { letter-spacing: .22em; }
  .memory-grid { gap: 14px; }
  .photo-sunset img { object-position: 53% 45%; }
  .photo-dinner img { object-position: 52% 38%; }
  .photo-coccole img { object-position: 50% 41%; }
  .photo-budapest img { object-position: 45% 37%; }
  .title-panel { padding-left: 6px; }
  .title-small { letter-spacing: .005em; }
  .title-main { letter-spacing: -.06em; }
  .title-name { transform: rotate(-2deg) translateX(-.05em); }
  .wish-panel p br { display: none; }
  .wish-panel p { max-width: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ------------------------------------------------------------------
   V8 requested refinement
   - Mobile keeps the same two-column collage rhythm as the desktop idea.
   - The grid extends downward naturally instead of forcing text on top of photos.
   - The final dedication becomes a wide horizontal phrase after the lower photo/text row.
------------------------------------------------------------------- */
.memory-grid {
  grid-template-rows:
    clamp(310px, 36vw, 448px)
    clamp(340px, 37vw, 480px)
    minmax(clamp(500px, 56vw, 690px), auto)
    auto;
  grid-template-areas:
    "sunset dinner"
    "title coccole"
    "budapest wish"
    "budapest signature";
}

.photo-budapest {
  height: 100%;
  min-height: clamp(620px, 68vw, 860px);
}

.wish-panel {
  align-self: start;
  margin: clamp(22px, 3vw, 46px) 0 0 clamp(0px, 1vw, 12px);
}

.signature-panel {
  grid-area: signature;
  position: relative;
  z-index: 7;
  align-self: start;
  justify-self: stretch;
  margin: clamp(6px, 1.2vw, 18px) 0 0 clamp(0px, 1vw, 12px);
  padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 30px) clamp(8px, 1vw, 16px);
  text-align: center;
}

.signature-panel::before {
  content: "";
  position: absolute;
  inset: -22px -30px -18px -30px;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 48%, rgba(255,255,255,.94) 0 44%, rgba(255,249,243,.70) 68%, transparent 100%);
  pointer-events: none;
}

.signature {
  margin: 0 auto !important;
  max-width: 760px !important;
  color: var(--rose) !important;
  font-family: var(--font-script) !important;
  font-size: clamp(2.25rem, 4.5vw, 3.9rem) !important;
  line-height: 1.08 !important;
  letter-spacing: .01em !important;
  font-variant: normal !important;
  transform: rotate(-1deg);
  text-wrap: balance;
}

.signature span {
  display: block;
}

.last-heart {
  color: var(--rose);
  font-size: clamp(2.2rem, 4vw, 3.55rem);
  line-height: 1;
  margin-top: clamp(3px, .7vw, 8px);
}

/* keep the desktop poster elegant after the extra signature row */
@media (min-width: 1080px) {
  .poster { min-height: 1560px; }
}

@media (max-width: 880px) {
  .birthday-page { padding: 0; }
  .poster {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: clamp(16px, 4.5vw, 26px) clamp(8px, 2.7vw, 15px) clamp(38px, 10vw, 62px);
  }

  .date-line {
    width: min(520px, 90%);
    margin-bottom: clamp(14px, 4vw, 22px);
  }

  .memory-grid {
    --mobile-gap: clamp(8px, 2.35vw, 14px);
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    grid-template-rows:
      clamp(230px, 66vw, 430px)
      minmax(clamp(260px, 73vw, 465px), auto)
      minmax(clamp(455px, 118vw, 720px), auto)
      auto;
    grid-template-areas:
      "sunset dinner"
      "title coccole"
      "budapest wish"
      "signature signature";
    column-gap: var(--mobile-gap);
    row-gap: clamp(10px, 3vw, 18px);
    align-items: stretch;
  }

  .photo-sunset,
  .photo-dinner,
  .photo-coccole,
  .photo-budapest {
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    clip-path: none;
  }

  .photo-sunset {
    grid-area: sunset;
    height: 100%;
    border-radius: 24px 18px 58px 22px;
    z-index: 4;
  }

  .photo-dinner {
    grid-area: dinner;
    height: 88%;
    align-self: end;
    border-radius: 52px 18px 24px 30px;
    border: 4px solid rgba(255, 250, 244, .76);
    box-shadow: 0 19px 60px rgba(66, 40, 18, .22);
    z-index: 5;
  }

  .title-panel {
    grid-area: title;
    align-self: center;
    margin: 0;
    padding: clamp(8px, 2.4vw, 15px) 0 clamp(4px, 1.8vw, 10px);
    text-align: left;
    z-index: 6;
    overflow: visible;
  }
  .title-panel::before {
    inset: -28px -15px -24px -12px;
    background: radial-gradient(ellipse at 38% 52%, rgba(255,255,255,.99) 0 54%, rgba(255,250,244,.84) 74%, transparent 100%);
  }
  .tiny-heart {
    width: min(130px, 78%);
    margin: 0 auto clamp(3px, 1.2vw, 7px);
    font-size: clamp(.67rem, 2.4vw, .9rem);
    gap: 5px;
  }
  .title-panel h1 { line-height: .86; }
  .title-small {
    font-size: clamp(2.55rem, 13.8vw, 5.15rem);
    line-height: .84;
    letter-spacing: .005em;
  }
  .title-main {
    font-size: clamp(2.15rem, 10.9vw, 4.25rem);
    line-height: .83;
    letter-spacing: -.065em;
  }
  .title-name {
    font-size: clamp(3.45rem, 17.5vw, 6.8rem);
    line-height: .78;
    margin-top: clamp(4px, 1.1vw, 9px);
    transform: rotate(-2deg) translateX(-.03em);
  }
  .title-swish {
    width: 68%;
    height: clamp(22px, 8vw, 43px);
    left: 1%;
    bottom: clamp(-2px, 1vw, 8px);
    border-bottom-width: 2px;
  }

  .photo-coccole {
    grid-area: coccole;
    height: 100%;
    align-self: stretch;
    border-radius: 34px 18px 54px 20px;
    z-index: 5;
  }

  .photo-budapest {
    grid-area: budapest;
    height: 100%;
    min-height: 0;
    border-radius: 22px 58px 22px 28px;
    z-index: 4;
  }

  .wish-panel {
    grid-area: wish;
    align-self: stretch;
    margin: 0;
    padding: clamp(12px, 3.4vw, 20px) clamp(7px, 2.3vw, 13px);
    border-radius: 22px 42px 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
      radial-gradient(circle at 50% 0, rgba(255,255,255,.97), transparent 42%),
      linear-gradient(180deg, rgba(255, 253, 248, .88), rgba(255, 247, 239, .70));
  }
  .wish-panel::before { inset: -20px -8px; }
  .divider.ornate {
    width: min(130px, 84%);
    gap: 6px;
    margin-bottom: clamp(8px, 2vw, 14px);
  }
  .divider.ornate i { font-size: .72rem; }
  .wish-panel p br { display: none; }
  .wish-panel p {
    max-width: 100%;
    margin-bottom: clamp(9px, 2.4vw, 15px);
    font-size: clamp(.64rem, 2.42vw, .95rem);
    line-height: 1.72;
    letter-spacing: .035em;
    text-align: center;
    text-wrap: pretty;
  }
  .heart-mark {
    font-size: clamp(.78rem, 2.8vw, 1.05rem);
    margin: -2px 0 clamp(7px, 2vw, 12px);
  }

  .signature-panel {
    grid-area: signature;
    margin: clamp(2px, 1.5vw, 8px) auto 0;
    width: min(96%, 660px);
    padding: clamp(18px, 4.6vw, 32px) clamp(12px, 4vw, 28px) clamp(10px, 2.5vw, 18px);
    border-radius: 34px;
    background:
      radial-gradient(circle at 50% 15%, rgba(255,255,255,.95), transparent 44%),
      linear-gradient(90deg, rgba(255,250,244,.40), rgba(255,255,255,.82), rgba(255,250,244,.40));
    box-shadow: inset 0 0 0 1px rgba(205, 151, 78, .10);
  }
  .signature-panel::before {
    inset: -18px -10px;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.98) 0 48%, rgba(255,250,244,.68) 72%, transparent 100%);
  }
  .signature {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: .05em .34em;
    max-width: 100% !important;
    font-size: clamp(2.2rem, 10.2vw, 4.4rem) !important;
    line-height: 1.05 !important;
    transform: rotate(-1.2deg);
  }
  .signature span {
    display: inline-block;
    white-space: nowrap;
  }
  .last-heart {
    font-size: clamp(2.1rem, 8.5vw, 3.4rem);
    margin-top: clamp(2px, 1vw, 6px);
  }

  .floral-top-right { width: 190px; height: 190px; right: -82px; top: 12px; opacity: .68; }
  .floral-bottom-left { width: 240px; height: 240px; left: -74px; bottom: -46px; opacity: .78; }
  .floral-side-left, .floral-side-right { display: none; }
}

@media (max-width: 520px) {
  .poster { padding-left: 8px; padding-right: 8px; }
  .date-line p { letter-spacing: .20em; font-size: clamp(.86rem, 4.4vw, 1.18rem); }
  .memory-grid {
    column-gap: 8px;
    row-gap: 10px;
    grid-template-rows:
      clamp(225px, 66vw, 330px)
      minmax(clamp(245px, 76vw, 360px), auto)
      minmax(clamp(470px, 126vw, 660px), auto)
      auto;
  }
  .photo-sunset img { object-position: 53% 45%; }
  .photo-dinner img { object-position: 52% 38%; }
  .photo-coccole img { object-position: 50% 42%; }
  .photo-budapest img { object-position: 45% 37%; }

  .title-small { font-size: clamp(2.35rem, 13.5vw, 3.45rem); }
  .title-main { font-size: clamp(1.9rem, 10.7vw, 2.8rem); }
  .title-name { font-size: clamp(3.2rem, 17.2vw, 4.45rem); }

  .wish-panel p {
    font-size: clamp(.59rem, 2.55vw, .76rem);
    line-height: 1.65;
    letter-spacing: .025em;
  }
  .divider.ornate { margin-bottom: 8px; }

  .signature {
    font-size: clamp(2.05rem, 10.6vw, 3.1rem) !important;
    gap: 0 .26em;
  }
}

@media (max-width: 390px) {
  .memory-grid { column-gap: 7px; }
  .wish-panel { padding-left: 5px; padding-right: 5px; }
  .wish-panel p { font-size: .575rem; line-height: 1.58; letter-spacing: .018em; }
  .title-small { font-size: clamp(2.15rem, 13.2vw, 3.05rem); }
  .title-main { font-size: clamp(1.75rem, 10.5vw, 2.45rem); }
  .title-name { font-size: clamp(2.8rem, 16.9vw, 3.9rem); }
}

/* V10: nudged the Budapest crop leftward so her full face shows more comfortably. */
.photo-budapest img {
  object-position: 28% 50%;
}

@media (max-width: 880px) {
  .photo-budapest img {
    object-position: 21% 50%;
  }
}

@media (max-width: 520px) {
  .photo-budapest img {
    object-position: 17% 50%;
  }
}

/* Secret-heart integration polish: instant, keepsake-like, and smoother inside the main overlay. */
html { scroll-behavior: auto; }

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.96), transparent 22rem),
    radial-gradient(circle at 18% 12%, rgba(190,105,105,.22), transparent 24rem),
    radial-gradient(circle at 82% 22%, rgba(196,147,74,.18), transparent 25rem),
    linear-gradient(180deg, #fff9f3 0%, #fff4eb 45%, #fffaf6 100%);
}

body::before {
  opacity:.22;
  background-image:
    radial-gradient(circle, rgba(199,145,63,.38) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,.98) 0 1px, transparent 2px);
}

.birthday-page {
  padding:clamp(18px, 3vw, 42px) clamp(10px, 2vw, 22px) clamp(28px, 5vw, 58px);
}

.poster {
  border-radius:clamp(24px, 3vw, 46px);
  border-color:rgba(196,147,74,.24);
  box-shadow:
    0 36px 120px rgba(82,43,27,.20),
    0 0 0 1px rgba(255,255,255,.72) inset,
    0 0 90px rgba(196,147,74,.08) inset;
}

.poster::before {
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,.72), transparent 22rem),
    linear-gradient(135deg, rgba(196,147,74,.08), transparent 34%, rgba(190,105,105,.075));
  opacity:.78;
}

.memory-card {
  border:1px solid rgba(255,255,255,.58);
  box-shadow:
    0 26px 78px rgba(66,40,18,.18),
    0 0 0 1px rgba(196,147,74,.08) inset;
}

.memory-card img {
  filter:saturate(1.04) contrast(1.03);
}

.title-panel::before,
.wish-panel::before,
.signature-panel::before {
  filter:blur(2px);
}

.title-name {
  text-shadow:0 10px 30px rgba(176,112,45,.18);
}

.wish-panel {
  border:1px solid rgba(196,147,74,.14);
}

.signature-panel {
  border:1px solid rgba(196,147,74,.10);
}

.reveal {
  opacity:1;
  transform:none;
  filter:none;
  transition:none;
}

.reveal.visible {
  opacity:1;
  transform:none;
  filter:none;
}

@media (max-width: 880px) {
  .birthday-page { padding:0; }
  .poster {
    border-radius:0;
    box-shadow:none;
  }
  .memory-grid {
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows:
      clamp(238px, 67vw, 430px)
      auto
      clamp(300px, 82vw, 520px)
      auto
      auto;
    grid-template-areas:
      "sunset dinner"
      "title title"
      "coccole budapest"
      "wish wish"
      "signature signature";
    column-gap:clamp(8px, 2.4vw, 14px);
    row-gap:clamp(13px, 3.4vw, 22px);
  }
  .title-panel {
    max-width:min(620px, 100%);
    justify-self:center;
    text-align:center;
    padding:clamp(8px, 2.4vw, 16px) 8px clamp(4px, 1.8vw, 10px);
  }
  .title-panel::before {
    inset:-26px -18px -22px;
    background:radial-gradient(ellipse at 50% 52%, rgba(255,255,255,.99) 0 52%, rgba(255,250,244,.84) 74%, transparent 100%);
  }
  .tiny-heart {
    width:min(150px, 52%);
    margin:0 auto clamp(4px, 1.2vw, 8px);
  }
  .title-swish {
    width:54%;
    left:23%;
  }
  .photo-sunset,
  .photo-dinner,
  .photo-coccole,
  .photo-budapest {
    height:100%;
    min-height:0;
  }
  .photo-dinner {
    align-self:stretch;
  }
  .photo-coccole {
    grid-area:coccole;
    border-radius:34px 18px 54px 20px;
  }
  .photo-budapest {
    grid-area:budapest;
    border-radius:22px 58px 22px 28px;
  }
  .wish-panel {
    grid-area:wish;
    width:min(100%, 640px);
    justify-self:center;
    margin:clamp(2px, 1vw, 8px) auto 0;
    padding:clamp(26px, 7vw, 42px) clamp(22px, 6vw, 38px);
    border-radius:34px;
    display:block;
    text-align:center;
  }
  .wish-panel::before {
    inset:-26px -16px;
    background:radial-gradient(ellipse at 50% 44%, rgba(255,255,255,.98) 0 48%, rgba(255,250,244,.72) 72%, transparent 100%);
  }
  .divider.ornate {
    width:min(230px, 74%);
    gap:10px;
    margin-bottom:clamp(15px, 4vw, 22px);
  }
  .divider.ornate i { font-size:.95rem; }
  .wish-panel p br { display:block; }
  .wish-panel p {
    max-width:32rem;
    color:#443d38;
    font-family:var(--font-serif);
    font-size:clamp(1.08rem, 4.55vw, 1.42rem);
    line-height:1.58;
    letter-spacing:.01em;
    font-variant:normal;
    font-weight:600;
    text-wrap:balance;
  }
  .heart-mark {
    font-size:clamp(1.05rem, 4vw, 1.3rem);
    margin:clamp(2px, 1vw, 6px) 0 clamp(12px, 3vw, 18px);
  }
  .signature-panel {
    position:relative;
    z-index:9;
    width:min(100%, 640px);
    padding:clamp(24px, 6.5vw, 38px) clamp(20px, 5vw, 34px) clamp(18px, 4vw, 26px);
  }
  .signature {
    display:block;
    font-size:clamp(1.9rem, 8.1vw, 3.05rem) !important;
    line-height:1.34 !important;
    letter-spacing:0 !important;
    transform:rotate(-.7deg);
  }
  .signature span {
    display:block;
    white-space:normal;
    margin:.02em 0;
  }
  .last-heart {
    margin-top:clamp(6px, 2vw, 12px);
  }
  .floral-bottom-left {
    z-index:1;
    opacity:.28;
    bottom:-82px;
  }
  .photo-sunset img { object-position:52% 44%; }
  .photo-dinner img { object-position:51% 42%; }
  .photo-coccole img { object-position:50% 43%; }
  .photo-budapest img { object-position:24% 50%; }
  .sparkle-field { opacity:.42; }
  .opening-veil {
    place-content:center;
    min-height:100dvh;
  }
  .opening-flare--one {
    transform:translate(-10vw, 4vh);
  }
  .opening-flare--two {
    transform:translate(12vw, -7vh);
  }
  .opening-message {
    width:min(342px, calc(100% - 44px));
    margin:auto;
    text-align:center;
    transform-origin:center;
  }
  .opening-message h1 {
    max-width:min(318px, 100%);
    margin:0 auto;
    font-size:clamp(2.02rem, 9.45vw, 2.9rem);
    line-height:1.09;
  }
  .opening-message p {
    max-width:min(318px, 100%);
    margin:0 auto 16px;
    font-size:.64rem;
    line-height:1.65;
    letter-spacing:.14em;
  }
  .opening-message span {
    margin-top:22px;
    width:min(190px, 58%);
  }
}

@media (max-width: 520px) {
  .memory-grid {
    grid-template-rows:
      clamp(228px, 66vw, 330px)
      auto
      clamp(318px, 86vw, 420px)
      auto
      auto;
  }
  .title-main {
    letter-spacing:-.04em;
    overflow-wrap:normal;
  }
  .wish-panel {
    padding:30px 21px 32px;
  }
  .wish-panel p {
    font-size:clamp(1.04rem, 4.35vw, 1.2rem);
    line-height:1.6;
  }
  .signature {
    font-size:clamp(1.86rem, 7.8vw, 2.65rem) !important;
    line-height:1.34 !important;
  }
  .photo-budapest img { object-position:22% 50%; }
}

@media (max-width: 390px) {
  .wish-panel {
    padding-left:18px;
    padding-right:18px;
  }
  .wish-panel p {
    font-size:1rem;
    line-height:1.58;
    letter-spacing:0;
  }
}

@media (max-width: 340px) {
  .memory-grid {
    column-gap:6px;
    row-gap:10px;
  }
  .poster {
    padding-left:6px;
    padding-right:6px;
  }
  .title-main {
    font-size:clamp(1.52rem, 9.8vw, 1.95rem);
    letter-spacing:-.035em;
  }
  .title-small {
    font-size:clamp(1.95rem, 12.8vw, 2.55rem);
  }
  .title-name {
    font-size:clamp(2.72rem, 16vw, 3.42rem);
  }
  .wish-panel {
    padding:26px 15px 28px;
  }
  .wish-panel p {
    font-size:.95rem;
  }
  .signature {
    font-size:clamp(1.66rem, 7.4vw, 2.25rem) !important;
  }
}
