/* =============================================================================
   RAPAT — tier Craft (undangan rapat formal, corporate).
   Arah "Modern Mono + tiket VIP": kertas putih bersih, navy dalam + satu
   aksen emas HANYA sebagai hairline, grid rapi, agenda berbentuk tiket
   (garis sobek perforasi), satu aksen art-deco sunburst HANYA di cover.
   TANPA ornamen floral, TANPA gradasi, TANPA script — formal lewat skala
   huruf, garis, dan whitespace (rujukan: Minted "Hilton", Invitesia
   "Modern Mono", Harikita "Tiket Emas"). BUKTI TIER CRAFT: TANPA gsap/lenis
   — hanya CSS + komponen bersama. Semua kelas ter-scope `.rp`. Reveal state
   hanya aktif di bawah `.is-js` → tanpa JS konten terbaca; reduced-motion
   dinetralkan.
   CSS ini SUMBER KEBENARAN; `scripts/build-theme-css.mjs` menyalinnya ke
   `public/themes/rapat.{hash}.css`. JANGAN di-import dari index.tsx
   (DECISIONS #31) — ia dikirim lewat <ThemeStyles slug="rapat" />.
============================================================================= */

.rp {
  --rp-acc: #1b2a4a;
  --rp-acc-text: #16283c;
  --rp-on-acc: #ffffff;
  --rp-paper: #ffffff;
  --rp-paper-2: #f4f6f8;
  --rp-ink: #16283c;
  --rp-gold: #c9a227;
  --rp-muted: rgba(22, 40, 60, 0.68);
  --rp-hairline: rgba(22, 40, 60, 0.16);
  --rp-goldline: rgba(201, 162, 39, 0.55);
  --rp-disp-stack: var(--rp-disp), system-ui, sans-serif;
  --rp-body-stack: var(--rp-body), system-ui, sans-serif;

  position: relative;
  background: var(--rp-paper);
  color: var(--rp-ink);
  font-family: var(--rp-body-stack);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.rp *,
.rp *::before,
.rp *::after {
  box-sizing: border-box;
}
.rp ::selection {
  background: var(--rp-acc);
  color: #fff;
}

.rp-stage {
  max-width: 480px;
  margin: 0 auto;
}

.rp-section {
  position: relative;
  padding: 52px 24px;
  border-top: 1px solid var(--rp-hairline);
  scroll-margin-top: 12px;
}
.rp-section:first-child {
  border-top: 0;
}
.rp-center {
  text-align: center;
}
.rp-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--rp-muted);
}

.rp-eyebrow {
  font-family: var(--rp-disp-stack);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rp-acc-text);
  text-align: center;
  margin: 0 0 18px;
}
.rp-eyebrow::before {
  content: "◆ ";
  color: var(--rp-gold);
}
.rp-eyebrow::after {
  content: " ◆";
  color: var(--rp-gold);
}

.rp-title {
  font-family: var(--rp-disp-stack);
  font-size: 30px;
  line-height: 1.2;
  text-align: center;
  margin: 8px 0 0;
  color: var(--rp-ink);
}

/* Hero ---------------------------------------------------------------------- */
.rp-kicker {
  font-family: var(--rp-disp-stack);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rp-acc-text);
  text-align: center;
  margin: 0 0 14px;
}
.rp-hero-title {
  font-size: clamp(32px, 9vw, 42px);
  color: var(--rp-acc);
}
/* Garis emas tunggal di bawah judul hero (bukan ornamen). */
.rp-rule {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--rp-gold);
  margin: 20px auto 0;
}
.rp-organizer {
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  margin: 14px 0 0;
}
.rp-desc {
  text-align: center;
  line-height: 1.8;
  color: var(--rp-muted);
  margin: 14px auto 0;
  max-width: 34em;
}
.rp-greeting {
  text-align: center;
  line-height: 1.8;
  color: var(--rp-muted);
  margin: 18px auto 0;
  max-width: 34em;
}

