@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Cinzel:wght@400;600&family=Montserrat:wght@400;500;600&display=swap");

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --gold:        #c9a84c;
  --gold-light:  #e8d5a3;
  --gold-dim:    rgba(201,168,76,0.32);
  --gold-line:   rgba(201,168,76,0.2);
  --ivory:       #f8f2e6;
  --ivory-dim:   rgba(248,242,230,0.72);
  --maroon:      #2d0a12;
  --maroon-mid:  #4a1020;
  --maroon-rich: #6b1a2e;
  --black:       #0e0408;

  --ff-serif:   "Cormorant Garamond", Georgia, serif;
  --ff-display: "Cinzel", serif;
  --ff-sans:    "Montserrat", sans-serif;

  --cdn: "https://raw.githubusercontent.com/rjdmttk/mita-azis-cdn/main/virginia-faiz/assets/photos";
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  background: var(--maroon);
  font-family: var(--ff-serif);
  -webkit-font-smoothing: antialiased;
}
body.cover-locked { overflow: hidden; }
button, a, input, select, textarea { font: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1,h2,h3 { margin: 0; font-weight: 400; }

/* ─── WRAPPER ────────────────────────────────────────────── */
.invitation {
  width: min(100%, 520px);
  margin: 0 auto;
  background: var(--maroon);
  box-shadow: 0 0 120px rgba(0,0,0,.85);
  overflow: hidden;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .32s; }

/* ─── SECTION BASE ───────────────────────────────────────── */
.section {
  position: relative;
  min-height: 100svh;
  padding: 80px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
/* keep the first screens always rendered (no skip) */
.cover, .video-hero-section { content-visibility: visible; }
/* dark fade at top & bottom to soften the seam between sections */
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(18,5,10,.5) 0%, rgba(18,5,10,.1) 14%, transparent 30%, transparent 70%, rgba(18,5,10,.1) 86%, rgba(18,5,10,.5) 100%);
}

/* parallax photo layer per section */
.section-photo {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  filter: saturate(.75) brightness(.55);
  z-index: 0;
}

/* dark maroon tint overlay */
.section-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(45,10,18,.38) 0%,
      rgba(45,10,18,.18) 40%,
      rgba(45,10,18,.38) 100%);
}

/* gold noise grain */
.section > *:not(.section-photo):not(.section-tint) {
  position: relative;
  z-index: 2;
}

/* gold divider */
.gold-rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-rule.wide { width: 130px; }

/* eyebrow */
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--ff-display);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
}

/* ─── COVER ──────────────────────────────────────────────── */
.cover {
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: stretch;
}
.cover .section-photo {
  inset: 0;
  height: 100%;
  object-position: 62% center;
  filter: saturate(.82) brightness(.72);
}
.cover .section-tint {
  background:
    linear-gradient(180deg,
      rgba(14,4,8,.65) 0%,
      rgba(14,4,8,.18) 22%,
      rgba(14,4,8,.08) 44%,
      rgba(14,4,8,.28) 66%,
      rgba(14,4,8,.85) 100%);
}

/* corner frame */
.cover-frame {
  position: absolute;
  inset: 18px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(201,168,76,0.15);
}
/* 4 corner marks via pseudo + inner spans */
.cover-frame::before, .cover-frame::after,
.cover-frame-bl, .cover-frame-br {
  position: absolute;
  width: 26px; height: 26px;
  border-color: var(--gold);
  border-style: solid;
  opacity: .72;
}
.cover-frame::before { content:""; top: -1px; left: -1px;  border-width: 1.5px 0 0 1.5px; }
.cover-frame::after  { content:""; top: -1px; right: -1px; border-width: 1.5px 1.5px 0 0; }
.cover-frame-bl { display:block; position:absolute; bottom:-1px; left:-1px;  border-width: 0 0 1.5px 1.5px; }
.cover-frame-br { display:block; position:absolute; bottom:-1px; right:-1px; border-width: 0 1.5px 1.5px 0; }

.cover-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100svh;
  padding: 64px 36px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cover-top    { margin-bottom: auto; }
