:root {
  --bg: #220f0c;
  --text: #f6f4f0;
  --text-dim: rgba(246, 244, 240, 0.78);
  --text-dimmer: rgba(246, 244, 240, 0.6);

  --gold: #d8b56a;
  --gold-soft: rgba(216, 181, 106, 0.22);
  --gold-stroke: rgba(216, 181, 106, 0.35);

  --panel: rgba(246, 244, 240, 0.06);
  --stroke: rgba(246, 244, 240, 0.14);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.48);

  --ease-out: cubic-bezier(0.2, 0.85, 0.2, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 360ms;
  --dur: 720ms;
}

/* ====== alice (SELF HOST) ====== */
@font-face {
  font-family: "Alice";
  src:
    url("fonts/Alice.woff2") format("woff2"),
    url("fonts/Alice.woff") format("woff"),
    url("fonts/Alice.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(
      1200px 700px at 18% 10%,
      rgba(216, 181, 106, 0.14),
      transparent 55%
    ),
    radial-gradient(
      900px 520px at 80% 28%,
      rgba(246, 244, 240, 0.06),
      transparent 60%
    ),
    radial-gradient(
      900px 620px at 50% 92%,
      rgba(216, 181, 106, 0.1),
      transparent 58%
    ),
    linear-gradient(160deg, #1a0b09 0%, #220f0c 45%, #0f0706 100%);
  font-family: "Alice", serif, Georgia, "Times New Roman", Times, serif;

  overflow-x: hidden;
  overflow-y: auto;
}

/* Animated glow layer */
.bg-animated {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      820px 420px at 28% 18%,
      rgba(216, 181, 106, 0.16),
      transparent 60%
    ),
    radial-gradient(
      740px 420px at 72% 34%,
      rgba(246, 244, 240, 0.05),
      transparent 60%
    ),
    radial-gradient(
      980px 560px at 40% 84%,
      rgba(216, 181, 106, 0.1),
      transparent 60%
    );
  filter: blur(22px);
  opacity: 0.92;
  animation: floatBG 12s var(--ease-soft) infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes floatBG {
  from {
    transform: translate3d(-1.2%, -1%, 0) scale(1.03);
  }
  to {
    transform: translate3d(1.2%, 1%, 0) scale(1.06);
  }
}

/* Grain */
.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

/* Layers */
.opening,
.content {
  position: relative;
  z-index: 1;
}
.hidden {
  display: none !important;
}
.lucide-icon {
  width: 18px;
  height: 18px;
}

/* =========================
   OPENING FULL SCREEN
========================= */
.opening {
  height: 100svh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
}
.opening-stage {
  position: relative;
  height: 100%;
  width: 100%;
}

.opening-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: openingKenburns 14s var(--ease-soft) infinite alternate;
}
@keyframes openingKenburns {
  from {
    transform: scale(1.02) translateY(-0.5%);
  }
  to {
    transform: scale(1.06) translateY(0.5%);
  }
}

.opening-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(34, 15, 12, 0) 0%,
    rgba(34, 15, 12, 0.1) 45%,
    rgba(34, 15, 12, 0.55) 70%,
    rgba(34, 15, 12, 0.92) 100%
  );
  pointer-events: none;
}

.opening-text {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 6vh, 44px);
  transform: translateX(-50%);
  width: min(560px, calc(100% - 28px));
  text-align: center;
  padding: 10px 10px 0;
}

.cover-smallcaps {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 2.8vw, 0.96rem); /* ✅ agak besar */
  opacity: 0.92;
  margin-bottom: 10px;
}

.cover-names {
  max-width: 92%;
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 36px);
  text-align: center;
  padding-top: clamp(10px, 4vh, 42px);
  padding-bottom: clamp(10px, 4vh, 42px);
}

.cover-name {
  display: block;
  font-family: "Alice", serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 15vw, 6.6rem); /* ✅ font lebih besar */
  line-height: 1.03;
  letter-spacing: 0.03em;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

