/* ==========================================================================
   Walimatulurus Erna Hafizah Erpian & Dr. Alimin Alias (Jemputan Pihak Perempuan)
   Tema: Sage Green & White Champagne · Guru Bimbingan & Kaunseling × Doktor
   Dioptimumkan untuk iOS Safari, Android Chrome, pelayar dalam-aplikasi & Desktop
   ========================================================================== */
:root {
  --ivory: #F8F6EF;
  --warm: #FFFDF8;
  --champagne: #F5EFE0;
  --sage-mist: #E7ECE1;
  --sage: #A3AD96;
  --sage-deep: #75836D;
  --sage-ink: #4A5743;      /* kontras tinggi (>8:1) di atas latar White Champagne & Sage */
  --gold: #C7AE7A;
  --gold-rich: #B4975A;
  --charcoal: #2F352B;
  --muted: #525A4D;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arabic: 'Amiri', 'Traditional Arabic', serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: auto;
}
body {
  margin: 0;
  background-color: var(--sage-mist);
  color: var(--charcoal);
  font: 400 16px/1.7 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--sage-ink); outline-offset: 3px; }
.s-garden :focus-visible { outline-color: var(--warm); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--sage-ink); color: var(--warm);
  border-radius: 999px; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ============================ PENTAS LATAR BERSAMBUNG ============================ */
.stage {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  contain: strict;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.st { position: absolute; inset: 0; }
.st-paper {
  background-color: var(--sage-mist);
  background-image:
    radial-gradient(ellipse 86% 64% at 50% 24%, rgba(255, 253, 248, 0.92) 0%, rgba(245, 239, 224, 0.68) 48%, rgba(163, 173, 150, 0.34) 100%),
    url('../assets/images/crumpled-paper-texture.jpg');
  background-size: 100% 100%, cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-blend-mode: normal, multiply;
}
.st-sage { opacity: 0.28; will-change: opacity; }
.sg-base {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 92% 74% at 50% 45%, #84927B 0%, #6E7D66 58%, #5A6853 100%);
}
.sg-paint {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.90;
  -webkit-mask-image: radial-gradient(ellipse 68% 58% at 50% 50%, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.65) 75%, #000 100%);
          mask-image: radial-gradient(ellipse 68% 58% at 50% 50%, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.65) 75%, #000 100%);
}
.st-petals-veil {
  position: absolute; inset: -6% 0; width: 100%; height: 112%;
  object-fit: cover; opacity: 0.42; pointer-events: none;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}
.st-light {
  inset: -10% -30%;
  background: linear-gradient(105deg, transparent 22%, rgba(255, 253, 248, 0.78) 44%, transparent 64%);
  opacity: 0; will-change: transform, opacity;
}
.st-shade {
  inset: -10% -30%;
  background: linear-gradient(100deg, transparent 32%, rgba(47, 53, 43, 0.10) 50%, transparent 68%);
  opacity: 0; will-change: transform, opacity;
}

/* ============================ BUNGA POP-UP TEPI KAD (HANYA left.png & right.png) ============================ */
.side-flora {
  position: fixed; inset: 0; z-index: 3; overflow: hidden; pointer-events: none;
  contain: layout style;
}
.fl {
  position: absolute; opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  filter: drop-shadow(0 8px 16px rgba(47, 53, 43, 0.14));
}
/* Kanan-Atas (right.png): mekar menghadap ke kiri (ke arah kad) */
.fl-right-top {
  right: -3.5vw;
  top: 4vh;
  top: 4svh;
  width: clamp(112px, 28vw, 192px);
  height: auto;
  transform-origin: 100% 40%;
}
/* Kiri-Bawah (left.png): mekar menghadap ke kanan (ke arah kad) */
.fl-left-bot {
  left: -3.5vw;
  bottom: 7vh;
  bottom: 7svh;
  width: clamp(116px, 29vw, 198px);
  height: auto;
  transform-origin: 0% 60%;
}
/* Kiri-Atas (left.png): mekar menghadap ke kanan (ke arah kad) */
.fl-left-top {
  left: -3vw;
  top: 2.5vh;
  top: 2.5svh;
  width: clamp(98px, 24vw, 168px);
  height: auto;
  transform-origin: 0% 30%;
}
/* Kanan-Bawah (right.png): mekar menghadap ke kiri (ke arah kad) */
.fl-right-bot {
  right: -3vw;
  bottom: 5vh;
  bottom: 5svh;
  width: clamp(102px, 25vw, 174px);
  height: auto;
  transform-origin: 100% 70%;
}

/* ============================ ANIMASI RAMA-RAMA BERKILAU (BUTTERFLY EFFECT) ============================ */
.butterfly-unit {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  will-change: transform;
  animation: bfFloat 4.6s ease-in-out infinite;
}
.butterfly-flapper {
  width: 100%;
  height: auto;
  transform-origin: 50% 55%;
  will-change: transform;
  filter: drop-shadow(0 6px 12px rgba(47, 53, 43, 0.18));
  animation: bfFlap 0.52s ease-in-out infinite alternate;
}
.butterfly-flapper img {
  width: 100%;
  height: auto;
  display: block;
}
.bf-hero {
  width: clamp(54px, 14.5vw, 72px);
  right: -10px;
  top: -22px;
}
.bf-couple {
  width: clamp(50px, 13.5vw, 66px);
  right: 2%;
  top: 2%;
  z-index: 3;
  animation-delay: -1.4s;
}
.bf-couple .butterfly-flapper {
  animation-duration: 0.48s;
}
.bf-garden {
  width: clamp(48px, 13vw, 62px);
  right: 12px;
  top: 10px;
  animation-delay: -2.6s;
}
.bf-closing {
  width: clamp(44px, 11.5vw, 56px);
  right: -18px;
  top: -6px;
  animation-delay: -0.8s;
}

@keyframes bfFlap {
  0% {
    transform: rotate(-8deg) scale3d(1, 1, 1);
  }
  100% {
    transform: rotate(-8deg) scale3d(0.42, 0.96, 1) skewY(-4deg);
  }
}
@keyframes bfFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  33% {
    transform: translate3d(-5px, -7px, 0) rotate(-4deg);
  }
  66% {
    transform: translate3d(4px, -3px, 0) rotate(3deg);
  }
}