.cover-center { margin: auto 0; padding: 20px 0; }
.cover-bottom { margin-top: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.cover .eyebrow { color: var(--gold-light); }

h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.1rem, 8vw, 3.3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--ivory);
  text-shadow: 0 4px 24px rgba(0,0,0,.85);
  letter-spacing: .02em;
  margin: 14px 0 0;
}
h1 .amp {
  display: inline;
  font-style: italic;
  font-size: .6em;
  color: var(--gold-light);
  margin: 0 .12em;
}
.cover-date {
  margin: 18px 0 0;
  color: var(--gold-light);
  font-family: var(--ff-display);
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.cover-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.cover-divider::before, .cover-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.cover-divider::after { background: linear-gradient(270deg, transparent, var(--gold-dim)); }
.cover-divider-icon { color: var(--gold); font-size: .85rem; }

.guest-card {
  width: 100%;
  padding: 12px 20px;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.guest-card span {
  display: block;
  color: var(--ivory-dim);
  font-family: var(--ff-display);
  font-size: .56rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.guest-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ivory);
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 300;
}

/* ─── PRIMARY BUTTON ─────────────────────────────────────── */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
  cursor: pointer;
  font-family: var(--ff-display);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 260ms, color 260ms, transform 260ms;
  position: relative;
  z-index: 10;
}
.primary-button:hover {
  background: rgba(201,168,76,.12);
  transform: translateY(-2px);
}

