:root {
  --paper: #fcf7f3;
  --paper-warm: #f9eee7;
  --paper-light: #fffaf7;
  --ink: #151515;
  --ink-soft: #262323;
  --gold: #b8833d;
  --gold-deep: #96642d;
  --gold-light: #dfb46d;
  --rose: #e6b7ad;
  --content: 1120px;
  --ease: cubic-bezier(.22, .72, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(226, 183, 169, .15), transparent 24rem),
    radial-gradient(circle at 88% 28%, rgba(219, 170, 93, .10), transparent 28rem),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.9), rgba(252,247,243,.18) 45%, transparent 68%),
    linear-gradient(180deg, var(--paper-light) 0%, var(--paper) 46%, #fdf8f4 100%);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

.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% 44%, rgba(255,255,255,.98), rgba(255,249,244,.86) 32%, rgba(30,23,20,.58) 100%),
    linear-gradient(135deg, rgba(223,180,109,.36), rgba(230,183,173,.22));
  animation:starVeil 5s cubic-bezier(.2,.8,.2,1) forwards;
}
.opening-veil::before,
.opening-veil::after {
  content:"";
  position:absolute;
  width:min(96vw, 860px);
  aspect-ratio:1;
  border-radius:50%;
  border:1px solid rgba(184,131,61,.42);
  box-shadow:0 0 90px rgba(223,180,109,.18), inset 0 0 90px rgba(255,255,255,.30);
  opacity:0;
  animation:starRing 4.55s ease-out forwards;
}
.opening-veil::after {
  width:min(62vw, 560px);
  animation-delay:.34s;
}
.star-gate {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
}
.star-gate,
.opening-message {
  grid-area:1 / 1;
}
.star-gate i {
  position:absolute;
  width:min(70vw, 620px);
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(184,131,61,.95), rgba(255,255,255,.92), rgba(184,131,61,.95), transparent);
  opacity:0;
  animation:starBlade 4.4s ease-out forwards;
}
.star-gate i:nth-child(2){transform:rotate(60deg);animation-delay:.2s}
.star-gate i:nth-child(3){transform:rotate(-60deg);animation-delay:.4s}
.opening-message {
  position:relative;
  z-index:4;
  width:min(760px, calc(100% - 38px));
  text-align:center;
  color:#181515;
  animation:starText 4.7s ease forwards;
}
.opening-message p {
  margin:0 0 18px;
  color:var(--gold-deep);
  font-family:"Montserrat", Arial, sans-serif;
  font-weight:300;
  font-size:clamp(.76rem, 1.55vw, 1rem);
  letter-spacing:.34em;
  text-transform:uppercase;
}
.opening-message h1 {
  margin:0;
  font-family:"Prata", Georgia, serif;
  font-weight:400;
  font-size:clamp(2.8rem, 7.2vw, 6.6rem);
  line-height:1.02;
  text-wrap:balance;
}
.opening-message span {
  display:block;
  width:min(230px, 54%);
  height:1px;
  margin:28px auto 0;
  background:linear-gradient(90deg, transparent, rgba(184,131,61,.9), transparent);
}

@keyframes starVeil {
  0%,72% { opacity:1; visibility:visible; }
  100% { opacity:0; visibility:hidden; }
}
@keyframes starText {
  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(-14px) scale(1.03); filter:blur(10px); }
}
@keyframes starRing {
  0% { opacity:0; transform:scale(.55) rotate(-12deg); }
  26%,72% { opacity:.86; }
  100% { opacity:0; transform:scale(1.18) rotate(18deg); }
}
@keyframes starBlade {
  0% { opacity:0; transform:scaleX(.15) rotate(var(--r, 0deg)); }
  26%,72% { opacity:.78; }
  100% { opacity:0; transform:scaleX(1.08) rotate(var(--r, 0deg)); }
}
.star-gate i:nth-child(2){--r:60deg}
.star-gate i:nth-child(3){--r:-60deg}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  width: min(70vw, 44rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(34px);
  pointer-events: none;
}

body::before {
  left: -23rem;
  bottom: -19rem;
  background: radial-gradient(circle, rgba(232, 184, 173, .24), transparent 69%);
}

body::after {
  right: -25rem;
  bottom: -21rem;
  background: radial-gradient(circle, rgba(221, 176, 109, .13), transparent 70%);
}