/* ============================ KELOPAK BUNGA BERGUGURAN (FLOWER PETALS EFFECT) ============================ */
.petals-sky {
  position: fixed; inset: 0; z-index: 25; overflow: hidden; pointer-events: none;
  contain: strict;
}
.petal-fall {
  position: absolute; top: -10vh;
  pointer-events: none;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  animation-name: petalDrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.pf-1 { left: 7%;  width: 22px; animation-duration: 15s; animation-delay: -2s;  --px: 34px;  --pr: 290deg; }
.pf-2 { left: 21%; width: 18px; animation-duration: 18s; animation-delay: -9s;  --px: -28px; --pr: -260deg; }
.pf-3 { left: 36%; width: 16px; animation-duration: 14s; animation-delay: -5s;  --px: 26px;  --pr: 310deg; }
.pf-4 { left: 52%; width: 20px; animation-duration: 19s; animation-delay: -13s; --px: -32px; --pr: -300deg; }
.pf-5 { left: 67%; width: 17px; animation-duration: 16s; animation-delay: -4s;  --px: 30px;  --pr: 250deg; }
.pf-6 { left: 81%; width: 21px; animation-duration: 17s; animation-delay: -11s; --px: -26px; --pr: -280deg; }
.pf-7 { left: 13%; width: 15px; animation-duration: 21s; animation-delay: -16s; --px: 24px;  --pr: 220deg; }
.pf-8 { left: 89%; width: 16px; animation-duration: 13.5s; animation-delay: -7s; --px: -30px; --pr: -240deg; }

@keyframes petalDrift {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.78;
  }
  50% {
    transform: translate3d(var(--px, 28px), 52vh, 0) rotate(calc(var(--pr, 260deg) * 0.5));
    opacity: 0.82;
  }
  88% {
    opacity: 0.72;
  }
  100% {
    transform: translate3d(calc(var(--px, 28px) * -0.4), 112vh, 0) rotate(var(--pr, 260deg));
    opacity: 0;
  }
}

main { position: relative; z-index: 2; }