.cover-amp {
  display: inline-block;
  margin: 6px 0;
  font-family: "Alice", serif;
  font-size: clamp(1.55rem, 6.4vw, 2.2rem);
  opacity: 0.95;
}

.cover-sub {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(0.74rem, 2.6vw, 0.92rem); /* ✅ agak besar */
  color: var(--text-dim);
  margin-top: 12px;
}
.cover-date {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(0.78rem, 2.8vw, 1.02rem); /* ✅ agak besar */
  margin-top: 14px;
}
.cover-address {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(0.68rem, 2.4vw, 0.9rem); /* ✅ agak besar */
  color: var(--text-dimmer);
  margin-top: 12px;
  line-height: 1.55;
}

.to-box {
  margin: 16px auto 0;
  width: min(440px, 100%);
  border: 1px solid rgba(246, 244, 240, 0.18);
  background: rgba(34, 15, 12, 0.22);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}
.to-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem; /* ✅ agak besar */
  opacity: 0.82;
}
.to-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 5px;
  font-size: 1.14rem; /* ✅ agak besar */
}

/* ✅ tombol cover diperhalus (lebih elegan) */
.btn-open {
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(340px, 100%);
  border-radius: 999px;
  padding: 13px 18px;

  background: linear-gradient(
    90deg,
    rgba(216, 181, 106, 0.95),
    rgba(216, 181, 106, 0.72)
  );
  border: 1px solid rgba(216, 181, 106, 0.4);
  color: #220f0c;

  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.84rem;

  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.45),
    0 10px 34px rgba(216, 181, 106, 0.12);

  transition:
    transform var(--dur-fast) var(--ease-out),
    filter var(--dur-fast) var(--ease-out);
}
.btn-open:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.btn-open:active {
  transform: translateY(0) scale(0.99);
}

.hint {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 1.02rem; /* ✅ agak besar */
  color: var(--text-dim);
}

/* flower ornaments */
.opening-flower {
  position: absolute;
  bottom: 60px;
  width: 86px;
  height: 160px;
  opacity: 0.85;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='320' viewBox='0 0 180 320'%3E%3Cg fill='none' stroke='%23f6f4f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='.9'%3E%3Cpath d='M90 300c0-90-10-140-40-210'/%3E%3Cpath d='M90 300c0-90 10-140 40-210'/%3E%3Cpath d='M50 120c20 10 30 25 30 45'/%3E%3Cpath d='M130 120c-20 10-30 25-30 45'/%3E%3Cpath d='M60 60c20-10 40-10 60 0'/%3E%3Cpath d='M60 60c10 20 10 40 0 60'/%3E%3Cpath d='M120 60c-10 20-10 40 0 60'/%3E%3Cpath d='M90 30c20 10 30 25 30 45'/%3E%3Cpath d='M90 30c-20 10-30 25-30 45'/%3E%3C/g%3E%3C/svg%3E");
}
.opening-flower-left {
  left: 14px;
  transform: scaleX(-1);
}
.opening-flower-right {
  right: 14px;
}
@media (max-width: 420px) {
  .opening-flower {
    display: none;
  }
}

/* Opening exit animation */
.opening.hide {
  animation: openingOut 700ms var(--ease-out) forwards;
}
@keyframes openingOut {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.99);
    pointer-events: none;
  }
}

/* ===== Layout wrapper ===== */
.mobile-shell {
  width: min(620px, 100%);
  margin: 0 auto;
}

/* =========================
   Common cards & sections
========================= */
.card {
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(246, 244, 240, 0.06),
    rgba(246, 244, 240, 0.03)
  );
  box-shadow: var(--shadow);
  padding: 18px;
  transform: translateZ(0);
}
@media (min-width: 640px) {
  .card {
    padding: 24px;
  }
}

.section-title {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
  font-size: 1.05rem; /* ✅ lebih besar */
}

.panel {
  border-radius: 18px;
  border: 1px solid rgba(246, 244, 240, 0.12);
  background: linear-gradient(
    180deg,
    rgba(246, 244, 240, 0.06),
    rgba(34, 15, 12, 0.14)
  );
  padding: 16px;
}

