:root {
  --red: #8f1d1d;
  --red-dark: #681313;
  --gold: #b78351;
  --cream: #fbf4e9;
  --paper: #fffaf2;
  --ink: #56352d;
  --shadow: 0 18px 50px rgba(85, 30, 20, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(143,29,29,.04), transparent 22%),
    linear-gradient(180deg, #fffaf2, #f8efe4);
}

body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, select, textarea { font: inherit; }

.cover {
  position: fixed;
  inset: 0;
  min-height: 100svh;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,249,240,.28), rgba(255,249,240,.46)),
    url("../assets/images/bg-cover.png") center/cover no-repeat;
  transition: opacity .8s ease, visibility .8s ease, transform .8s ease;
}

.cover.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4%);
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,246,235,.12));
  pointer-events: none;
}

.cover-card {
  position: relative;
  width: min(90%, 480px);
  margin-top: 30vh;
  text-align: center;
  padding: 28px 22px;
  border-radius: 28px;
  color: var(--red-dark);
  background: rgba(255, 248, 239, .72);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(183,131,81,.28);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--red);
}

.cover h1,
.script-title {
  margin: 10px 0;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  color: var(--red);
}

.cover h1 { font-size: clamp(2.6rem, 8vw, 4.3rem); line-height: 1; }
.cover h1 span,
.script-title span { color: var(--gold); }

.date,
.event-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  letter-spacing: .18em;
}

.guest-box {
  margin: 20px auto;
  padding: 14px;
  max-width: 330px;
  border-top: 1px solid rgba(143,29,29,.18);
  border-bottom: 1px solid rgba(143,29,29,.18);
}

.guest-box p {
  margin: 0 0 5px;
  font-size: .8rem;
}

.primary-btn,
.outline-btn,
.copy-btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  color: white;
  background: linear-gradient(180deg, #a92c2c, #7e1818);
  box-shadow: 0 8px 24px rgba(126,24,24,.28);
}

.primary-btn:hover,
.outline-btn:hover,
.copy-btn:hover { transform: translateY(-2px); }

.primary-btn.full { width: 100%; }

.small-note {
  margin: 14px auto 0;
  max-width: 330px;
  font-size: .68rem;
  line-height: 1.6;
  opacity: .72;
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143,29,29,.35);
  border-radius: 50%;
  color: var(--red);
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.main-content {
  min-height: 100vh;
  padding-bottom: 90px;
  background:
    radial-gradient(circle at 20% 10%, rgba(143,29,29,.035), transparent 18%),
    radial-gradient(circle at 80% 40%, rgba(183,131,81,.04), transparent 18%);
}

.section {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 78px 22px;
  text-align: center;
}

.hero {
  min-height: 76svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.script-title {
  font-size: clamp(3rem, 8vw, 5.7rem);
  line-height: 1;
}

.section-title {
  margin: 0 0 30px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 400;
  color: var(--red);
}

.divider {
  color: var(--gold);
  font-size: 1.5rem;
  margin: 12px 0 20px;
}

.intro {
  width: min(100%, 680px);
  margin: 0 auto;
  line-height: 1.9;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.22rem;
}

.couple-grid,
.event-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}

.person-card h3,
.event-card h3,
.footer h3 {
  margin: 16px 0 8px;
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--red);
}

.person-card p {
  margin: 5px 0;
  font-size: .82rem;
}

.person-card strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
}

.photo-ring {
  width: 180px;
  height: 180px;
  margin: auto;
  border-radius: 50%;
  padding: 7px;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(183,131,81,.09);
}

.photo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.couple-symbol,
.footer-symbol {
  font-family: serif;
  color: var(--red);
  font-size: 3.2rem;
}

.event-grid { grid-template-columns: repeat(2, 1fr); }

.event-card,
.form-card,
.bank-card {
  padding: 28px;
  border: 1px solid rgba(183,131,81,.38);
  border-radius: 24px;
  background: rgba(255,250,242,.86);
  box-shadow: var(--shadow);
}

.event-card .icon { font-size: 1.5rem; }
.event-card h3 { font-size: 2.15rem; }
.event-card p { line-height: 1.7; }
.location { min-height: 54px; }

.outline-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  color: var(--red);
  border: 1px solid var(--red);
  background: transparent;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: min(100%, 600px);
  margin: 0 auto;
}