/* Countdown — section NAVY GELAP (ala java-1) ---------------------------------- */
/* 4 kotak PUTIH bersudut agak membulat di atas section navy gelap. */
.rp-section--dark {
  background: var(--rp-acc);
  color: #fff;
  border-top-color: var(--rp-acc);
}
.rp-countdown-deco {
  color: var(--rp-gold);
  font-size: 16px;
  text-align: center;
  margin: 0 0 14px;
}
.rp-countdown-title {
  font-family: var(--rp-disp-stack);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.06em;
  text-align: center;
  color: #fff;
  margin: 0;
}
.rp-countdown-date {
  font-family: var(--rp-body-stack);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  margin: 10px 0 0;
}
.rp .countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.rp .count-box {
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 14px;
  padding: 16px 4px 14px;
  text-align: center;
}
.rp .count-num {
  font-family: var(--rp-disp-stack);
  font-size: clamp(28px, 8vw, 38px);
  font-variant-numeric: tabular-nums;
  display: block;
  color: var(--rp-acc);
}
.rp .count-label {
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rp-muted);
  margin-top: 6px;
  display: block;
}
.rp .countdown-done {
  font-family: var(--rp-disp-stack);
  font-size: 20px;
  text-align: center;
  margin-top: 28px;
  color: #fff;
}

/* Agenda — kartu tiket: garis sobek (perforasi) memisah nomor & isi --------- */
.rp-agenda {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.rp-agenda-item {
  display: flex;
  gap: 0;
  padding: 0;
  margin-top: 12px;
  border: 1px solid var(--rp-hairline);
  border-radius: 4px;
  background: #fff;
  text-align: left;
  overflow: hidden;
}
.rp-agenda-no {
  font-family: var(--rp-disp-stack);
  font-size: 15px;
  font-weight: 700;
  color: var(--rp-gold);
  flex-shrink: 0;
  padding: 18px 16px;
  display: grid;
  place-items: center;
}
.rp-agenda-item > div {
  flex: 1;
  min-width: 0;
  /* Garis perforasi tiket. */
  border-left: 1px dashed var(--rp-gold);
  padding: 18px 16px;
}
.rp-agenda-title {
  font-family: var(--rp-disp-stack);
  font-size: 17px;
  margin: 0;
}
.rp-agenda-time {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rp-acc-text);
  margin: 4px 0 0;
}
.rp-agenda-text {
  color: var(--rp-muted);
  line-height: 1.7;
  margin: 6px 0 0;
  font-size: 14px;
}

/* Jadwal & amplop ------------------------------------------------------------ */
/* Kartu acara TERANG (ala java-1): kertas abu muda, sudut membulat, judul
   navy tebal di tengah, hiasan ◆ di sudut kartu, SATU tombol pil navy
   "Lihat Lokasi". */
.rp-event {
  position: relative;
  border: 1px solid var(--rp-goldline);
  border-radius: 14px;
  padding: 34px 18px 28px;
  margin-top: 16px;
  background: var(--rp-paper-2);
  text-align: center;
}
.rp-event__deco {
  position: absolute;
  top: 12px;
  left: 16px;
  line-height: 1;
  color: var(--rp-gold);
  font-size: 16px;
  pointer-events: none;
}
.rp-event .rp-title,
.rp-bank .rp-title {
  font-size: 22px;
}
.rp-event-meta,
.rp-event-venue,
.rp-event-address,
.rp-bank-number,
.rp-bank-holder {
  margin: 8px 0 0;
  line-height: 1.7;
}
.rp-event-meta {
  font-family: var(--rp-disp-stack);
  color: var(--rp-acc);
}
.rp-event-venue {
  font-weight: 600;
}
.rp-event-address,
.rp-bank-holder {
  color: var(--rp-muted);
  font-size: 14px;
}
.rp-event__maps {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  background: var(--rp-acc);
  color: #fff;
  border: 1px solid var(--rp-acc);
  border-radius: 999px;
  padding: 11px 26px;
  font-family: var(--rp-disp-stack);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.rp-event__maps:hover {
  background: var(--rp-acc-text);
}
.rp-bank {
  border: 1px solid var(--rp-hairline);
  border-radius: 4px;
  padding: 22px 18px;
  margin-top: 16px;
  background: #fff;
  text-align: center;
}
.rp-bank-number {
  font-family: var(--rp-disp-stack);
  font-size: 20px;
  letter-spacing: 0.06em;
}

/* Galeri — carousel (ala java-1) -------------------------------------------- */
.rp-section img {
  border-radius: 2px;
}
.rp-carousel {
  margin-top: 28px;
}
.rp-carousel__frame {
  position: relative;
}
.rp-carousel__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.rp-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--rp-acc);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.rp-carousel__btn--prev {
  left: 10px;
}
.rp-carousel__btn--next {
  right: 10px;
}
.rp-carousel__btn:active {
  background: var(--rp-acc-text);
}
.rp-carousel__count {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  color: var(--rp-acc);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Cover — TERANG (ala java-1) ------------------------------------------------- */
.rp-cover {
  display: none;
}
.rp.is-js .rp-cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--rp-ink);
  /* Foto latar (ruang konferensi navy) — scrim DIAGONAL 135°: 0.68 di kiri
     atas → 0.9 di kanan bawah (satu-satunya gradien diagonal di katalog).
     Fokus foto di tengah-atas ruangan. */
  background-color: var(--rp-paper);
  background-image:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.68) 0%,
      rgba(255, 255, 255, 0.78) 45%,
      rgba(255, 255, 255, 0.9) 100%
    ),
    url("/demo/rapat/cover-bg.jpg");
  background-size: cover;
  background-position: center 35%;
  transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}
