:root {
  --ink: #2a1826;
  --muted: #7f6c79;
  --cream: #fff7ef;
  --paper: #fffefd;
  --rose: #de4f86;
  --berry: #7a1f4d;
  --lilac: #8b6de8;
  --gold: #d8a84e;
  --mint: #69c6b4;
  --line: rgba(42, 24, 38, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(222, 79, 134, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(139, 109, 232, 0.16), transparent 30%),
    var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
}

body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: 0; font: inherit; }

@media (pointer: fine) {
  body, a, button { cursor: none; }
  .custom-cursor,
  .custom-cursor-dot {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.2s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease;
  }
  .custom-cursor {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(222, 79, 134, 0.5);
    border-radius: 50%;
    background: rgba(255, 247, 239, 0.18);
    backdrop-filter: blur(7px);
  }
  .custom-cursor-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rose);
  }
  body.cursor-ready .custom-cursor,
  body.cursor-ready .custom-cursor-dot { opacity: 1; }
  body.cursor-hover .custom-cursor { width: 58px; height: 58px; background: rgba(222, 79, 134, 0.16); }
}

.starlight-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  background:
    radial-gradient(circle at 32% 22%, rgba(222, 79, 134, 0.3), transparent 32%),
    radial-gradient(circle at 72% 18%, rgba(216, 168, 78, 0.24), transparent 30%),
    #fff5f7;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

body.loader-done .starlight-loader {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
}

.loader-crown {
  width: 190px;
  height: 126px;
  position: relative;
  filter: drop-shadow(0 24px 34px rgba(122, 31, 77, 0.24));
}

.loader-crown::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 54px;
  background: linear-gradient(135deg, #f7d777, #d8a84e);
  border-radius: 16px 16px 30px 30px;
}

.loader-crown span {
  position: absolute;
  bottom: 38px;
  width: 70px;
  height: 80px;
  background: linear-gradient(135deg, #ffe7a0, #d8a84e);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: bottom center;
  animation: crownPulse 1.5s ease-in-out infinite;
}

.loader-crown span:nth-child(1) { left: 12px; transform: rotate(-18deg); }
.loader-crown span:nth-child(2) { left: 60px; bottom: 46px; height: 96px; animation-delay: 0.15s; }
.loader-crown span:nth-child(3) { right: 12px; transform: rotate(18deg); animation-delay: 0.3s; }

.starlight-loader strong,
.starlight-loader p,
.eyebrow {
  margin: 0;
}

.starlight-loader strong {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 6vw, 68px);
}

.starlight-loader p,
.eyebrow {
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes crownPulse {
  50% { filter: brightness(1.16); transform: translateY(-8px) scale(1.03); }
}

.starlight-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 66px);
  background: rgba(255, 247, 239, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  font-weight: 900;
}

.sample-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sample-logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(222, 79, 134, 0.16);
}

.sample-logo-wordmark {
  width: clamp(118px, 14vw, 172px);
  mix-blend-mode: multiply;
}

.sample-logo span,
.starlight-nav nav {
  color: var(--muted);
}

.sample-logo span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.starlight-nav nav {
  display: flex;
  gap: 24px;
}

.starlight-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: center;
  overflow: hidden;
  padding: 128px clamp(20px, 6vw, 78px) 72px;
}

.sparkle-field {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(222, 79, 134, 0.38) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(216, 168, 78, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(139, 109, 232, 0.32) 0 3px, transparent 4px);
  background-size: 92px 92px, 136px 136px, 178px 178px;
  animation: sparkleDrift 22s linear infinite;
}

@keyframes sparkleDrift {
  to { transform: translateY(150px); }
}

.hero-copy {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-top: 14px;
  font-size: clamp(58px, 9vw, 126px);
  line-height: 0.88;
}

h1::first-line {
  font-family: "Great Vibes", cursive;
  color: var(--rose);
  font-weight: 400;
}

.hero-copy > p:not(.eyebrow),
.wish-wall > div > p {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions a,
.hero-actions button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--berry), var(--rose));
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(122, 31, 77, 0.2);
  font-weight: 900;
}

.hero-actions button {
  color: var(--berry);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(122, 31, 77, 0.16);
}

.gift-stage {
  position: relative;
  z-index: 1;
  min-height: 540px;
  color: inherit;
  background: transparent;
  perspective: 1000px;
}

.gift-box,
.gift-lid,
.gift-ribbon,
.wish-reveal {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.gift-box {
  bottom: 48px;
  width: min(86vw, 430px);
  height: 250px;
  border-radius: 28px 28px 42px 42px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.42) 45% 55%, transparent 55%),
    linear-gradient(135deg, #f88bac, #9d3673);
  box-shadow: 0 34px 84px rgba(122, 31, 77, 0.28);
}

.gift-lid {
  bottom: 284px;
  z-index: 3;
  width: min(92vw, 470px);
  height: 84px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.46) 45% 55%, transparent 55%),
    linear-gradient(135deg, #ffd0dc, #de4f86);
  box-shadow: 0 20px 40px rgba(122, 31, 77, 0.18);
  transition: transform 0.75s cubic-bezier(.2,.9,.2,1.1), opacity 0.45s ease;
}

.gift-ribbon {
  bottom: 346px;
  z-index: 4;
  width: 150px;
  height: 72px;
}