img, svg, picture { display: block; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 60;
  transform: translateY(-150%);
  padding: .65rem .9rem;
  border-radius: 999px;
  color: #fff;
  background: #151515;
  font: 400 .85rem/1.1 Arial, sans-serif;
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.birthday-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.gold-dust {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.gold-dust i {
  --size: 5px;
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffe8b7 0 23%, #c58a34 34% 66%, transparent 73%);
  box-shadow: 0 0 11px rgba(184, 127, 49, .16);
  opacity: .68;
  animation: drift 7.5s ease-in-out infinite alternate;
}

.gold-dust i:nth-child(3n) {
  border-radius: 0;
  transform: rotate(45deg);
}

.gold-dust i:nth-child(1) { left: 9%; top: 8%; --size: 4px; animation-delay: -1.3s; }
.gold-dust i:nth-child(2) { left: 16%; top: 28%; --size: 7px; animation-delay: -4.8s; }
.gold-dust i:nth-child(3) { right: 13%; top: 18%; --size: 5px; animation-delay: -2.1s; }
.gold-dust i:nth-child(4) { right: 8%; top: 39%; --size: 7px; animation-delay: -3.9s; }
.gold-dust i:nth-child(5) { left: 10%; top: 53%; --size: 5px; animation-delay: -2.7s; }
.gold-dust i:nth-child(6) { right: 18%; top: 58%; --size: 4px; animation-delay: -6.1s; }
.gold-dust i:nth-child(7) { left: 7%; top: 73%; --size: 6px; animation-delay: -3.3s; }
.gold-dust i:nth-child(8) { right: 7%; top: 76%; --size: 5px; animation-delay: -5.4s; }
.gold-dust i:nth-child(9) { left: 19%; top: 88%; --size: 4px; animation-delay: -1.7s; }
.gold-dust i:nth-child(10) { right: 16%; top: 91%; --size: 7px; animation-delay: -4.2s; }
.gold-dust i:nth-child(11) { left: 22%; top: 42%; --size: 3px; animation-delay: -3.6s; }
.gold-dust i:nth-child(12) { right: 24%; top: 67%; --size: 3px; animation-delay: -6.5s; }
.gold-dust i:nth-child(13) { left: 28%; top: 15%; --size: 3px; animation-delay: -1.9s; }
.gold-dust i:nth-child(14) { right: 31%; top: 9%; --size: 4px; animation-delay: -5.9s; }
.gold-dust i:nth-child(15) { left: 33%; top: 66%; --size: 5px; animation-delay: -4.4s; }
.gold-dust i:nth-child(16) { right: 33%; top: 84%; --size: 4px; animation-delay: -2.4s; }
.gold-dust i:nth-child(17) { left: 48%; top: 95%; --size: 3px; animation-delay: -3.8s; }
.gold-dust i:nth-child(18) { right: 45%; top: 32%; --size: 3px; animation-delay: -6.8s; }
.gold-dust i:nth-child(19) { left: 5%; top: 35%; --size: 3px; animation-delay: -5.8s; }
.gold-dust i:nth-child(20) { right: 5%; top: 12%; --size: 3px; animation-delay: -3.1s; }

.hero {
  position: relative;
  min-height: min(100svh, 800px);
  display: grid;
  place-items: center;
  padding: clamp(1.1rem, 3vw, 2.5rem) clamp(.7rem, 2.5vw, 2rem) clamp(2rem, 5vw, 3.5rem);
}

.hero__halo {
  position: absolute;
  width: min(80vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 183, 173, .16), rgba(252, 247, 243, 0) 68%);
  filter: blur(8px);
}

.hero__image {
  position: relative;
  z-index: 2;
  width: min(100%, 941px);
  margin: 0;
  transform-origin: 50% 58%;
}

.hero__image::after {
  content: "";
  position: absolute;
  inset: 8% 10% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 52%, rgba(224, 174, 159, .10), transparent 72%);
  filter: blur(14px);
}

.hero__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  mix-blend-mode: multiply;
}

.hero__line {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 3;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: rgba(184, 131, 61, .22);
}

.hero__line span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  animation: lineDrop 2.25s ease-in-out infinite;
}

.message {
  position: relative;
  padding: clamp(1.8rem, 3vw, 3.2rem) clamp(1rem, 3vw, 2rem) clamp(5rem, 9vw, 8rem);
}

.message::before,
.message::after {
  content: "";
  position: absolute;
  bottom: -3rem;
  width: min(44vw, 560px);
  height: min(34vw, 430px);
  opacity: .74;
  pointer-events: none;
}

.message::before {
  left: -6vw;
  background:
    radial-gradient(ellipse at 22% 84%, rgba(232, 184, 173, .24), transparent 54%),
    radial-gradient(ellipse at 58% 80%, rgba(244, 215, 205, .25), transparent 58%);
}