/* ─── MUSIC BUTTON ───────────────────────────────────────── */
.music-button {
  position: fixed;
  right: max(16px, calc((100vw - 520px)/2 + 16px));
  bottom: 88px;
  z-index: 50;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: rgba(14,4,8,.52);
  backdrop-filter: blur(6px);
  color: var(--gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
  transition: filter 260ms;
}
.music-button:hover { filter: brightness(1.2); }
.music-button svg { width: 18px; height: 18px; fill: currentColor; }

/* ─── PRAYER ─────────────────────────────────────────────── */
.prayer-section .section-photo { object-position: center 30%; }
.prayer-photo { transform: scale(1.15) !important; transform-origin: center center; }
.prayer-section .section-tint {
  background:
    linear-gradient(180deg, rgba(45,10,18,.44), rgba(45,10,18,.22) 44%, rgba(45,10,18,.48));
}
.paper-prayer {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 36px 28px;
  text-align: center;
}
.paper-prayer::before, .paper-prayer::after {
  content: "";
  display: block;
  height: 1px;
  margin: 0 20px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.paper-prayer::before { margin-bottom: 28px; }
.paper-prayer::after  { margin-top: 28px; }
.paper-prayer .arabic {
  margin: 0 0 20px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, #b8923a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 1.5rem;
  line-height: 1.65;
}
.paper-prayer p {
  margin: 0 0 14px;
  color: var(--ivory-dim);
  font-size: .95rem;
  line-height: 1.95;
}
.paper-prayer blockquote {
  margin: 16px 0;
  padding-left: 14px;
  border-left: 2px solid var(--gold-dim);
  text-align: left;
  font-style: italic;
  color: rgba(248,242,230,.88);
  font-size: .92rem;
  line-height: 1.9;
}
.paper-prayer strong {
  color: var(--gold);
  font-family: var(--ff-display);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ─── PRAYER CORNER FLOWERS ──────────────────────────────── */
.prayer-decor {
  position: absolute !important;
  inset: 0;
  pointer-events: none;
}
.prayer-flower {
  position: absolute;
  width: 36vw;
  max-width: 150px;
  opacity: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.in-view .prayer-flower { opacity: .8; }
@keyframes enterLeft  { from { opacity: 0; transform: translateX(-55px); } }
@keyframes enterRight { from { opacity: 0; transform: translateX(55px); } }
.pf-tl { top: 0; left: 0;   transform-origin: top left; }
.pf-tr { top: 0; right: 0;  transform-origin: top right; }
.pf-bl { bottom: 0; left: 0;  transform-origin: bottom left; }
.pf-br { bottom: 0; right: 0; transform-origin: bottom right; }
.in-view .pf-tl { animation: enterLeft .9s ease-out, swayTL 5s ease-in-out .9s infinite; }
.in-view .pf-tr { animation: enterRight .9s ease-out, swayTR 5.7s ease-in-out .9s infinite; }
.in-view .pf-bl { animation: enterLeft .9s ease-out, swayBL 6.3s ease-in-out .9s infinite; }
.in-view .pf-br { animation: enterRight .9s ease-out, swayBR 5.4s ease-in-out .9s infinite; }
@keyframes swayTL { 0%,100%{ transform: rotate(0) scale(1); } 50%{ transform: rotate(3deg) scale(1.04); } }
@keyframes swayTR { 0%,100%{ transform: rotate(0) scale(1); } 50%{ transform: rotate(-3deg) scale(1.04); } }
@keyframes swayBL { 0%,100%{ transform: rotate(0) scale(1); } 50%{ transform: rotate(-2.5deg) scale(1.05); } }
@keyframes swayBR { 0%,100%{ transform: rotate(0) scale(1); } 50%{ transform: rotate(2.5deg) scale(1.05); } }

/* ─── SECTION HEADING ────────────────────────────────────── */
.section-heading {
  margin: 0 auto 32px;
  text-align: center;
  width: min(100%, 420px);
}
.section-heading h2,
.location-card h2,
.form-card h2,
.closing-copy h2 {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  line-height: .92;
  color: var(--ivory);
  letter-spacing: .02em;
}

/* ─── COUPLE ─────────────────────────────────────────────── */
.couple-section { background: var(--maroon) url("https://raw.githubusercontent.com/rjdmttk/mita-azis-cdn/main/virginia-faiz/assets/section-bg.webp") center center / cover no-repeat; }
.couple-section .section-photo { display: none; }
.couple-section .section-tint { display: none; }
.couple-decor {
  position: absolute !important;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.couple-deco-left {
  position: absolute;
  top: 0; left: 0;
  width: 42vw; max-width: 190px;
  opacity: 0;
}
.couple-deco-right {
  position: absolute;
  top: 0; right: 0;
  width: 42vw; max-width: 190px;
  opacity: 0;
}
.in-view .couple-deco-left  { opacity: .85; animation: enterLeft 1s ease-out; }
.in-view .couple-deco-right { opacity: .85; animation: enterRight 1s ease-out; }
/* ─── SIDE FLORALS (reusable) ────────────────────────────── */
.flora-decor {
  position: absolute !important;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.flora-left, .flora-right {
  position: absolute;
  bottom: 0;
  width: 40vw; max-width: 180px;
  opacity: 0;
}
.flora-left  { left: 0;  transform-origin: bottom left; }
.flora-right { right: 0; transform-origin: bottom right; }
.in-view .flora-left  { opacity: .85; animation: enterLeft .9s ease-out, swayBL 5.6s ease-in-out .9s infinite; }
.in-view .flora-right { opacity: .85; animation: enterRight .9s ease-out, swayBR 6.1s ease-in-out .9s infinite; }
.flora-top-left, .flora-top-right {
  position: absolute;
  top: -20%;
  width: 38vw; max-width: 165px;
  opacity: 0;
}
.flora-top-left  { left: 0;  transform-origin: top left; }
.flora-top-right { right: 0; transform-origin: top right; }
.in-view .flora-top-left  { opacity: .82; animation: enterLeft .9s ease-out, swayTL 6.4s ease-in-out .9s infinite; }
.in-view .flora-top-right { opacity: .82; animation: enterRight .9s ease-out, swayTR 6.9s ease-in-out .9s infinite; }
.couple-grid {
  display: grid;
  gap: 48px;
  width: min(100%, 420px);
  margin: 0 auto;
}
.person-card { text-align: center; }
.portrait-frame {
  position: relative;
  width: min(100%, 190px);
  margin: 0 auto;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 0 6px rgba(201,168,76,.08), 0 12px 40px rgba(0,0,0,.55);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(180deg, transparent 52%, rgba(14,4,8,.72));
  pointer-events: none;
}
.portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.88);
}
.portrait-slide { opacity: 0; transition: opacity .65s ease; }
.bride-card img  { object-position: center 20%; }
.groom-card img  { object-position: center top; }
.role {
  margin: 18px 0 8px;
  color: var(--gold);
  font-family: var(--ff-display);
  font-size: .56rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.person-copy { width: min(100%, 380px); margin: 0 auto; }
.person-copy h3 {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 7vw, 2.7rem);
  line-height: 1.04;
  white-space: nowrap;
  color: var(--ivory);
}
.person-copy h3::after {
  content: "";
  display: block;
  width: 48px; height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.person-copy p {
  margin: 10px 0 0;
  color: var(--ivory-dim);
  font-size: .9rem;
  line-height: 1.85;
}

/* ─── LOVE STORY ─────────────────────────────────────────── */
.love-story-section {
  min-height: auto;
  padding-top: 72px;
  padding-bottom: 72px;
  background: var(--maroon);
}
.love-story-section .section-photo {
  object-position: center;
}
.love-story-section .section-tint {
  background: linear-gradient(180deg, rgba(14,4,8,.62), rgba(45,10,18,.34) 46%, rgba(14,4,8,.72));
}
.love-story-section .flora-decor {
  z-index: 2;
}
.love-story-section .flora-top-left,
.love-story-section .flora-top-right {
  top: 0;
}
.love-story-section .flora-left,
.love-story-section .flora-right {
  bottom: 0;
}
.love-story-list {
  width: min(100%, 420px);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}
.story-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: rgba(14,4,8,.42);
  box-shadow: 0 12px 38px rgba(0,0,0,.38);
}
.story-photo-frame {
  position: relative;
  margin: 14px 14px 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(232,213,163,.42);
  background:
    linear-gradient(135deg, rgba(232,213,163,.35), rgba(201,168,76,.08) 34%, rgba(14,4,8,.38) 70%, rgba(232,213,163,.28));
  box-shadow:
    0 0 0 1px rgba(201,168,76,.18),
    0 10px 26px rgba(0,0,0,.38),
    inset 0 0 20px rgba(201,168,76,.1);
}
.story-photo-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(248,242,230,.28);
}
.story-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(var(--gold-light), var(--gold-light)) left 5px top 5px / 34px 1px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) left 5px top 5px / 1px 34px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) right 5px top 5px / 34px 1px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) right 5px top 5px / 1px 34px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) left 5px bottom 5px / 34px 1px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) left 5px bottom 5px / 1px 34px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) right 5px bottom 5px / 34px 1px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) right 5px bottom 5px / 1px 34px no-repeat;
  opacity: .74;
}
.story-photo-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(.88) brightness(.92);
  border: 1px solid rgba(14,4,8,.72);
  box-shadow: inset 0 0 0 1px rgba(232,213,163,.16);
}
.story-copy {
  padding: 20px 18px 22px;
}
.story-copy h3 {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.55rem, 6vw, 2.1rem);
  font-weight: 300;
  line-height: 1.08;
}
.story-copy p {
  margin: 0;
  color: var(--ivory-dim);
  font-size: .9rem;
  line-height: 1.85;
}

