/* Smooth scrolling & completely invisible scrollbars */
html {
  scroll-behavior: smooth;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html, body, .mobile-app-container, * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Hide scrollbars universally (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ==========================================================
   TROPICAL BEACH WEDDING — OCEAN TEAL & COASTAL SAND PALETTE
   Inspired by Luxury Destination Beach Weddings
   
   Harmonious Coastal Palette:
   🌊 Ocean Teal: #284B56 (Desktop canvas, CTA buttons, primary title)
   🌊 Deep Coastal Slate: #1A323B (Desktop background anchor, contrast)
   🌴 Palm Green: #5B8A68 (Tropical botanicals, ampersands, badges)
   🏖️ Warm Sand Gold: #D4A362 (Dividers, star flourishes, card borders)
   🐚 Shell Cream: #FAF6EE (Clean, breezy coastal mobile canvas)
   🌊 Coastal Lagoon: #C4DFE6 (Fresh coastal lagoon alternating section background)
   ========================================================== */

/* Outer Desktop Background: Warm Javanese Espresso-Maroon Backdrop */
body {
  background-color: #D8C8B5;
  background-image: radial-gradient(circle at 50% 35%, #EDE1D3 0%, #D8C8B5 58%, #C2AF9A 100%);
  color: #481E1B;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Mobile App Canvas Container (Exact Mobile Phone Frame): Javanese Heritage Parchment */
.mobile-app-container {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  background-color: #EFDCCA;
  background-image:
    radial-gradient(ellipse at 50% 14%, rgba(252, 245, 236, 0.85) 0%, rgba(242, 224, 206, 0.35) 50%, transparent 80%),
    radial-gradient(circle at 12% 35%, rgba(206, 164, 128, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 88% 65%, rgba(204, 162, 126, 0.22) 0%, transparent 45%),
    linear-gradient(180deg, #EFE0CF 0%, #F4E6D7 28%, #EFDCCA 64%, #EAD3BC 100%);
  box-shadow:
    0 25px 70px -12px rgba(68, 26, 20, 0.28),
    0 0 45px rgba(68, 26, 20, 0.14),
    inset 0 0 64px rgba(154, 102, 64, 0.20),
    inset 0 0 18px rgba(122, 74, 42, 0.12);
  color: #481E1B;
  position: relative;
  overflow: hidden;
}

/* Subtle Handmade Parchment Paper Fiber Overlay across Main Canvas */
.mobile-app-container::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: multiply;
  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.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Alternating Section Subtle Warm Pearl Wash */
.bg-section-cream {
  background-color: #F4E6D7;
}

.bg-section-sage {
  background-color: #EAD5BF;
}

.section-band-warm {
  background: linear-gradient(180deg, rgba(255, 250, 244, 0) 0%, rgba(253, 246, 237, 0.58) 22%, rgba(253, 246, 237, 0.58) 78%, rgba(255, 250, 244, 0) 100%);
}

/* #gatePage styled in double-door section below */

/* Hero / Cover Section — Javanese Royal Parchment Luminescence */
#home,
.royal-hero-canvas,
.hero-beach-bg {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

#home::before,
.royal-hero-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse at 50% 24%, rgba(255, 250, 242, 0.82) 0%, rgba(244, 228, 210, 0.38) 52%, transparent 82%),
    radial-gradient(circle at 18% 12%, rgba(196, 148, 108, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 82% 12%, rgba(196, 148, 108, 0.22) 0%, transparent 45%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Footer / Epilogue Section — Warm Heritage Parchment Vignette */
#terimakasih,
.royal-footer-canvas,
.footer-beach-bg {
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

#terimakasih::before,
.royal-footer-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(ellipse at 50% 88%, rgba(196, 146, 104, 0.34) 0%, rgba(228, 198, 168, 0.22) 52%, transparent 90%);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}




/* Typography Helpers */
.font-script {
  font-family: 'Alex Brush', 'Great Vibes', cursive;
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ==========================================================
   EDITORIAL CARDS & DESIGN ELEMENTS
   ========================================================== */

.editorial-card {
  position: relative;
  z-index: 10;
  background: linear-gradient(145deg, rgba(248, 246, 242, 0.96), rgba(238, 233, 224, 0.92));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(127, 129, 112, 0.35);
  box-shadow: 0 12px 35px -10px rgba(12, 13, 12, 0.08);
}

/* Strictly Constrained Botanical Accent Sizes (Never covers content) */
.botanical-accent {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  width: 46px;
  max-width: 46px;
  height: auto;
}

.botanical-accent img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.botanical-accent-sm {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  width: 36px;
  max-width: 36px;
  height: auto;
}

.botanical-accent-sm img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.botanical-accent-xs {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  width: 28px;
  max-width: 28px;
  height: auto;
}

.botanical-accent-xs img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.editorial-card-sage {
  background: linear-gradient(145deg, #727464, #5D6052);
  color: #FAF8F5;
  border: 1px solid rgba(216, 211, 197, 0.25);
  box-shadow: 0 14px 40px -12px rgba(12, 13, 12, 0.20);
}

.editorial-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
}

.tropical-date-box {
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 163, 98, 0.45);
  box-shadow: 0 4px 18px -2px rgba(40, 75, 86, 0.10);
}

.editorial-date-box {
  background: rgba(240, 236, 228, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(127, 129, 112, 0.35);
  box-shadow: 0 4px 20px -4px rgba(12, 13, 12, 0.07);
}

.editorial-line {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(127, 129, 112, 0.45), transparent);
}

/* Asymmetrical & Polaroid Photo Frames */
.editorial-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -8px rgba(12, 13, 12, 0.15);
  border: 1px solid rgba(127, 129, 112, 0.30);
  background: #FAF8F5;
}

/* ==========================================================
   BOTANICAL WIND SWAY ANIMATIONS
   ========================================================== */

@keyframes windBouquetTopLeft {
  0%, 100% {
    transform: rotate(-1deg) scale(1);
  }
  50% {
    transform: rotate(3deg) scale(1.02);
  }
}

.wind-sway-corner {
  animation: windBouquetTopLeft 4.6s ease-in-out infinite;
  transform-origin: top left;
}

@keyframes breezeLeaf {
  0%, 100% {
    transform: rotate(-3.5deg);
  }
  40% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

@keyframes breezeLeafAlt {
  0%, 100% {
    transform: scaleX(-1) rotate(3.5deg);
  }
  40% {
    transform: scaleX(-1) rotate(-3deg);
  }
  75% {
    transform: scaleX(-1) rotate(1deg);
  }
}

.wind-palm-1 {
  animation: breezeLeaf 4.2s ease-in-out infinite;
  transform-origin: bottom left;
}

.wind-palm-2 {
  animation: breezeLeafAlt 4.5s ease-in-out infinite;
  transform-origin: bottom right;
}

/* Hidden Scrollbar (Universal No-Scrollbar Styling) */
::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ==========================================================
   3D DOUBLE DOOR (PINTU 2 DAUN) ROYAL CLASSIC MAROON & GOLD
   - Menggunakan Palet Luxury Classic (Deep Maroon #3B080D, Burgundy #5A1018,
     Royal Wine #790F25, Antique Gold #C49A55, Champagne Gold #E8C995,
     Ivory Cream #F5E8D8, Dark Espresso #21100F)
   - Chandelier kristal emas (lampu_2.png) berayun lembut di puncak kubah
   - Ornamen pembatas emas (pembatas.png) & buket bunga marun (bucket_bunga.png)
   - Pintu 2 daun terbelah rapi di tengah dengan seam emas halus, berayun 3D keluar saat "Buka Undangan" diklik
   ========================================================== */

#gateCover {
  /* Transparent container so the opening 3D doors reveal #home in real time */
  background: transparent;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

#gateCover.gate-fade-out {
  opacity: 0;
  pointer-events: none;
}

#gatePage {
  position: relative;
  background-color: #EFDCCA;
  background-image: none !important;
  box-shadow: 0 20px 80px rgba(24, 10, 8, 0.75);
}

#gatePage.doors-opened {
  perspective: 1600px;
  -webkit-perspective: 1600px;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* ==========================================================
   HERITAGE PARCHMENT CREAM CANVAS (ORGANIC WATERCOLOR & VIGNETTE)
   Matches reference warm antique cream paper (#F2DFCE / #EFDCCA / #DEC0A4)
   ========================================================== */
.gate-parchment-canvas {
  background-color: #EFDCCA;
  background-image:
    radial-gradient(ellipse at 54% 44%, rgba(251, 242, 232, 0.75) 0%, rgba(242, 224, 206, 0.35) 52%, transparent 80%),
    radial-gradient(circle at 22% 18%, rgba(204, 162, 126, 0.30) 0%, transparent 48%),
    radial-gradient(circle at 86% 24%, rgba(212, 174, 140, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 24% 88%, rgba(196, 150, 112, 0.32) 0%, transparent 50%),
    radial-gradient(circle at 82% 86%, rgba(198, 152, 115, 0.28) 0%, transparent 48%),
    linear-gradient(180deg, #EED8C3 0%, #F2E0CF 38%, #F0DCCA 72%, #E5C8AE 100%);
  box-shadow:
    inset 0 0 68px rgba(154, 102, 64, 0.24),
    inset 0 0 18px rgba(122, 74, 42, 0.16);
}

/* Subtle Handmade Paper Fiber Texture Overlay */
.gate-parchment-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  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.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================
   JAVANESE BATIK CORNER CARVINGS (ukiran_sudut.png)
   Exact mathematical corner pinning flush to outer edges (pepet sisi dan sudut)
   ========================================================== */
.gate-batik-tl-wrap {
  position: absolute;
  top: -2px;
  left: -4.5px;
  width: 284px;
  z-index: 22;
}

.gate-batik-tl-img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: top left;
  transform: rotate(90deg) translateY(-100%);
  filter: drop-shadow(0 4px 10px rgba(78, 38, 20, 0.15));
}

.gate-batik-bl-wrap {
  position: absolute;
  bottom: -2px;
  left: -7px;
  width: 248px;
  z-index: 22;
}

.gate-batik-bl-img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: bottom left;
  transform: rotate(-90deg) scaleY(-1);
  filter: drop-shadow(0 -3px 10px rgba(78, 38, 20, 0.14));
}

@media (min-width: 400px) {
  .gate-batik-tl-wrap {
    width: 304px;
    left: -5.5px;
  }
  .gate-batik-bl-wrap {
    width: 264px;
    left: -8px;
  }
}

/* Royal Chandelier Gentle Sway Ambient Animation */
.gate-anim-chandelier {
  animation: chandelierGentleSway 5s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes chandelierGentleSway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(0.9deg);
  }
  75% {
    transform: rotate(-0.9deg);
  }
}

/* ==========================================================
   GATE CORNER BOUQUETS: STAGGERED SLOW POP-UP & ORGANIC WIND SWAY
   ========================================================== */

/* 1. Staggered Slow Pop-Up Reveal Entrance */
.gate-flower-entrance-left {
  animation: gateFlowerPopSlow 2.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
  will-change: opacity, transform;
}

.gate-flower-entrance-right {
  animation: gateFlowerPopSlow 2.1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
  will-change: opacity, transform;
}

/* ==========================================================
   GATE ORNAMENTS SEQUENTIAL ENTRANCE BY SHAPE / TYPE (CEPAT & DINAMIS)
   1. Bentuk 1 (Ukiran Sudut Kayu Emas): Masuk bersamaan di awal (delay: 0.15s)
   2. Bentuk 2 (Semua Buket Bunga): Mekar bersamaan setelah ukiran (delay: 0.70s - 0.75s)
   3. Bentuk 3 (Lampu Gantung Istana): Turun setelah buket bunga mekar (delay: 1.35s)
   ========================================================== */

/* Bentuk 1: Ukiran Sudut (Kiri Atas & Kiri Bawah serentak) */
.gate-anim-hijau-1 {
  animation: gateBatikFloatTL 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  will-change: opacity, transform;
}

.gate-anim-hijau-2 {
  animation: gateBatikFloatBL 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  will-change: opacity, transform;
}

/* Bentuk 2: Buket Bunga (Mekar bersamaan di gelombang kedua) */
.gate-anim-pink-1 {
  animation: gateFlowerPopTL 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.70s both;
  will-change: opacity, transform;
}

.gate-anim-pink-2 {
  animation: gateFlowerPopBL 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.70s both;
  will-change: opacity, transform;
}

.gate-anim-pink-3 {
  animation: gateFlowerPopBR 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
  will-change: opacity, transform;
}

.gate-anim-pink-4 {
  animation: gateFlowerPopTR 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
  will-change: opacity, transform;
}

/* Bentuk 3: Lampu Gantung (Turun anggun di gelombang ketiga) */
.gate-anim-biru-1 {
  animation: gateLampDropSlow 0.85s cubic-bezier(0.16, 1, 0.3, 1) 1.35s both;
  will-change: opacity, transform;
}

@keyframes gateFlowerPopTL {
  0% {
    opacity: 0;
    transform: scale(0.65) translate(-14px, -14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
}

@keyframes gateFlowerPopBL {
  0% {
    opacity: 0;
    transform: scale(0.65) translate(-14px, 14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
}

@keyframes gateFlowerPopBR {
  0% {
    opacity: 0;
    transform: scale(0.65) translate(14px, 14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
}

@keyframes gateFlowerPopTR {
  0% {
    opacity: 0;
    transform: scale(0.65) translate(14px, -14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
}

@keyframes gateLampDropSlow {
  0% {
    opacity: 0;
    transform: translateY(-26px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gateFlowerPopSlow {
  0% {
    opacity: 0;
    transform: scale(0.55) translate(18px, 24px);
  }
  68% {
    opacity: 0.98;
    transform: scale(1.02) translate(-1px, -2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
}

/* L-Corner Floral Specific Orientation: Align L-Corner with Web Corner */
.gate-flower-l-left {
  transform: scaleY(-1);
}

.gate-flower-l-right {
  transform: scale(-1, -1);
}

/* bucket_bunga_4.png is natively a bottom-left cluster: upright on BL, mirrored on BR */
.footer-flower-l-left {
  transform: none;
}

.footer-flower-l-right {
  transform: scaleX(-1);
}

/* 2. Organic Gentle Wind Sway */
.gate-flower-sway-left {
  transform-origin: bottom left;
  animation: gateFlowerWindSwayLeft 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes gateFlowerWindSwayLeft {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  30% {
    transform: rotate(1.8deg) translate(1px, -1px);
  }
  70% {
    transform: rotate(-1.2deg) translate(-1px, 0.5px);
  }
}

.gate-flower-sway-right {
  transform-origin: bottom right;
  animation: gateFlowerWindSwayRight 5.8s ease-in-out 0.6s infinite;
  will-change: transform;
}

@keyframes gateFlowerWindSwayRight {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  35% {
    transform: rotate(-1.6deg) translate(-1px, -1px);
  }
  75% {
    transform: rotate(1.1deg) translate(1px, 0.5px);
  }
}

/* ==========================================================
   DOUBLE DOOR LEAVES (PINTU 2 DAUN HERITAGE) 3D MECHANISM
   ========================================================== */
.gate-door-leaf {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 10;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

.gate-door-left {
  left: 0;
  transform-origin: left center;
  -webkit-transform-origin: left center;
}

.gate-door-right {
  right: 0;
  transform-origin: right center;
  -webkit-transform-origin: right center;
}

.gate-door-inner {
  position: absolute;
  top: 0;
  width: 200%;
  height: 100%;
}

.gate-door-inner-left {
  left: 0;
}

.gate-door-inner-right {
  left: -100%;
}

/* Center Interactive Card & Center Axis Ornaments Fast Fade on Open */
#gateCenterCard,
.gate-center-ornament {
  transition: opacity 0.22s ease-out, transform 0.24s ease-out;
}

#gatePage.gate-opening-bloom #gateCenterCard,
#gatePage.doors-opened #gateCenterCard {
  transform: scale(0.96) translateY(-8px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.24s ease-out, transform 0.24s ease-out, visibility 0s 0.24s !important;
}

#gatePage.gate-opening-bloom .gate-center-ornament,
#gatePage.doors-opened .gate-center-ornament {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.18s ease-out, visibility 0s 0.18s !important;
}

/* ==========================================================
   OPTION 3: MEKARAN BUNGA & GOLDEN LIGHT BURST TRANSITION
   ========================================================== */

/* 1. Corner Bouquets Bloom Pop & Golden Radiance */
#gatePage.gate-opening-bloom .gate-anim-pink-1 {
  transform-origin: top left;
  animation: gateBouquetBloomPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}
#gatePage.gate-opening-bloom .gate-anim-pink-2 {
  transform-origin: bottom left;
  animation: gateBouquetBloomPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}
#gatePage.gate-opening-bloom .gate-anim-pink-3 {
  transform-origin: bottom right;
  animation: gateBouquetBloomPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}
#gatePage.gate-opening-bloom .gate-anim-pink-4 {
  transform-origin: top right;
  animation: gateBouquetBloomPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

@keyframes gateBouquetBloomPop {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 4px 14px rgba(40, 12, 14, 0.22));
  }
  40% {
    transform: scale(1.09);
    filter: drop-shadow(0 0 20px rgba(245, 212, 138, 0.95)) drop-shadow(0 0 36px rgba(230, 168, 80, 0.65));
  }
  100% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 14px rgba(245, 212, 138, 0.5)) drop-shadow(0 4px 14px rgba(40, 12, 14, 0.22));
  }
}

/* 2. Soft Golden Chandelier Halo Glow (Refined & Compact at Top Lantern) */
.gate-light-burst {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 220px;
  height: 200px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 28;
  opacity: 0;
  will-change: opacity, transform;
}

.gate-sunbeam-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255, 240, 200, 0.45) 0%, rgba(232, 201, 149, 0.22) 40%, rgba(196, 154, 85, 0.06) 65%, transparent 75%);
  filter: blur(12px);
}

.gate-sunbeam-glow {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(245, 212, 138, 0.28) 0%, rgba(210, 160, 60, 0.12) 45%, transparent 70%);
  filter: blur(20px);
}

/* Soft halo ignition when button clicked */
#gatePage.gate-opening-bloom .gate-light-burst {
  animation: gateHaloIgnite 0.40s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gateHaloIgnite {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
  }
  50% {
    opacity: 0.75;
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1);
  }
}

/* Gentle dissipation as doors part open */
#gatePage.doors-opened .gate-light-burst {
  animation: gateHaloDissolve 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes gateHaloDissolve {
  0% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1);
  }
  40% {
    opacity: 0.45;
    transform: translateX(-50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.35);
  }
}

/* 3D Double Door Swing Open Animation (Smooth 60fps Outward/Inward Swing) */
#gatePage.doors-opened .gate-door-left {
  border-right: 1px solid rgba(142, 93, 62, 0.45);
  animation: heritageDoorSwingLeft 1.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#gatePage.doors-opened .gate-door-right {
  border-left: 1px solid rgba(142, 93, 62, 0.45);
  animation: heritageDoorSwingRight 1.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heritageDoorSwingLeft {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    transform: rotateY(-106deg);
    opacity: 0;
  }
}

@keyframes heritageDoorSwingRight {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    transform: rotateY(106deg);
    opacity: 0;
  }
}

/* 3D Dynamic Warm Sepia Shading overlay during door swing */
.door-shade-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 45;
  transition: opacity 0.35s ease;
}

.door-shade-left {
  background: linear-gradient(to right, transparent 35%, rgba(62, 28, 18, 0.32) 100%);
}

.door-shade-right {
  background: linear-gradient(to left, transparent 35%, rgba(62, 28, 18, 0.32) 100%);
}

#gatePage.doors-opened .door-shade-overlay {
  opacity: 1;
}



/* ==========================================================
   SMOOTH ENTRANCE & SCROLL REVEAL ANIMATIONS (LUXURY SLOW & SERENE)
   Dirancang tidak terburu-buru, melainkan meluncur naik & mekar 
   dengan kurva deselerasi lembut (cubic-bezier) saat user 
   benar-benar telah tiba di section tersebut.
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}
.reveal-fade.is-revealed {
  opacity: 1;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================
   BOTANICAL POP SLOW REVEAL (EFEK POP MEKAR PERLAHAN)
   Bukan sekadar fade in/out biasa, melainkan mekar 'Pop Slow'
   dengan kurva overshoot organik lembut (scale 0 -> 1)
   langsung dari titik poros/tembok asalnya secara perlahan & tenang.
   ========================================================== */
.reveal-botanical {
  opacity: 0;
  transform: scale(0.6);
  scale: 0.6;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.45s cubic-bezier(0.25, 1.20, 0.45, 1),
              scale 1.45s cubic-bezier(0.25, 1.20, 0.45, 1);
  will-change: opacity, transform, scale;
}
.reveal-botanical.is-revealed {
  opacity: 0.95;
  transform: scale(1);
  scale: 1;
}

/* Stagger Delay Classes (Natural Flowing Cascade) */
.delay-75  { transition-delay: 0.12s; }
.delay-100 { transition-delay: 0.20s; }
.delay-150 { transition-delay: 0.32s; }
.delay-200 { transition-delay: 0.45s; }
.delay-250 { transition-delay: 0.58s; }
.delay-300 { transition-delay: 0.70s; }

/* ==============================================================
   HERITAGE GATE COVER: SLOW, SERENE & STATELY ENTRANCE SUITE
   Smooth, conflict-free entrance animations for Parchment & Batik Gate
   ============================================================== */

/* 1. Inner Heritage Frame & Header/Footer Hairlines Soft Fade-In (Pure Opacity - Zero Transform Collision) */
@keyframes gateFrameFadeSlow {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.gate-frame-entrance {
  animation: gateFrameFadeSlow 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
  will-change: opacity;
}

/* 2. Javanese Batik Corner Carvings (Floating gently from Top-Left & Bottom-Left) */
@keyframes gateBatikFloatTL {
  0% {
    opacity: 0;
    transform: translate(-18px, -18px);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}
.gate-batik-entrance-tl {
  animation: gateBatikFloatTL 2.1s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
  will-change: opacity, transform;
}

@keyframes gateBatikFloatBL {
  0% {
    opacity: 0;
    transform: translate(-18px, 18px);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}
.gate-batik-entrance-bl {
  animation: gateBatikFloatBL 2.1s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
  will-change: opacity, transform;
}

/* 2b. Royal Arched Framed Couple Photo (bingkai_1.png + Mempelai Maroon) */
@keyframes gateFramePhotoSlow {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.gate-anim-frame-photo {
  animation: gateFramePhotoSlow 2.1s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both;
  will-change: opacity, transform;
}

/* 3. Tagline: THE WEDDING OF */
@keyframes gateTaglineSlow {
  0% {
    opacity: 0;
    transform: translateY(14px);
    letter-spacing: 0.16em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.26em;
  }
}
.gate-anim-tagline {
  animation: gateTaglineSlow 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
  will-change: opacity, transform, letter-spacing;
}

/* 4. Couple Names: Raka & Sinta */
@keyframes gateNamesSlow {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.gate-anim-names {
  animation: gateNamesSlow 2.1s cubic-bezier(0.16, 1, 0.3, 1) 0.72s both;
  will-change: opacity, transform;
}

/* 5. Golden-Bronze Horizontal Divider Ornament (pembatas.png) */
@keyframes gateDividerSlow {
  0% {
    opacity: 0;
    transform: scaleX(0.65) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) translateY(0);
  }
}
.gate-anim-divider {
  animation: gateDividerSlow 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.90s both;
  will-change: opacity, transform;
}

/* 6. Sacred Invitation Statement */
@keyframes gateStatementSlow {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.gate-anim-statement {
  animation: gateStatementSlow 1.9s cubic-bezier(0.16, 1, 0.3, 1) 1.06s both;
  will-change: opacity, transform;
}

/* 7. Date & Time 3-Column Display */
@keyframes gateDateTimeSlow {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.gate-anim-datetime {
  animation: gateDateTimeSlow 2.0s cubic-bezier(0.16, 1, 0.3, 1) 1.22s both;
  will-change: opacity, transform;
}

/* 8. Dynamic Guest Name Block */
@keyframes gateGuestSlow {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.gate-anim-guest {
  animation: gateGuestSlow 1.9s cubic-bezier(0.16, 1, 0.3, 1) 1.34s both;
  will-change: opacity, transform;
}

/* 9. Action Button: Buka Undangan */
@keyframes gateButtonFloatSlow {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.gate-anim-btn-wrap {
  animation: gateButtonFloatSlow 2.1s cubic-bezier(0.16, 1, 0.3, 1) 1.44s both;
  will-change: opacity, transform;
}

/* 10. Subtle Maroon Heritage Shadow Pulse after entrance complete */
@keyframes gateBtnMaroonPulse {
  0%, 100% {
    box-shadow: 0 8px 22px rgba(68, 12, 16, 0.32);
  }
  50% {
    box-shadow: 0 12px 30px rgba(78, 14, 19, 0.48), 0 0 14px rgba(94, 18, 23, 0.18);
  }
}
.gate-btn-pulse {
  animation: gateBtnMaroonPulse 3.6s ease-in-out 3.8s infinite;
}

/* ==========================================================
   CORNER BOUQUETS ENTRANCE - MUNCUL DARI MASING-MASING SUDUT
   - Kiri Atas (TL): meluncur masuk dari arah sudut kiri-atas (-X, -Y)
   - Kanan Atas (TR): meluncur masuk dari arah sudut kanan-atas (+X, -Y)
   - Kiri Bawah (BL): meluncur masuk dari arah sudut kiri-bawah (-X, +Y)
   - Kanan Bawah (BR): meluncur masuk dari arah sudut kanan-bawah (+X, +Y)
   ========================================================== */
@keyframes bouquetFloatInTL {
  0% {
    opacity: 0;
    transform: translate(-36px, -36px) scale(0.88);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  60% {
    opacity: 0.85;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.10));
  }
}

@keyframes bouquetFloatInTR {
  0% {
    opacity: 0;
    transform: translate(36px, -36px) scale(0.88);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  60% {
    opacity: 0.85;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.10));
  }
}

@keyframes bouquetFloatInBL {
  0% {
    opacity: 0;
    transform: translate(-36px, 36px) scale(0.88);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  60% {
    opacity: 0.85;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.10));
  }
}

@keyframes bouquetFloatInBR {
  0% {
    opacity: 0;
    transform: translate(36px, 36px) scale(0.88);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  60% {
    opacity: 0.85;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.10));
  }
}

@keyframes cornerBouquetFloatIn {
  0% {
    opacity: 0;
    transform: translate(-22px, -22px) scale(0.90);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  60% {
    opacity: 0.85;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.10));
  }
}

.gate-anim-photo {
  animation: gatePhotoSoft 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.gate-anim-1 { animation: gateCardFade 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.gate-anim-2 { animation: gateFadeUpSlow 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both; }
.gate-anim-3 { animation: gateFadeUpSlow 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.70s both; }
.gate-anim-4 { animation: gateFadeUpSlow 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.95s both; }
.gate-anim-5 { animation: gateFadeUpSlow 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.20s both; }

/* Corner Bouquets Sequential Staggered Entrance (Masing-masing dari sudut asalnya) */
.gate-anim-bouquet-tl {
  animation: bouquetFloatInTL 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both;
}
.gate-anim-bouquet-tr {
  animation: bouquetFloatInTR 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}
.gate-anim-bouquet-bl {
  animation: bouquetFloatInBL 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.10s both;
}
.gate-anim-bouquet-br {
  animation: bouquetFloatInBR 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.55s both;
}

/* Gentle Natural Wind Sway Breeze (Goyang-goyang Kena Angin) */
@keyframes naturalBreezeSway1 {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  30% {
    transform: rotate(3deg) scale(1.02);
  }
  65% {
    transform: rotate(-2.2deg) scale(0.99);
  }
  85% {
    transform: rotate(1deg) scale(1.01);
  }
}

@keyframes naturalBreezeSway2 {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  35% {
    transform: rotate(-3.2deg) scale(1.025);
  }
  70% {
    transform: rotate(2deg) scale(0.99);
  }
  90% {
    transform: rotate(-1deg) scale(1.005);
  }
}

.sway-breeze-1 {
  animation: naturalBreezeSway1 5.4s ease-in-out infinite;
  transform-origin: 15% 15%;
  will-change: transform;
}

.sway-breeze-2 {
  animation: naturalBreezeSway2 6.2s ease-in-out 0.8s infinite;
  transform-origin: 15% 15%;
  will-change: transform;
}

.sway-breeze-3 {
  animation: naturalBreezeSway1 5.8s ease-in-out 1.6s infinite;
  transform-origin: 15% 15%;
  will-change: transform;
}

.sway-breeze-4 {
  animation: naturalBreezeSway2 6.6s ease-in-out 2.4s infinite;
  transform-origin: 15% 15%;
  will-change: transform;
}

/* ==========================================================
   LATERAL BOTANICAL WIND BREEZE (ZERO VERTICAL NAIK-TURUN)
   Pure lateral horizontal wind sway using skewX and translateX.
   Leaves sway naturally side-to-side without any vertical jumping/bouncing!
   ========================================================== */
@keyframes botanicalLateralSwayBL {
  0%, 100% {
    transform: skewX(0deg) translateX(0);
  }
  30% {
    transform: skewX(2.8deg) translateX(2.5px);
  }
  65% {
    transform: skewX(-2.2deg) translateX(-1.8px);
  }
  85% {
    transform: skewX(1.4deg) translateX(1px);
  }
}

@keyframes botanicalLateralSwayTR {
  0%, 100% {
    transform: skewX(0deg) translateX(0);
  }
  35% {
    transform: skewX(-2.8deg) translateX(-2.5px);
  }
  70% {
    transform: skewX(2.2deg) translateX(1.8px);
  }
  90% {
    transform: skewX(-1.4deg) translateX(-1px);
  }
}

.sway-lateral-bl {
  animation: botanicalLateralSwayBL 6.2s ease-in-out infinite;
  transform-origin: 5% 5%;
  will-change: transform;
}

.sway-lateral-tr {
  animation: botanicalLateralSwayTR 6.8s ease-in-out 0.8s infinite;
  transform-origin: 5% 5%;
  will-change: transform;
}

@keyframes gateFadeOnly {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.gate-anim-fade {
  animation: gateFadeOnly 2.2s ease-out 0.2s both;
}

.music-disc-spin {
  animation: musicDiscRotate 3.5s linear infinite;
}

@keyframes musicDiscRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================
   HERO SECTION EXCLUSIVE ENTRANCE ANIMATIONS (AFTER GATE OPENS)
   ========================================================== */

/* 1. Base Hero Animated Element */
#home .hero-anim {
  opacity: 0;
  will-change: opacity, transform;
}
#home .hero-anim.is-revealed {
  opacity: 1;
}

/* 1b. Hero Chandelier Outer Wrapper & Entrance */
#home .hero-chandelier-wrap {
  left: 50% !important;
  transform: translateX(-50%) !important;
}
#home .hero-anim-chandelier {
  transform: translateY(-22px) scale(0.95);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-anim-chandelier.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 1c. Hero Corner Baroque Ornaments */
#home .hero-corner-ornament-tl {
  transform-origin: top left;
  transform: translate(-12px, -12px) scale(0.88);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-corner-ornament-tr {
  transform-origin: top right;
  transform: translate(12px, -12px) scale(0.88);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-corner-ornament-tl.is-revealed,
#home .hero-corner-ornament-tr.is-revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* 1d. Hero Flanking Candle Sconces */
#home .hero-sconce-left {
  transform: translateX(-18px) scale(0.9);
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-sconce-right {
  transform: translateX(18px) scale(0.9);
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-sconce-left.is-revealed,
#home .hero-sconce-right.is-revealed {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* 2. Masthead Badge & Subtitle - Smooth Fade Down */
#home .hero-anim-down {
  transform: translateY(-16px) scale(0.97);
  transition: opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-anim-down.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 3. Couple Names (Raka & Sinta) - Gentle Fade Up with Scale */
#home .hero-anim-title {
  transform: translateY(24px) scale(0.93);
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-anim-title.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 4. Main Arch Portrait Frame - Elegant Rise & Bloom */
#home .hero-anim-main-photo {
  transform: translateY(32px) scale(0.92);
  transition: opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-anim-main-photo.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 5. Golden Divider Bar Expansion */
#home .hero-anim-divider {
  transform: scaleX(0.7) scaleY(0.9);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-anim-divider.is-revealed {
  opacity: 1;
  transform: scaleX(1) scaleY(1);
}

/* 6. Bottom Corner Bouquets Entrance Bloom */
#home .hero-corner-bloom-bl {
  transform: translate(-14px, 14px) scale(0.85);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-corner-bloom-br {
  transform: translate(14px, 14px) scale(0.85);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-corner-bloom-bl.is-revealed,
#home .hero-corner-bloom-br.is-revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* 7. Bottom Quote - Soft Rise */
#home .hero-anim-quote {
  transform: translateY(18px);
  transition: opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}
#home .hero-anim-quote.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 8. Mouse Scroll Indicator - Spring Pop Rise */
#home .hero-anim-mouse {
  transform: translateY(20px) scale(0.8);
  transition: opacity 1.1s cubic-bezier(0.34, 1.35, 0.64, 1),
              transform 1.1s cubic-bezier(0.34, 1.35, 0.64, 1);
}
#home .hero-anim-mouse.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 9. Hero Staggered Sequential Delays (Snappy & Silky Smooth Cascade) */
#home .hero-delay-1 { transition-delay: 80ms; }
#home .hero-delay-2 { transition-delay: 160ms; }
#home .hero-delay-3 { transition-delay: 260ms; }
#home .hero-delay-4 { transition-delay: 360ms; }
#home .hero-delay-5 { transition-delay: 440ms; }
#home .hero-delay-6 { transition-delay: 520ms; }
#home .hero-delay-7 { transition-delay: 600ms; }
#home .hero-delay-8 { transition-delay: 680ms; }
#home .hero-delay-9 { transition-delay: 760ms; }
#home .hero-delay-10 { transition-delay: 840ms; }


/* 10. Mouse Scroll Indicator Continuous Floating & Wheel Scroll */
.mouse-scroll-container {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mouseSoftBounce 2.5s ease-in-out infinite;
}

@keyframes mouseSoftBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

.mouse-scroll-wheel {
  animation: mouseWheelMove 1.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes mouseWheelMove {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.25;
  }
  80%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Fallback if #home elements use standard .reveal */
#home .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
#home .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   11. ROYAL PALACE ARCHITECTURAL PILLARS (LEFT & RIGHT FLANKS)
   ========================================================== */
#home .hero-pillar {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  z-index: 12;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

#home .hero-pillar-left {
  left: -16px;
  transform: translateX(-16px);
}

#home .hero-pillar-right {
  right: -16px;
  transform: translateX(16px);
}

#home .hero-pillar-left.is-revealed,
#home .hero-pillar-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

#home .hero-pillar img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.75));
}

#home .hero-pillar-right img {
  transform: scaleX(-1);
}

/* ==========================================================
   12. HERO FOUR-CORNER L-BOUQUETS (bucket_bunga_l.png)
   ========================================================== */
.hero-corner-bouquet {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 20;
  width: 170px;
}

@media (min-width: 380px) {
  .hero-corner-bouquet {
    width: 190px;
  }
}

@media (min-width: 420px) {
  .hero-corner-bouquet {
    width: 205px;
  }
}

/* 1. Top-Left Corner: Natural L orientation */
.hero-corner-tl {
  top: -8px;
  left: -8px;
  transform-origin: top left;
}
.hero-corner-tl img {
  transform: none;
}

/* 2. Top-Right Corner: Mirrored horizontally */
.hero-corner-tr {
  top: -8px;
  right: -8px;
  transform-origin: top right;
}
.hero-corner-tr img {
  transform: scaleX(-1);
}

/* 3. Bottom-Left Corner (bucket_bunga_4.png natural upright orientation) */
.hero-corner-bl {
  bottom: -6px;
  left: -10px;
  transform-origin: bottom left;
}
.hero-corner-bl img {
  transform: none;
}

/* 4. Bottom-Right Corner (bucket_bunga_4.png mirrored horizontally) */
.hero-corner-br {
  bottom: -6px;
  right: -10px;
  transform-origin: bottom right;
}
.hero-corner-br img {
  transform: scaleX(-1);
}

.hero-corner-bouquet img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(68, 26, 20, 0.22));
}


/* ==========================================================
   BOTANICAL STEM-ANCHORED WIND SWAY
   Pangkal batang mepet di tepi/sudut (tembok).
   Anchor point (transform-origin) tepat di pangkal batang,
   sehingga batang tetap diam di tembok dan daun yang bergoyang ditiup angin.
   ========================================================== */

/* 1. Anchored at Top-Right Wall (Pangkal Batang di Pojok Kanan Atas) */
@keyframes swayStemTR {
  0%, 100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(3.4deg);
  }
  70% {
    transform: rotate(-2.6deg);
  }
}