.panel-title {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.1rem; /* ✅ lebih besar */
}

.isi {
  color: rgba(246, 244, 240, 0.92);
  line-height: 1.75; /* ✅ lebih nyaman */
  font-size: 1.02rem; /* ✅ lebih besar */
}

/* Inputs */
.input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(246, 244, 240, 0.14);
  background: rgba(34, 15, 12, 0.24);
  padding: 12px 12px;
  outline: none;
  color: var(--text);
  font-size: 1rem;
}
.input::placeholder {
  color: rgba(246, 244, 240, 0.55);
}

/* Buttons */
.btn-primary,
.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 16px; /* ✅ sedikit lebih besar */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem; /* ✅ lebih besar */
  font-weight: 800;
  transition:
    transform var(--dur-fast) var(--ease-out),
    filter var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.btn-primary {
  background: linear-gradient(
    90deg,
    rgba(216, 181, 106, 0.95),
    rgba(216, 181, 106, 0.7)
  );
  color: #220f0c;
  box-shadow: 0 14px 45px rgba(216, 181, 106, 0.14);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1px solid var(--gold-stroke);
  background: linear-gradient(
    180deg,
    rgba(246, 244, 240, 0.1),
    rgba(34, 15, 12, 0.18)
  );
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    180deg,
    rgba(246, 244, 240, 0.14),
    rgba(34, 15, 12, 0.2)
  );
}

/* =========================
   Reveal (scroll)
========================= */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-soft),
    filter var(--dur) var(--ease-out);
  will-change: opacity, transform, filter;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.reveal.from-left {
  transform: translateX(-18px) scale(0.985);
}
.reveal.from-right {
  transform: translateX(18px) scale(0.985);
}
.reveal.from-left.show,
.reveal.from-right.show {
  transform: translateX(0) scale(1);
}
.reveal.d1 {
  transition-delay: 120ms;
}
.reveal.d2 {
  transition-delay: 220ms;
}
.reveal.d3 {
  transition-delay: 340ms;
}
.reveal.d4 {
  transition-delay: 460ms;
}

/* =========================
   HERO MOTION (NO BLUR + CENTER FIX)
========================= */
.heroMotionWrap {
  padding: 0 !important;
  overflow: hidden;
}

/* full-bleed bener2 full layar */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* HERO: nempel atas & tidak tumpul */
.heroMotionWrap.card {
  padding: 0 !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
}

/* =========================
   HERO FIX (ANTI BLUR + CENTER + CTA BAWAH)
========================= */
.heroScene.scene {
  position: relative;
  width: 100vw;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  border-radius: 0 !important;
}

/* ✅ PAKSA SEMUA LAYER HERO TIDAK BLUR */
.heroScene .layer > img {
  filter: none !important;
}

/* ✅ INTRO ASSET: NO BLUR sama sekali */
.intro > img {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.92);
  filter: none !important; /* penting */
}

.intro.show > img {
  opacity: 1;
  animation: heroPopIn 820ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

@keyframes heroPopIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.92);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* ✅ CENTER beneran */
.titleWrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 60;
  pointer-events: none;
}

/* ✅ Frame tetap di tengah */
.nameFrame {
  position: relative;
  width: min(560px, 88vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  pointer-events: none;
}

.nameFrameImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nameFrame .names {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: 82%;
  text-align: center;
  color: #fff;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.46);
}

/* ✅ introText juga NO BLUR */
.introText {
  opacity: 0 !important;
  transform: translateY(16px) scale(0.92);
  filter: none !important;
  will-change: transform, opacity;
}
.introText.show {
  opacity: 1 !important;
  animation: heroTextIn 980ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
@keyframes heroTextIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }
  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ✅ CTA sekarang nempel bawah viewport (bukan bawah frame) */
.heroCta {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom)); /* aman iPhone */
  transform: translateX(-50%);
  z-index: 80;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.3);

  /* ✅ NO BLUR (biar gak “blur hero”) */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 900;

  pointer-events: auto;
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.42);
}