.message::after {
  right: -6vw;
  background:
    radial-gradient(ellipse at 78% 84%, rgba(232, 184, 173, .21), transparent 54%),
    radial-gradient(ellipse at 42% 80%, rgba(244, 215, 205, .22), transparent 58%);
}

.message__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--content));
  margin-inline: auto;
  text-align: center;
}

.ornament,
.heart-rule,
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ornament {
  width: min(74%, 560px);
  margin: 0 auto clamp(2rem, 5vw, 4.1rem);
  gap: 1rem;
  color: var(--gold);
}

.ornament span,
.heart-rule span,
.flourish span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 127, 49, .8));
}

.ornament span,
.heart-rule span,
.flourish span { flex: 1; }
.ornament span:last-child,
.heart-rule span:last-child,
.flourish span:last-child { background: linear-gradient(90deg, rgba(184, 127, 49, .8), transparent); }

.ornament b {
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 400;
}

.birthday-title {
  margin: 0;
  max-width: 100%;
  color: var(--ink);
  font-family: "Prata", "Bodoni 72 Smallcaps", "Bodoni 72", "Bodoni MT", Didot, "Times New Roman", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.birthday-title span { display: block; }

.birthday-title__small {
  font-size: clamp(2.35rem, 5.2vw, 4.75rem);
  line-height: .98;
  letter-spacing: .17em;
  text-indent: .17em;
}

.birthday-title__large {
  margin-top: clamp(.38rem, .95vw, .9rem);
  font-size: clamp(3.4rem, 8.55vw, 8.25rem);
  line-height: .98;
  letter-spacing: .045em;
  text-indent: .045em;
  white-space: nowrap;
  max-width: 100%;
}

.dorina-name {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  margin: clamp(.4rem, 1vw, .9rem) auto 0;
  padding: 0 .16em .08em;
  color: var(--gold);
  font-family: "Parisienne", "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(5.2rem, 12vw, 10.15rem);
  line-height: .92;
  font-weight: 400;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.heart-rule {
  width: min(74%, 660px);
  margin: clamp(.7rem, 1.8vw, 1.35rem) auto clamp(2rem, 4vw, 3rem);
  gap: clamp(.75rem, 2vw, 1.25rem);
  color: var(--gold);
}

.heart-rule svg {
  width: clamp(2.4rem, 4.7vw, 3.55rem);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dedication,
.closing {
  margin: 0;
  color: #292625;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 300;
  text-transform: uppercase;
}

.dedication {
  font-size: clamp(.88rem, 1.75vw, 1.35rem);
  line-height: 1.82;
  letter-spacing: clamp(.18em, .62vw, .42em);
  text-indent: .34em;
}

.small-divider {
  display: grid;
  grid-template-columns: minmax(38px, 118px) auto minmax(38px, 118px);
  align-items: center;
  justify-content: center;
  gap: .78rem;
  width: min(46%, 290px);
  margin: clamp(1.75rem, 3.8vw, 2.8rem) auto .55rem;
  color: var(--gold);
}

.small-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 127, 49, .82));
}
.small-divider span:last-child { background: linear-gradient(90deg, rgba(184, 127, 49, .82), transparent); }
.small-divider b { font-size: 1rem; font-weight: 400; line-height: 1; }