/* ============================ BABAK UMUM ============================ */
.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(76px, 11svh, 116px) 16px clamp(116px, 15svh, 152px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.eyebrow {
  font: 600 11px/1.4 var(--sans);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-ink); margin-bottom: 4px;
}
.eyebrow-sub {
  font: 600 11px/1.4 var(--sans);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-ink);
}
.lead {
  font: italic 500 clamp(16px, 4.3vw, 19.5px)/1.58 var(--serif);
  max-width: 370px; color: var(--charcoal);
}
.lead.small {
  font-size: 14.5px; font-style: normal; font-family: var(--sans);
  line-height: 1.6; color: var(--muted);
}
.note { font-size: 13.5px; color: var(--muted); max-width: 340px; margin-top: 6px; }
.vine { width: 156px; height: 18px; margin: 4px auto; color: var(--gold-rich); }

/* ============================ KAD JEMPUTAN SAGE GREEN & WHITE CHAMPAGNE ============================ */
/* Menggunakan aset rasmi kad jemputan (card-insert.jpg: bingkai timbul rococo champagne & kertas sage) */
.sage-champagne-card {
  position: relative;
  z-index: 2;
  width: min(88vw, 456px);
  margin: 0 auto;
  border-style: solid;
  border-width: 40px 30px 42px 30px;
  border-image-source: url('../assets/images/card-insert.jpg');
  border-image-slice: 128 102 134 102 fill;
  border-image-width: 40px 30px 42px 30px;
  border-image-repeat: stretch;
  border-image: url('../assets/images/card-insert.jpg') 128 102 134 102 fill / 40px 30px 42px 30px / 0 stretch;
  background-color: #CFD5C6;
  border-radius: 10px;
  box-shadow:
    0 22px 44px rgba(47, 53, 43, 0.18),
    0 4px 12px rgba(47, 53, 43, 0.08);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  isolation: isolate;
}
/* Lapisan Champagne-Ivory lembut di bahagian tengah supaya teks gelap mempunyai kontras >8:1 tanpa menutup bingkai timbul */
.sage-champagne-card::before {
  content: "";
  position: absolute;
  inset: 4px 2px;
  border-radius: 16px;
  background: radial-gradient(
    ellipse 92% 88% at 50% 50%,
    rgba(255, 253, 248, 0.88) 0%,
    rgba(248, 246, 239, 0.78) 64%,
    rgba(245, 239, 224, 0.32) 92%,
    rgba(245, 239, 224, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.sage-champagne-card > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 360px) {
  .sage-champagne-card {
    width: 91vw;
    border-width: 32px 22px 34px 22px;
    border-image-width: 32px 22px 34px 22px;
    padding: 16px 10px;
  }
}

@media (min-width: 600px) {
  .sage-champagne-card {
    width: min(84vw, 510px);
    border-width: 48px 36px 50px 36px;
    border-image-width: 48px 36px 50px 36px;
    padding: 26px 22px;
  }
}

/* Butang Elegan */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 12.5px/1 var(--sans); letter-spacing: .10em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.wide { width: 100%; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 22px rgba(199, 174, 122, 0.38); }
.btn-gold:hover { background: var(--gold-rich); }
.btn-sage { background: var(--sage-ink); color: var(--warm); box-shadow: 0 10px 22px rgba(74, 87, 67, 0.28); }
.btn-sage:hover { background: #3B4735; }
.btn-line { background: rgba(255, 253, 248, 0.65); border-color: var(--sage-ink); color: var(--sage-ink); }
.btn-line:hover { background: rgba(74, 87, 67, 0.12); }

/* Reveal Beranimasi */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  will-change: transform, opacity;
}
.in[data-reveal], .in [data-reveal] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ============================ SAMPUL (SCENE 01) ============================ */
.hero {
  position: relative;
  height: 210vh;
  height: 210svh;
}
.hero-pin {
  position: sticky; top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(12px, 2.8svh, 28px); padding: 0 20px; text-align: center;
  --ew: min(84vw, 52vh, 356px);
  --ew: min(84vw, 52svh, 356px);
}
@media (max-height: 640px) {
  .hero-pin {
    gap: 8px;
    --ew: min(76vw, 42vh, 290px);
    --ew: min(76vw, 42svh, 290px);
  }
  .kicker { margin-bottom: 6px; }
  .hero-date { margin-top: 4px; }
}
.hero-head { will-change: transform, opacity; }
.kicker {
  font: 600 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--sage-ink); margin-bottom: 12px;
}
.names {
  font: 600 clamp(26px, 8.2vw, 48px)/1.08 var(--serif);
  letter-spacing: .03em; text-transform: uppercase; color: var(--charcoal);
  display: flex; flex-direction: column; align-items: center;
}
.names i {
  font-style: italic; font-weight: 500; color: var(--gold-rich);
  font-size: .72em; text-transform: none; line-height: 1.25;
}
.hero-date {
  font: italic 500 clamp(17px, 4.8vw, 23px)/1.3 var(--serif);
  margin-top: 10px; color: var(--charcoal);
}

/* ============================ ENVELOPE 3D ============================ */
.env {
  position: relative;
  width: var(--ew);
  aspect-ratio: 322 / 210;
  perspective: 1200px;
  filter: drop-shadow(0 18px 24px rgba(47, 53, 43, 0.22));
}
.env-part {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
}
.env-back {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 3px;
}
.env-carrier {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  clip-path: inset(-210% -50% 4% -50%);
  pointer-events: none;
}
.env-pocket {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.env-flap {
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 322 / 178;
  z-index: 4;
  transform-origin: 50% 0%;
  will-change: transform;
  pointer-events: none;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
}
.env-flap.is-behind {
  z-index: 0;
  filter: brightness(.95);
}
.env-card {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 80%;
  height: 96%;
  transform: translate3d(-50%, 42%, 0);
  will-change: transform, opacity;
  box-shadow: 0 8px 22px rgba(47, 53, 43, 0.22);
  border-radius: 6px;
}
.env-card-inner {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-width: 18px 14px 18px 14px !important;
  border-image-source: url('../assets/images/card-insert.jpg') !important;
  border-image-slice: 128 102 134 102 fill !important;
  border-image-width: 18px 14px 18px 14px !important;
  border-image-repeat: stretch !important;
  border-image: url('../assets/images/card-insert.jpg') 128 102 134 102 fill / 18px 14px 18px 14px / 0 stretch !important;
  padding: 4px 8px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: none;
}
.env-card-inner::before {
  inset: 2px;
  border-radius: 8px;
}
/* Logo kad di dalam sampul — saiz jelas & seimbang */
.card-crest {
  width: clamp(58px, 16vw, 74px);
  height: auto;
  margin: 0 auto 2px;
  opacity: .98;
}
.env-card-text {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
}
.env-card-eyebrow {
  font: 600 7.5px/1.1 var(--sans); letter-spacing: .20em; text-transform: uppercase; color: var(--sage-ink);
}
.env-card-couple {
  font: 600 13px/1.18 var(--serif); color: var(--charcoal); letter-spacing: .02em;
}
.env-card-date {
  font: italic 500 10.5px/1.15 var(--serif); color: var(--gold-rich);
}

.seal {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 75%;
  width: clamp(68px, 24%, 88px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: none;
  border: 0;
  padding: 0;
  border-radius: 50%;
  will-change: transform, opacity;
  filter: drop-shadow(0 6px 10px rgba(47, 53, 43, 0.35));
  cursor: pointer;
}
.seal img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.seal::after {
  content: ""; position: absolute; inset: -6%; border-radius: 50%;
  border: 1px solid rgba(199, 174, 122, 0.75);
  animation: ring 3.2s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; will-change: opacity; }
.hint { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ---- Babak 02: Warkah Bismillah ---- */
.arabic { font: 400 clamp(24px, 6.2vw, 33px)/1.7 var(--arabic); color: var(--charcoal); letter-spacing: 0; }
.arabic.big { font-size: clamp(26px, 7vw, 36px); line-height: 1.8; }
.trans { font: italic 500 clamp(14px, 3.8vw, 17px)/1.5 var(--serif); color: var(--muted); max-width: 340px; }
.translit { font-size: 13px; letter-spacing: .04em; color: var(--sage-ink); font-weight: 500; max-width: 340px; margin-top: 2px; }

/* ============================ BABAK 03: MEMPELAI (KAUNSELING × DOKTOR) ============================ */
.big-names {
  font: 600 clamp(25px, 7.2vw, 42px)/1.14 var(--serif);
  letter-spacing: .03em; text-transform: uppercase; color: var(--charcoal);
  display: flex; flex-direction: column; align-items: center; margin: 4px 0 2px;
}
.big-names .ln { display: block; overflow: hidden; }
.big-names .amp {
  font-style: italic; font-weight: 500; color: var(--gold-rich);
  text-transform: none; font-size: .75em; line-height: 1.2;
}
[data-rise] { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform .9s var(--ease); }
.in [data-rise] { transform: translate3d(0, 0, 0); }

/* Pembahagi Stetoskop Degupan Jantung Emas (telah dipotong rapat 487x212) */
.pulse-divider {
  width: clamp(168px, 46vw, 218px);
  height: auto;
  margin: 4px auto 2px;
  opacity: .96;
}
.pulse-divider img { width: 100%; height: auto; }

/* Ilustrasi Pasangan Cikgu Erna & Dr. Alimin */
.couple-figure {
  position: relative;
  width: clamp(228px, 68vw, 296px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.couple-halo {
  grid-area: 1 / 1;
  position: absolute; inset: -8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 174, 122, 0.30) 0%, rgba(255, 253, 248, 0) 70%);
  pointer-events: none; z-index: 0;
  will-change: transform, opacity;
}
.couple-figure .couple-half {
  grid-area: 1 / 1;
  position: relative; z-index: 1; width: 100%; height: auto;
  will-change: transform;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  filter: drop-shadow(0 10px 18px rgba(47, 53, 43, 0.15));
}
.couple-figure .couple-left {
  transform-origin: 32% 85%;
  transform: translate3d(-18%, 6px, 0) rotate(-3.5deg);
}
.couple-figure .couple-right {
  transform-origin: 68% 85%;
  transform: translate3d(18%, 6px, 0) rotate(3.5deg);
}
.reduce .couple-figure .couple-left,
.reduce .couple-figure .couple-right {
  transform: none !important;
}

.lead-quote {
  font: italic 500 clamp(15px, 3.9vw, 18px)/1.5 var(--serif);
  color: var(--charcoal); max-width: 350px; margin: 2px auto;
}

/* Simbol Kompas Kaunseling × Buku × Stetoskop (telah dipotong rapat 371x196 & dibesarkan mengikut kesesuaian) */
.vocation-emblem {
  width: clamp(184px, 50vw, 236px);
  height: auto;
  margin: 6px auto 4px;
  opacity: 0.96;
  filter: drop-shadow(0 6px 12px rgba(47, 53, 43, 0.12));
}

.surah-verse {
  font: 400 clamp(17.5px, 4.6vw, 22px)/1.78 var(--arabic);
  color: var(--sage-ink); max-width: 360px; margin-bottom: 2px;
}
.surah-trans {
  font: italic 500 13.5px/1.5 var(--serif); color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.surah-trans small {
  font-style: normal; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-rich); font-weight: 600;
}

/* ============================ BABAK 04: KELUARGA & YANG TURUT MENGUNDANG ============================ */
/* Logo Kad (A&E Stetoskop & Kalungan Lili) — saiz jelas & seimbang */
.family-crest-mark {
  width: clamp(98px, 26vw, 126px);
  height: auto;
  margin: 0 auto 4px;
  opacity: .96;
}
.family-crest-mark img { width: 100%; height: auto; }
.family { margin: 2px 0; }
.family .label, .also .label {
  font: 600 10.5px/1.45 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage-ink); margin-bottom: 6px;
}
.parent { font: 600 clamp(22px, 5.8vw, 28px)/1.22 var(--serif); color: var(--charcoal); }
.and { font: italic 500 19px/1.25 var(--serif); color: var(--gold-rich); }
.also { margin-top: 4px; width: 100%; }
.also ul {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--charcoal);
}
@media (min-width: 500px) {
  .also ul { grid-template-columns: 1fr 1fr; column-gap: 18px; }
}

/* ============================ BABAK 05: TAMAN JANJI (KAD HIJAU SAGE) ============================ */
.s-garden { color: var(--warm); }
.garden-card {
  width: min(88vw, 456px); margin: 0 auto;
  padding: 36px 20px; border-radius: 24px;
  background: linear-gradient(165deg, rgba(88, 102, 80, 0.94) 0%, rgba(63, 76, 56, 0.97) 100%);
  border: 1.5px solid rgba(199, 174, 122, 0.72);
  box-shadow: 0 24px 48px rgba(35, 45, 32, 0.32), inset 0 1px 0 rgba(255, 253, 248, 0.35);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: relative; z-index: 2;
}
@media (min-width: 600px) {
  .garden-card { width: min(84vw, 510px); }
}
.garden-eyebrow { color: rgba(255, 253, 248, 0.94); }
.big-date { display: flex; align-items: baseline; gap: 10px; color: var(--warm); }
.big-date .d { font: 600 clamp(52px, 13.5vw, 80px)/1 var(--serif); letter-spacing: -.02em; }
.big-date .m { font: italic 500 clamp(24px, 6vw, 34px)/1.1 var(--serif); color: var(--champagne); }
.g-line { font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 253, 248, 0.94); font-weight: 500; }
.g-venue { font: italic 500 clamp(18px, 4.8vw, 23px)/1.35 var(--serif); color: var(--warm); max-width: 320px; }

.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 8px; width: 100%; max-width: 340px;
}
.countdown > div {
  padding: 12px 4px; border-radius: 12px;
  background: rgba(255, 253, 248, 0.16);
  border: 1px solid rgba(199, 174, 122, 0.58);
  display: flex; flex-direction: column; align-items: center;
}
.countdown b { font: 600 clamp(22px, 5.8vw, 34px)/1 var(--serif); color: var(--warm); }
.countdown span {
  font: 600 9.5px/1.3 var(--sans); letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255, 253, 248, 0.88); margin-top: 4px;
}
.cd-note { font-size: 12.5px; color: rgba(255, 253, 248, 0.88); min-height: 1.4em; }