.rp.is-js .rp-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(
    from -90deg at 50% -8%,
    rgba(201, 162, 39, 0.12) 0deg 4deg,
    transparent 4deg 10deg
  );
  pointer-events: none;
}
.rp.is-js.is-open .rp-cover {
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: reduce) {
  .rp.is-js .rp-cover {
    transition: none;
  }
}

/* Elemen melayang: wajik & titik geometris naik SANGAT pelan (SVG,
   CSS-only — korporat, kalem). `.rp-drift` = di dalam sampul (absolute,
   ikut wipe); `--page` = lapisan tipis fixed di seluruh undangan (z-40, di
   bawah sampul z-50, svg lebih redup). Hanya transform/opacity yang
   dianimasikan. */
.rp-drift {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.rp-drift--page {
  position: fixed;
  z-index: 40;
}
.rp-drift__item {
  position: absolute;
  top: 0;
  display: block;
  animation: rp-drift-rise linear infinite;
  will-change: transform, opacity;
}
.rp-drift__item svg {
  display: block;
  animation: rp-drift-sway 3.2s ease-in-out infinite alternate;
  /* Bayangan tipis supaya wajik/titik terbaca di atas foto latar terang. */
  filter: drop-shadow(0 1px 2px rgb(27 42 74 / 0.2));
}
.rp-drift__item:nth-child(even) svg {
  animation-duration: 4s;
}
.rp-drift--page .rp-drift__item svg {
  opacity: 0.5;
}
@keyframes rp-drift-rise {
  0% {
    transform: translate3d(0, 112vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translate3d(0, -12vh, 0) rotate(90deg);
    opacity: 0;
  }
}
@keyframes rp-drift-sway {
  from {
    transform: translateX(-10px);
  }
  to {
    transform: translateX(10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rp-drift {
    display: none;
  }
}
.rp-cover__inner {
  position: relative;
  text-align: center;
  padding: 36px 24px;
  max-width: 430px;
  width: 100%;
  min-width: 0;
  /* Bingkai hairline emas (rangka arsitektur, bukan tempelan). */
  border: 1px solid var(--rp-goldline);
}
.rp.is-js .rp-cover__inner > * {
  animation: rp-rise 0.7s both cubic-bezier(0.22, 1, 0.36, 1);
}
.rp.is-js .rp-cover__inner > *:nth-child(2) {
  animation-delay: 0.08s;
}
.rp.is-js .rp-cover__inner > *:nth-child(3) {
  animation-delay: 0.16s;
}
.rp.is-js .rp-cover__inner > *:nth-child(4) {
  animation-delay: 0.24s;
}
.rp.is-js .rp-cover__inner > *:nth-child(5) {
  animation-delay: 0.32s;
}
.rp.is-js .rp-cover__inner > *:nth-child(6) {
  animation-delay: 0.4s;
}
@keyframes rp-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rp.is-js .rp-cover__inner > * {
    animation: none;
  }
}
.rp-badge {
  display: inline-block;
  font-family: var(--rp-disp-stack);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rp-gold);
  background: transparent;
  border: 1px solid var(--rp-goldline);
  border-radius: 999px;
  padding: 8px 16px;
}
.rp-cover__name {
  font-family: var(--rp-disp-stack);
  font-size: clamp(30px, 8.5vw, 40px);
  line-height: 1.25;
  color: var(--rp-acc);
  margin-top: 18px;
  min-width: 0;
}
.rp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.rp-chip {
  font-size: 13px;
  border: 1px solid var(--rp-hairline);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--rp-muted);
}
.rp-guest {
  margin-top: 22px;
  color: var(--rp-muted);
}
.rp-guest small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.rp-guest strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--rp-ink);
}
.rp-open {
  margin-top: 26px;
  font-family: var(--rp-disp-stack);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #16283c;
  background: var(--rp-gold);
  border: 1px solid var(--rp-gold);
  border-radius: 999px;
  padding: 14px 30px;
  cursor: pointer;
}
.rp-open:hover {
  background: #d9b23a;
  border-color: #d9b23a;
}
.rp-open:active {
  transform: translateY(1px);
}
/* Panah bawah bentuk pil (ala java-1) — juga membuka undangan. */
.rp-cover__scroll {
  display: block;
  margin: 18px auto 0;
  width: 46px;
  height: 30px;
  border: 1px solid var(--rp-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--rp-acc);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.rp-cover__scroll:hover {
  background: rgba(201, 162, 39, 0.14);
}

/* Tombol musik -------------------------------------------------------------- */
.rp-music {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 55;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--rp-acc);
  background: #fff;
  color: var(--rp-acc);
  display: none;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 40, 60, 0.25);
}
.rp.is-open .rp-music {
  display: grid;
}

