/* =============================================================================
   FESTA — tier Craft (acuan: prototypes/family-warm-craft.html)
   Arah "Editorial hangat & ceria" untuk acara keluarga (khitan, ulang tahun,
   syukuran). BUKTI TIER CRAFT: TANPA gsap/lenis — hanya CSS + `Reveal` (IO) +
   `ParticlesCanvas` confetti. Semua kelas ter-scope `.ft`. Reveal state hanya
   aktif di bawah `.is-js` → tanpa JS konten terbaca; reduced-motion dinetralkan.
============================================================================= */

.ft {
  --ft-cream: #fff7e8;
  --ft-cream-2: #fcefd8;
  --ft-sun: #f5b93f;
  --ft-coral: #e56a4e;
  --ft-teal: #2e7d6b;
  --ft-choco: #4a3423;
  /* Koral sebagai TEKS di krem, dan tinta di atas isian cerah (koral/sun &
     aksen varian mint/sky/pink): keduanya ≥ 4,5:1. */
  --ft-coral-ink: #ae513b;
  --ft-choco-d: #352519;
  --ft-muted: rgba(74, 52, 35, 0.72);
  --ft-hairline: rgba(74, 52, 35, 0.16);
  --ft-disp-stack: var(--ft-disp), system-ui, sans-serif;
  --ft-body-stack: var(--ft-body), system-ui, sans-serif;

  position: relative;
  background: var(--ft-cream);
  color: var(--ft-choco);
  font-family: var(--ft-body-stack);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ft *,
.ft *::before,
.ft *::after {
  box-sizing: border-box;
}
.ft ::selection {
  background: var(--ft-sun);
  color: var(--ft-choco);
}

/* Grain + confetti -------------------------------------------------------- */
.ft-grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%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");
}
.ft-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 65;
}

/* Balon melayang — lapisan tipis fixed di atas sampul (z-65, sama seperti
   confetti) dan tetap ada di seluruh undangan. Hanya transform/opacity;
   pointer-events none; reduced-motion → disembunyikan (juga digate motionOn
   di fx.tsx). Item luar menempuh naik, svg dalam bergoyang. */
.ft-drift {
  position: fixed;
  inset: 0;
  z-index: 65;
  pointer-events: none;
  overflow: hidden;
}
.ft-drift__item {
  position: absolute;
  top: 0;
  left: var(--x);
  opacity: var(--o);
  animation: ft-drift-rise var(--d) linear var(--dl) infinite;
  will-change: transform;
}
.ft-drift__item > svg {
  display: block;
  width: var(--s);
  height: auto;
  animation: ft-drift-sway var(--sw) ease-in-out infinite alternate;
}
@keyframes ft-drift-rise {
  from {
    transform: translate3d(0, 108vh, 0);
  }
  to {
    transform: translate3d(0, -18vh, 0);
  }
}
@keyframes ft-drift-sway {
  from {
    transform: translateX(-9px) rotate(-6deg);
  }
  to {
    transform: translateX(9px) rotate(6deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ft-drift {
    display: none;
  }
}

/* Reveal (Craft: CSS + IO) ------------------------------------------------- */
.ft .reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.ft.is-js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.ft.is-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.ft.is-js .reveal.ft-pop {
  transform: translateY(14px) scale(0.95) rotate(-2deg);
}
.ft.is-js .reveal.ft-pop.is-visible {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .ft.is-js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* Tipografi ---------------------------------------------------------------- */
.ft-eyebrow {
  font-family: var(--ft-disp-stack);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ft-coral-ink);
  margin: 0;
}
.ft-center {
  text-align: center;
}
.ft-lead {
  color: var(--ft-muted);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 320px;
  margin: 14px auto 0;
}
.ft-inner {
  max-width: 460px;
  margin: 0 auto;
}
.ft-section {
  position: relative;
  padding: 80px 26px;
}

/* --------------------------------------------------------------- Cover ----- */
.ft-cover {
  display: none;
}
.ft.is-js .ft-cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* Foto latar (pesta meriah) — PALING FOTO-DOMINAN di katalog: scrim tipis
     di atas, menebal ke bawah tempat teks/tombol berada; focal atas. */
  background-color: var(--ft-cream);
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 247, 232, 0.45),
      rgba(255, 247, 232, 0.45) 42%,
      rgba(255, 247, 232, 0.88) 100%
    ),
    url("/demo/festa/0.jpg");
  background-size: cover;
  background-position: center 25%;
  transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}
