/* =============================================================================
   ARIA — tier Craft (acuan: prototypes/mono-universal-craft.html)
   Arah "minimalis galeri": satu serif display, whitespace ekstrem, satu aksen
   merah, section bernomor. BUKTI TIER CRAFT: TANPA canvas/gsap/lenis — hanya CSS
   + `Reveal` (IO). Semua kelas ter-scope `.ar`. Reveal state hanya aktif di bawah
   `.is-js` → tanpa JS konten terbaca; reduced-motion dinetralkan.
============================================================================= */

.ar {
  --ar-paper: #fbfaf7;
  --ar-ink: #151310;
  --ar-red: #c0392b;
  --ar-muted: rgba(21, 19, 16, 0.6);
  --ar-hairline: rgba(21, 19, 16, 0.14);
  --ar-serif-stack: var(--ar-serif), Georgia, serif;
  --ar-sans-stack: var(--ar-sans), system-ui, sans-serif;

  position: relative;
  background: var(--ar-paper);
  color: var(--ar-ink);
  font-family: var(--ar-sans-stack);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.ar *,
.ar *::before,
.ar *::after {
  box-sizing: border-box;
}
.ar ::selection {
  background: var(--ar-ink);
  color: var(--ar-paper);
}

/* Grain -------------------------------------------------------------------- */
.ar-grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.03;
  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='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reveal (Craft: CSS + IO) ------------------------------------------------- */
.ar .reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.ar.is-js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
.ar.is-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .ar.is-js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* --------------------------------------------------------------- Cover ----- */
.ar-cover {
  display: none;
}
.ar.is-js .ar-cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* Foto latar (flat-lay busana mempelai) — scrim RADIAL TENGAH-BERAT:
     0.9 di tengah (tempat nama & tombol) mereda ke 0.7 di tepi supaya
     flat-lay mengintip sebagai bingkai hangat di sudut. Fokus foto di
     bagian bawah flat-lay. */
  background-color: var(--ar-paper);
  background-image:
    radial-gradient(
      ellipse 80% 55% at 50% 50%,
      rgba(251, 250, 247, 0.9) 0%,
      rgba(251, 250, 247, 0.86) 70%,
      rgba(251, 250, 247, 0.7) 100%
    ),
    url("/demo/aria/0.jpg");
  background-size: cover;
  background-position: center 65%;
  opacity: 1;
  transition: opacity 0.9s ease;
}
.ar.is-js.is-open .ar-cover {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .ar.is-js .ar-cover {
    transition: none;
  }
}
/* min-width:0 — tanpa itu item grid melebar mengikuti nama terpanjang, sehingga
   seluruh isi sampul bergeser dan nama keluar layar alih-alih dikecilkan. */
/* position:relative: supaya isi sampul menumpuk DI ATAS lapisan melayang
   (elemen berposisi menumpuk sesuai urutan DOM; tanpa ini kelopak akan
   melayang di atas teks). */
.ar-cover__inner {
  position: relative;
  text-align: center;
  padding: 24px;
  max-width: 430px;
  width: 100%;
  min-width: 0;
}

/* Elemen melayang: kelopak & orb lembut melayang turun pelan (SVG,
   CSS-only — elegan, nyaris hening). `.ar-drift` = di dalam sampul
   (absolute, ikut fade); `--page` = lapisan tipis fixed di seluruh
   undangan (z-40, di bawah sampul z-50, svg lebih redup). Hanya
   transform/opacity yang dianimasikan. */