.countdown > div {
  padding: 20px 10px;
  border-radius: 18px;
  border: 1px solid rgba(183,131,81,.34);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.countdown strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  color: var(--red);
}

.countdown span {
  display: block;
  margin-top: 6px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 15px;
  cursor: zoom-in;
  transition: transform .3s ease, filter .3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  filter: contrast(1.04);
}

.timeline {
  width: min(100%, 680px);
  margin: auto;
  text-align: left;
  border-left: 1px solid rgba(143,29,29,.3);
  padding-left: 28px;
}

.timeline article {
  position: relative;
  margin: 0 0 34px;
}

.timeline article::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  left: -34px;
  top: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(143,29,29,.08);
}

.timeline span {
  font-size: .75rem;
  letter-spacing: .15em;
  color: var(--gold);
}

.timeline h3 {
  margin: 5px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--red);
}

.timeline p {
  margin: 0;
  line-height: 1.8;
}

.form-card {
  width: min(100%, 600px);
  margin: auto;
  text-align: left;
}

.form-card label {
  display: block;
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--red-dark);
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(86,53,45,.18);
  background: white;
  outline: none;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: rgba(143,29,29,.55);
  box-shadow: 0 0 0 3px rgba(143,29,29,.06);
}

.status-text {
  text-align: center;
  min-height: 20px;
  margin-bottom: 0;
  font-size: .8rem;
}

.wish-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: min(100%, 760px);
  margin: auto;
}

.wish-card {
  text-align: left;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,250,242,.85);
  border: 1px solid rgba(183,131,81,.26);
}

.wish-card strong { color: var(--red); }
.wish-card p { margin-bottom: 0; line-height: 1.7; }

.bank-card {
  width: min(100%, 430px);
  margin: 28px auto 0;
}

.bank-name {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--red);
}

.bank-card p {
  margin: 10px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  letter-spacing: .08em;
}

.bank-card strong { display: block; margin-bottom: 18px; }

.copy-btn {
  padding: 10px 16px;
  color: white;
  background: var(--red);
}

.footer {
  padding: 70px 20px 120px;
  text-align: center;
  color: #fff3e7;
  background:
    linear-gradient(180deg, rgba(104,19,19,.94), rgba(78,10,10,.98));
}

.footer p {
  margin: 8px 0;
  letter-spacing: .18em;
  font-size: .72rem;
  text-transform: uppercase;
}

.footer h3 {
  color: #fff3e7;
  margin-top: 12px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 800;
  width: min(calc(100% - 28px), 560px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 9px 8px;
  border-radius: 18px;
  background: rgba(255,248,239,.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(143,29,29,.12);
  box-shadow: 0 10px 35px rgba(75,21,21,.18);
}

.bottom-nav a {
  text-decoration: none;
  color: var(--red);
  text-align: center;
  font-size: 1rem;
}

.bottom-nav span {
  display: block;
  margin-top: 2px;
  font-size: .58rem;
}

.music-btn {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 850;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--red);
  box-shadow: 0 8px 25px rgba(104,19,19,.3);
  cursor: pointer;
}

.music-btn.playing { animation: spin 4s linear infinite; }

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

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(30,10,8,.92);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.image-modal.open {
  opacity: 1;
  visibility: visible;
}

.image-modal img {
  max-height: 86vh;
  max-width: min(92vw, 900px);
  object-fit: contain;
  border-radius: 12px;
}

.image-modal button {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

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

@media (max-width: 700px) {
  .cover {
    background-position: center top;
  }

  .cover-card {
    margin-top: 37vh;
    padding: 20px 16px;
  }

  .section {
    padding: 62px 18px;
  }

  .couple-grid {
    grid-template-columns: 1fr;
  }

  .couple-symbol {
    transform: rotate(0deg);
    margin: -8px 0;
  }

  .event-grid,
  .wish-list {
    grid-template-columns: 1fr;
  }

  .countdown {
    gap: 7px;
  }

  .countdown > div {
    padding: 14px 5px;
    border-radius: 14px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-nav {
    bottom: 9px;
  }

  .music-btn {
    right: 14px;
    bottom: 82px;
  }
}

/* =========================================================
   V2 — Chinese Wedding / Red Floral Theme
   ========================================================= */

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(145, 34, 29, .08), transparent 24%),
    radial-gradient(circle at 85% 75%, rgba(183, 131, 81, .09), transparent 24%),
    #f3e8dc;
}

.main-content {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 250, 243, .95), rgba(255, 248, 240, .97)),
    url("../assets/images/bg-cover.png") center top / 100% auto repeat-y;
  box-shadow: 0 0 70px rgba(77, 26, 18, .13);
}

