/* =====================================================================
   LUXURY EDITORIAL WEDDING — style.css
   Mobile-first. Warna & font utama diatur di :root.
   ===================================================================== */

:root {
  /* Palet */
  --ivory: #fbf8f2;
  --cream: #f4eee4;
  --champagne: #ece2d1;
  --sand: #dccdb4;
  --gold: #7f6336;            /* teks & ikon (kontras AA) */
  --gold-light: #a98c5a;      /* ornamen dekoratif */
  --gold-soft: #d3bd94;
  --gold-line: rgba(169, 140, 90, 0.42);
  --ink: #2a2420;
  --ink-soft: #4b433c;
  --muted: #6f645a;
  --line: rgba(42, 36, 32, 0.12);
  --espresso: #1b1714;
  --bg: var(--ivory);

  /* Tipografi */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Gerak */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-curtain: cubic-bezier(0.77, 0, 0.18, 1);

  /* Ruang */
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(96px, 15vw, 176px);
  --nav-h: 64px;
  --shadow-soft: 0 34px 60px -34px rgba(42, 36, 32, 0.32);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 1px);
}
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

/* Grain halus di seluruh halaman */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

::selection { background: var(--champagne); color: var(--ink); }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 0.95em; height: 0.95em; }

/* ---------- Tipografi umum ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  line-height: 1.6;
}
.amp { font-family: var(--serif); font-style: italic; font-weight: 300; }

.ornament {
  width: 180px;
  height: 18px;
  margin: 0 auto;
  color: var(--gold-light);
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }
.container--wide { max-width: 1440px; }

.section { position: relative; padding-block: var(--section-y); background: var(--bg); }

.section-head { text-align: center; margin-bottom: clamp(52px, 8vw, 92px); }
.section-head__no {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.7rem, 10vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-head__sub {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 3.8vw, 1.35rem);
  color: var(--muted);
}
.section-head__lead {
  max-width: 34em;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  text-wrap: pretty;
}
.section-head::after {
  content: "";
  display: block;
  width: 1px;
  height: 44px;
  margin: 28px auto 0;
  background: linear-gradient(var(--gold-line), transparent);
}

/* ---------- Tombol ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  min-height: 52px;
  padding: 0 2.2em;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  border: 1px solid currentColor;
  transition: color 0.55s var(--ease), border-color 0.55s var(--ease), background-color 0.55s var(--ease);
}
.btn > span { margin-right: -0.3em; }
.btn .icon { width: 1.35em; height: 1.35em; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }

.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn--dark::before { background: var(--gold); }
.btn--dark:hover { border-color: var(--gold); }

.btn--light { color: var(--ivory); border-color: rgba(251, 248, 242, 0.65); background: rgba(251, 248, 242, 0.05); }
.btn--light::before { background: var(--ivory); }
.btn--light:hover, .btn--light:focus-visible { color: var(--ink); border-color: var(--ivory); }

.btn--outline-light { color: var(--ivory); border-color: rgba(251, 248, 242, 0.35); }
.btn--outline-light::before { background: rgba(251, 248, 242, 0.12); }

.btn--ghost { color: var(--ink); border-color: rgba(42, 36, 32, 0.25); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ivory); border-color: var(--ink); }

.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: 0.7; }
.btn.is-copied { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }

/* =====================================================================
   OPENING
   ===================================================================== */
.opening {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--espresso);
  color: var(--ivory);
  text-align: center;
}
.opening__curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  overflow: hidden;
  transition: transform 1.15s var(--ease-curtain);
}
.opening__curtain--left { left: 0; }
.opening__curtain--right { right: 0; }
.opening__img {
  position: absolute;
  top: 0;
  width: 199.2%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.03);
  animation: coverIn 6s var(--ease-out) both;
  transition: transform 1.5s var(--ease), filter 1.2s var(--ease);
}
@keyframes coverIn {
  from { transform: scale(1.14); }
  to { transform: scale(1.03); }
}
.opening__curtain--left .opening__img { left: 0; transform-origin: 50.2% 50%; }
.opening__curtain--right .opening__img { right: 0; transform-origin: 49.8% 50%; }

.opening__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(22, 18, 15, 0.28) 0%, rgba(22, 18, 15, 0.72) 100%),
    linear-gradient(180deg, rgba(22, 18, 15, 0.3) 0%, rgba(22, 18, 15, 0.15) 40%, rgba(22, 18, 15, 0.7) 100%);
  transition: opacity 0.9s var(--ease);
}
.opening__shade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--espresso);
  animation: shadeIn 2.2s var(--ease) 0.15s both;
}
@keyframes shadeIn { from { opacity: 1; } to { opacity: 0; } }