/* ─── DATE ───────────────────────────────────────────────── */
.date-section .section-photo { object-position: center 60%; }
.date-section .section-tint {
  background: linear-gradient(180deg, rgba(45,10,18,.38), rgba(45,10,18,.22) 50%, rgba(45,10,18,.38));
}
.date-layout {
  width: min(100%, 410px);
  margin: 0 auto;
  padding: 32px 24px;
  border: 1px solid var(--gold-line);
  background: rgba(14,4,8,.28);
  text-align: center;
}
.save-date {
  margin: 0 0 20px;
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.date-mark {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.date-mark span {
  font-family: var(--ff-display);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.date-mark strong {
  color: var(--gold);
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 5rem;
  font-weight: 300;
  line-height: .8;
}
.event-list { display: grid; gap: 10px; margin-top: 24px; }
.event-list article {
  padding: 14px 16px;
  border: 1px solid var(--gold-line);
  background: rgba(201,168,76,.05);
}
.event-list span, .event-list strong { display: block; }
.event-list span {
  color: var(--gold);
  font-family: var(--ff-display);
  font-size: .56rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.event-list strong {
  margin-top: 6px;
  color: var(--ivory);
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 300;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
}
.countdown div {
  padding: 10px 4px;
  border: 1px solid var(--gold-line);
  background: rgba(201,168,76,.04);
  text-align: center;
}
.countdown strong { display: block; font-family: var(--ff-display); font-size: 1rem; color: var(--gold); }
.countdown span   { display: block; margin-top: 3px; color: var(--ivory-dim); font-family: var(--ff-display); font-size: .48rem; letter-spacing: .1em; text-transform: uppercase; }

/* ─── LOCATION ───────────────────────────────────────────── */
.location-section .section-photo { object-position: center 40%; }
.location-card {
  width: min(100%, 330px);
  margin: 0 auto;
  padding: 22px 20px;
  border: 1px solid var(--gold-line);
  background: rgba(14,4,8,.5);
  backdrop-filter: blur(6px);
  text-align: center;
}
.location-card .eyebrow { color: var(--gold); margin-bottom: 10px; }
.location-card h2 { color: var(--ivory); margin-bottom: 10px; font-size: 1.5rem; }
.location-card p  { color: var(--ivory-dim); font-size: .85rem; line-height: 1.8; margin: 0 0 16px; }

/* ─── GALLERY SLIDER ─────────────────────────────────────── */
.national-gallery .section-photo { object-position: center; }
.national-gallery .section-heading { margin-bottom: 22px; }
.slider { width: min(100%, 440px); margin: 0 auto; }
.slider-track { position: relative; aspect-ratio: 3/2; }
.slide {
  position: absolute; inset: 0; margin: 0;
  overflow: hidden; opacity: 0;
  transform: translateX(28px) scale(.97);
  transition: opacity 480ms ease, transform 480ms ease;
}
.slide.is-active { opacity: 1; transform: none; }
.slide img { width: 100%; height: 100%; object-fit: contain; background: var(--black); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(14,4,8,.6));
  pointer-events: none;
}
.slider-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 8px;
}
.slider-actions button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 12px;
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  background: transparent;
  cursor: pointer;
  font-family: var(--ff-display);
  font-size: .56rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background 240ms;
}
.slider-actions button:hover { background: rgba(201,168,76,.1); }

.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: transparent;
}
.dots { display: flex; justify-content: center; gap: 6px; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-line); border: 1px solid var(--gold-dim); }
.dots span.is-active { background: var(--gold); }