.main-content::before,
.main-content::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: max(calc((100vw - 760px) / 2), 0px);
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background:
    url("../assets/images/ornament-top.png") center top / 560px auto no-repeat;
  filter: saturate(.7);
}

.main-content::before { left: 0; }
.main-content::after  { right: 0; transform: scaleX(-1); }

.section {
  z-index: 1;
}

.ornate-section {
  position: relative;
  isolation: isolate;
}

.ornate-section::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: min(94%, 680px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(143,29,29,.22), rgba(183,131,81,.55), rgba(143,29,29,.22), transparent);
}

.ornate-section::after {
  content: "◆";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 10px;
  color: var(--gold);
  font-size: .62rem;
  background: #fff8ef;
}

.hero {
  min-height: 100svh;
  padding-top: 300px;
  padding-bottom: 86px;
  background:
    linear-gradient(180deg, rgba(255,250,242,.02) 0%, rgba(255,250,242,.55) 34%, #fff8ef 64%),
    url("../assets/images/ornament-top.png") center top / 100% auto no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: 240px;
  left: 50%;
  width: min(84%, 540px);
  height: 340px;
  transform: translateX(-50%);
  z-index: -1;
  border-radius: 44% 44% 18% 18% / 24% 24% 12% 12%;
  border: 1px solid rgba(183,131,81,.26);
  background: rgba(255,250,243,.78);
  box-shadow:
    0 20px 60px rgba(92,31,22,.10),
    inset 0 0 40px rgba(183,131,81,.07);
}

.hero .eyebrow {
  margin-top: 8px;
}

.hero .script-title {
  text-shadow: 0 3px 18px rgba(143,29,29,.08);
}

.blessing-card {
  width: min(92%, 520px);
  margin: 30px auto 0;
  padding: 22px 28px;
  position: relative;
  border: 1px solid rgba(183,131,81,.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.80), rgba(255,246,235,.85));
  box-shadow: 0 12px 32px rgba(86,53,45,.08);
}

.blessing-card::before,
.blessing-card::after {
  content: "❦";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(143,29,29,.35);
  font-size: 1rem;
}

.blessing-card::before { left: 10px; }
.blessing-card::after  { right: 10px; transform: translateY(-50%) scaleX(-1); }

.blessing-symbol {
  display: block;
  font-family: serif;
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
}

.blessing-card p {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.7;
}

#couple,
#event,
#countdown,
#gallery,
#story,
#rsvp,
#wishes,
#gift {
  background:
    radial-gradient(circle at 0% 0%, rgba(143,29,29,.045), transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(183,131,81,.05), transparent 22%);
}

#couple::before,
#gallery::before,
#rsvp::before,
#gift::before {
  box-shadow: 0 -30px 70px rgba(143,29,29,.02);
}

#couple {
  padding-top: 100px;
}

#couple .section-title,
#event .section-title,
#gallery .section-title,
#story .section-title,
#rsvp .section-title,
#wishes .section-title,
#gift .section-title {
  position: relative;
  display: inline-block;
  padding: 0 26px 12px;
}

#couple .section-title::after,
#event .section-title::after,
#gallery .section-title::after,
#story .section-title::after,
#rsvp .section-title::after,
#wishes .section-title::after,
#gift .section-title::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.person-card {
  position: relative;
  padding: 28px 16px 24px;
  border-radius: 28px;
  background: rgba(255,250,242,.72);
  border: 1px solid rgba(183,131,81,.20);
}

.person-card::before {
  content: "❀";
  position: absolute;
  top: 10px;
  right: 14px;
  color: rgba(143,29,29,.18);
  font-size: 1.8rem;
}

.photo-ring {
  border: 2px solid rgba(183,131,81,.72);
  box-shadow:
    0 0 0 7px rgba(255,250,242,.9),
    0 0 0 8px rgba(143,29,29,.16),
    0 14px 30px rgba(90,35,27,.14);
}