.opening__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-height: 100%;
  padding: max(32px, env(safe-area-inset-top)) var(--gutter) max(32px, env(safe-area-inset-bottom));
  visibility: hidden;
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.opening.is-ready .opening__content { visibility: visible; }
.opening__item {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease-out), filter 1.4s var(--ease);
  transition-delay: calc(0.7s + var(--i, 0) * 0.24s);
}
.opening.is-ready .opening__item { opacity: 1; transform: none; filter: blur(0); }

.opening .eyebrow { color: rgba(251, 248, 242, 0.85); }
.opening__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(16px, 3vh, 26px) 0 clamp(14px, 2.5vh, 22px);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.3rem, 15.5vw, 7.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.opening__names .amp { font-size: 0.52em; color: var(--gold-soft); margin: 0.16em 0 0.1em; }
.opening__date { letter-spacing: 0.32em; }

.opening__guest { position: relative; margin: clamp(30px, 6vh, 56px) 0 clamp(26px, 4.5vh, 40px); padding-top: 28px; }
.opening__guest::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 44px;
  height: 1px;
  margin-left: -22px;
  background: var(--gold-soft);
}
.opening__dear { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: rgba(251, 248, 242, 0.78); }
.opening__honorific {
  margin-top: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.72);
}
.opening__guest-name {
  margin-top: 4px;
  max-width: 18em;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 6.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* Transisi membuka (tirai) */
.opening.is-opening { pointer-events: none; background: transparent; transition: background 0s 0.3s; }
.opening.is-opening .opening__content { opacity: 0; transform: scale(0.97) translateY(-12px); filter: blur(8px); }
.opening.is-opening .opening__shade { opacity: 0; transition-delay: 0.25s; }
.opening.is-opening .opening__curtain { transition-delay: 0.3s; }
.opening.is-opening .opening__curtain--left { transform: translateX(-101%); }
.opening.is-opening .opening__curtain--right { transform: translateX(101%); }
.opening.is-opening .opening__img { animation: none; transform: scale(1.1); filter: blur(3px); }

@media (max-height: 640px) {
  .opening__names { font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .opening__guest { margin: 22px 0 22px; padding-top: 20px; }
}

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease-out);
}
body.is-open .nav { opacity: 1; transform: none; transition-delay: 1.2s; }
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 248, 242, 0.86);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.nav.is-scrolled::before {
  opacity: 1;
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.nav__brand {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav__menu { display: flex; gap: clamp(22px, 3vw, 44px); }
.nav__link {
  position: relative;
  padding: 10px 0;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.32em;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__toggle { position: relative; z-index: 2; display: none; width: 44px; height: 44px; margin-right: -10px; }
.nav__toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-menu-open .nav__toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.is-menu-open .nav__toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--ivory);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
  }
  .nav.is-menu-open .nav__menu { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav.is-menu-open::before { opacity: 0; }
  .nav__link {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-out);
  }
  .nav__link::after { right: 0; bottom: 10px; }
  .nav.is-menu-open .nav__link { opacity: 1; transform: none; transition-delay: calc(0.08s + var(--n, 0) * 0.06s); }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  --bg: var(--ivory);
  --photo-w: min(64vw, 330px);
  --name-size: clamp(3.3rem, 16.5vw, 6.6rem);
  --overlap: 0.4;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 88px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 42%, #fffdf9 0%, var(--ivory) 55%, var(--cream) 100%);
}
.hero__branch {
  position: absolute;
  width: clamp(140px, 30vw, 300px);
  height: auto;
  aspect-ratio: 160 / 60;
  color: var(--gold-light);
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  opacity: 0.5;
  pointer-events: none;
}
.hero__branch--tr { top: calc(var(--nav-h) + 8px); right: -24px; scale: -1 1; rotate: 8deg; }
.hero__branch--bl { bottom: 40px; left: -24px; scale: 1 -1; rotate: -8deg; }

.hero__eyebrow { min-height: 1.6em; margin-bottom: clamp(18px, 3.5vh, 34px); color: var(--muted); }