.cake {
  width: clamp(3.15rem, 5.2vw, 4.6rem);
  margin: 0 auto clamp(1.65rem, 3.8vw, 3rem);
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wish {
  max-width: 850px;
  margin: 0 auto;
  color: #252120;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .012em;
}

.flourish {
  width: min(66%, 500px);
  gap: .35rem;
  margin: clamp(2rem, 4vw, 3rem) auto clamp(1.75rem, 3vw, 2.4rem);
  color: var(--gold);
}

.flourish svg {
  width: clamp(5rem, 10vw, 7.4rem);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flourish__diamond {
  fill: currentColor;
  stroke: none;
}

.closing {
  color: var(--gold-deep);
  font-size: clamp(.88rem, 1.85vw, 1.25rem);
  line-height: 1.7;
  letter-spacing: clamp(.2em, .62vw, .4em);
  text-indent: .32em;
}

.final-heart {
  margin: .9rem 0 0;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(2.35rem, 4.6vw, 3.25rem);
  line-height: 1;
}

.albanian {
  margin: .6rem 0 0;
  color: var(--gold-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-style: italic;
  letter-spacing: .02em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal--soft {
  transform: translateY(10px) scale(.985);
  transition-duration: 1.2s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes drift {
  from { translate: 0 -3px; opacity: .45; }
  to { translate: 5px 7px; opacity: .86; }
}

@keyframes lineDrop {
  0% { transform: translateY(-100%); }
  58%, 100% { transform: translateY(100%); }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding: .8rem 0 1rem;
  }

  .hero__image { width: 100%; }
  .hero__line { display: none; }

  .message {
    padding-top: 1.25rem;
  }

  .ornament {
    width: 88%;
    margin-bottom: 2.25rem;
  }

  .birthday-title__small {
    font-size: clamp(2.15rem, 10.4vw, 3.55rem);
    letter-spacing: .15em;
    text-indent: .15em;
  }

  .birthday-title__large {
    font-size: clamp(2.55rem, 11.2vw, 5rem);
    letter-spacing: .01em;
    text-indent: 0;
    line-height: 1;
  }

  .dorina-name {
    font-size: clamp(4.75rem, 21vw, 7rem);
    margin-top: .25rem;
  }

  .heart-rule {
    width: 92%;
    margin-top: .4rem;
  }

  .dedication {
    font-size: clamp(.76rem, 3.15vw, 1rem);
    line-height: 1.9;
    letter-spacing: .26em;
  }

  .wish {
    font-size: clamp(1.85rem, 7.2vw, 2.6rem);
    line-height: 1.28;
  }

  .desktop-break { display: none; }

  .flourish { width: 84%; }

  .closing {
    font-size: clamp(.76rem, 3vw, .95rem);
    letter-spacing: .27em;
  }

  .message::before,
  .message::after {
    width: 72vw;
    height: 56vw;
  }
}

@media (max-width: 460px) {
  .message {
    padding-inline: .95rem;
  }

  .birthday-title__large {
    font-size: clamp(1.98rem, 9.25vw, 3.25rem);
    letter-spacing: 0;
    text-indent: 0;
  }

  .dorina-name {
    font-size: clamp(4.05rem, 19vw, 5.8rem);
  }

  .dedication,
  .closing {
    text-indent: .2em;
  }

  .wish {
    max-width: 19ch;
  }
}

@media (max-width: 340px) {
  .message {
    padding-inline: .62rem;
  }

  .birthday-title__small {
    font-size: clamp(1.82rem, 9.4vw, 2.15rem);
    letter-spacing: .11em;
    text-indent: 0;
  }

  .birthday-title__large {
    font-size: clamp(1.72rem, 8.85vw, 2.05rem);
    line-height: 1.04;
  }

  .dorina-name {
    font-size: clamp(3.5rem, 18vw, 4.3rem);
  }
}

@media (min-width: 1280px) {
  .hero__image { width: min(78vw, 941px); }
}

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

/* Secret-star integration polish: ceremonial, quiet, and instant inside the hidden overlay. */
html { scroll-behavior:auto; }

body {
  background:
    radial-gradient(circle at 50% -16%, rgba(255,255,255,.96), transparent 26rem),
    radial-gradient(circle at 18% 18%, rgba(196,147,74,.16), transparent 25rem),
    radial-gradient(circle at 86% 72%, rgba(190,105,105,.12), transparent 24rem),
    linear-gradient(180deg, #fffaf7 0%, #fcf7f3 52%, #fff8f4 100%);
}

.birthday-page::before {
  content:"";
  position:absolute;
  inset:clamp(12px, 2.5vw, 34px);
  z-index:-1;
  border:1px solid rgba(184,131,61,.13);
  border-radius:clamp(24px, 4vw, 54px);
  pointer-events:none;
}

.hero {
  min-height:min(82svh, 760px);
}

.hero__image {
  filter:drop-shadow(0 34px 70px rgba(93,57,36,.13));
}

.message__inner {
  padding:clamp(18px, 3vw, 34px) 0 clamp(20px, 5vw, 52px);
}

.heart-rule svg,
.cake,
.flourish svg {
  filter:drop-shadow(0 8px 18px rgba(184,131,61,.13));
}

.wish {
  text-wrap:balance;
}

.reveal,
.reveal--soft,
.reveal.is-visible {
  opacity:1;
  transform:none;
  transition:none;
}

@media (max-width: 820px) {
  .birthday-page::before { display:none; }
  .hero {
    min-height:auto;
    padding-top:1.1rem;
  }
  .gold-dust { opacity:.62; }
  .opening-veil {
    place-content:center;
    min-height:100dvh;
  }
  .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(1.98rem, 9.2vw, 2.8rem);
    line-height:1.12;
  }
  .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%);
  }
}