/* ─── ADAT GALLERY ───────────────────────────────────────── */
.adat-gallery { background: var(--maroon) url("https://raw.githubusercontent.com/rjdmttk/mita-azis-cdn/main/virginia-faiz/assets/section-bg.webp") center center / cover no-repeat; }
.adat-gallery .section-photo { display: none; }
.adat-gallery .section-tint { display: none; }
.adat-gallery .section-heading h2 { color: var(--ivory); }
.adat-stage {
  position: relative;
  width: min(100%, 420px);
  min-height: 580px;
  margin: 0 auto;
}
.adat-focus, .orbit-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  background: var(--black);
  box-shadow: 0 0 0 6px rgba(201,168,76,.08), 0 16px 50px rgba(0,0,0,.55);
}
.adat-focus {
  left: 50%; top: 55%;
  width: 70%; aspect-ratio: 2/3;
  transform: translate(-50%, -50%);
}
.adat-focus img, .orbit-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.adat-focus::after, .orbit-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(14,4,8,.55));
  pointer-events: none;
}
.adat-focus .adat-img {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.25s ease;
}
.adat-focus .adat-img.is-active { opacity: 1; }
.adat-focus::after { z-index: 5; }
.orbit-card { width: 35%; aspect-ratio: 2/3; animation: floatCard 8s ease-in-out infinite; }
.card-a { left:-2%; top:7%;  transform: rotate(-6deg); }
.card-b { right:-2%; top:3%; transform: rotate(5deg);  animation-delay: -1.8s; }
.card-c { left:2%;  bottom:0; transform: rotate(5deg); animation-delay: -3.4s; }
.card-d { right:1%; bottom:4%; transform: rotate(-5deg); animation-delay: -5s; }
@keyframes floatCard { 0%,100%{ translate:0 0; } 50%{ translate:0 -12px; } }