.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
  padding-block: calc(var(--name-size) * 0.66);
}
.hero__photo {
  position: relative;
  width: var(--photo-w);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 50% / 37.5%;
  box-shadow: 0 0 0 10px var(--bg), 0 0 0 11px var(--gold-line), var(--shadow-soft);
  background: var(--champagne);
}
.hero__parallax { position: absolute; inset: -8% 0; }
.hero__parallax img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.hero__names { position: absolute; inset: 0; pointer-events: none; font-family: var(--serif); font-weight: 300; }
.hero__name {
  position: absolute;
  font-size: var(--name-size);
  line-height: 0.92;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
}
.hero__name--groom { top: 0; right: calc(50% + var(--photo-w) * (0.5 - var(--overlap))); }
.hero__name--bride { bottom: 0; left: calc(50% + var(--photo-w) * (0.5 - var(--overlap))); }
.hero__amp {
  position: absolute;
  left: 50%;
  bottom: calc(var(--name-size) * 0.66 - 30px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 0 1px var(--gold-line);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.hero__date { min-height: 1.6em; margin-top: clamp(22px, 4vh, 40px); color: var(--ink-soft); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 30px;
  height: 46px;
  margin-left: -15px;
  display: flex;
  justify-content: center;
}
.hero__scroll span {
  position: relative;
  width: 1px;
  height: 100%;
  overflow: hidden;
  background: var(--line);
}
.hero__scroll span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 40%;
  background: var(--gold);
  transform: translateY(-100%);
  animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue { to { transform: translateY(250%); } }

@media (min-width: 900px) {
  .hero {
    --photo-w: clamp(300px, min(27vw, 52vh), 470px);
    --name-size: clamp(5rem, 9.6vw, 11.5rem);
    --overlap: 0.16;
  }
  .hero__stage { padding-block: calc(var(--name-size) * 0.08); }
  .hero__name--groom { top: 3%; }
  .hero__name--bride { bottom: 3%; }
  .hero__amp { bottom: -30px; width: 68px; height: 68px; margin-left: -34px; font-size: 2.3rem; }
  .hero__date { margin-top: clamp(48px, 7vh, 72px); }
}

/* =====================================================================
   QUOTE
   ===================================================================== */
.quote { text-align: center; padding-block: clamp(100px, 16vw, 184px); }
.quote .ornament { margin-bottom: 44px; }
.quote__text p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.95rem, 6.6vw, 3.7rem);
  line-height: 1.22;
  text-wrap: balance;
}
.quote__source {
  display: block;
  margin-top: 30px;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote__source:empty { display: none; }

/* =====================================================================
   COUPLE
   ===================================================================== */
.couple { --bg: var(--cream); background: linear-gradient(var(--ivory), var(--cream) 30%); }
.couple__grid { display: grid; justify-items: center; gap: 52px; }
.person { width: 100%; max-width: 420px; text-align: center; }
.person__photo {
  width: min(76%, 320px);
  margin: 0 auto 38px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 50% 50% 2px 2px / 37.5% 37.5% 2px 2px;
  box-shadow: 0 0 0 10px var(--bg), 0 0 0 11px var(--gold-line), var(--shadow-soft);
  background: var(--champagne);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.person__role { margin-bottom: 12px; color: var(--gold); }
.person__name {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 7.5vw, 2.9rem);
  line-height: 1.08;
  text-wrap: balance;
}
.person__parents { font-size: 0.92rem; color: var(--muted); }
.person__parents-names { display: inline-block; margin-top: 4px; color: var(--ink-soft); font-weight: 400; }
.couple__amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 13vw, 7.5rem);
  line-height: 1;
  color: var(--gold);
}
@media (min-width: 900px) {
  .couple__grid { grid-template-columns: 1fr auto 1fr; align-items: start; gap: clamp(24px, 4vw, 72px); }
  .couple__amp { align-self: start; margin-top: clamp(150px, 15vw, 200px); }
}

/* =====================================================================
   STORY
   ===================================================================== */
.story { --bg: var(--cream); }
.timeline { position: relative; max-width: 1020px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: linear-gradient(transparent, var(--gold-line) 6%, var(--gold-line) 94%, transparent);
}
.tl-item { position: relative; padding-left: 40px; }
.tl-item + .tl-item { margin-top: 72px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold-light);
  background: var(--bg);
  transform: rotate(45deg);
}
.tl-item__media {
  aspect-ratio: 4 / 3;
  margin-bottom: 26px;
  overflow: hidden;
  background: var(--champagne);
}
.tl-item__media img { width: 100%; height: 100%; object-fit: cover; }
.tl-item__year {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 11vw, 4.8rem);
  line-height: 1;
  color: var(--gold);
}
.tl-item__title { margin: 14px 0 12px; font-size: 0.74rem; font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase; }
.tl-item__text { max-width: 30em; color: var(--ink-soft); }