.botanical-stem-tr {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  top: -2px;
  right: -2px;
  width: 42px;
  max-width: 42px;
  transform-origin: 95% 5%;
  animation: swayStemTR 6.5s ease-in-out infinite;
  will-change: transform;
}
.botanical-stem-tr img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2. Anchored at Bottom-Left Wall (Pangkal Batang di Pojok Kiri Bawah) */
@keyframes swayStemBL {
  0%, 100% {
    rotate: 0deg;
  }
  35% {
    rotate: -3.4deg;
  }
  70% {
    rotate: 2.6deg;
  }
}

.botanical-stem-bl {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  bottom: -2px;
  left: -2px;
  width: 42px;
  max-width: 42px;
  transform-origin: 5% 95%;
  animation: swayStemBL 6.8s ease-in-out infinite;
  will-change: transform;
}
.botanical-stem-bl img {
  width: 100%;
  height: auto;
  display: block;
}

/* Anchored at Bottom-Right Wall (Pangkal Batang di Pojok Kanan Bawah) */
@keyframes swayStemBR {
  0%, 100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(3.4deg);
  }
  70% {
    transform: rotate(-2.6deg);
  }
}

.botanical-stem-br {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  bottom: -2px;
  right: -2px;
  width: 42px;
  max-width: 42px;
  transform-origin: 95% 95%;
  animation: swayStemBR 6.8s ease-in-out infinite;
  will-change: transform;
}
.botanical-stem-br img {
  width: 100%;
  height: auto;
  display: block;
}