.ar-drift {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ar-drift--page {
  position: fixed;
  z-index: 40;
}
.ar-drift__item {
  position: absolute;
  top: 0;
  display: block;
  animation: ar-drift-fall linear infinite;
  will-change: transform, opacity;
}
.ar-drift__item svg {
  display: block;
  animation: ar-drift-sway 3s ease-in-out infinite alternate;
  /* Bayangan lembut supaya kelopak/orb emas terbaca di atas kertas terang. */
  filter: drop-shadow(0 2px 3px rgb(122 95 22 / 0.3));
}
.ar-drift__item:nth-child(even) svg {
  animation-duration: 3.8s;
}
.ar-drift--page .ar-drift__item svg {
  opacity: 0.5;
}
@keyframes ar-drift-fall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.78;
  }
  100% {
    transform: translate3d(0, 112vh, 0) rotate(240deg);
    opacity: 0;
  }
}
@keyframes ar-drift-sway {
  from {
    transform: translateX(-12px) rotate(-10deg);
  }
  to {
    transform: translateX(12px) rotate(10deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ar-drift {
    display: none;
  }
}
.ar.is-js .ar-cover__inner > * {
  animation: ar-rise 0.9s both cubic-bezier(0.22, 1, 0.36, 1);
}
.ar.is-js .ar-cover__inner > *:nth-child(2) {
  animation-delay: 0.1s;
}
.ar.is-js .ar-cover__inner > *:nth-child(3) {
  animation-delay: 0.2s;
}
.ar.is-js .ar-cover__inner > *:nth-child(4) {
  animation-delay: 0.3s;
}
.ar.is-js .ar-cover__inner > *:nth-child(5) {
  animation-delay: 0.4s;
}
.ar.is-js .ar-cover__inner > *:nth-child(6) {
  animation-delay: 0.5s;
}
@keyframes ar-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ar.is-js .ar-cover__inner > * {
    animation: none;
  }
}
.ar-cover__no {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ar-muted);
}
.ar-cover__names {
  margin: 30px 0 26px;
}
.ar-cover__name {
  font-family: var(--ar-serif-stack);
  font-weight: 400;
  font-size: clamp(52px, 15vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.ar-cover__amp {
  font-family: var(--ar-serif-stack);
  font-style: italic;
  font-size: 28px;
  color: var(--ar-red);
  margin: 4px 0;
}
.ar-cover__redline {
  width: 44px;
  height: 2px;
  background: var(--ar-red);
  margin: 26px auto;
}
.ar-cover__date {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ar-muted);
}
.ar-cover__guest {
  margin: 26px 0 30px;
  font-size: 13.5px;
  color: var(--ar-muted);
}
.ar-cover__guest b {
  display: block;
  font-family: var(--ar-serif-stack);
  font-weight: 400;
  font-style: italic;
  font-size: 21px;
  color: var(--ar-ink);
  margin-top: 6px;
}
.ar-open {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ar-ink);
  font-family: var(--ar-sans-stack);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 6px;
  cursor: pointer;
  border-bottom: 1.5px solid var(--ar-ink);
  transition:
    color 0.3s,
    border-color 0.3s,
    letter-spacing 0.3s;
}
.ar-open:hover {
  color: var(--ar-red);
  border-color: var(--ar-red);
  letter-spacing: 0.28em;
}

/* ------------------------------------------------------------- Section ----- */
.ar-section {
  position: relative;
  padding: 96px 30px;
  max-width: 520px;
  margin: 0 auto;
}
.ar-section + .ar-section {
  padding-top: 0;
}
.ar-sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 34px;
}
.ar-sec-head__num {
  font-family: var(--ar-serif-stack);
  font-style: italic;
  font-size: 15px;
  color: var(--ar-red);
}
.ar-sec-head__t {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ar-muted);
  font-weight: 500;
}
.ar-sec-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ar-hairline);
}

.ar-big {
  font-family: var(--ar-serif-stack);
  font-weight: 400;
  font-size: clamp(30px, 8.6vw, 40px);
  line-height: 1.28;
}
.ar-big--sm {
  font-size: clamp(24px, 6.4vw, 30px);
  line-height: 1.2;
}
.ar-body {
  font-size: 14px;
  line-height: 2;
  color: var(--ar-muted);
  margin-top: 18px;
  max-width: 340px;
}
.ar-body--tight {
  margin-top: 6px;
  line-height: 1.7;
}
.ar-cite {
  font-family: var(--ar-serif-stack);
  font-style: italic;
  color: var(--ar-ink);
}