.ft.is-js.is-open .ft-cover {
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: reduce) {
  .ft.is-js .ft-cover {
    transition: none;
  }
}
.ft-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: ft-float 9s ease-in-out infinite alternate;
}
.ft-blob--1 {
  width: 46vw;
  height: 46vw;
  max-width: 230px;
  max-height: 230px;
  background: var(--ft-sun);
  top: -8%;
  left: -10%;
  opacity: 0.85;
}
.ft-blob--2 {
  width: 34vw;
  height: 34vw;
  max-width: 170px;
  max-height: 170px;
  background: var(--ft-coral);
  bottom: 6%;
  right: -8%;
  opacity: 0.75;
  animation-delay: -3s;
}
.ft-blob--3 {
  width: 20vw;
  height: 20vw;
  max-width: 110px;
  max-height: 110px;
  background: var(--ft-teal);
  bottom: 22%;
  left: 4%;
  opacity: 0.6;
  animation-delay: -6s;
}
@keyframes ft-float {
  from {
    transform: translateY(-10px);
  }
  to {
    transform: translateY(16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ft-blob {
    animation: none;
  }
}
/* min-width:0 — tanpa itu item grid melebar mengikuti kata terpanjang nama,
   sehingga seluruh isi sampul bergeser keluar layar alih-alih namanya yang
   dikecilkan. */
.ft-cover__inner {
  position: relative;
  text-align: center;
  padding: 24px;
  max-width: 430px;
  width: 100%;
  min-width: 0;
}
.ft.is-js .ft-cover__inner > * {
  animation: ft-rise 0.7s both cubic-bezier(0.22, 1, 0.36, 1);
}
.ft.is-js .ft-cover__inner > *:nth-child(2) {
  animation-delay: 0.08s;
}
.ft.is-js .ft-cover__inner > *:nth-child(3) {
  animation-delay: 0.16s;
}
.ft.is-js .ft-cover__inner > *:nth-child(4) {
  animation-delay: 0.24s;
}
.ft.is-js .ft-cover__inner > *:nth-child(5) {
  animation-delay: 0.32s;
}
@keyframes ft-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ft.is-js .ft-cover__inner > * {
    animation: none;
  }
}
.ft-badge {
  display: inline-block;
  font-family: var(--ft-disp-stack);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ft-coral);
  color: var(--ft-choco-d);
  padding: 10px 18px;
  border-radius: 999px;
  transform: rotate(-4deg);
  box-shadow: 0 8px 0 rgba(74, 52, 35, 0.15);
}
.ft-cover__name {
  font-family: var(--ft-disp-stack);
  font-weight: 800;
  font-size: clamp(46px, 15vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 22px 0 6px;
  color: var(--ft-choco);
  text-shadow: 4px 4px 0 var(--ft-sun);
}
.ft-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}
.ft-chip {
  font-family: var(--ft-disp-stack);
  font-weight: 700;
  font-size: 13px;
  background: #fff;
  border: 2px solid var(--ft-choco);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 3px 3px 0 var(--ft-choco);
}
.ft-chip--sun {
  background: var(--ft-sun);
  color: var(--ft-choco-d);
}
.ft-guest {
  margin: 0 auto 24px;
  max-width: 290px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid var(--ft-choco);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ft-teal);
}
.ft-guest small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ft-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.ft-guest strong {
  font-family: var(--ft-disp-stack);
  font-weight: 700;
  font-size: 18px;
}
.ft-open {
  appearance: none;
  border: 2px solid var(--ft-choco);
  background: var(--ft-sun);
  color: var(--ft-choco-d);
  font-family: var(--ft-disp-stack);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 16px 36px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ft-choco);
  transition: 0.2s;
}
.ft-open:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ft-choco);
}
.ft-open:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ft-choco);
}