/* ============================ BABAK 06: LOKASI & NAVIGASI ============================ */
.facts { display: grid; gap: 12px; text-align: center; max-width: 350px; margin: 2px 0 8px; }
.facts dt { font: 600 10.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-ink); }
.facts dd { font: 600 clamp(17px, 4.4vw, 20px)/1.35 var(--serif); color: var(--charcoal); }
.facts dd small { display: block; font: 400 13px/1.55 var(--sans); color: var(--muted); margin-top: 4px; }

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.btn-nav { min-width: 142px; flex: 1 1 136px; max-width: 180px; }
.nav-ico { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.cal-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
.gcal { font-size: 13px; color: var(--sage-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ============================ MEDAN BORANG (Mesra iOS Safari & Android) ============================ */
.field { display: grid; gap: 6px; }
.field label {
  font: 600 11px/1.4 var(--sans); letter-spacing: .10em; text-transform: uppercase; color: var(--sage-ink);
}
/* 16px wajib pada iOS Safari supaya skrin tidak auto-zoom apabila input ditekan */
.field input[type="text"], .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid rgba(117, 131, 109, 0.55);
  background: rgba(255, 253, 248, 0.92);
  font: 400 16px/1.45 var(--sans); color: var(--charcoal);
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input[type="text"]:focus, .field textarea:focus {
  outline: none; border-color: var(--sage-ink); box-shadow: 0 0 0 3px rgba(74, 87, 67, 0.18);
}
.hp { position: absolute; left: -9999px; }
.err { font-size: 12px; color: #8C372B; min-height: 1.2em; }

.banner { display: none; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; }
.banner.show { display: block; }
.banner.err { background: rgba(154, 74, 60, 0.12); color: #7E3428; border: 1px solid rgba(154, 74, 60, 0.35); }
.banner.ok { background: rgba(74, 87, 67, 0.14); color: #3A4634; border: 1px solid rgba(74, 87, 67, 0.35); }

/* ============================ BABAK 07: JURNAL TITIPAN DOA ============================ */
.notebook-header {
  width: 100%; max-width: 368px; position: relative; margin: 0 auto 4px;
  display: grid; place-items: center;
}
.notebook-img {
  grid-area: 1 / 1; position: relative; z-index: 1; width: 100%; height: auto; margin: 0 auto;
  filter: drop-shadow(0 10px 18px rgba(47, 53, 43, 0.15));
}
.notebook-overlay {
  grid-area: 1 / 1; position: relative; z-index: 2; width: 88%; height: 88%;
  padding: 6px 8px;
  background: radial-gradient(ellipse 72% 76% at 50% 50%, rgba(248, 245, 234, 0.90) 0%, rgba(248, 245, 234, 0.55) 62%, rgba(248, 245, 234, 0) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-align: center;
}
.notebook-eyebrow { color: var(--sage-ink); font-size: 9px; letter-spacing: .20em; margin-bottom: 1px; }
.notebook-ar { font-size: clamp(16px, 4.5vw, 22px); line-height: 1.48; color: var(--charcoal); }
.notebook-translit { font-size: clamp(9.5px, 2.7vw, 10.5px); line-height: 1.3; letter-spacing: .03em; color: var(--sage-ink); font-weight: 600; max-width: 260px; }
.notebook-trans { font: italic 500 clamp(11px, 3vw, 13.5px)/1.32 var(--serif); color: var(--muted); max-width: 265px; }

.wish-section { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wish-section form { width: 100%; display: grid; gap: 12px; text-align: left; margin-top: 4px; }
.count { font-size: 11px; color: var(--muted); text-align: right; margin-top: -2px; }
.wishes { width: 100%; max-width: 340px; display: grid; gap: 0; text-align: left; margin-top: 8px; }
.wish { padding: 14px 4px; border-top: 1px solid rgba(199, 174, 122, 0.55); animation: wishIn .8s var(--ease) both; }
.wish blockquote { margin: 0; font: italic 500 17px/1.52 var(--serif); color: var(--charcoal); overflow-wrap: break-word; }
.wish cite { display: block; margin-top: 5px; font: 600 11.5px/1.4 var(--sans); letter-spacing: .08em; font-style: normal; color: var(--sage-ink); overflow-wrap: break-word; }
.wish-state {
  min-height: 1.5em; font-size: 13px; font-style: italic;
  color: var(--muted); text-align: center; padding: 6px 8px;
}
@keyframes wishIn { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

/* ============================ BABAK 08: PENUTUP ============================ */
.closing-crest-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
}
.closing-crest {
  width: clamp(106px, 28vw, 136px);
  height: auto;
  opacity: .96;
}
.end-names {
  display: flex; flex-direction: column; align-items: center;
  font: 600 clamp(22px, 6.4vw, 30px)/1.18 var(--serif);
  text-transform: uppercase; letter-spacing: .03em; margin: 4px 0;
}
.end-names i { font-style: italic; font-weight: 500; color: var(--gold-rich); text-transform: none; font-size: .8em; }
.tag { font: 600 13px/1.4 var(--sans); letter-spacing: .08em; color: var(--sage-ink); }

/* ============================ DOK TERAPUNG ============================ */
.dock {
  position: fixed; z-index: 40; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(199, 174, 122, 0.68);
  box-shadow: 0 12px 28px rgba(47, 53, 43, 0.18);
  transform: translate3d(-50%, 140%, 0); opacity: 0;
  transition: transform .65s var(--ease), opacity .45s; pointer-events: none;
  max-width: calc(100vw - 24px);
}
.dock.show { transform: translate3d(-50%, 0, 0); opacity: 1; pointer-events: auto; }
.dock a, .dock button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 13px;
  border: 0; border-radius: 999px; background: transparent;
  font: 600 12.5px/1 var(--sans); letter-spacing: .04em; color: var(--charcoal); text-decoration: none;
  white-space: nowrap;
}
.dock a:hover, .dock button:hover { background: rgba(163, 173, 150, 0.28); }
.dock button[aria-pressed="true"] { background: var(--sage-ink); color: var(--warm); }
.dock button[aria-pressed="true"] svg { animation: musicBeat 1.8s ease-in-out infinite; }
@keyframes musicBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.dock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ============================ GERAK DIKURANGKAN ============================ */
.reduce .hero { height: auto; }
.reduce .hero-pin { position: relative; height: auto; min-height: 100svh; padding: 60px 20px; }
.reduce .seal::after, .reduce .petal-fall, .reduce .butterfly-unit, .reduce .butterfly-flapper { animation: none; }
.reduce .wish { animation: none; }
.reduce .dock { transition: none; }

@media (min-width: 900px) {
  .scene { padding-inline: 48px; }
  .dock a, .dock button { padding: 0 18px; }
}