.event-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px 26px 20px 20px;
  background:
    linear-gradient(180deg, rgba(255,252,247,.98), rgba(255,245,235,.94));
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--red-dark), #b7342f, var(--gold), #b7342f, var(--red-dark));
}

.event-card::after {
  content: "囍";
  position: absolute;
  right: 14px;
  bottom: -8px;
  font-family: serif;
  font-size: 4.2rem;
  color: rgba(143,29,29,.055);
}

.countdown-section {
  padding-top: 92px;
  padding-bottom: 100px;
  background:
    linear-gradient(rgba(112,19,19,.90), rgba(92,13,13,.94)),
    url("../assets/images/ornament-bottom.png") center / cover no-repeat !important;
  color: #fff6ec;
}

.countdown-section .eyebrow,
.countdown-section .section-title {
  color: #fff1e2;
}

.countdown-section::after {
  background: transparent;
  color: rgba(255,236,214,.8);
}

.countdown > div {
  border-color: rgba(255,239,217,.26);
  background: rgba(255,248,239,.96);
  box-shadow: 0 18px 36px rgba(42,8,6,.18);
}

.gallery-grid {
  gap: 12px;
}

.gallery-grid img {
  border: 4px solid rgba(255,250,242,.96);
  outline: 1px solid rgba(183,131,81,.28);
  box-shadow: 0 10px 28px rgba(91,36,26,.11);
}

.timeline {
  border-left: 1px solid rgba(183,131,81,.45);
}

.timeline article {
  padding: 18px 18px 18px 22px;
  border-radius: 16px;
  background: rgba(255,250,242,.60);
  border: 1px solid rgba(183,131,81,.14);
}

.form-card,
.bank-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,252,247,.98), rgba(255,245,235,.95));
}

.form-card::before,
.bank-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red-dark), #b73531, var(--gold), #b73531, var(--red-dark));
}

.wish-card {
  box-shadow: 0 8px 24px rgba(86,53,45,.055);
}

.footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(98,13,13,.95), rgba(71,7,7,.98)),
    url("../assets/images/ornament-bottom.png") center bottom / cover no-repeat;
}

.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: min(92%, 620px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,225,195,.65), transparent);
}

.bottom-nav {
  border: 1px solid rgba(143,29,29,.18);
  box-shadow:
    0 12px 36px rgba(75,21,21,.20),
    inset 0 1px 0 rgba(255,255,255,.85);
}

.bottom-nav a {
  transition: transform .2s ease, background .2s ease;
  border-radius: 10px;
  padding: 3px 2px;
}

.bottom-nav a:hover {
  transform: translateY(-2px);
  background: rgba(143,29,29,.055);
}

/* Cover — centered correctly on desktop, no overlap with page content */
.cover {
  width: 100%;
}

@media (min-width: 761px) {
  .cover {
    left: 50%;
    right: auto;
    width: 760px;
    max-width: 100vw;
    transform: translateX(-50%);
    box-shadow: 0 0 70px rgba(77,26,18,.16);
  }

  .cover.hidden {
    transform: translate(-50%, -4%);
  }

  .cover-card {
    width: min(78%, 520px);
    margin-top: 28vh;
  }

  .bottom-nav {
    width: min(540px, calc(100% - 28px));
  }

  .music-btn {
    right: max(18px, calc(50% - 350px));
  }
}

@media (max-width: 760px) {
  .main-content {
    width: 100%;
    box-shadow: none;
  }

  .hero {
    min-height: 92svh;
    padding-top: 245px;
    background-size: 115% auto;
  }

  .hero::before {
    top: 205px;
    height: 320px;
    width: 88%;
  }

  .cover-card {
    width: min(92%, 470px);
    margin-top: 34vh;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .person-card {
    width: min(100%, 430px);
    margin: auto;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 215px;
  }

  .hero::before {
    top: 178px;
  }

  .script-title {
    font-size: 3.3rem;
  }

  .cover h1 {
    font-size: 2.75rem;
  }

  .cover-card {
    margin-top: 31vh;
  }
}

/* =========================================================
   V3 — PHOTO COVER + PHOTO HERO
   ========================================================= */

.photo-cover {
  background: #2c0c0c;
  overflow: hidden;
}

.cover-photo {
  position: absolute;
  inset: 0;
  background: url("../assets/images/cover-couple.jpg") center 42% / cover no-repeat;
  transform: scale(1.03);
  transition: transform 1.4s ease;
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(35,7,7,.10) 0%,
      rgba(40,7,7,.16) 28%,
      rgba(47,8,8,.55) 70%,
      rgba(35,5,5,.84) 100%);
}