.heroCta--primary:hover {
  transform: translateX(-50%) translateY(-2px);
}
.heroCta--primary:active {
  transform: translateX(-50%) translateY(0) scale(0.99);
}

/* =========================
   LAYER BASE (NO BLUR)
========================= */
.layer {
  position: absolute;
  z-index: 1;
  user-select: none;
  -webkit-user-drag: none;
}
.layer > img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.18));
  will-change: transform, opacity;
}

/* =========================
   LAYER POSITION (CENTER FIX)
   🔥 yang bikin geser: left:45% => ganti jadi 50%
========================= */
.treeLayer {
  width: 135vw;
  left: 50%;
  top: -8vh;
  transform: translateX(-50%);
  z-index: 1;
}

.frameLayer {
  width: 155vw;
  left: 50%;
  top: -9vh;
  transform: translateX(-50%);
  z-index: 5;
}

.branchLayer {
  width: 105vw;
  right: -50vw;
  top: -10vh;
  left: auto;
  transform: none;
  z-index: 9;
}

.brownLayer {
  width: 62vw;
  right: -12vw;
  bottom: 12vh;
  left: auto;
  top: auto;
  z-index: 7;
}
.brownLayer > img {
  height: 72vw;
  object-fit: contain;
  object-position: 85% 50%;
}

.colorfulLayer {
  width: 68vw;
  right: -6vw;
  bottom: -6vh;
  z-index: 8;
}

.grassLayer {
  width: 90vw;
  left: -24vw;
  bottom: -10vh;
  z-index: 10;
}

/* =========================
   INTRO ASSET (NO BLUR)
========================= */
.intro > img {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.92);
}
.intro.show > img {
  opacity: 1;
  animation: popIn 820ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.92);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* =========================
   NAME FRAME (CENTER + FONT BESAR)
========================= */
/* ✅ Frame tetap di tengah */
.nameFrame {
  position: relative;
  width: min(560px, 88vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  pointer-events: none;
}

.nameFrameImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== Perbesar Nama di Hero ===== */
.nameFrame .names {
  width: 90%; /* lebih lebar biar muat */
  transform: translate(-50%, -54%); /* sedikit naik, opsional */
}

.nameTop,
.nameBottom {
  font-size: clamp(3.6rem, 13.5vw, 6.4rem) !important;
  line-height: 1.03;
  letter-spacing: 0.03em;
  font-weight: 800;
}

.amp {
  font-size: clamp(2.4rem, 8.8vw, 3.8rem) !important;
  margin: 12px 0;
  font-weight: 700;
  line-height: 1;
}

/* CTA hero */
.heroCta {
  position: absolute;
  left: 50%;

  /* ✅ UBAH DI SINI AJA: tombol dinaikin biar gak mepet */
  bottom: 14%;

  transform: translateX(-50%);
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 13px 16px;
  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.26);

  /* ✅ UBAH DI SINI AJA: hapus blur biar hero gak blur */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 900;

  pointer-events: auto;
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.42);

  transition:
    transform 260ms var(--ease-out),
    filter 260ms var(--ease-out),
    background 260ms var(--ease-out),
    border-color 260ms var(--ease-out);
}

.heroCtaIcon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(216, 181, 106, 0.18);
  border: 1px solid rgba(216, 181, 106, 0.28);
}
.heroCtaArrow {
  opacity: 0.9;
}

.heroCta--primary:hover {
  transform: translateX(-50%) translateY(-2px);
  filter: brightness(1.05);
  border-color: rgba(216, 181, 106, 0.55);
  background: rgba(0, 0, 0, 0.32);
}
.heroCta--primary:active {
  transform: translateX(-50%) translateY(0) scale(0.99);
}

/* =========================
   INTRO TEXT (NO BLUR!)
   🔥 sebelumnya blur -> ini 100% tanpa blur
========================= */
.introText {
  opacity: 0 !important;
  transform: translateY(16px) scale(0.92);
  filter: none !important;
  will-change: transform, opacity;
}
.introText.show {
  opacity: 1 !important;
  animation: heroTextIn 980ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
@keyframes heroTextIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }
  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Layer base */