/* Marquee + scallop -------------------------------------------------------- */
.ft-marquee {
  overflow: hidden;
  background: var(--ft-coral);
  color: var(--ft-choco-d);
  padding: 12px 0;
}
.ft-marquee__track {
  display: flex;
  width: max-content;
  animation: ft-mq 22s linear infinite;
}
.ft-marquee__track span {
  font-family: var(--ft-disp-stack);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 0.5em;
}
@keyframes ft-mq {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ft-marquee__track {
    animation: none;
  }
}
/* Kustomisasi (Fase G): motion "tenang" mematikan blob mengambang + marquee. */
.ft[data-motion="calm"] .ft-blob,
.ft[data-motion="calm"] .ft-marquee__track {
  animation: none;
}
.ft-scallop {
  height: 16px;
  background: radial-gradient(
      circle 10px at 10px 0,
      var(--ft-coral) 98%,
      transparent
    )
    0 0 / 20px 16px repeat-x;
}
.ft-scallop--teal {
  background: radial-gradient(
      circle 10px at 10px 0,
      var(--ft-teal) 98%,
      transparent
    )
    0 0 / 20px 16px repeat-x;
  transform: rotate(180deg);
}

/* Opening: polaroid + kid --------------------------------------------------- */
.ft-polaroid {
  width: min(72%, 260px);
  margin: 30px auto 0;
  background: #fff;
  border: 2px solid var(--ft-choco);
  border-radius: 6px;
  padding: 10px 10px 16px;
  box-shadow: 6px 6px 0 var(--ft-sun);
  transform: rotate(-2.5deg);
  position: relative;
}
.ft-polaroid__tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(3deg);
  width: 90px;
  height: 26px;
  background: rgba(245, 185, 63, 0.7);
  border-radius: 2px;
}
.ft-polaroid__ph {
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  display: grid;
  place-items: center;
  background: radial-gradient(
    90% 90% at 30% 20%,
    #ffd98a,
    #f5b93f 60%,
    #e5953f
  );
}
.ft-polaroid__ph span {
  font-family: var(--ft-disp-stack);
  font-weight: 800;
  font-size: 84px;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(74, 52, 35, 0.3);
}
.ft-polaroid figcaption {
  font-family: var(--ft-disp-stack);
  font-weight: 700;
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}
.ft-kid {
  margin-top: 26px;
}
.ft-kid__name {
  font-family: var(--ft-disp-stack);
  font-weight: 800;
  font-size: 24px;
}
.ft-kid__parents {
  color: var(--ft-muted);
  font-size: 13.5px;
  line-height: 1.8;
  margin-top: 8px;
}
.ft-kid__parents b {
  color: var(--ft-choco);
  font-weight: 700;
}
.ft-quote {
  font-family: var(--ft-body-stack);
  font-style: italic;
  color: var(--ft-muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 320px;
  margin: 26px auto 0;
}
.ft-quote__src {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  color: var(--ft-coral-ink);
  margin-top: 8px;
}

/* Countdown chunky --------------------------------------------------------- */
.ft .countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 390px;
  margin: 28px auto 0;
}
.ft .count-box {
  background: #fff;
  border: 2px solid var(--ft-choco);
  border-radius: 16px;
  padding: 14px 4px;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ft-choco);
}
.ft .count-box:nth-child(1) {
  box-shadow: 4px 4px 0 var(--ft-coral);
}
.ft .count-box:nth-child(2) {
  box-shadow: 4px 4px 0 var(--ft-sun);
}
.ft .count-box:nth-child(3) {
  box-shadow: 4px 4px 0 var(--ft-teal);
}
.ft .count-num {
  font-family: var(--ft-disp-stack);
  font-weight: 800;
  font-size: clamp(26px, 7.8vw, 34px);
  font-variant-numeric: tabular-nums;
  display: block;
}
.ft .count-label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ft-muted);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}
.ft .countdown-done {
  font-family: var(--ft-disp-stack);
  font-weight: 800;
  font-size: 20px;
  color: var(--ft-teal);
}