.photo-cover::before,
.photo-cover::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 2;
  width: min(95%, 730px);
  transform: translateX(-50%);
  pointer-events: none;
}

.photo-cover::before {
  top: -12px;
  height: 250px;
  background: url("../assets/images/ornament-top.png") center top / 100% auto no-repeat;
  opacity: .50;
}

.photo-cover::after {
  bottom: -20px;
  height: 230px;
  background: url("../assets/images/ornament-bottom.png") center bottom / 100% auto no-repeat;
  opacity: .40;
}

.cover-frame {
  position: relative;
  z-index: 4;
  width: min(88%, 520px);
  margin-top: 34vh;
  padding: 30px 24px 26px;
  text-align: center;
  border: 1px solid rgba(255,233,214,.36);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(81,15,15,.31), rgba(68,11,11,.52));
  backdrop-filter: blur(10px);
  box-shadow:
    0 24px 65px rgba(25,4,4,.34),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.cover-top-symbol {
  font-family: serif;
  font-size: 2.8rem;
  color: #f6d7b7;
  line-height: 1;
  margin-bottom: 10px;
}

.photo-cover .eyebrow.light,
.light-date {
  color: #fff0df;
}

.photo-cover h1 {
  color: #fff8ef;
  text-shadow: 0 4px 22px rgba(0,0,0,.32);
}

.photo-cover h1 span {
  color: #e9bd8e;
}

.guest-box.glass {
  color: #fff5ea;
  border-top-color: rgba(255,235,218,.30);
  border-bottom-color: rgba(255,235,218,.30);
}

.open-btn {
  min-width: 210px;
  background: linear-gradient(180deg, #b52828, #811313);
  border: 1px solid rgba(255,231,207,.22);
  box-shadow:
    0 10px 26px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.cover-note {
  color: rgba(255,240,226,.74);
}

.cover-scroll {
  z-index: 5;
  color: #fff0df;
  border-color: rgba(255,240,223,.34);
}

.photo-cover.hidden .cover-photo {
  transform: scale(1.12);
}

/* HERO FOTO */
.hero-photo-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: #3b0c0c;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: url("../assets/images/hero-couple.jpg") center 42% / cover no-repeat;
  transform: scale(1.015);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(37,6,6,.06) 0%,
      rgba(44,7,7,.09) 34%,
      rgba(51,8,8,.54) 72%,
      rgba(45,5,5,.90) 100%);
}

.hero-photo-section::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 2;
  width: min(100%, 760px);
  height: 250px;
  transform: translateX(-50%);
  background: url("../assets/images/ornament-top.png") center top / 100% auto no-repeat;
  opacity: .35;
  pointer-events: none;
}

.hero-photo-content {
  position: relative;
  z-index: 3;
  width: min(90%, 600px);
  padding: 0 24px 72px;
  text-align: center;
  color: #fff7ee;
}

.hero-light {
  color: #f8dfc4 !important;
}

.hero-names {
  margin: 8px 0 10px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.6rem, 9vw, 6.4rem);
  line-height: .95;
  font-weight: 400;
  color: white;
  text-shadow: 0 5px 24px rgba(0,0,0,.32);
}

.hero-names span {
  color: #edc090;
}

.hero-date {
  margin: 10px 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  letter-spacing: .18em;
}

.hero-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  width: min(82%, 420px);
  margin: 18px auto;
  color: #f2c99e;
}

.hero-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246,216,186,.75));
}

.hero-divider span:last-child {
  background: linear-gradient(90deg, rgba(246,216,186,.75), transparent);
}