/* ─── COLLAGE ────────────────────────────────────────────── */
.collage-section { min-height: auto; padding: 48px 16px; background: var(--maroon) url("https://raw.githubusercontent.com/rjdmttk/mita-azis-cdn/main/virginia-faiz/assets/section-bg.webp") center center / cover no-repeat; }
.collage-section::before { display: none; }

.collage-heading {
  text-align: center;
  margin-bottom: 28px;
}
.collage-heading .eyebrow { color: var(--gold); }
.collage-heading h2 {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  color: var(--ivory);
  line-height: .92;
  margin: 8px 0 0;
}

.collage {
  width: min(100%, 500px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 3px;
  background: linear-gradient(135deg, rgba(201,168,76,.18), transparent);
  padding: 1px;
}
.collage figure {
  margin: 0;
  overflow: hidden;
  position: relative;
}
.collage figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45,10,18,.15);
  transition: opacity 400ms;
  pointer-events: none;
}
.collage figure:hover::after { opacity: 0; }
.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.88) brightness(.94);
  transition: transform 600ms ease, filter 400ms;
}
.collage figure:hover img { transform: scale(1.04); filter: saturate(1) brightness(1); }

/* layout: full-width top, two col, full-width bottom */
.collage-f1 { grid-column: span 2; }
.collage-f2 { grid-column: 1; }
.collage-f3 { grid-column: 2; }
.collage-f4 { grid-column: span 2; }
.collage-f5 { grid-column: 1; }
.collage-f6 { grid-column: 2; }

/* ─── RSVP / WISHES ──────────────────────────────────────── */
.rsvp-wishes-section { min-height: auto; padding-top: 80px; padding-bottom: 80px; background: var(--maroon) url("https://raw.githubusercontent.com/rjdmttk/mita-azis-cdn/main/virginia-faiz/assets/section-bg.webp") center center / cover no-repeat; }
.rsvp-wishes-section .section-photo { display: none; }
.rsvp-wishes-section .section-tint { display: none; }
.rsvp-wishes-shell {
  width: min(100%, 440px);
  margin: 0 auto;
  display: grid;
  gap: 36px;
}
/* ─── WEDDING GIFT ───────────────────────────────────────── */
.gift-section { background: var(--maroon) url("https://raw.githubusercontent.com/rjdmttk/mita-azis-cdn/main/virginia-faiz/assets/section-bg.webp") center center / cover no-repeat; }
.gift-intro {
  width: min(100%, 440px);
  margin: 0 auto 26px;
  text-align: center;
  color: var(--ivory-dim);
  font-size: .92rem;
  line-height: 1.85;
}
.gift-cards {
  width: min(100%, 420px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.gift-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--gold-line);
  background: rgba(14,4,8,.4);
  box-shadow: 0 0 0 6px rgba(201,168,76,.06), 0 12px 34px rgba(0,0,0,.45);
}
.gift-bank {
  font-family: var(--ff-display);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.gift-no {
  font-family: var(--ff-serif);
  font-size: 1.7rem;
  letter-spacing: .08em;
  color: var(--ivory);
}
.gift-no, .gift-no a { color: var(--ivory) !important; -webkit-text-fill-color: var(--ivory); text-decoration: none; }
.gift-name {
  font-size: .82rem;
  color: var(--ivory-dim);
  margin-bottom: 8px;
}
.gift-copy {
  cursor: pointer;
  padding: 9px 22px;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--ff-display);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .3s, color .3s;
}
.gift-copy:hover, .gift-copy.copied { background: var(--gold); color: var(--maroon); }
.form-card .eyebrow { color: var(--gold); }
.form-card h2 { color: var(--ivory); margin-bottom: 22px; }
.rsvp-card { padding-bottom: 28px; border-bottom: 1px solid var(--gold-line); }
form { display: grid; gap: 12px; }
label {
  display: grid; gap: 6px;
  color: var(--gold);
  font-family: var(--ff-display);
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
input, select, textarea {
  width: 100%; min-height: 46px;
  border: 1px solid var(--gold-line);
  padding: 0 14px;
  color: var(--ivory);
  background: rgba(14,4,8,.5);
  outline: none;
  font-family: var(--ff-serif);
  font-size: .9rem;
  letter-spacing: 0;
  text-transform: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold-dim); }