/* Amplop — toggle (ala java-1) ---------------------------------------------- */
.rp-envelope__toggle {
  display: block;
  margin: 4px auto 0;
  background: var(--rp-acc);
  color: #fff;
  border: 1px solid var(--rp-acc);
  border-radius: 999px;
  padding: 13px 28px;
  font-family: var(--rp-disp-stack);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.rp-envelope__toggle:hover {
  background: var(--rp-acc-text);
}
.rp-envelope__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

/* Buku tamu — Doa & Ucapan dulu, baru RSVP ----------------------------------- */
.rp-wishes {
  margin-bottom: 40px;
}
.rp-rsvp-form {
  border-top: 1px solid var(--rp-hairline);
  padding-top: 36px;
}
.rp-rsvp-form .rp-greeting {
  text-align: center;
  line-height: 1.8;
  color: var(--rp-muted);
  margin: 18px auto 0;
  max-width: 34em;
}

/* Penutup ------------------------------------------------------------------- */
.rp-closing {
  text-align: center;
}
.rp-closing__name {
  font-family: var(--rp-disp-stack);
  font-weight: 700;
  font-size: 24px;
  color: var(--rp-acc);
  margin: 18px 0 0;
}
.rp-closing__thanks {
  font-size: 14px;
  line-height: 1.8;
  color: var(--rp-muted);
  margin: 12px auto 0;
  max-width: 34em;
}
.rp-closing__note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--rp-ink);
  margin: 12px auto 0;
  max-width: 34em;
}

/* Sticky bottom nav (ala java-1, lokal tema ini) ------------------------------ */
.rp-nav {
  display: none;
}
.rp.is-open .rp-nav {
  display: flex;
  position: fixed;
  /* Sedikit ke kanan dari tengah supaya tak menabrak tombol musik
     (fixed bottom-left); di desktop digeser lagi ke wilayah kolom kanan. */
  left: calc(50% + 22px);
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 45;
  gap: 2px;
  padding: 6px;
  background: var(--rp-acc);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(16, 34, 56, 0.4);
}
.rp-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
  padding: 6px 4px 5px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.rp-nav__item:active {
  background: rgba(201, 162, 39, 0.25);
  color: #fff;
}
@media (max-width: 380px) {
  .rp-nav__item {
    min-width: 44px;
  }
}