.layer {
  position: absolute;
  z-index: 1;
  user-select: none;
  -webkit-user-drag: none;
}
.layer > img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.18));
  will-change: transform, opacity;
}

/* posisi (tetap punyamu) */
.treeLayer {
  width: 135vw;
  left: 45%;
  top: -8vh;
  transform: translateX(-70%);
  z-index: 1;
}
.frameLayer {
  width: 155vw;
  left: 45%;
  top: -9vh;
  transform: translateX(-50%);
  z-index: 5;
}
.branchLayer {
  width: 105vw;
  right: -50vw;
  top: -10vh;
  left: auto;
  transform: none;
  z-index: 9;
}
.brownLayer {
  width: 62vw;
  right: -12vw;
  bottom: 12vh;
  left: auto;
  top: auto;
  z-index: 7;
}
.brownLayer > img {
  height: 72vw;
  object-fit: contain;
  object-position: 85% 50%;
}
.colorfulLayer {
  width: 68vw;
  right: -6vw;
  bottom: -6vh;
  z-index: 8;
}
.grassLayer {
  width: 90vw;
  left: -24vw;
  bottom: -10vh;
  z-index: 10;
}

/* Intro asset muncul satu-satu */
.intro > img {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(0.92);
  filter: blur(10px);
}
.intro.show > img {
  opacity: 1;
  animation: popIn 840ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.92);
    filter: blur(12px);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.03);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

/* Angin hidup (baru jalan setelah intro selesai) */
.sway.live > img {
  animation: swayLR 6.8s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes swayLR {
  0%,
  100% {
    transform: translateX(-6px) rotate(-0.4deg);
  }
  50% {
    transform: translateX(6px) rotate(0.4deg);
  }
}

.sway2.live > img {
  animation: swayLR2 5.4s ease-in-out infinite;
  transform-origin: 70% 15%;
}
@keyframes swayLR2 {
  0%,
  100% {
    transform: translateX(7px) rotate(0.8deg);
  }
  50% {
    transform: translateX(-7px) rotate(-0.8deg);
  }
}

.sway3.live > img {
  animation: swayLR3 4.6s ease-in-out infinite;
  transform-origin: 40% 100%;
}
@keyframes swayLR3 {
  0%,
  100% {
    transform: translateX(-5px) rotate(-0.35deg);
  }
  50% {
    transform: translateX(5px) rotate(0.35deg);
  }
}

.float.live > img {
  animation: flowersLR 5s ease-in-out infinite;
  transform-origin: 60% 70%;
}
@keyframes flowersLR {
  0%,
  100% {
    transform: translateX(6px) rotate(0.35deg);
  }
  50% {
    transform: translateX(-6px) rotate(-0.35deg);
  }
}

.float2.live > img {
  animation: flowersLR2 5.8s ease-in-out infinite;
  transform-origin: 60% 60%;
}
@keyframes flowersLR2 {
  0%,
  100% {
    transform: translateX(-7px) rotate(-0.45deg);
  }
  50% {
    transform: translateX(7px) rotate(0.45deg);
  }
}

/* =========================
   BACKGROUND KONSISTEN
   ✅ 1 class dipakai untuk section yang pakai BG mempelai
========================= */
/* Full-bleed + no gap */
.mempelaiBG,
.content-section,
.story-section,
.gallery-section,
.mempelaiSection {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -1px;
  padding: 34px 0 44px;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* BG fixed + posisi konsisten */
.mempelaiBG::before,
.content-section::before,
.story-section::before,
.gallery-section::before,
.mempelaiSection::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url("assets/bg-mempelai.png");
  background-size: cover;
  background-repeat: no-repeat;

  /* ✅ posisi konsisten */
  background-position: 50% 35%;

  background-attachment: fixed;
  transform: scale(1.03);
}

/* overlay seragam */
.mempelaiBG::after,
.content-section::after,
.story-section::after,
.gallery-section::after,
.mempelaiSection::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      900px 700px at 50% 15%,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.48)
    ),
    linear-gradient(180deg, rgba(34, 15, 12, 0.14), rgba(34, 15, 12, 0.64));
}