@media (min-width: 900px) {
  .timeline::before { left: 50%; }
  .tl-item { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 112px; padding-left: 0; }
  .tl-item + .tl-item { margin-top: 96px; }
  .tl-item::before { left: 50%; top: 50%; margin: -5px 0 0 -5px; }
  .tl-item__media { grid-column: 1; grid-row: 1; justify-self: end; width: 100%; max-width: 390px; margin: 0; aspect-ratio: 4 / 5; }
  .tl-item__body { grid-column: 2; grid-row: 1; }
  .tl-item:nth-child(even) .tl-item__media { grid-column: 2; justify-self: start; }
  .tl-item:nth-child(even) .tl-item__body { grid-column: 1; text-align: right; }
  .tl-item:nth-child(even) .tl-item__text { margin-left: auto; }
}

/* =====================================================================
   EVENT
   ===================================================================== */
.event__grid { display: grid; gap: 24px; max-width: 1000px; margin: 0 auto; }
.event-card {
  position: relative;
  padding: 60px 28px 52px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}
.event-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}
.event-card__icon { width: 42px; height: 42px; margin: 0 auto; color: var(--gold); stroke-width: 1; }
.event-card__title {
  margin: 16px 0 18px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 8vw, 3.1rem);
  line-height: 1.05;
}
.event-card .ornament { width: 120px; }
.event-card__day { margin-top: 24px; color: var(--gold); }
.event-card__date { margin-top: 6px; font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 1.8rem); line-height: 1.2; }
.event-card__time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 30px;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.event-card__time .icon { color: var(--gold); }
.event-card__venue { margin-bottom: 8px; font-weight: 400; font-size: 1rem; line-height: 1.5; }
.event-card__address { max-width: 24em; margin: 0 auto 32px; font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.event__actions { margin-top: 52px; text-align: center; }
@media (min-width: 768px) {
  .event__grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
  .event-card { padding: 72px 44px 60px; }
}

/* =====================================================================
   COUNTDOWN
   ===================================================================== */
.countdown {
  position: relative;
  overflow: hidden;
  padding-block: clamp(120px, 18vw, 210px);
  text-align: center;
  color: var(--ivory);
  background: var(--espresso);
}
.countdown__bg { position: absolute; inset: -14% 0; }
.countdown__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.countdown::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(27, 23, 20, 0.35), rgba(27, 23, 20, 0.82));
}
.countdown__inner { position: relative; z-index: 1; }
.countdown .eyebrow { color: rgba(251, 248, 242, 0.8); }
.countdown__timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 760px;
  margin: 40px auto;
}
.countdown__unit { position: relative; padding: 6px 2px; }
.countdown__unit + .countdown__unit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 22%;
  width: 1px;
  background: rgba(251, 248, 242, 0.2);
}
.countdown__num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.7rem, 12vw, 5.8rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown__label {
  display: block;
  margin-top: 12px;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.68);
}
.countdown__arrived {
  margin: 36px 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 10vw, 5rem);
  line-height: 1.05;
  color: var(--gold-soft);
  animation: arrive 2.4s var(--ease-out) both;
}
@keyframes arrive { from { opacity: 0; letter-spacing: 0.2em; filter: blur(10px); } to { opacity: 1; letter-spacing: 0; filter: blur(0); } }
.countdown__date { color: var(--gold-soft) !important; }

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery__grid { columns: 2; column-gap: 8px; }
.g-item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 8px;
  overflow: hidden;
  break-inside: avoid;
  background: var(--champagne);
  cursor: zoom-in;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(27, 23, 20, 0.28));
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.g-item:hover img { transform: scale(1.05); }
.g-item:hover::after { opacity: 1; }
@media (min-width: 768px) { .gallery__grid { columns: 3; column-gap: 12px; } .g-item { margin-bottom: 12px; } }
@media (min-width: 1200px) { .gallery__grid { columns: 4; column-gap: 16px; } .g-item { margin-bottom: 16px; } }

/* =====================================================================
   VIDEO
   ===================================================================== */