/* Panel desktop — split-screen ala java-1 ------------------------------------ */
/* Di ponsel panel hilang (satu kolom penuh); di layar lebar ia fixed di kiri
   sementara kolom undangan menggulir sendiri di kanan. */
.rp-panel {
  display: none;
}
@media (min-width: 900px) {
  .rp {
    --rp-panel-w: clamp(340px, 42vw, 540px);
    padding-left: var(--rp-panel-w);
  }
  .rp-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rp-panel-w);
    z-index: 5;
    text-align: center;
    padding: 48px 32px;
    color: #fff;
    background-color: var(--rp-acc);
    /* Foto latar (ruang konferensi navy) + scrim navy gelap — foto terlihat
       redup di balik teks panel; grid samar digantikan foto. */
    background-image:
      linear-gradient(rgba(27, 42, 74, 0.8), rgba(27, 42, 74, 0.8)),
      url("/demo/rapat/cover-bg.jpg");
    background-size: cover;
    background-position: center;
  }
  /* Bingkai hairline emas di dalam panel. */
  .rp-panel::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(201, 162, 39, 0.55);
    border-radius: 4px;
    pointer-events: none;
  }
  .rp-panel__deco {
    color: var(--rp-gold);
    font-size: 16px;
    line-height: 1;
    margin-bottom: 8px;
  }
  .rp-panel__kicker {
    font-family: var(--rp-disp-stack);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rp-gold);
    margin: 0;
  }
  .rp-panel__to {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin: 18px 0 0;
  }
  .rp-panel__guest {
    font-family: var(--rp-disp-stack);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.3;
    margin: 6px 0 0;
  }
  .rp-panel__rule {
    width: 64px;
    height: 2px;
    background: var(--rp-gold);
    margin-top: 16px;
  }
  .rp-panel__name {
    font-family: var(--rp-disp-stack);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
    color: #fff;
    margin: 14px 0 0;
  }
  .rp-panel__date {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin: 6px 0 0;
  }
  /* Cover hanya menutup kolom kanan — panel tetap terlihat saat tertutup. */
  .rp.is-js .rp-cover {
    left: var(--rp-panel-w);
  }
  /* Nav + musik bergeser ke wilayah kolom kanan (tengah sisa layar). */
  .rp.is-open .rp-nav {
    left: calc(var(--rp-panel-w) + (100vw - var(--rp-panel-w)) / 2);
  }
  .rp-music {
    left: calc(var(--rp-panel-w) + 16px);
  }
}

/* Hormati prefers-reduced-motion: konten tetap lengkap tanpa animasi. */
@media (prefers-reduced-motion: reduce) {
  .rp * {
    animation: none !important;
    transition: none !important;
  }
}