/* inner wrapper untuk section yang bukan story/gallery */
.section-inner {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* story inner tetap */
.story-inner,
.gallery-inner,
.mempelaiInner {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* title mempelai jadi putih lembut */
#mempelai .section-title {
  color: rgba(246, 244, 240, 0.92);
}

/* iOS fallback fixed */
@supports (-webkit-touch-callout: none) {
  .mempelaiBG::before,
  .content-section::before,
  .story-section::before,
  .gallery-section::before,
  .mempelaiSection::before {
    background-attachment: scroll;
  }
}

/* desktop mode */
@media (min-width: 900px) {
  .mempelaiBG,
  .content-section,
  .story-section,
  .gallery-section,
  .mempelaiSection,
  .full-bleed {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* =========================
   MEMPELAI frame
========================= */
.mempelai-photo-large {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--gold-stroke);
  background: rgba(34, 15, 12, 0.25);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}
.mempelai-photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.mempelai-frame {
  --ring: 16px;
  --ring-color: #9a7420;
  width: min(320px, 92%);
  aspect-ratio: 1 / 1.12;
  margin: 0 auto;
  position: relative;
  border-radius: 999px 999px 56px 56px;
  overflow: hidden;
}
.mempelai-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: var(--ring) solid var(--ring-color);
  pointer-events: none;
  z-index: 2;
}
.mempelai-frame::after {
  content: "";
  position: absolute;
  inset: calc(var(--ring) - 6px);
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 2;
}
@media (min-width: 640px) {
  .mempelai-frame {
    width: 340px;
    --ring: 18px;
    border-radius: 999px 999px 64px 64px;
  }
}

/* =========================
   ACARA (BG tetap pakai bg-acara)
========================= */
.curtain-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -1px;
  padding: 32px 0 40px;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.curtain-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url("assets/bg-acara.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-attachment: fixed;
  transform: scale(1.03);
}
.curtain-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      900px 700px at 50% 20%,
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0.45)
    ),
    linear-gradient(180deg, rgba(34, 15, 12, 0.25), rgba(34, 15, 12, 0.65));
}
.curtain-inner {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* tirai buka */
.curtainVeil::before,
.curtainVeil::after {
  content: "";
  position: absolute;
  top: 0;
  width: 52%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(34, 15, 12, 0.95),
    rgba(34, 15, 12, 0.45)
  );
  transition: transform 900ms var(--ease-soft);
}
.curtainVeil::before {
  left: 0;
  transform: translateX(0);
}
.curtainVeil::after {
  right: 0;
  transform: translateX(0);
}
.curtain-section.curtain-open .curtainVeil::before {
  transform: translateX(-102%);
}
.curtain-section.curtain-open .curtainVeil::after {
  transform: translateX(102%);
}

/* iOS fix */
@supports (-webkit-touch-callout: none) {
  .curtain-section::before {
    background-attachment: scroll;
  }
}

/* =========================
   COUNTDOWN
========================= */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cd-box {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(210, 210, 210, 0.55);
  padding: 14px 10px;
  text-align: center;
  backdrop-filter: none;
}
.cd-num {
  font-family: "Alice", serif;
  font-size: 1.9rem; /* ✅ lebih besar */
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  font-weight: 900;
}
.cd-label {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.76rem; /* ✅ lebih besar */
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

/* =========================
   STORY (layout)
========================= */
.story-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.story-row.right {
  flex-direction: row-reverse;
}

.story-photo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold-stroke);
  flex: 0 0 auto;
  background: rgba(34, 15, 12, 0.22);
}
@media (min-width: 640px) {
  .story-photo {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }
}
.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bubble {
  max-width: 720px;
  border-radius: 18px;
  border: 1px solid rgba(246, 244, 240, 0.12);
  background: linear-gradient(
    180deg,
    rgba(246, 244, 240, 0.06),
    rgba(34, 15, 12, 0.18)
  );
  padding: 14px 16px;
}
.left-bubble {
  border-color: rgba(216, 181, 106, 0.18);
}
.right-bubble {
  border-color: rgba(216, 181, 106, 0.28);
  background: linear-gradient(
    180deg,
    rgba(216, 181, 106, 0.1),
    rgba(34, 15, 12, 0.16)
  );
}
.bubble-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.bubble-name {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem; /* ✅ lebih besar */
  color: var(--gold);
  font-weight: 900;
}
.bubble-time {
  font-size: 0.95rem; /* ✅ lebih besar */
  color: var(--text-dim);
}