.moments { --bg: var(--cream); }
.video {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--espresso);
  box-shadow: var(--shadow-soft);
}
.video.is-embed { aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .video { aspect-ratio: 16 / 9; } }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease-out), opacity 0.8s var(--ease); }
.video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(27, 23, 20, 0.2), rgba(27, 23, 20, 0.6));
  pointer-events: none;
  transition: opacity 0.8s var(--ease);
}
.video:hover .video__poster { transform: scale(1.04); }
.video__stage { position: absolute; inset: 0; z-index: 1; }
.video__stage iframe, .video__stage video { width: 100%; height: 100%; border: 0; background: #000; }
.video__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--ivory);
  transition: opacity 0.6s var(--ease);
}
.video__play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(251, 248, 242, 0.65);
  background: rgba(251, 248, 242, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.6s var(--ease-out), background 0.6s var(--ease);
}
.video__play-icon::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(251, 248, 242, 0.5);
  animation: ring 2.8s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.6); opacity: 0; } }
.video__play-icon .icon { width: 26px; height: 26px; margin-left: 4px; }
.video__play:hover .video__play-icon { transform: scale(1.06); background: rgba(251, 248, 242, 0.18); }
.video__play-label { font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase; margin-right: -0.34em; }
.video.is-playing .video__play, .video.is-playing::after { opacity: 0; pointer-events: none; }
.video.is-playing .video__poster { opacity: 0; }
.video__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ivory);
  background: rgba(27, 23, 20, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Slideshow sinematik */
.slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.8s var(--ease); }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.slide.is-active img { animation: kenburns 7.5s linear forwards; }
.slide:nth-child(even).is-active img { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(-1.5%, 0, 0); } to { transform: scale(1.02) translate3d(1%, -1%, 0); } }
@keyframes kenburns-alt { from { transform: scale(1.02) translate3d(1%, 1%, 0); } to { transform: scale(1.14) translate3d(-1%, 0, 0); } }
.slideshow__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 80px 24px 26px;
  color: var(--ivory);
  text-align: center;
  background: linear-gradient(transparent, rgba(27, 23, 20, 0.65));
  pointer-events: none;
}
.slideshow__caption p:first-child { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.1; }
.slideshow__caption .eyebrow { margin-top: 8px; color: rgba(251, 248, 242, 0.75); }

/* =====================================================================
   LOCATION
   ===================================================================== */
.location__card {
  display: grid;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.location__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
}
.location__info .eyebrow { color: var(--gold); }
.location__name {
  margin: 14px 0 14px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 6.5vw, 3rem);
  line-height: 1.08;
  text-wrap: balance;
}
.location__address { margin-bottom: 34px; color: var(--muted); font-size: 0.94rem; max-width: 26em; }
.location__map { position: relative; min-height: 340px; background: var(--champagne); }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.4) sepia(0.12) contrast(0.96); }
.location__map-hint { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; color: var(--muted); }
@media (min-width: 900px) {
  .location__card { grid-template-columns: 5fr 7fr; min-height: 460px; }
  .location__info { align-items: flex-start; text-align: left; }
}

/* =====================================================================
   DRESS CODE
   ===================================================================== */
.dresscode { --bg: var(--cream); }
.dresscode__card {
  position: relative;
  padding: clamp(44px, 7vw, 76px) clamp(24px, 6vw, 72px);
  text-align: center;
  background: var(--ivory);
  border: 1px solid var(--line);
}
.dresscode__card::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--gold-line); pointer-events: none; }
.dresscode__figures { display: flex; justify-content: center; gap: 18px; margin-bottom: 26px; color: var(--gold); }
.dresscode__figure { width: 62px; height: 62px; fill: none; stroke: currentColor; stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; }
.dresscode__title { margin-bottom: 14px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 8vw, 3.3rem); line-height: 1.05; }
.dresscode__desc { max-width: 30em; margin: 0 auto 38px; color: var(--ink-soft); }
.dresscode__palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 26px; margin: 0 0 36px; padding: 0; list-style: none; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.swatch__color {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 0 0 5px var(--ivory), 0 0 0 6px var(--gold-line);
}
@media (max-width: 480px) {
  .dresscode__palette { gap: 20px 14px; }
  .swatch { width: 64px; letter-spacing: 0.12em; }
  .swatch__color { width: 46px; height: 46px; }
}
.dresscode__note { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); }
.dresscode__note:empty { display: none; }

/* =====================================================================
   RSVP
   ===================================================================== */