/* Mempelai ----------------------------------------------------------------- */
.ar-couple {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.ar-couple__name {
  font-family: var(--ar-serif-stack);
  font-weight: 400;
  font-size: clamp(34px, 9vw, 46px);
  line-height: 1.05;
}
.ar-couple__amp {
  font-family: var(--ar-serif-stack);
  font-style: italic;
  font-size: 26px;
  color: var(--ar-red);
}
/* Foto mempelai — portrait sempit RATA KIRI dengan sudut tegak.
   Bukan bulat: lingkaran terbaca sebagai avatar media sosial, sementara tema
   ini bahasa majalah — hairline, angka italic, dan susunan asimetris. Lebarnya
   ditahan agar nama serif besar di bawahnya tetap yang pertama dibaca.
   `aspect-ratio` di sini WAJIB sama dengan `media.slots[].aspect` di
   `options.ts`: bingkai penyesuaian di editor mengikuti angka itu, dan selisih
   sedikit pun membuat hasil geser/zoom pemilik tak sama dengan yang tampil. */
.ar-couple__ph {
  width: min(58%, 210px);
  aspect-ratio: 4 / 5;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--ar-hairline);
  background: rgba(21, 19, 16, 0.04);
  display: grid;
  place-items: center;
}
.ar-couple__ph span {
  font-family: var(--ar-serif-stack);
  font-style: italic;
  font-size: 44px;
  color: var(--ar-red);
}

/* Acara -------------------------------------------------------------------- */
.ar-event + .ar-event {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--ar-hairline);
}
.ar-when {
  font-family: var(--ar-serif-stack);
  font-size: clamp(44px, 13vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.ar-event__name {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ar-red);
  margin-top: 10px;
}
.ar-kv {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 18px;
  margin-top: 28px;
  font-size: 13.5px;
}
.ar-kv dt {
  color: var(--ar-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
  padding-top: 3px;
}
.ar-kv dd {
  line-height: 1.75;
}
.ar-kv dd b {
  font-weight: 500;
}
.ar-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.ar-lnk {
  display: inline-block;
  color: var(--ar-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--ar-ink);
  padding: 10px 2px;
  cursor: pointer;
  transition:
    color 0.3s,
    border-color 0.3s;
}
.ar-lnk:hover {
  color: var(--ar-red);
  border-color: var(--ar-red);
}
.ar-cal {
  position: relative;
}
.ar-cal > summary {
  list-style: none;
}
.ar-cal > summary::-webkit-details-marker {
  display: none;
}
.ar-cal__menu {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ar-cal__opt {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ar-muted);
  border-bottom: 1px solid var(--ar-hairline);
  padding-bottom: 6px;
  width: fit-content;
}
.ar-cal__opt:hover {
  color: var(--ar-ink);
}

/* Countdown (inline) ------------------------------------------------------- */
.ar .countdown {
  display: flex;
  border-block: 1px solid var(--ar-hairline);
  margin-top: 34px;
}
.ar .count-box {
  flex: 1;
  text-align: center;
  padding: 20px 4px;
  border-left: 1px solid var(--ar-hairline);
}
.ar .count-box:first-child {
  border-left: 0;
}
.ar .count-num {
  font-family: var(--ar-serif-stack);
  font-size: clamp(28px, 8vw, 38px);
  font-variant-numeric: tabular-nums;
  display: block;
}
.ar .count-label {
  font-size: 8.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ar-muted);
  margin-top: 6px;
  display: block;
}
.ar .countdown-done {
  font-family: var(--ar-serif-stack);
  font-style: italic;
  font-size: 22px;
  margin-top: 34px;
}

/* Galeri ------------------------------------------------------------------- */
.ar-fig {
  margin-top: 44px;
}
.ar-fig:first-of-type {
  margin-top: 0;
}
.ar-fig img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
}
.ar-fig:nth-of-type(2) img {
  aspect-ratio: 3 / 4;
  width: 74%;
  margin-left: auto;
}
.ar-fig:nth-of-type(3) img {
  aspect-ratio: 1;
  width: 82%;
}
.ar-fig figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ar-muted);
}

/* Kisah -------------------------------------------------------------------- */
.ar-story + .ar-story {
  margin-top: 40px;
}
.ar-story__date {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ar-red);
}
.ar-story .ar-big--sm {
  margin-top: 8px;
}