/* 3. Anchored at Top-Left Wall (Pangkal Batang di Pojok Kiri Atas) */
@keyframes swayStemTL {
  0%, 100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(-3.2deg);
  }
  70% {
    transform: rotate(2.4deg);
  }
}

.botanical-stem-tl {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  top: -2px;
  left: -2px;
  width: 42px;
  max-width: 42px;
  transform-origin: 5% 5%;
  animation: swayStemTL 6.4s ease-in-out infinite;
  will-change: transform;
}
.botanical-stem-tl img {
  width: 100%;
  height: auto;
  display: block;
}

/* 4. Anchored at Left Wall Edge (Pangkal Batang di Tepi Kiri) */
@keyframes swayStemLeft {
  0%, 100% {
    rotate: 0deg;
  }
  35% {
    rotate: 2.8deg;
  }
  70% {
    rotate: -2.2deg;
  }
}

.botanical-stem-left {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  left: -3px;
  width: 40px;
  max-width: 40px;
  transform-origin: 5% 90%;
  animation: swayStemLeft 6.2s ease-in-out infinite;
  will-change: transform;
}
.botanical-stem-left img {
  width: 100%;
  height: auto;
  display: block;
}

/* 5. Anchored at Right Wall Edge (Pangkal Batang di Tepi Kanan) */
@keyframes swayStemRight {
  0%, 100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(-2.8deg);
  }
  70% {
    transform: rotate(2.2deg);
  }
}