/* Kartu acara -------------------------------------------------------------- */
.ft-event {
  background: #fff;
  border: 2px solid var(--ft-choco);
  border-radius: 22px;
  padding: 26px;
  margin-top: 24px;
  box-shadow: 6px 6px 0 var(--ft-teal);
}
.ft-event__day {
  font-family: var(--ft-disp-stack);
  font-weight: 800;
  font-size: clamp(34px, 10vw, 48px);
  line-height: 1;
  color: var(--ft-teal);
}
.ft-event__meta {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ft-muted);
  margin-top: 12px;
}
.ft-event__meta b {
  color: var(--ft-choco);
  font-weight: 700;
}
.ft-pills {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.ft-pill {
  font-family: var(--ft-disp-stack);
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 999px;
  border: 2px solid var(--ft-choco);
  color: var(--ft-choco);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ft-choco);
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ft-pill:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ft-choco);
}
.ft-pill--teal {
  background: var(--ft-teal);
  border-color: var(--ft-teal);
  color: #fff;
}
.ft-cal {
  position: relative;
}
.ft-cal > summary {
  list-style: none;
}
.ft-cal > summary::-webkit-details-marker {
  display: none;
}
.ft-cal__menu {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ft-cal__opt {
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ft-choco);
  border: 2px solid var(--ft-hairline);
  border-radius: 12px;
  padding: 9px 12px;
}

/* Galeri polaroid strip ---------------------------------------------------- */
.ft-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 26px;
  scrollbar-width: none;
}
.ft-gallery::-webkit-scrollbar {
  display: none;
}
.ft-gallery__item {
  flex: 0 0 46%;
  scroll-snap-align: center;
  background: #fff;
  border: 2px solid var(--ft-choco);
  border-radius: 6px;
  padding: 8px 8px 14px;
  box-shadow: 4px 4px 0 var(--ft-sun);
}
.ft-gallery__item:nth-child(even) {
  transform: rotate(2deg);
  box-shadow: 4px 4px 0 var(--ft-coral);
}
.ft-gallery__item:nth-child(odd) {
  transform: rotate(-2deg);
}
.ft-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}

/* Doa wall ----------------------------------------------------------------- */
.ft-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.ft-wish {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 2px solid var(--ft-hairline);
  border-radius: 16px;
  padding: 14px;
}
.ft-wish__ava {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ft-disp-stack);
  font-weight: 800;
  color: var(--ft-choco-d);
  background: var(--ft-coral);
}
.ft-wish:nth-child(even) .ft-wish__ava {
  background: var(--ft-teal);
}
.ft-wish b {
  font-family: var(--ft-disp-stack);
  font-size: 13.5px;
}
.ft-wish__from {
  font-size: 11px;
  color: var(--ft-muted);
  margin-left: 6px;
}
.ft-wish p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ft-muted);
  margin-top: 3px;
}

/* Amplop ------------------------------------------------------------------- */
.ft-acct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 2px solid var(--ft-choco);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 3px 3px 0 var(--ft-choco);
}
.ft-acct b {
  font-family: var(--ft-disp-stack);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.ft-acct small {
  display: block;
  font-size: 11.5px;
  color: var(--ft-muted);
  margin-top: 2px;
}
.ft-acct--addr {
  display: block;
}
.ft-acct--addr p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ft-muted);
}
.ft-copy {
  font-family: var(--ft-disp-stack);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 2px solid var(--ft-choco);
  background: var(--ft-cream);
  color: var(--ft-choco);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: 0.2s;
}
.ft-copy:hover {
  background: var(--ft-teal);
  border-color: var(--ft-teal);
  color: #fff;
}

/* Footer ------------------------------------------------------------------- */
.ft-footer {
  padding: 64px 26px 90px;
  background: var(--ft-teal);
  color: var(--ft-cream);
}
.ft-footer__big {
  font-family: var(--ft-disp-stack);
  font-weight: 800;
  font-size: 30px;
}
.ft-footer__note {
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.8;
  max-width: 320px;
  margin-inline: auto;
}
.ft-watermark {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--ft-disp-stack);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ft-cream);
  border: 2px solid rgba(255, 247, 232, 0.4);
  padding: 8px 14px;
  border-radius: 999px;
}
.ft-watermark a {
  color: inherit;
}