/* Amplop ------------------------------------------------------------------- */
.ar-acct {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--ar-hairline);
  padding: 18px 2px;
  margin-top: 22px;
}
.ar-acct b {
  font-family: var(--ar-serif-stack);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.ar-acct small {
  display: block;
  font-size: 11px;
  color: var(--ar-muted);
  margin-top: 3px;
  letter-spacing: 0.06em;
}
.ar-acct--addr {
  display: block;
}
.ar-acct--addr p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ar-muted);
}
.ar-copy {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 0;
  border-bottom: 1.5px solid var(--ar-ink);
  background: transparent;
  color: var(--ar-ink);
  padding: 6px 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition:
    color 0.25s,
    border-color 0.25s;
}
.ar-copy:hover {
  color: var(--ar-red);
  border-color: var(--ar-red);
}

/* Footer ------------------------------------------------------------------- */
.ar-footer {
  padding: 90px 30px 110px;
  text-align: center;
}
.ar-footer__mono {
  font-family: var(--ar-serif-stack);
  font-style: italic;
  font-size: 30px;
}
.ar-footer__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ar-red);
  margin: 22px auto;
}
.ar-footer__meta {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ar-muted);
  line-height: 2.2;
}
.ar-watermark {
  display: inline-block;
  margin-top: 30px;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ar-muted);
  border-bottom: 1px solid var(--ar-hairline);
  padding-bottom: 6px;
}
.ar-watermark a {
  color: inherit;
}

/* Tombol musik ------------------------------------------------------------- */
.ar-music {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 55;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ar-hairline);
  background: rgba(251, 250, 247, 0.92);
  color: var(--ar-ink);
  display: none;
  place-items: center;
  cursor: pointer;
}
.ar.is-open .ar-music {
  display: grid;
}

/* ================================================================ Video ===
   Section video (FASE J) — kelas generik `_shared/video` ditata dengan token
   tema. Tanpa aturan reduced-motion: komponennya sendiri yang tak autoplay. */