textarea { min-height: 100px; padding-top: 12px; resize: vertical; }
option { color: var(--maroon); }
::placeholder { color: rgba(248,242,230,.3); }
.form-note { min-height: 20px; margin: 0; color: var(--ivory-dim); font-size: .8rem; line-height: 1.6; }
.wish-list { display: grid; gap: 10px; margin-top: 16px; }
.wish-list article { padding: 12px 14px; border: 1px solid var(--gold-line); background: rgba(14,4,8,.4); }
.wish-list strong { display: block; color: var(--gold-light); font-family: var(--ff-display); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.wish-list p { margin: 7px 0 0; color: var(--ivory-dim); font-size: .82rem; line-height: 1.7; }
.wish-time { display: block; margin-top: 8px; color: var(--gold-dim); font-family: var(--ff-display); font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; }

/* ─── CLOSING ────────────────────────────────────────────── */
.closing-section {
  min-height: 88svh;
  padding: 0;
}
.closing-section .section-photo {
  inset: 0; height: 100%;
  object-position: center 30%;
  filter: saturate(.75) brightness(.55);
}
.closing-section .section-tint {
  background: linear-gradient(180deg, rgba(14,4,8,.18), rgba(14,4,8,.52) 55%, rgba(14,4,8,.96));
}
.closing-copy {
  position: relative;
  z-index: 2;
  margin: 0 auto auto;
  width: 100%;
  padding: clamp(96px, 16svh, 150px) 28px 0;
  text-align: center;
}
.closing-copy p { margin: 18px auto 0; max-width: 400px; color: var(--ivory-dim); font-size: .92rem; line-height: 1.9; }
.closing-copy h2 { color: var(--ivory); }
.closing-copy .wedding-hashtag {
  font-size: clamp(1.32rem, 5.4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ─── FOOTER CREDIT ──────────────────────────────────────── */
.footer-credit {
  padding: 22px 28px;
  text-align: center;
  border-top: 1px solid var(--gold-line);
  background: var(--black);
}
.footer-credit p { margin: 0; color: rgba(248,242,230,.35); font-family: var(--ff-display); font-size: .5rem; letter-spacing: .18em; text-transform: uppercase; }
.footer-credit a { color: var(--gold); text-decoration: none; }
.footer-credit a:hover { color: var(--gold-light); }
.footer-credit-ig {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px;
  color: rgba(248,242,230,.35);
  font-family: var(--ff-display); font-size: .5rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; transition: color 200ms;
}
.footer-credit-ig:hover { color: var(--gold); }
.footer-credit-ig svg { width: 12px; height: 12px; fill: currentColor; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (min-width: 760px) {
  body { padding: 24px 0; }
}
@media (min-width: 900px) {
  .invitation { width: min(100% - 48px, 1100px); }
  .cover-panel { padding: 28px 36px 32px; }
  .cover h1 { font-size: clamp(2.6rem, 4vw, 3.4rem); margin-top: 8px; }
  .cover-center { padding: 12px 0; }
  .section { padding: 88px clamp(40px,6vw,80px); }
  .cover { padding: 0; }
  .couple-grid { grid-template-columns: 1fr 1fr; width: min(100%, 880px); }
  .date-layout, .location-card { width: min(100%, 580px); }
  .rsvp-wishes-shell { width: min(100%, 760px); grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .rsvp-card { padding-right: 40px; padding-bottom: 0; border-right: 1px solid var(--gold-line); border-bottom: 0; }
  .event-list { grid-template-columns: 1fr 1fr; }
  .slider { width: min(100%, 800px); }
  .collage { width: min(100%, 820px); grid-template-columns: 1.1fr .9fr 1fr; grid-auto-rows: 200px; }
  .love-story-list { width: min(100%, 820px); }
  .story-card { display: grid; grid-template-columns: minmax(260px, .9fr) 1.1fr; }
  .story-photo-frame { height: calc(100% - 28px); margin: 14px 0 14px 14px; }
  .story-photo-frame img { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 380px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .date-layout, .location-card { padding: 20px 16px; }
}

/* ─── VIDEO HERO ─────────────────────────────────────────── */
.video-hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  padding: 56px 28px 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("assets/video-section-bg.jpg") center/cover no-repeat;
}
.video-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14,4,8,.42);
  z-index: 0;
}
.video-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.video-hero-inner > .eyebrow {
  font-size: .78rem;
  letter-spacing: .36em;
  color: var(--gold-light);
  margin: 0;
}
/* framed video box */
.video-frame {
  width: 100%;
  position: relative;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 0 6px rgba(201,168,76,.08), 0 12px 40px rgba(0,0,0,.55);
  overflow: hidden;
}
/* gold corner marks */
.video-frame::before, .video-frame::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--gold);
  border-style: solid;
  opacity: .8;
  z-index: 2;
}
.video-frame::before { top: 0; left: 0;   border-width: 1.5px 0 0 1.5px; }
.video-frame::after  { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
}
.video-hero-names-block { text-align: center; }
.video-hero-names {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.4rem, 14vw, 5rem);
  line-height: .88;
  color: var(--ivory);
  text-shadow: 0 4px 20px rgba(0,0,0,.7);
  margin: 0 0 14px;
}
.amp-sm {
  display: block;
  font-size: .46em;
  color: var(--gold-light);
  line-height: 1.1;
}
.video-hero-names-block .cover-date { margin-top: 0; }