/* bubble motion */
.bubbleMotion {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.98);
  filter: blur(8px);
  will-change: transform, opacity, filter;
}
.bubbleMotion.show {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
  animation: bubbleUp 720ms var(--ease-soft) both;
}
.story-row.left .bubbleMotion {
  transform: translate3d(-10px, 18px, 0) scale(0.98);
}
.story-row.right .bubbleMotion {
  transform: translate3d(10px, 18px, 0) scale(0.98);
}
@keyframes bubbleUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.98);
  }
  70% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* =========================
   GALLERY
========================= */
.gallery-head {
  text-align: left;
}

.gallery-grid-elegant {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .gallery-grid-elegant {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

.g2-item {
  position: relative;
  border: 1px solid rgba(246, 244, 240, 0.18);
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 0;

  transform: translateZ(0);
  transition:
    transform 260ms var(--ease-out),
    filter 260ms var(--ease-out),
    border-color 260ms var(--ease-out);
}
.g2-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  border-color: rgba(216, 181, 106, 0.55);
}
.g2-item:active {
  transform: translateY(0) scale(0.995);
}
.g2-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 520ms var(--ease-soft);
}
@media (min-width: 640px) {
  .g2-item img {
    height: 200px;
  }
}
.g2-item:hover img {
  transform: scale(1.06);
}

.g2-item::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-60%) rotate(12deg);
  transition: transform 680ms var(--ease-soft);
  pointer-events: none;
}
.g2-item:hover::after {
  transform: translateX(60%) rotate(12deg);
}

/* modal (tanpa blur) */
.gmodal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 6, 6, 0.88);
  display: grid;
  place-items: center;
  padding: 18px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out);
}
.gmodal.open {
  opacity: 1;
  pointer-events: auto;
}
.gmodal-figure {
  width: min(980px, 100%);
  margin: 0;
  position: relative;
  transform: translateY(10px) scale(0.98);
  transition: transform 260ms var(--ease-soft);
}
.gmodal.open .gmodal-figure {
  transform: translateY(0) scale(1);
}
.gmodal-img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid rgba(246, 244, 240, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}
.gmodal-cap {
  margin-top: 10px;
  text-align: center;
  color: rgba(246, 244, 240, 0.82);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.gmodal-close {
  position: fixed;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 10px 10px;
  border: 1px solid rgba(246, 244, 240, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

/* =========================
   MAP
========================= */
.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(246, 244, 240, 0.12);
  background: rgba(34, 15, 12, 0.22);
}
.map-wrap iframe {
  width: 100%;
  height: 320px;
}
@media (min-width: 640px) {
  .map-wrap iframe {
    height: 380px;
  }
}
@media (min-width: 1024px) {
  .map-wrap iframe {
    height: 460px;
  }
}

/* =========================
   MUSIC BUBBLE
========================= */
.music-bubble {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid var(--gold-stroke);
  background: linear-gradient(
    180deg,
    rgba(246, 244, 240, 0.1),
    rgba(34, 15, 12, 0.3)
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  color: var(--text);
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
.music-bubble:hover {
  transform: translateY(-2px);
}
.music-text {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  border: 1px solid rgba(216, 181, 106, 0.25);
}

/* =========================
   DANA
========================= */
.dana-badge {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(246, 244, 240, 0.12);
  background: rgba(34, 15, 12, 0.22);
}
.dana-svg {
  width: 34px;
  height: 34px;
  display: block;
}

/* =========================
   FOOTER (biarkan bg footer)
========================= */
.footer-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -1px;

  background: #220f0c;
}

.footer-full {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px 0;
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      900px 600px at 50% 20%,
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0.55)
    ),
    linear-gradient(180deg, rgba(34, 15, 12, 0.25), rgba(34, 15, 12, 0.88));
}

.footer-inner {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  padding: 0 16px;
}

.footer-card {
  text-align: center;
  border-radius: 18px;
  padding: 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.footer-card .title-names {
  letter-spacing: 0.06em;
  font-weight: 900;
  font-size: 1.25rem;
}

/* small fix footer image */
@media (max-width: 420px) {
  .footer-bg {
    object-position: center bottom;
    transform: scale(1.02);
  }
}

/* =========================
   Reduce motion
========================= */
@media (prefers-reduced-motion: reduce) {
  .bg-animated,
  .opening-img {
    animation: none;
  }
  .reveal {
    filter: none;
    transition:
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-soft);
  }
  .intro > img,
  .introText {
    filter: none !important;
  }
  .g2-item,
  .g2-item img,
  .g2-item::after,
  .gmodal,
  .gmodal-figure {
    transition: none !important;
  }
}
/* ===== HERO BG wajib ada gambarnya ===== */
.heroScene .bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  /* GANTI URL BG HERO kamu di sini */
  background-image: url("assets/bg-hero.jpg"); /* <-- ganti sesuai file bg */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1.03);
  opacity: 0;
  transition:
    opacity 900ms var(--ease-soft),
    transform 900ms var(--ease-soft);
}

