:root {
  --blush:    #fdf3f4;
  --blush-2:  #f7e3e6;
  --rose:     #c9738a;
  --rose-sub: #d99caa;
  --ink:      #4a3439;
  --ink-soft: #8a6d74;
  --gold:     #d9b382;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 12% -10%, #fff 0%, transparent 60%),
    radial-gradient(900px 620px at 88% 8%,  #fbe9ec 0%, transparent 62%),
    linear-gradient(170deg, var(--blush) 0%, var(--blush-2) 55%, #f3dade 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 1s 0.15s ease-out forwards;
}

.name {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(4rem, 19vw, 12rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  display: flex;
  gap: 0.01em;
}

.name span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  animation: letter 1.05s cubic-bezier(.2, .7, .3, 1) forwards;
  background: linear-gradient(96deg, var(--rose) 0%, #b8566f 38%, var(--gold) 62%, var(--rose) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.45s cubic-bezier(.2, .9, .3, 1.2);
}

.name span:hover { transform: translateY(-0.09em) rotate(-2deg); }

.name span:nth-child(1) { animation-delay: 0.30s; }
.name span:nth-child(2) { animation-delay: 0.40s; }
.name span:nth-child(3) { animation-delay: 0.50s; }
.name span:nth-child(4) { animation-delay: 0.60s; }
.name span:nth-child(5) { animation-delay: 0.70s; }
.name span:nth-child(6) { animation-delay: 0.80s; }

.rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-sub), transparent);
  animation: widen 1.4s 1.05s ease-out forwards;
}

.tagline {
  margin: 0;
  max-width: 26rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 1.1s 1.25s ease-out forwards;
}

.portrait {
  margin: 0.75rem 0 0;
  opacity: 0;
  animation: rise 1.1s 1.45s ease-out forwards;
}

.portrait img {
  width: clamp(9rem, 34vw, 13rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(201, 115, 138, 0.35);
  box-shadow: 0 18px 46px -18px rgba(150, 78, 96, 0.5);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: hint-in 1.2s 1.9s ease-out forwards;
}

.scroll-hint span {
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(var(--rose-sub), transparent);
  animation: drift 2.6s ease-in-out infinite;
}

/* ---------- compliments ---------- */

.compliments {
  min-height: 68svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
}

.compliment {
  margin: 0;
  max-width: 34rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.compliment.fade { opacity: 0; transform: translateY(0.5rem); }

.again {
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  background: transparent;
  border: 1px solid rgba(201, 115, 138, 0.4);
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.again:hover,
.again:focus-visible {
  background: var(--rose);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  padding: 3rem 0 5rem;
}

.card {
  padding: 2.25rem 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px -26px rgba(150, 78, 96, 0.55);
  text-align: center;
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .3, 1), box-shadow 0.4s ease;
}

.card.in { opacity: 1; transform: none; }
.card:hover { box-shadow: 0 22px 52px -24px rgba(150, 78, 96, 0.6); }

.glyph {
  display: block;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.card h2 {
  margin: 0 0 0.65rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--rose);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

footer {
  text-align: center;
  padding-bottom: 1rem;
}

.signoff {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.heart {
  margin: 0;
  font-size: 1.5rem;
  color: var(--rose);
  animation: beat 2.6s ease-in-out infinite;
}

/* ---------- petals ---------- */

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -6vh;
  border-radius: 60% 0 60% 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), var(--rose-sub));
  opacity: 0;
  animation: fall linear infinite;
}

/* ---------- keyframes ---------- */

@keyframes letter {
  0%   { opacity: 0; transform: translateY(0.35em) rotate(4deg); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0) rotate(0);         filter: blur(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.9rem); }
  to   { opacity: 1; transform: none; }
}

@keyframes hint-in {
  from { opacity: 0; transform: translateX(-50%) translateY(0.9rem); }
  to   { opacity: 1; transform: translateX(-50%); }
}

@keyframes widen {
  to { width: min(16rem, 60vw); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0);      opacity: 0.9; }
  50%      { transform: translateY(0.5rem); opacity: 0.35; }
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  18%      { transform: scale(1.16); }
  36%      { transform: scale(1); }
}

@keyframes fall {
  0%   { opacity: 0;    transform: translateY(0) translateX(0) rotate(0deg); }
  10%  { opacity: 0.75; }
  90%  { opacity: 0.55; }
  100% { opacity: 0;    transform: translateY(112vh) translateX(var(--sway)) rotate(540deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .name span, .eyebrow, .tagline, .portrait, .card { opacity: 1; transform: none; }
  .scroll-hint { opacity: 1; transform: translateX(-50%); }
  .rule { width: min(16rem, 60vw); }
  .petals { display: none; }
}