/* Tombol musik ------------------------------------------------------------- */
.ft-music {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 55;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--ft-choco);
  background: #fff;
  color: var(--ft-choco);
  display: none;
  place-items: center;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ft-choco);
}
.ft.is-open .ft-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. */
.ft-video {
  margin-top: 22px;
}
.ft .video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ft-choco-d);
  border: 3px solid var(--ft-choco);
  box-shadow: 6px 6px 0 var(--ft-teal);
}
/* Bingkai YouTube tak membawa rasio inline (bingkai berkas membawanya). */
.ft .video-frame--yt {
  aspect-ratio: 16 / 9;
}
.ft .video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.ft .video-mute,
.ft .video-play {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ft-sun);
  color: var(--ft-choco-d);
}
.ft .video-mute {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ft-choco);
  cursor: pointer;
}
.ft .video-lite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background-color: var(--ft-choco-d);
  background-size: cover;
  background-position: center;
}
/* Peredup agar tombol putar terbaca di atas poster terang. */
.ft .video-lite::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(53, 37, 25, 0.25);
}
.ft .video-play {
  position: relative;
  width: 64px;
  height: 64px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
.ft .video-play svg {
  margin-left: 3px;
}
.ft .video-mute:focus-visible {
  outline: 2px solid var(--ft-coral-ink);
  outline-offset: 2px;
}
/* Di dalam bingkai `overflow: hidden` → cincin fokus ke dalam. */
.ft .video-lite:focus-visible {
  outline: 2px solid var(--ft-coral-ink);
  outline-offset: -5px;
}

/* Tombol live streaming di section acara (Premium, DECISIONS #116) — gaya
   tombolnya `ft-pill ft-pill--teal` yang sama dengan "Petunjuk Arah". */
.ft-live {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* Latar per-slide (aesthetic, ceria pesta keluarga) */
.ft-section:has(.ft-polaroid),
.ft-stage > .ft-section:nth-of-type(1) {
  background:
    radial-gradient(
      90% 60% at 10% 20%,
      color-mix(in srgb, var(--ft-sun, #f5b93f) 18%, transparent),
      transparent 50%
    ),
    radial-gradient(
      70% 50% at 90% 80%,
      color-mix(in srgb, var(--ft-teal, #2e7d6b) 12%, transparent),
      transparent 50%
    ),
    var(--ft-cream);
}
.ft-stage > .ft-section:nth-of-type(2) {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ft-coral, #e56a4e) 10%, var(--ft-cream)),
    var(--ft-cream)
  );
}
.ft-stage > .ft-section:nth-of-type(3) {
  background:
    radial-gradient(
      80% 60% at 80% 10%,
      color-mix(in srgb, var(--ft-sun, #f5b93f) 14%, transparent),
      transparent 55%
    ),
    var(--ft-cream);
}
.ft-stage > .ft-section:nth-of-type(4) {
  background: linear-gradient(135deg, #fff6e6 0%, var(--ft-cream) 100%);
}
.ft-stage > .ft-section:nth-of-type(5) {
  background:
    radial-gradient(
      70% 50% at 20% 70%,
      color-mix(in srgb, var(--ft-teal, #2e7d6b) 10%, transparent),
      transparent 55%
    ),
    #fffaf0;
}
.ft-stage > .ft-section:nth-of-type(6) {
  background: linear-gradient(
    180deg,
    var(--ft-cream),
    color-mix(in srgb, var(--ft-coral, #e56a4e) 8%, var(--ft-cream))
  );
}
.ft-stage > .ft-section:nth-of-type(7) {
  background:
    radial-gradient(
      90% 60% at 50% 30%,
      color-mix(in srgb, var(--ft-sun, #f5b93f) 12%, transparent),
      transparent 55%
    ),
    var(--ft-cream);
}
.ft-footer {
  background: linear-gradient(
    180deg,
    var(--ft-cream),
    color-mix(in srgb, var(--ft-teal, #2e7d6b) 12%, var(--ft-cream))
  );
}

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

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