.rsvp__card {
  padding: clamp(34px, 6vw, 60px) clamp(22px, 6vw, 60px);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.field { min-width: 0; margin: 0 0 30px; padding: 0; border: 0; transition: opacity 0.4s var(--ease); }
.field.is-disabled { opacity: 0.38; pointer-events: none; }
.field__label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__input {
  width: 100%;
  padding: 10px 0 12px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(42, 36, 32, 0.25);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.4s var(--ease);
}
.field__input::placeholder { color: rgba(133, 122, 111, 0.7); }
.field__input:focus { outline: none; border-color: var(--gold); }
.field__input.is-invalid { border-color: #a5523f; }
.field__textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.field__select {
  padding-right: 28px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a98c5a' stroke-width='1.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 18px;
}
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.3;
  text-align: center;
  border: 1px solid rgba(42, 36, 32, 0.22);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.choice__box::before {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.choice:hover .choice__box { border-color: var(--ink); }
.choice input:checked + .choice__box { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.choice input:checked + .choice__box::before { background: var(--gold-soft); border-color: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--ink); }
.choice input:focus-visible + .choice__box { outline: 1px solid var(--gold); outline-offset: 3px; }
@media (max-width: 359px) { .choices { grid-template-columns: 1fr; } }
.form-error { margin: -10px 0 22px; font-size: 0.86rem; color: #a5523f; }

.rsvp__success { padding: 20px 0 6px; text-align: center; outline: none; }
.rsvp__success-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  animation: pop 1.1s var(--ease-out) both;
}
.rsvp__success-icon .icon { width: 30px; height: 30px; stroke-width: 1.2; }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.rsvp__success-title { margin-bottom: 12px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.22; text-wrap: balance; }
.rsvp__success-text { margin-bottom: 30px; color: var(--muted); }

/* =====================================================================
   WISHES
   ===================================================================== */
.wishes { padding-top: 0; }
.wishes__list { display: grid; gap: 16px; }
.wish {
  padding: 26px 26px 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}
.wish.is-new { animation: wishIn 1.1s var(--ease-out) both; }
@keyframes wishIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.wish__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.wish__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.wish__badge {
  padding: 3px 10px;
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  white-space: nowrap;
}
.wish__msg { margin-bottom: 14px; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.wish__date { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--muted); }
.wishes__empty { padding: 32px 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted); }
.wishes__more { margin-top: 34px; text-align: center; }

/* =====================================================================
   GIFT
   ===================================================================== */
.gift { --bg: var(--cream); }
.gift__grid { display: grid; gap: 22px; max-width: 1020px; margin: 0 auto; }
@media (min-width: 768px) { .gift__grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; } }
.bank-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: 16px;
  color: var(--ivory);
  background: linear-gradient(135deg, #2c251f 0%, #3b3129 52%, #272019 100%);
  box-shadow: 0 34px 50px -30px rgba(27, 23, 20, 0.65);
}
.bank-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% -10%, rgba(211, 189, 148, 0.32), transparent 52%),
    radial-gradient(circle at 0% 110%, rgba(211, 189, 148, 0.12), transparent 50%);
  pointer-events: none;
}
.bank-card > * { position: relative; }
.bank-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 38px; }
.bank-card__bank { font-size: 0.64rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-soft); line-height: 1.5; }
.bank-card__chip { flex-shrink: 0; width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #e6d3ab, #b0905f); opacity: 0.9; }
.bank-card__number {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 7vw, 2.15rem);
  letter-spacing: 0.1em;
  line-height: 1.2;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}
.bank-card__holder { margin-bottom: 28px; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(251, 248, 242, 0.72); }
.bank-card .btn { margin-top: auto; min-height: 48px; }

.qris-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 26px;
  text-align: center;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.qris-card .eyebrow { color: var(--gold); }
.qris-card__img { width: min(220px, 72%); margin: 18px auto 16px; padding: 12px; background: #fff; border: 1px solid var(--line); }
.qris-card__label { margin-bottom: 18px; font-size: 0.85rem; color: var(--muted); }
.qris-card .btn { min-height: 46px; }

/* =====================================================================
   LIVE STREAMING
   ===================================================================== */
.live__card {
  position: relative;
  padding: clamp(44px, 7vw, 68px) clamp(24px, 5vw, 60px);
  text-align: center;
  border: 1px solid var(--gold-line);
}
.live__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9d4a3a;
  border: 1px solid rgba(157, 74, 58, 0.32);
  border-radius: 99px;
}
.live__dot { width: 6px; height: 6px; border-radius: 50%; background: #c0533f; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.live__title { margin: 22px 0 12px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 8.5vw, 3.8rem); line-height: 1.05; }
.live__text { max-width: 28em; margin: 0 auto; color: var(--ink-soft); }
.live__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 28px 0 34px; font-size: 0.86rem; color: var(--ink-soft); }
.live__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.live__meta .icon { color: var(--gold); }