.botanical-stem-right {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  right: -3px;
  width: 40px;
  max-width: 40px;
  transform-origin: 95% 90%;
  animation: swayStemRight 6.4s ease-in-out infinite;
  will-change: transform;
}
.botanical-stem-right img {
  width: 100%;
  height: auto;
  display: block;
}

/* Fallback utility for arbitrary flip classes */
.scale-x-\[-1\] {
  transform: scaleX(-1);
}
.scale-y-\[-1\] {
  transform: scaleY(-1);
}

/* ==========================================================
   TROPICAL CORNER STEM-ANCHORED PENDULUM SWAY ANIMATIONS
   Titik anchor 100% diam dan terkunci di pojok layar sebagai penahan.
   Hanya ujung dedaunan yang berayun alami tertiup angin pantai.
   Tanpa efek scale/translate agar tidak mengambang!
   ========================================================== */

@keyframes swayAnchorTL {
  0%, 100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(2.6deg);
  }
  70% {
    transform: rotate(-1.8deg);
  }
}

@keyframes swayAnchorTR {
  0%, 100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(-2.6deg);
  }
  70% {
    transform: rotate(1.8deg);
  }
}

@keyframes swayAnchorBL {
  0%, 100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(-2.4deg);
  }
  70% {
    transform: rotate(1.6deg);
  }
}