.hero-divider b {
  font-family: serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.hero-intro {
  width: min(100%, 520px);
  margin: 0 auto;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.16rem;
  line-height: 1.75;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.hero-down {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 24px auto 0;
  border-radius: 50%;
  border: 1px solid rgba(255,236,218,.45);
  color: #fff0df;
  text-decoration: none;
  animation: bounceHero 1.8s infinite;
}

@keyframes bounceHero {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.person-card {
  backdrop-filter: blur(4px);
}

.photo-ring {
  width: 190px;
  height: 190px;
}

@media (max-width: 760px) {
  .cover-frame {
    margin-top: 36vh;
    width: min(91%, 480px);
    padding: 24px 18px 22px;
  }

  .photo-cover::before {
    height: 190px;
  }

  .photo-cover::after {
    height: 190px;
  }

  .hero-photo {
    background-position: center 38%;
  }

  .hero-photo-content {
    padding-bottom: 82px;
  }

  .hero-names {
    font-size: clamp(3.2rem, 14vw, 4.7rem);
  }
}

@media (max-width: 420px) {
  .cover-frame {
    margin-top: 32vh;
  }

  .cover-top-symbol {
    font-size: 2.35rem;
  }

  .photo-cover h1 {
    font-size: 2.65rem;
  }

  .hero-photo-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* =========================================================
   V3.1 — CLEAN COVER + COUPLE PORTRAITS
   ========================================================= */

/* Hilangkan ornament-top persegi panjang yang sebelumnya menumpuk background */
.photo-cover::before {
  display: none !important;
}

/* Background cover tetap menggunakan foto/template utama tanpa gambar tempelan atas */
.photo-cover {
  background: #3b1513;
}

/* Buat frame sedikit lebih naik agar tambahan foto tetap muat */
.cover-frame {
  margin-top: 20vh;
  padding-top: 24px;
}

/* Foto pria & wanita di cover */
.cover-couple-photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto 15px;
}

.cover-person-photo {
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5d5ad, #a96642, #f3d4ad);
  box-shadow:
    0 8px 22px rgba(0,0,0,.22),
    0 0 0 3px rgba(255,244,227,.14);
}

.cover-person-photo::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  pointer-events: none;
}

.cover-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}

.cover-heart {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #f0c798;
  font-size: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* Simbol 囍 dibuat sedikit lebih ringkas */
.cover-top-symbol {
  margin-bottom: 3px;
  font-size: 2.45rem;
}

/* Jarak nama setelah foto */
.cover-couple-photos + .eyebrow {
  margin-top: 4px;
}

/* Agar keseluruhan kartu tidak terlalu panjang */
.photo-cover h1 {
  margin-top: 7px;
  margin-bottom: 7px;
}

.photo-cover .date {
  margin-top: 12px;
  margin-bottom: 12px;
}

.photo-cover .guest-box {
  margin-top: 14px;
  margin-bottom: 16px;
}

/* Ornament bawah masih boleh ada, tetapi dibuat sangat halus */
.photo-cover::after {
  opacity: .18 !important;
  bottom: -45px;
}

/* Desktop */
@media (min-width: 761px) {
  .cover-frame {
    margin-top: 17vh;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .cover-frame {
    margin-top: 16vh;
    padding: 20px 17px 19px;
  }

  .cover-person-photo {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
  }

  .cover-couple-photos {
    margin: 9px auto 12px;
  }

  .cover-top-symbol {
    font-size: 2.2rem;
  }
}

@media (max-width: 420px) {
  .cover-frame {
    margin-top: 10vh;
    width: 92%;
  }

  .cover-person-photo {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .cover-couple-photos {
    gap: 9px;
  }

  .photo-cover h1 {
    font-size: 2.35rem;
  }

  .cover-note {
    margin-top: 11px;
  }
}

/* =========================================================
   V3.2 — PERBESAR FOTO MEMPELAI DI COVER
   ========================================================= */

/* Foto pasangan dibuat jauh lebih besar dan lebih dominan */
.cover-couple-photos {
  gap: 20px !important;
  margin: 14px auto 22px !important;
}

.cover-person-photo {
  width: 145px !important;
  height: 145px !important;
  flex: 0 0 145px !important;
  padding: 5px !important;
  border-width: 2px !important;
  box-shadow:
    0 12px 28px rgba(0,0,0,.28),
    0 0 0 4px rgba(255,244,227,.16) !important;
}

/* Pastikan wajah memenuhi lingkaran */
.cover-person-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 28% !important;
  transform: scale(1.12);
}

/* Hati di tengah ikut diperbesar sedikit */
.cover-heart {
  width: 34px !important;
  height: 34px !important;
  font-size: 1.25rem !important;
}

/* Karena foto lebih besar, kartu dibuat sedikit lebih lebar */
.cover-frame {
  width: min(94%, 620px) !important;
  margin-top: 9vh !important;
  padding: 24px 26px 24px !important;
}

/* Nama diberi ruang agar tidak terlalu sempit */
.photo-cover h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.6rem) !important;
  line-height: .96 !important;
  margin-top: 8px !important;
}

/* Simbol 囍 tetap proporsional */
.cover-top-symbol {
  font-size: 2.55rem !important;
  margin-bottom: 5px !important;
}

/* Desktop */
@media (min-width: 761px) {
  .cover-person-photo {
    width: 155px !important;
    height: 155px !important;
    flex-basis: 155px !important;
  }

  .cover-frame {
    margin-top: 7vh !important;
  }
}

/* Tablet / HP */
@media (max-width: 760px) {
  .cover-person-photo {
    width: 118px !important;
    height: 118px !important;
    flex-basis: 118px !important;
  }

  .cover-couple-photos {
    gap: 14px !important;
  }

  .cover-frame {
    width: 94% !important;
    margin-top: 7vh !important;
    padding: 20px 18px !important;
  }

  .photo-cover h1 {
    font-size: clamp(2.45rem, 10vw, 3.7rem) !important;
  }
}

/* HP kecil */
@media (max-width: 420px) {
  .cover-person-photo {
    width: 100px !important;
    height: 100px !important;
    flex-basis: 100px !important;
  }

  .cover-couple-photos {
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .cover-heart {
    width: 26px !important;
    height: 26px !important;
    font-size: 1rem !important;
  }

  .cover-frame {
    width: 95% !important;
    margin-top: 4vh !important;
  }

  .photo-cover h1 {
    font-size: 2.45rem !important;
  }
}

/* =========================================================
   V3.3 — FALLING PLUM BLOSSOM PETALS
   ========================================================= */

.petal-container {
  position: fixed;
  inset: 0;
  z-index: 760;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

.petal-container.active {
  display: block;
}

.petal {
  position: absolute;
  top: -12vh;
  left: 0;
  width: var(--size, 14px);
  height: calc(var(--size, 14px) * 0.72);
  border-radius: 80% 15% 70% 30%;
  opacity: var(--opacity, .85);
  transform-origin: 50% 50%;
  will-change: transform;
  animation:
    petalFall var(--duration, 9s) linear forwards,
    petalSway var(--sway-duration, 2.8s) ease-in-out infinite alternate,
    petalSpin var(--spin-duration, 4s) linear infinite;
  filter: drop-shadow(0 3px 4px rgba(80, 12, 12, .12));
}

/* Variasi warna kelopak */
.petal.red {
  background:
    radial-gradient(circle at 35% 28%, #e98585 0 13%, transparent 14%),
    linear-gradient(135deg, #c72d36, #8e171f 70%);
}

.petal.pink {
  background:
    radial-gradient(circle at 35% 28%, #ffd6d6 0 14%, transparent 15%),
    linear-gradient(135deg, #f1a3a8, #d8757d 72%);
}

.petal.cream {
  background:
    radial-gradient(circle at 35% 28%, #fffdf7 0 14%, transparent 15%),
    linear-gradient(135deg, #f9ead8, #e8c9aa 72%);
}

.petal.flower {
  width: var(--size, 18px);
  height: var(--size, 18px);
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 3px 5px rgba(80, 12, 12, .14));
}

.petal.flower::before {
  content: "✿";
  display: block;
  width: 100%;
  height: 100%;
  line-height: 1;
  font-size: var(--size, 18px);
  color: #c72d36;
  text-align: center;
}

@keyframes petalFall {
  0% {
    translate: 0 -12vh;
  }
  100% {
    translate: var(--drift, 80px) 115vh;
  }
}

@keyframes petalSway {
  from { margin-left: calc(var(--sway, 24px) * -1); }
  to   { margin-left: var(--sway, 24px); }
}

@keyframes petalSpin {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

/* Sedikit lebih sedikit di HP kecil agar tetap ringan */
@media (max-width: 480px) {
  .petal {
    filter: drop-shadow(0 2px 3px rgba(80, 12, 12, .10));
  }
}

/* Hormati preferensi pengguna yang mematikan animasi */
@media (prefers-reduced-motion: reduce) {
  .petal-container {
    display: none !important;
  }
}