/* Latar per-slide (aesthetic, korporat modern) */
.rp-hero {
  background:
    radial-gradient(
      120% 70% at 100% 0%,
      color-mix(in srgb, var(--rp-acc) 14%, transparent),
      transparent 55%
    ),
    radial-gradient(
      80% 60% at 0% 100%,
      color-mix(in srgb, var(--rp-gold, #c9a227) 10%, transparent),
      transparent 50%
    ),
    var(--rp-paper);
}
.rp-section--dark {
  background: linear-gradient(
    160deg,
    var(--rp-acc-d, #081a33),
    var(--rp-acc, #0f2f5a) 55%,
    #143d73
  );
}
.rp-section:has(.rp-agenda),
.rp-section[id*="agenda"] {
  background: linear-gradient(180deg, #f3f6fa 0%, #ffffff 100%);
}
.rp-section:has(.rp-event) {
  background:
    radial-gradient(
      90% 60% at 50% 0%,
      color-mix(in srgb, var(--rp-acc) 8%, transparent),
      transparent 60%
    ),
    var(--rp-paper);
}
.rp-section:has(.rp-carousel),
.rp-section[id*="galeri"] {
  background: linear-gradient(135deg, #eef2f7 0%, #f8fafc 100%);
}
.rp-section:has(.rp-envelope),
.rp-section[id*="hadiah"] {
  background:
    radial-gradient(
      70% 50% at 10% 80%,
      color-mix(in srgb, var(--rp-gold, #c9a227) 10%, transparent),
      transparent 55%
    ),
    var(--rp-paper);
}
.rp-section:has(.rp-guestbook),
.rp-section[id*="ucapan"] {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}
.rp-closing {
  background:
    radial-gradient(
      100% 80% at 50% 100%,
      color-mix(in srgb, var(--rp-acc) 12%, transparent),
      transparent 60%
    ),
    var(--rp-paper);
}

/* === Motion Bali (dedup+motion 12 Nov 2026): reveal-on-scroll, latar, panjang === */
/* Reveal: konten section muncul saat di-scroll (zoom-in halus ala referensi).
   `.is-js` hanya ada setelah JS jalan -> tanpa JS konten tetap terlihat. */
.rp.is-js .reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.965);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.rp.is-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Foto & kartu di dalam section: muncul menyusul (stagger) setelah section. */
.rp.is-js .reveal img,
.rp.is-js .reveal .rp-card,
.rp.is-js .reveal .rp-foto {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 0.9s ease 0.18s,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}
.rp.is-js .reveal.is-visible img,
.rp.is-js .reveal.is-visible .rp-card,
.rp.is-js .reveal.is-visible .rp-foto {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rp.is-js .reveal,
  .rp.is-js .reveal img,
  .rp.is-js .reveal .rp-card,
  .rp.is-js .reveal .rp-foto {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Latar berlapis tiap section: semburat aksen di atas + gradien kertas ke aksen. */
.rp-section {
  background:
    radial-gradient(
      120% 55% at 50% 0%,
      color-mix(in srgb, var(--rp-acc) 12%, transparent),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      var(--rp-paper),
      color-mix(in srgb, var(--rp-paper) 84%, var(--rp-acc))
    );
  padding: clamp(84px, 14vw, 128px) 20px;
}
/* Preview lebih panjang: foto mempelai & galeri lebih besar. */
.rp-foto {
  width: min(82%, 320px);
}
.rp-section > img {
  border-radius: 16px;
  margin-bottom: 18px;
}

/* === Motion Bali v2 (12 Nov 2026): ritme latar selang-seling + bingkai === */
/* Section genap: latar aksen pekat + pola wajik samar (ritme terang-gelap). */
div[data-section-id]:nth-child(even) .rp-section {
  background:
    radial-gradient(
      110% 50% at 50% 0%,
      color-mix(in srgb, var(--rp-acc) 30%, transparent),
      transparent 65%
    ),
    repeating-linear-gradient(
      45deg,
      color-mix(in srgb, var(--rp-acc) 4%, transparent) 0 2px,
      transparent 2px 26px
    ),
    repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--rp-acc) 4%, transparent) 0 2px,
      transparent 2px 26px
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--rp-acc) 28%, var(--rp-paper)),
      color-mix(in srgb, var(--rp-acc) 20%, var(--rp-paper))
    );
}
/* Bingkai ornamen ganda di tiap section (kartu berbingkai emas/aksen). */
.rp-section {
  border: 2px solid color-mix(in srgb, var(--rp-acc) 60%, transparent);
  outline: 1px solid color-mix(in srgb, var(--rp-acc) 40%, transparent);
  outline-offset: 6px;
  border-radius: 24px;
  margin: 20px 14px;
}
/* Foto mempelai bentuk arch (lengkung atas) + bingkai emas + bayangan. */
.rp-foto {
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--rp-acc) 45%, transparent);
}
/* Drift lebih kentara: opacity naik (page variant). */
.rp-drift--page .rp-drift__item svg {
  opacity: 0.4;
}

/* === Tombol Lihat Lokasi (12 Nov 2026): lengkapi data preview === */
.rp-maps {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--rp-acc);
  color: var(--rp-on-acc, #fff);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