.gift-ribbon::before,
.gift-ribbon::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 62px;
  border: 16px solid #ffd875;
  border-radius: 50% 50% 8px 50%;
}

.gift-ribbon::before { right: 50%; transform: rotate(-22deg); }
.gift-ribbon::after { left: 50%; transform: scaleX(-1) rotate(-22deg); }

.wish-reveal {
  bottom: 126px;
  z-index: 2;
  width: min(78vw, 360px);
  min-height: 270px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 14%, rgba(216, 168, 78, 0.22), transparent 30%),
    var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: 0 30px 74px rgba(42, 24, 38, 0.16);
  opacity: 0;
  transform: translate(-50%, 80px) rotateX(18deg);
  transition: opacity 0.65s ease, transform 0.8s cubic-bezier(.2,.9,.2,1.1);
}

.wish-reveal small,
.wish-reveal em {
  color: var(--rose);
  font-weight: 900;
  font-style: normal;
}

.wish-reveal strong {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  line-height: 1.12;
}

.gift-stage.is-open .gift-lid {
  opacity: 0.9;
  transform: translate(-50%, -150px) rotate(-12deg);
}

.gift-stage.is-open .wish-reveal {
  opacity: 1;
  transform: translate(-50%, -26px) rotateX(0);
}

.surprise-section,
.story-section,
.wish-wall {
  padding: clamp(58px, 8vw, 108px) clamp(20px, 6vw, 78px);
}

.surprise-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.surprise-card {
  padding: clamp(28px, 5vw, 60px);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(42, 24, 38, 0.12);
  backdrop-filter: blur(18px);
}

.surprise-card h2,
.story-section h2,
.wish-wall h2 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
}

.surprise-card p,
.reason-grid p,
.surprise-card strong {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.surprise-card strong {
  display: block;
  margin-top: 22px;
  color: var(--berry);
}

.portrait-orbit {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.portrait-orbit::before {
  content: "";
  position: absolute;
  width: min(70vw, 410px);
  aspect-ratio: 1;
  border: 1px solid rgba(222, 79, 134, 0.28);
  border-radius: 50%;
  animation: orbitSpin 16s linear infinite;
}

.portrait-orbit img {
  width: min(76vw, 360px);
  height: 460px;
  object-fit: cover;
  border-radius: 44px;
  box-shadow: 0 32px 80px rgba(122, 31, 77, 0.24);
}

.portrait-orbit span {
  position: absolute;
  right: 5%;
  bottom: 54px;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--berry), var(--rose));
  border-radius: 999px;
  font-weight: 900;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reason-grid article,
.wish-notes article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  box-shadow: 0 18px 54px rgba(42, 24, 38, 0.08);
}

.reason-grid span {
  color: var(--rose);
  font-weight: 900;
}

.reason-grid h3 {
  margin: 16px 0 10px;
  font-size: 34px;
}

.memory-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(20px, 6vw, 78px) clamp(58px, 8vw, 108px);
}

.memory-ribbon figure {
  position: relative;
  min-height: 380px;
  margin: 0;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 22px 62px rgba(42, 24, 38, 0.12);
}

.memory-ribbon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.memory-ribbon figure:hover img {
  transform: scale(1.07);
}

.memory-ribbon figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(42, 24, 38, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  font-weight: 900;
}

.wish-wall {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.9fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.wish-notes {
  display: grid;
  gap: 14px;
}

.wish-notes article {
  display: grid;
  gap: 8px;
  transform: rotate(-1.2deg);
}

.wish-notes article:nth-child(2) { transform: rotate(1.2deg); }
.wish-notes article:nth-child(3) { transform: rotate(-0.4deg); }

.wish-notes strong {
  color: var(--rose);
}

.wish-notes span {
  font-family: "Playfair Display", serif;
  font-size: 28px;
}

.sample-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 32px clamp(20px, 6vw, 78px);
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(135deg, #2a1826, #5f173d);
}

.sample-footer-brand,
.sample-footer nav,
.sample-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sample-footer-brand span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 5px;
  background: #fff;
  border-radius: 50%;
}

.sample-footer-wordmark {
  width: min(190px, 44vw);
  filter: brightness(1.08);
}

.sample-footer > div:not(.sample-footer-brand) {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.sample-footer strong,
.sample-footer a {
  color: #fff;
  font-weight: 900;
}

.sample-footer nav {
  flex-wrap: wrap;
}

.magic-spark {
  position: fixed;
  left: var(--left);
  top: var(--top);
  z-index: 80;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: var(--color);
  border-radius: 50%;
  animation: magicSpark 1.35s ease-out forwards;
}

@keyframes magicSpark {
  to {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.2);
  }
}

@media (max-width: 900px) {
  .starlight-hero,
  .surprise-section,
  .wish-wall {
    grid-template-columns: 1fr;
  }

  .reason-grid,
  .memory-ribbon {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .starlight-nav {
    position: sticky;
    flex-wrap: wrap;
    gap: 14px;
  }

  .starlight-nav nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
  }

  .starlight-hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 58px;
  }

  .gift-stage {
    min-height: 470px;
  }

  .gift-box {
    height: 210px;
  }

  .gift-lid {
    bottom: 246px;
  }

  .gift-ribbon {
    bottom: 306px;
  }

  .portrait-orbit img {
    height: 380px;
  }

  .sample-footer {
    display: grid;
  }
}