@keyframes swayAnchorBR {
  0%, 100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(2.4deg);
  }
  70% {
    transform: rotate(-1.6deg);
  }
}

.sway-anchor-tl {
  transform-origin: 12% 12%;
  animation: swayAnchorTL 5.8s ease-in-out infinite;
  will-change: transform;
}

.sway-anchor-tr {
  transform-origin: 88% 12%;
  animation: swayAnchorTR 6.2s ease-in-out 0.6s infinite;
  will-change: transform;
}

.sway-anchor-bl {
  transform-origin: 12% 88%;
  animation: swayAnchorBL 6.5s ease-in-out 1.2s infinite;
  will-change: transform;
}

.sway-anchor-br {
  transform-origin: 88% 88%;
  animation: swayAnchorBR 6.0s ease-in-out 1.8s infinite;
  will-change: transform;
}


/* ==========================================================
   TROPICAL BEACH & COASTAL LUXURY DESIGN SYSTEM (UNDANGAN 3)
   ========================================================== */

/* 1. Coastal Frosted Glass & Pearl Cards */
.coastal-card {
  position: relative;
  z-index: 10;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(235, 243, 245, 0.92));
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 38px -8px rgba(40, 75, 86, 0.16), 0 2px 6px rgba(40, 75, 86, 0.05);
}