.ar-video {
  margin-top: 22px;
}
.ar .video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: var(--ar-ink);
  border: 1px solid var(--ar-ink);
  box-shadow: none;
}
/* Bingkai YouTube tak membawa rasio inline (bingkai berkas membawanya). */
.ar .video-frame--yt {
  aspect-ratio: 16 / 9;
}
.ar .video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.ar .video-mute,
.ar .video-play {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ar-paper);
  color: var(--ar-ink);
}
.ar .video-mute {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ar-hairline);
  cursor: pointer;
}
.ar .video-lite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background-color: var(--ar-ink);
  background-size: cover;
  background-position: center;
}
/* Peredup agar tombol putar terbaca di atas poster terang. */
.ar .video-lite::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 19, 16, 0.28);
}
.ar .video-play {
  position: relative;
  width: 64px;
  height: 64px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
.ar .video-play svg {
  margin-left: 3px;
}
.ar .video-mute:focus-visible {
  outline: 2px solid var(--ar-red);
  outline-offset: 2px;
}
/* Di dalam bingkai `overflow: hidden` → cincin fokus ke dalam. */
.ar .video-lite:focus-visible {
  outline: 2px solid var(--ar-red);
  outline-offset: -5px;
}

/* Tombol live streaming di section acara (Premium, DECISIONS #116) — gaya
   tombolnya `ar-lnk` yang sama dengan "Petunjuk Arah"; rata kiri mengikuti
   susunan acara, inline-flex hanya agar ikon sebaris dengan label. */
.ar-live {
  display: flex;
  justify-content: flex-start;
  margin-top: 44px;
}
.ar-live .ar-lnk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Latar per-slide (aesthetic, editorial minimal) */
.ar-stage > .ar-section:nth-of-type(1) {
  background:
    radial-gradient(
      90% 60% at 100% 0%,
      color-mix(in srgb, var(--ar-accent, #c0392b) 8%, transparent),
      transparent 55%
    ),
    var(--ar-paper);
}
.ar-stage > .ar-section:nth-of-type(2) {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ar-ink) 3%, var(--ar-paper)),
    var(--ar-paper)
  );
}
.ar-stage > .ar-section:nth-of-type(3) {
  background:
    radial-gradient(
      70% 50% at 0% 80%,
      color-mix(in srgb, var(--ar-accent, #c0392b) 7%, transparent),
      transparent 55%
    ),
    var(--ar-paper);
}
.ar-stage > .ar-section:nth-of-type(4) {
  background: linear-gradient(135deg, #f4f3ef 0%, #fbfaf7 100%);
}
.ar-stage > .ar-section:nth-of-type(5) {
  background:
    radial-gradient(
      80% 60% at 80% 20%,
      color-mix(in srgb, var(--ar-ink) 4%, transparent),
      transparent 60%
    ),
    var(--ar-paper);
}
.ar-stage > .ar-section:nth-of-type(6) {
  background: linear-gradient(
    180deg,
    var(--ar-paper),
    color-mix(in srgb, var(--ar-accent, #c0392b) 5%, var(--ar-paper))
  );
}
.ar-stage > .ar-section:nth-of-type(7) {
  background:
    radial-gradient(
      90% 60% at 20% 30%,
      color-mix(in srgb, var(--ar-accent, #c0392b) 6%, transparent),
      transparent 55%
    ),
    #f8f7f3;
}
.ar-stage > .ar-section:nth-of-type(8) {
  background: linear-gradient(180deg, #faf9f6, var(--ar-paper));
}
.ar-footer {
  background: linear-gradient(
    180deg,
    var(--ar-paper),
    color-mix(in srgb, var(--ar-ink) 6%, var(--ar-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. */
.ar.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;
}
.ar.is-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Foto & kartu di dalam section: muncul menyusul (stagger) setelah section. */
.ar.is-js .reveal img,
.ar.is-js .reveal .ar-card,
.ar.is-js .reveal .ar-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;
}
.ar.is-js .reveal.is-visible img,
.ar.is-js .reveal.is-visible .ar-card,
.ar.is-js .reveal.is-visible .ar-foto {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .ar.is-js .reveal,
  .ar.is-js .reveal img,
  .ar.is-js .reveal .ar-card,
  .ar.is-js .reveal .ar-foto {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Latar berlapis tiap section: semburat aksen di atas + gradien kertas ke aksen. */
.ar-section {
  background:
    radial-gradient(
      120% 55% at 50% 0%,
      color-mix(in srgb, var(--ar-acc) 12%, transparent),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      var(--ar-paper),
      color-mix(in srgb, var(--ar-paper) 84%, var(--ar-acc))
    );
  padding: clamp(84px, 14vw, 128px) 20px;
}
/* Preview lebih panjang: foto mempelai & galeri lebih besar. */
.ar-foto {
  width: min(82%, 320px);
}
.ar-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) .ar-section {
  background:
    radial-gradient(
      110% 50% at 50% 0%,
      color-mix(in srgb, var(--ar-acc) 30%, transparent),
      transparent 65%
    ),
    repeating-linear-gradient(
      45deg,
      color-mix(in srgb, var(--ar-acc) 4%, transparent) 0 2px,
      transparent 2px 26px
    ),
    repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--ar-acc) 4%, transparent) 0 2px,
      transparent 2px 26px
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--ar-acc) 28%, var(--ar-paper)),
      color-mix(in srgb, var(--ar-acc) 20%, var(--ar-paper))
    );
}
/* Bingkai ornamen ganda di tiap section (kartu berbingkai emas/aksen). */
.ar-section {
  border: 2px solid color-mix(in srgb, var(--ar-acc) 60%, transparent);
  outline: 1px solid color-mix(in srgb, var(--ar-acc) 40%, transparent);
  outline-offset: 6px;
  border-radius: 24px;
  margin: 20px 14px;
}
/* Foto mempelai bentuk arch (lengkung atas) + bingkai emas + bayangan. */
.ar-foto {
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ar-acc) 45%, transparent);
}
/* Drift lebih kentara: opacity naik (page variant). */
.ar-drift--page .ar-drift__item svg {
  opacity: 0.4;
}

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