/* =====================================================================
   INSTAGRAM
   ===================================================================== */
.social { padding-top: 0; }
.social .section-head { margin-bottom: 44px; }
.social__icon { width: 34px; height: 34px; margin: 0 auto 16px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1; }
.social__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 56px; }
.social-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.social-item .eyebrow { color: var(--muted); }
.social-item__user { margin-bottom: 18px; font-family: var(--serif); font-style: italic; font-size: 1.55rem; overflow-wrap: anywhere; }

/* =====================================================================
   CLOSING
   ===================================================================== */
.closing {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(110px, 16vw, 170px);
  overflow: hidden;
  text-align: center;
  color: var(--ivory);
  background: var(--espresso);
}
.closing__bg { position: absolute; inset: -10% 0; }
.closing__bg img { width: 100%; height: 100%; object-fit: cover; }
.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 23, 20, 0.5) 0%, rgba(27, 23, 20, 0.66) 50%, rgba(27, 23, 20, 0.9) 100%);
}
.closing__inner { position: relative; z-index: 1; }
.closing__branch { width: 150px; height: 56px; margin: 0 auto 34px; color: var(--gold-soft); fill: none; stroke: currentColor; stroke-width: 0.8; }
.closing__headline {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.55rem, 5.4vw, 2.7rem);
  line-height: 1.28;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: balance;
}
.closing__message { max-width: 32em; margin: 0 auto 52px; font-size: 0.95rem; color: rgba(251, 248, 242, 0.78); }
.closing__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.1rem, 12.5vw, 6.6rem);
  line-height: 0.98;
}
.closing__names .amp { font-size: 0.52em; color: var(--gold-soft); margin: 0.12em 0; }
.closing .eyebrow { color: rgba(251, 248, 242, 0.8); }
.closing__love { margin: 44px 0 46px; font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 5.4vw, 2.3rem); color: var(--gold-soft); }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  padding: 76px var(--gutter) calc(100px + env(safe-area-inset-bottom));
  text-align: center;
  color: rgba(251, 248, 242, 0.72);
  background: #141110;
}
.footer__names { margin-bottom: 10px; font-family: var(--serif); font-weight: 300; font-size: 2.1rem; line-height: 1.2; color: var(--ivory); }
.footer__names .amp { color: var(--gold-soft); }
.footer__date { margin-bottom: 30px; color: var(--gold-soft); }
.footer__love { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.footer__love .icon { color: var(--gold-soft); }
.footer__copy { font-size: 0.68rem; letter-spacing: 0.3em; }

/* =====================================================================
   MUSIC PLAYER
   ===================================================================== */
.music {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 600;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--ivory);
  background: rgba(27, 23, 20, 0.88);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(211, 189, 148, 0.35);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease-out);
}
body.is-open .music { opacity: 1; transform: none; transition-delay: 1.4s; }
.music__disc {
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--espresso);
  background:
    radial-gradient(circle, var(--gold-soft) 0 27%, #15110f 28% 31%, transparent 32%),
    repeating-radial-gradient(circle, #241e1a 0 1.5px, #2f2722 1.5px 3px);
  animation: spin 5s linear infinite;
  animation-play-state: paused;
}
.music__disc .icon { width: 13px; height: 13px; stroke-width: 1.6; }
.music.is-playing .music__disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.music__state {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--ivory);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.music__state .icon { width: 11px; height: 11px; }
.music .icon--pause, .music.is-playing .icon--play { display: none; }
.music.is-playing .icon--pause { display: block; }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(17, 14, 12, 0.96);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 16px 96px;
  overflow: hidden;
  touch-action: none;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease-out);
}
.lightbox__img.is-shown { opacity: 1; transform: none; }
.lightbox__img.is-zoomed { transform: scale(1.9); cursor: zoom-out; }
.lightbox__img.is-out-left { opacity: 0; transform: translateX(-48px); }
.lightbox__img.is-out-right { opacity: 0; transform: translateX(48px); }
.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ivory);
  background: rgba(251, 248, 242, 0.05);
  border: 1px solid rgba(251, 248, 242, 0.22);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.lightbox__btn:hover { background: rgba(251, 248, 242, 0.14); border-color: rgba(251, 248, 242, 0.5); }