.coastal-card-shell {
  position: relative;
  z-index: 10;
  background: linear-gradient(160deg, #FFFFFF, #FAF6EE);
  border: 1px solid rgba(212, 163, 98, 0.30);
  box-shadow: 0 14px 35px -8px rgba(40, 75, 86, 0.10);
}

.coastal-card-teal {
  position: relative;
  z-index: 10;
  background: linear-gradient(145deg, #1B3B47, #284B56);
  color: #FAF6EE;
  border: 1px solid rgba(212, 163, 98, 0.40);
  box-shadow: 0 18px 45px -10px rgba(20, 45, 55, 0.35);
}

.coastal-card-sand {
  position: relative;
  z-index: 10;
  background: linear-gradient(145deg, #5A4532, #8E7250);
  color: #FAF6EE;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 45px -10px rgba(90, 70, 50, 0.30);
}

/* 2. Coastal Badges & Accents */
.coastal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  background: rgba(40, 75, 86, 0.08);
  border: 1px solid rgba(40, 75, 86, 0.20);
  color: #1B3B47;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 600;
}

.coastal-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  background: rgba(212, 163, 98, 0.15);
  border: 1px solid rgba(212, 163, 98, 0.45);
  color: #8E6830;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
}

/* 3. Coastal Wave & Sail Frames */
.coastal-wave-frame {
  border-radius: 130px 130px 36px 36px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 50px -10px rgba(40, 75, 86, 0.22);
}

.coastal-sail-left {
  border-radius: 70px 18px 70px 18px !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 16px 38px -8px rgba(40, 75, 86, 0.16) !important;
}

.coastal-sail-right {
  border-radius: 18px 70px 18px 70px !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 16px 38px -8px rgba(40, 75, 86, 0.16) !important;
}

/* 4. Luxury Coastal Buttons */
.coastal-btn-primary {
  background: linear-gradient(135deg, #284B56, #1B3B47);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(40, 75, 86, 0.28);
  transition: all 0.3s ease;
}

.coastal-btn-primary:hover {
  background: linear-gradient(135deg, #1B3B47, #142830);
  box-shadow: 0 8px 25px rgba(40, 75, 86, 0.38);
  transform: translateY(-1px);
}

.coastal-btn-sand {
  background: linear-gradient(135deg, #D4A362, #B88645);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: 0 6px 20px rgba(184, 134, 69, 0.28);
  transition: all 0.3s ease;
}

.coastal-btn-sand:hover {
  background: linear-gradient(135deg, #B88645, #9A6F35);
  box-shadow: 0 8px 25px rgba(184, 134, 69, 0.38);
  transform: translateY(-1px);
}

/* 5. Coastal Pebble Countdown Timer */
.coastal-pebble-box {
  background: linear-gradient(150deg, #FFFFFF, #FAF6EE);
  border: 1.5px solid rgba(212, 163, 98, 0.40);
  box-shadow: 0 8px 24px -4px rgba(40, 75, 86, 0.10);
  border-radius: 18px;
}


/* 6. Unified Floating Island Countdown Bar */
.coastal-countdown-island {
  position: relative;
  z-index: 10;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(235, 243, 245, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 38px -8px rgba(40, 75, 86, 0.16);
}

.coastal-ticket-notch-left,
.coastal-ticket-notch-right {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background-color: #C4DFE6;
  transform: translateY(-50%);
  z-index: 20;
}
.coastal-ticket-notch-left { left: -8px; }
.coastal-ticket-notch-right { right: -8px; }

/* Coastal Wax Seal - Physical Embossed Warm Sand Gold */
.coastal-wax-seal {
  background: radial-gradient(circle at 35% 35%, #F8E2B8 0%, #D4A362 50%, #9E7332 88%, #7A531E 100%);
  box-shadow: 0 10px 24px -4px rgba(27, 59, 71, 0.42),
              inset 0 2px 4px rgba(255, 255, 255, 0.65),
              inset 0 -2px 4px rgba(60, 40, 15, 0.45);
}



/* ==============================================================
   JAVANESE BATIK PARCHMENT & ROYAL MAROON HERITAGE MAIN SUITE
   100% Unified with Gate Cover Color Palette & Heritage Craftsmanship:
   - Antique Cream Parchment Canvas (#EFDCCA / #F4E6D7 / #E6CBB2)
   - Deep Maroon-Espresso Display Typography (#481E1B / #5A342B)
   - Royal Heritage Maroon Accent Cards & Pills (#5E1217 -> #3B070A)
   - Carved Antique Gold & Bronze Filigrees (#B68440 / #9E6E32 / #E8C995)
   ============================================================== */

/* Hero Canvas in Main Page (#home) */
.royal-hero-canvas {
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  position: relative;
  overflow: visible;
}

/* Hero Top Carved Javanese Batik Corners (Matching Gate Page) */
.hero-batik-tl-wrap {
  position: absolute;
  top: -2px;
  left: -7px;
  width: 214px;
  z-index: 22;
}

.hero-batik-tr-wrap {
  position: absolute;
  top: -2px;
  right: -7px;
  width: 214px;
  z-index: 22;
}

.hero-batik-tr-mirror {
  width: 100%;
  transform: scaleX(-1);
  transform-origin: center;
}

@media (min-width: 400px) {
  .hero-batik-tl-wrap {
    width: 232px;
    left: -8px;
  }
  .hero-batik-tr-wrap {
    width: 232px;
    right: -8px;
  }
}

/* Footer Canvas in Main Page (#terimakasih) */
.royal-footer-canvas {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  position: relative;
  overflow: visible;
}

/* Primary Editorial Card: Elevated Antique Ivory Parchment with Double Gold Frame */
.heritage-parchment-card,
.royal-velvet-card {
  position: relative;
  z-index: 10;
  background: linear-gradient(155deg, rgba(253, 248, 241, 0.95) 0%, rgba(246, 233, 218, 0.92) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(176, 126, 68, 0.48);
  box-shadow:
    0 14px 36px -8px rgba(72, 30, 27, 0.13),
    0 4px 12px rgba(72, 30, 27, 0.05),
    inset 0 0 0 4px rgba(253, 248, 241, 0.7),
    inset 0 0 0 5px rgba(176, 126, 68, 0.20);
  border-radius: 26px;
}

/* Featured Accent Card: Deep Royal Heritage Maroon & Champagne Gold (Echoing Gate CTA Pill) */
.heritage-maroon-card,
.royal-velvet-card-accent {
  position: relative;
  z-index: 10;
  background: linear-gradient(155deg, #5E1217 0%, #480C10 52%, #36070A 100%);
  border: 1.5px solid rgba(232, 201, 149, 0.62);
  box-shadow:
    0 16px 38px -8px rgba(68, 12, 16, 0.34),
    inset 0 0 0 4px rgba(72, 12, 16, 0.65),
    inset 0 0 0 5px rgba(232, 201, 149, 0.22);
  border-radius: 26px;
  color: #FAF0E4;
}

/* Nested Subcard (Guestbook Wishes, Physical Address Tile) */
.heritage-subcard {
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(247, 236, 223, 0.92));
  border: 1px solid rgba(176, 126, 68, 0.36);
  box-shadow: 0 6px 18px -4px rgba(72, 30, 27, 0.08);
  border-radius: 18px;
}

/* Signature Maroon Heritage Pill Button (Identical to Gate Page CTA) */
.heritage-btn-maroon {
  background: linear-gradient(180deg, #5E1217 0%, #4D0D11 52%, #3B070A 100%);
  color: #FAF0E4;
  border: 1.5px solid rgba(255, 247, 238, 0.82);
  box-shadow: 0 8px 20px rgba(68, 12, 16, 0.28);
  transition: all 0.28s ease;
}

.heritage-btn-maroon:hover {
  background: linear-gradient(180deg, #6C161C 0%, #570F14 52%, #44080C 100%);
  box-shadow: 0 10px 24px rgba(68, 12, 16, 0.36);
  transform: translateY(-1px);
}

/* Secondary Warm Parchment & Antique Gold Outline Button */
.heritage-btn-outline {
  background: rgba(253, 247, 239, 0.92);
  color: #481E1B;
  border: 1px solid rgba(176, 126, 68, 0.58);
  box-shadow: 0 4px 12px rgba(72, 30, 27, 0.07);
  transition: all 0.28s ease;
}

.heritage-btn-outline:hover {
  background: #520E13;
  color: #FAF0E4;
  border-color: #520E13;
}

/* Unified Floating Island Countdown Dock */
.royal-countdown-island {
  position: relative;
}

/* ==============================================================
   SMOOTH TWO-WAY SCROLL REVEAL ANIMATIONS (UP & DOWN)
   Pure GPU Layer transforms with zero stutter
   ============================================================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.reveal-fade.is-revealed {
  opacity: 1;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translate3d(0, 24px, 0);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
}

.reveal-left {
  opacity: 0;
  transform: translate3d(-36px, 0, 0);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-left.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-right {
  opacity: 0;
  transform: translate3d(36px, 0, 0);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-right.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-botanical {
  opacity: 0;
  transform: scale(0.85);
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-botanical.is-revealed {
  opacity: 1;
  transform: scale(1);
}

/* Timing Stagger Delays */
.delay-100 { transition-delay: 0.10s !important; }
.delay-150 { transition-delay: 0.15s !important; }
.delay-200 { transition-delay: 0.20s !important; }
.delay-250 { transition-delay: 0.25s !important; }
.delay-300 { transition-delay: 0.30s !important; }

/* ==========================================================
   GATE COVER EXPLICIT Z-INDEX STACKING LAYERS
   ========================================================== */
.gate-chandelier-entrance {
  z-index: 15 !important;
}
.gate-frame-entrance {
  z-index: 20 !important;
}
.gate-corner-entrance-tl,
.gate-corner-entrance-tr {
  z-index: 25 !important;
}
.gate-batik-tl-wrap,
.gate-batik-bl-wrap,
.gate-anim-hijau-1,
.gate-anim-hijau-2 {
  z-index: 26 !important;
}
.gate-flower-entrance-left,
.gate-anim-pink-1,
.gate-anim-pink-2 {
  z-index: 18 !important;
}
.gate-anim-biru-1 {
  z-index: 21 !important;
}
.gate-anim-pink-4 {
  z-index: 24 !important;
}
.gate-flower-entrance-right,
.gate-anim-pink-3 {
  z-index: 25 !important;
}

/* ==========================================================
   HERO & FOOTER BOUQUET BOTANICAL WIND SWAY ANIMATION
   ========================================================== */
.hero-flower-sway-left,
.footer-flower-sway-left {
  transform-origin: bottom left;
  animation: heroFlowerWindSwayLeft 5.8s ease-in-out infinite;
  will-change: transform;
}

@keyframes heroFlowerWindSwayLeft {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  30% {
    transform: rotate(2.2deg) translate(1.5px, -1px);
  }
  68% {
    transform: rotate(-1.5deg) translate(-1px, 0.5px);
  }
}

.hero-flower-sway-right,
.footer-flower-sway-right {
  transform-origin: bottom right;
  animation: heroFlowerWindSwayRight 6.2s ease-in-out 0.8s infinite;
  will-change: transform;
}

@keyframes heroFlowerWindSwayRight {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  35% {
    transform: rotate(-2.2deg) translate(-1.5px, -1px);
  }
  72% {
    transform: rotate(1.5deg) translate(1px, 0.5px);
  }
}

/* ==========================================================
   HERO ORNATE CARTOUCHE PORTRAIT APERTURE (bingkai_2.png)
   Exact contoured clip-path tucked inside the double gold border
   ========================================================== */
.hero-bingkai2-aperture {
  -webkit-clip-path: polygon(50.48% 2.93%, 51.44% 3.39%, 52.87% 4.06%, 54.31% 4.74%, 56.22% 5.42%, 57.66% 6.09%, 59.57% 6.77%, 61.96% 7.45%, 65.31% 8.13%, 69.62% 8.80%, 73.92% 9.48%, 74.88% 10.16%, 75.36% 10.84%, 75.84% 11.51%, 76.32% 12.19%, 77.75% 12.87%, 78.71% 13.54%, 84.93% 14.22%, 87.80% 14.90%, 88.76% 15.58%, 89.71% 16.25%, 90.67% 16.93%, 91.15% 17.61%, 94.98% 18.28%, 94.98% 21.44%, 94.98% 78.56%, 94.98% 83.30%, 91.15% 83.97%, 91.15% 85.33%, 82.54% 86.00%, 79.67% 86.68%, 77.75% 87.36%, 76.79% 88.04%, 75.84% 88.71%, 75.36% 89.39%, 74.88% 90.07%, 74.88% 90.74%, 68.18% 91.42%, 63.88% 92.10%, 61.00% 92.78%, 59.09% 93.45%, 57.18% 94.13%, 55.26% 94.81%, 53.35% 95.49%, 51.91% 96.16%, 50.72% 96.61%, 49.52% 96.16%, 48.09% 95.49%, 46.65% 94.81%, 44.74% 94.13%, 42.34% 93.45%, 40.43% 92.78%, 38.04% 92.10%, 33.25% 91.42%, 26.56% 90.74%, 26.56% 90.07%, 26.08% 89.39%, 25.60% 88.71%, 24.64% 88.04%, 23.68% 87.36%, 21.77% 86.68%, 19.38% 86.00%, 10.77% 85.33%, 10.29% 83.97%, 5.50% 83.30%, 5.50% 78.56%, 5.50% 21.44%, 5.50% 18.28%, 10.29% 17.61%, 10.29% 16.93%, 11.24% 16.25%, 11.72% 15.58%, 13.64% 14.90%, 16.03% 14.22%, 22.25% 13.54%, 24.16% 12.87%, 25.12% 12.19%, 25.60% 11.51%, 26.08% 10.84%, 26.56% 10.16%, 27.51% 9.48%, 32.30% 8.80%, 36.12% 8.13%, 39.47% 7.45%, 41.87% 6.77%, 43.78% 6.09%, 45.69% 5.42%, 46.65% 4.74%, 48.09% 4.06%, 49.52% 3.39%);
  clip-path: polygon(50.48% 2.93%, 51.44% 3.39%, 52.87% 4.06%, 54.31% 4.74%, 56.22% 5.42%, 57.66% 6.09%, 59.57% 6.77%, 61.96% 7.45%, 65.31% 8.13%, 69.62% 8.80%, 73.92% 9.48%, 74.88% 10.16%, 75.36% 10.84%, 75.84% 11.51%, 76.32% 12.19%, 77.75% 12.87%, 78.71% 13.54%, 84.93% 14.22%, 87.80% 14.90%, 88.76% 15.58%, 89.71% 16.25%, 90.67% 16.93%, 91.15% 17.61%, 94.98% 18.28%, 94.98% 21.44%, 94.98% 78.56%, 94.98% 83.30%, 91.15% 83.97%, 91.15% 85.33%, 82.54% 86.00%, 79.67% 86.68%, 77.75% 87.36%, 76.79% 88.04%, 75.84% 88.71%, 75.36% 89.39%, 74.88% 90.07%, 74.88% 90.74%, 68.18% 91.42%, 63.88% 92.10%, 61.00% 92.78%, 59.09% 93.45%, 57.18% 94.13%, 55.26% 94.81%, 53.35% 95.49%, 51.91% 96.16%, 50.72% 96.61%, 49.52% 96.16%, 48.09% 95.49%, 46.65% 94.81%, 44.74% 94.13%, 42.34% 93.45%, 40.43% 92.78%, 38.04% 92.10%, 33.25% 91.42%, 26.56% 90.74%, 26.56% 90.07%, 26.08% 89.39%, 25.60% 88.71%, 24.64% 88.04%, 23.68% 87.36%, 21.77% 86.68%, 19.38% 86.00%, 10.77% 85.33%, 10.29% 83.97%, 5.50% 83.30%, 5.50% 78.56%, 5.50% 21.44%, 5.50% 18.28%, 10.29% 17.61%, 10.29% 16.93%, 11.24% 16.25%, 11.72% 15.58%, 13.64% 14.90%, 16.03% 14.22%, 22.25% 13.54%, 24.16% 12.87%, 25.12% 12.19%, 25.60% 11.51%, 26.08% 10.84%, 26.56% 10.16%, 27.51% 9.48%, 32.30% 8.80%, 36.12% 8.13%, 39.47% 7.45%, 41.87% 6.77%, 43.78% 6.09%, 45.69% 5.42%, 46.65% 4.74%, 48.09% 4.06%, 49.52% 3.39%);
}

/* ==========================================================
   HERO SINGLE-VIEWPORT FIT (100dvh NO-SCROLL PROPORTIONS)
   Balanced lamp + ornate cartouche frame + dock clearance
   ========================================================== */
#home.hero-single-screen {
  height: 100vh;
  height: 100dvh;
  min-height: 650px;
  padding-top: clamp(84px, 10.8dvh, 92px);
  padding-bottom: clamp(72px, 9.4dvh, 78px);
}

#home .hero-lamp-compact {
  width: clamp(38px, 5.2dvh, 44px);
}

#home .hero-frame-compact {
  width: clamp(156px, 21.5dvh, 176px);
}

#home .hero-corner-bouquet {
  width: 148px;
}

@media (min-width: 400px) {
  #home .hero-corner-bouquet {
    width: 168px;
  }
}

/* ==========================================================
   SEAMLESS CONTINUOUS SECTION BACKGROUND BLENDING
   Eliminates hard horizontal section seams across Main Page
   ========================================================== */
#home.hero-single-screen {
  overflow: visible;
}

#home::before,
.royal-hero-canvas::before {
  -webkit-mask-image: linear-gradient(180deg, #000000 0%, #000000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000000 0%, #000000 68%, transparent 100%);
}

#terimakasih::before,
.royal-footer-canvas::before {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000000 32%, #000000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000000 32%, #000000 100%);
}

.bg-section-cream {
  background: linear-gradient(180deg, rgba(244, 230, 215, 0) 0%, rgba(244, 230, 215, 0.55) 26%, rgba(244, 230, 215, 0.55) 74%, rgba(244, 230, 215, 0) 100%);
}

.bg-section-sage {
  background: linear-gradient(180deg, rgba(234, 213, 191, 0) 0%, rgba(234, 213, 191, 0.45) 26%, rgba(234, 213, 191, 0.45) 74%, rgba(234, 213, 191, 0) 100%);
}

.section-band-warm {
  background: linear-gradient(180deg, rgba(253, 246, 237, 0) 0%, rgba(253, 246, 237, 0.48) 28%, rgba(253, 246, 237, 0.48) 72%, rgba(253, 246, 237, 0) 100%);
}

/* ==========================================================
   FOOTER BOTTOM CARVED JAVANESE BATIK CORNERS (#terimakasih)
   Symmetrical bookend matching Hero & Gate Cover batik corners
   ========================================================== */
.footer-batik-bl-wrap {
  position: absolute;
  bottom: -2px;
  left: -7px;
  width: 214px;
  z-index: 22;
}

.footer-batik-br-wrap {
  position: absolute;
  bottom: -2px;
  right: -7px;
  width: 214px;
  z-index: 22;
}

.footer-batik-br-mirror {
  width: 100%;
  transform: scaleX(-1);
  transform-origin: center;
}

@media (min-width: 400px) {
  .footer-batik-bl-wrap {
    width: 232px;
    left: -8px;
  }
  .footer-batik-br-wrap {
    width: 232px;
    right: -8px;
  }
}