/* overlay biar bg agak gelap elegan */
.heroScene .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      900px 700px at 50% 20%,
      rgba(0, 0, 0, 0.06),
      rgba(0, 0, 0, 0.55)
    ),
    linear-gradient(180deg, rgba(34, 15, 12, 0.15), rgba(34, 15, 12, 0.65));
}

.heroScene.bg-on .bg {
  opacity: 1;
  transform: scale(1);
}

/* ===== Z-INDEX ORDER biar rapi ===== */
.heroScene .layer {
  z-index: 10;
}
.heroScene .treeLayer {
  z-index: 12;
}
.heroScene .branchLayer {
  z-index: 18;
}
.heroScene .brownLayer {
  z-index: 20;
}
.heroScene .colorfulLayer {
  z-index: 22;
}
.heroScene .grassLayer {
  z-index: 24;
}
.heroScene .frameLayer {
  z-index: 40;
} /* frame muncul belakangan */

.accent-maroon {
  z-index: 55;
} /* accent di atas asset */
.titleWrap {
  z-index: 60;
} /* teks & frame nama */
.heroCta {
  z-index: 90 !important;
} /* tombol PALING ATAS */

/* ===== semua layer aman: gak nangkep klik ===== */
.heroScene .layer {
  pointer-events: none;
}

/* ===== ASSET INTRO: versi DIM dulu (opacity rendah) ===== */
.intro > img {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.96);
  filter: none !important;
  transition:
    opacity 700ms var(--ease-soft),
    transform 700ms var(--ease-soft);
}

/* tampil tapi redup dulu */
.intro.show-dim > img {
  opacity: 0.55; /* <-- ini yang kamu mau (agak rendah) */
  transform: translate3d(0, 0, 0) scale(1);
}

/* nanti dinaikin jadi full */
.intro.show-full > img {
  opacity: 1;
}

/* frameLayer jangan dim: nanti muncul belakangan full */
.frameLayer.intro.show-dim > img {
  opacity: 0 !important;
}

/* ===== TEXT & CTA muncul belakangan ===== */
.introText {
  opacity: 0 !important;
  transform: translateY(14px) scale(0.96);
  filter: none !important;
  will-change: transform, opacity;
  transition:
    opacity 800ms var(--ease-soft),
    transform 800ms var(--ease-soft);
}
.introText.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1);
}

/* ===== CTA posisi aman: gak ketutup bunga ===== */
.heroCta {
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
}