.lightbox__close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lightbox__prev { left: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); }
.lightbox__next { right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); }
.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: calc(34px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: rgba(251, 248, 242, 0.7);
}
@media (min-width: 768px) {
  .lightbox__stage { padding: 72px 96px; }
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; margin-top: -24px; }
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }
}

/* =====================================================================
   MODAL (Add to Calendar)
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 13, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 42px 26px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  background: var(--ivory);
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease-out);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__panel .eyebrow { color: var(--gold); }
.modal__title { margin: 6px 0 26px; font-family: var(--serif); font-weight: 300; font-size: 2.3rem; line-height: 1.1; }
.modal__options { display: grid; gap: 10px; }
.modal__option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.modal__option .icon { color: var(--gold); width: 1.4em; height: 1.4em; }
.modal__option:hover { border-color: var(--ink); background: #fff; }
.modal__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; }
@media (min-width: 600px) {
  .modal { align-items: center; padding: 24px; }
  .modal__panel { border-radius: 4px; padding-bottom: 32px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 3000;
  max-width: calc(100% - 32px);
  padding: 13px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ivory);
  background: var(--espresso);
  border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Banner pratinjau admin ---------- */
.preview-banner {
  position: fixed;
  left: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 3001;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 96px);
  padding: 8px 14px;
  font-size: 0.72rem;
  line-height: 1.4;
  background: #fff;
  border: 1px solid var(--gold-line);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.3);
}
.preview-banner button { text-decoration: underline; color: var(--gold); white-space: nowrap; }

/* ---------- Gambar yang belum ada ---------- */
.is-img-missing { background: linear-gradient(135deg, var(--champagne), var(--sand)) !important; }
.is-img-missing > img, .is-img-missing img { opacity: 0 !important; }

/* =====================================================================
   REVEAL ANIMATION (IntersectionObserver menambahkan .is-visible)
   ===================================================================== */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 1.3s var(--ease), transform 1.4s var(--ease-out), filter 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="fade-up"] { transform: translateY(30px); }
.js [data-reveal="scale"] { transform: scale(0.95); }
.js [data-reveal="blur"] { filter: blur(12px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: blur(0); }

.js [data-reveal="text"] { opacity: 1; }
[data-reveal="text"] .line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.14em; margin: -0.04em -0.06em -0.14em; }
.js [data-reveal="text"] .line > span { display: inline-block; transform: translateY(112%); transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="text"].is-visible .line > span { transform: none; }

.js [data-reveal="image"] { opacity: 1; clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-curtain); transition-delay: var(--d, 0s); }
.js [data-reveal="image"].is-visible { clip-path: inset(-90px); }
.js [data-reveal="image"] img { transform: scale(1.22); transition: transform 3s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="image"].is-visible img { transform: scale(1); }

/* =====================================================================
   LAYAR BESAR (2K / 4K)
   ===================================================================== */
@media (min-width: 2000px) { html { font-size: 19px; } :root { --nav-h: 76px; } }
/* Di layar besar, batas lebar ikut membesar bersama ukuran huruf (rem) */
@media (min-width: 2000px) {
  :root { --section-y: clamp(96px, 12vw, 11rem); --gutter: 3rem; }
  .container { max-width: 73.75rem; }
  .container--narrow { max-width: 48.75rem; }
  .container--wide { max-width: 90rem; }
  .opening__names { font-size: clamp(3.3rem, min(15.5vw, 13vh), 10rem); }
  .hero { --photo-w: clamp(300px, min(27vw, 52vh), 30rem); }
  .hero__stage { max-width: 80rem; }
  .person { max-width: 26rem; }
  .person__photo { width: min(76%, 20rem); }
  .timeline { max-width: 64rem; }
  .tl-item__media { max-width: 24rem; }
  .event__grid { max-width: 62.5rem; }
  .countdown__timer { max-width: 47.5rem; }
  .video { max-width: 65rem; }
  .gift__grid { max-width: 64rem; }
  .modal__panel { max-width: 27.5rem; }
  .music { width: 3.4rem; height: 3.4rem; }
}
@media (min-width: 2800px) { html { font-size: 24px; } :root { --nav-h: 92px; } }

/* =====================================================================
   PREFERS REDUCED MOTION
   ===================================================================== */
@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; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal] img, .js [data-reveal="text"] .line > span { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .opening__item, .opening__img { opacity: 1 !important; transform: none !important; filter: none !important; }
  .opening__img { animation: none !important; }
}