/* ─── PORTRAIT GOLD FRAME ────────────────────────────────── */
.portrait-frame {
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 0 6px rgba(201,168,76,.08), 0 12px 40px rgba(0,0,0,.55);
}
.portrait-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 1.5px 0 0 1.5px;
  opacity: .8;
  z-index: 5;
}

/* ─── DIAGONAL GALLERY (auto-swiper) ─────────────────────── */
/* ─── DIAGONAL GALLERY (auto-swiper) ─────────────────────── */
.moments-video {
  width: min(100%, 460px);
  margin: 26px auto;
  position: relative;
  z-index: 2;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 0 6px rgba(201,168,76,.08), 0 14px 44px rgba(0,0,0,.6);
  overflow: hidden;
}
.moments-video video { display: block; width: 100%; height: auto; }
.diagonal-gallery {
  width: 100%;
  overflow: hidden;
  transform: rotate(-12deg);
  margin: -20px 0;
}
.diagonal-row {
  overflow: hidden;
  margin: 8px 0;
}
.diagonal-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: slideLeft 45s linear infinite;
}
.row-right .diagonal-track {
  animation: slideRight 45s linear infinite;
}
.diagonal-gallery figure {
  margin: 0;
  flex-shrink: 0;
  width: 180px;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 0 4px rgba(201,168,76,.08), 0 8px 24px rgba(0,0,0,.5);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.diagonal-gallery figure::before, .diagonal-gallery figure::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--gold);
  border-style: solid;
  opacity: .8;
  z-index: 2;
}
.diagonal-gallery figure::before { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.diagonal-gallery figure::after  { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.diagonal-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(.94);
}
@keyframes slideLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes slideRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 94vw;
  max-height: 92svh;
  object-fit: contain;
  border: 1px solid var(--gold-line);
  box-shadow: 0 0 60px rgba(0,0,0,.8);
}

/* ─── CURTAIN ────────────────────────────────────────────── */
#undangan .curtain,
#memories .curtain {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
}
.curtain-left,
.curtain-right {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  background-color: #2d0a12;
  background-image: url("assets/curtain-melayu.webp");
  background-size: cover;
  background-position: right center;
  transition: transform 3s cubic-bezier(0.22, 1, 0.36, 1);
}
.curtain-right {
  background-position: left center;
}
.curtain.open .curtain-left  { transform: translateX(-100%); }
.curtain.open .curtain-right { transform: translateX(100%); }
