/* =========================================================
   UNDANGAN RAMA & SINTA — Elegant Javanese Wedding
   Ubah warna utama melalui variabel di bawah ini.
   ========================================================= */
:root {
  --ink: #3b2417;
  --brown: #56351f;
  --brown-dark: #2d190f;
  --gold: #b58a4b;
  --gold-light: #dfc18a;
  --cream: #fbf4e8;
  --paper: #f5ead8;
  --muted: #806c59;
  --line: rgba(150, 108, 57, 0.28);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --script: "Great Vibes", cursive;
  --shadow: 0 16px 45px rgba(59, 36, 23, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(251, 244, 232, 0.88), rgba(251, 244, 232, 0.88)),
    url("../assets/images/batik-kawung.svg");
  background-repeat: repeat;
  background-size:
    auto,
    180px 180px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
}
body.is-locked {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--brown-dark);
  color: var(--gold-light);
  transition:
    opacity 0.6s,
    visibility 0.6s;
}
.page-loader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader-mark {
  font: 44px var(--script);
}
.loader-mark span {
  color: #fff0ce;
}
.page-loader p {
  font: 12px var(--sans);
  letter-spacing: 2px;
}
.cover {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 70px 22px;
  color: #422714;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse at 50% 44%,
      rgba(255, 244, 219, 0.94),
      rgba(246, 226, 190, 0.82) 44%,
      rgba(73, 43, 24, 0.16) 100%
    ),
    url("../assets/images/wayang-rama-hero.jpg") left center / auto 100%
      no-repeat,
    url("../assets/images/wayang-sinta-hero.jpg") right center / auto 100%
      no-repeat,
    linear-gradient(135deg, #6b472b, #d8b77d 48%, #6b472b);
}
.cover::before,
.cover::after {
  content: "❧";
  position: absolute;
  z-index: -1;
  color: rgba(225, 190, 126, 0.45);
  font: 230px var(--serif);
}
.cover::before {
  left: -48px;
  top: 6%;
  transform: rotate(-35deg);
}
.cover::after {
  right: -48px;
  bottom: 5%;
  transform: rotate(145deg);
}
.cover-pattern {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(143, 97, 45, 0.45);
  pointer-events: none;
}
.cover-pattern::before,
.cover-pattern::after {
  content: "✧";
  position: absolute;
  left: 50%;
  color: #a87536;
  font-size: 20px;
  transform: translateX(-50%);
}
.cover-pattern::before {
  top: -15px;
}
.cover-pattern::after {
  bottom: -15px;
}
.cover-inner {
  width: min(100%, 660px);
  position: relative;
  z-index: 1;
  padding: 36px 25px;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
}
.cover .eyebrow {
  color: #8d5e29;
}
.cover-ornament {
  color: var(--gold-light);
  font-size: 30px;
  line-height: 1;
}
.couple-script {
  margin: 4px 0 0;
  font: clamp(64px, 12vw, 112px)/0.98 var(--script);
  color: #4a2815;
  text-shadow: 0 2px 1px rgba(255, 255, 255, 0.65);
}
.couple-script span {
  font-family: var(--serif);
  font-size: 0.65em;
}
.cover-date {
  margin: 18px 0;
  color: #684326;
  font: 600 14px var(--display);
  letter-spacing: 2px;
}
.cover-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #a87536;
}
.cover-divider span {
  width: 60px;
  height: 1px;
  background: #b8894c;
}
.to-label {
  margin: 26px 0 0;
  color: #5c4029;
  font: 14px var(--serif);
}
.guest-name {
  color: #4b2b18;
  width: fit-content;
  min-width: 210px;
  margin: 5px auto 12px;
  padding: 5px 22px;
  border: 1px solid var(--gold-light);
  border-radius: 30px;
  font: 600 19px var(--display);
}
.cover-note {
  max-width: 400px;
  margin: 0 auto 23px;
  color: #5c4029;
  font: 15px/1.6 var(--serif);
}
.btn {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 25px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  font: 600 12px var(--sans);
  letter-spacing: 0.5px;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.btn-gold,
.btn-primary {
  color: #fff8e9;
  background: linear-gradient(135deg, #d3ad6b, #8d5c2b);
  border: 1px solid rgba(255, 236, 193, 0.65);
}
.btn-open {
  min-width: 205px;
  border-radius: 40px;
}
.cover-hint {
  margin: 16px 0 0;
  color: rgba(255, 245, 223, 0.65);
  font-size: 9px;
}
.cover-bottom {
  position: absolute;
  bottom: 17px;
  color: var(--gold-light);
  letter-spacing: 5px;
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(5vw, 20px);
  color: #f9ecd5;
  background: rgba(45, 25, 15, 0.97);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.13);
}
.nav-brand {
  color: var(--gold-light);
  font: 29px var(--script);
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand span {
  font: 20px var(--serif);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}
.nav-links a {
  color: #f7ead3;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.4px;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--gold-light);
}
.nav-toggle {
  display: none;
  color: white;
  border: 0;
  background: none;
  font-size: 23px;
}
.music-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f7e5c2;
  background: transparent;
  border: 1px solid rgba(222, 190, 133, 0.45);
  border-radius: 30px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 10px;
}
.music-note {
  font-size: 17px;
}
.music-toggle.playing .music-note {
  animation: musicPulse 1s infinite alternate;
}
@keyframes musicPulse {
  to {
    transform: scale(1.25) rotate(12deg);
  }
}
.section-shell {
  width: min(1100px, calc(100% - 42px));
  margin: auto;
  padding: 82px 0;
}
.intro {
  max-width: 760px;
  text-align: center;
  padding-top: 74px;
  padding-bottom: 35px;
}
.section-flourish {
  margin: 8px 0;
  color: var(--gold);
  font-size: 24px;
}
.intro-quote {
  margin: 12px auto 8px;
  font: italic 23px/1.45 var(--serif);
}
.quote-source {
  color: var(--gold);
  font-size: 11px;
}
.intro-copy {
  max-width: 550px;
  margin: 25px auto 0;
  color: var(--muted);
  font: 16px/1.7 var(--serif);
}
.section-heading {
  margin-bottom: 36px;
  text-align: center;
}
.section-heading h2 {
  margin: 0;
  font: 600 clamp(34px, 5vw, 48px)/1.15 var(--display);
  color: var(--brown);
}
.section-subtitle {
  max-width: 560px;
  margin: 10px auto 0;
  color: var(--muted);
  font: 16px/1.5 var(--serif);
}
.heading-flourish {
  color: var(--gold);
  font-size: 15px;
}
.couple-section {
  padding-top: 45px;
}
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  max-width: 850px;
  margin: auto;
}
.person-card {
  text-align: center;
}
.portrait-frame {
  width: min(230px, 65vw);
  aspect-ratio: 4/5;
  margin: 0 auto 18px;
  padding: 8px;
  border: 1px solid var(--gold);
  border-radius: 48% 48% 5px 5px;
  background: #ead8b8;
  box-shadow: 0 10px 25px rgba(73, 45, 24, 0.12);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 48% 48% 2px 2px;
}
.person-role {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.person-card h3 {
  margin: 5px 0 8px;
  font: 600 28px var(--display);
}
.person-card p {
  margin: 2px 0;
  color: var(--muted);
  font: 15px var(--serif);
}
.person-card .parents {
  color: var(--ink);
}
.social-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold);
  font-size: 10px;
  text-decoration: none;
}
.couple-ampersand {
  color: var(--gold);
  font: 60px var(--script);
}
.event-section {
  position: relative;
  overflow: hidden;
  padding: 78px 0 85px;
  color: #f9ecd6;
  text-align: center;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(184, 137, 72, 0.24),
      transparent 55%
    ),
    repeating-linear-gradient(
      135deg,
      rgba(220, 184, 121, 0.055) 0 2px,
      transparent 2px 12px
    ),
    linear-gradient(120deg, #263c2d, #4b3522 55%, #263c2d);
}
.event-section::before,
.event-section::after {
  content: "꧁";
  position: absolute;
  top: 45%;
  color: rgba(220, 182, 118, 0.13);
  font: 180px var(--serif);
}
.event-section::before {
  left: -30px;
}
.event-section::after {
  right: -30px;
  transform: scaleX(-1);
}
.event-section .section-shell {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: 0;
}
.light-heading h2 {
  color: #fff0d5;
}
.light-heading .section-subtitle {
  color: #e4d2b7;
}
.event-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 850px;
  margin: auto;
}
.event-card {
  padding: 28px 24px;
  border: 1px solid rgba(224, 190, 132, 0.55);
  background: rgba(255, 246, 226, 0.07);
  backdrop-filter: blur(5px);
}
.event-icon {
  color: var(--gold-light);
  font-size: 28px;
}
.event-type {
  margin: 4px 0;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.event-card h3 {
  margin: 5px 0;
  font: 600 24px var(--display);
}
.event-time {
  color: #e4c997;
  font-size: 12px;
}
.thin-rule {
  width: 50px;
  height: 1px;
  margin: 17px auto;
  background: var(--gold-light);
}
.event-card h4 {
  margin: 0;
  font: 600 19px var(--serif);
}
.event-card > p:last-child {
  color: #e4d2b7;
  font: 14px var(--serif);
}
.countdown-wrap {
  margin: 38px 0 25px;
}
.countdown-title {
  margin: 0 0 14px;
  color: var(--gold-light);
  font: 22px var(--display);
}
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 22px);
}
.countdown div {
  min-width: 66px;
  display: grid;
  gap: 0;
  padding: 8px 10px;
  border: 1px solid rgba(224, 190, 132, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
.countdown strong {
  color: #fff0d5;
  font: 600 31px var(--display);
  line-height: 1.2;
}
.countdown span {
  color: #e4c997;
  font-size: 10px;
}
.countdown i {
  color: var(--gold-light);
  font-style: normal;
  font-size: 20px;
}
.countdown-message {
  color: var(--gold-light);
  font-size: 12px;
}
.btn-light {
  color: var(--brown-dark);
  background: #f2dfbb;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 55px auto 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: var(--gold-light);
}
.timeline-item {
  position: relative;
  z-index: 1;
  text-align: center;
}
.timeline-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: var(--cream);
  font-size: 22px;
}
.timeline-date {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1px;
}
.timeline-item h3 {
  margin: 4px 0;
  font: 600 25px var(--display);
}
.timeline-item > p:last-child {
  max-width: 230px;
  margin: auto;
  color: var(--muted);
  font: 15px/1.5 var(--serif);
}
.gallery-section {
  background: #f3e7d4;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--gold-light);
  background: #fff9ef;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/4;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.rsvp-section {
  background:
    linear-gradient(rgba(250, 242, 228, 0.92), rgba(250, 242, 228, 0.95)),
    url("../assets/images/referensi-desain-rama-sinta.png") center/cover;
}
.narrow-shell {
  max-width: 720px;
}
.form-card {
  display: grid;
  gap: 9px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 243, 0.85);
  box-shadow: var(--shadow);
}
.form-card label {
  margin-top: 5px;
  color: var(--brown);
  font-size: 11px;
  font-weight: 600;
}
.form-card input,
.form-card select,
.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid #d8c8b0;
  border-radius: 2px;
  outline: none;
  background: #fffdf8;
  font-size: 12px;
}
.form-card input:focus,
.form-card select:focus,
.guestbook-form input:focus,
.guestbook-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 138, 75, 0.12);
}
.form-card .btn {
  margin-top: 12px;
}
.btn-primary {
  background: linear-gradient(135deg, #78502e, #3e2415);
}
.form-feedback {
  min-height: 18px;
  margin: 0;
  color: #547247;
  font-size: 11px;
}
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gift-card {
  padding: 26px 20px;
  text-align: center;
  border: 1px solid var(--line);
  background: #fffaf1;
}
.gift-symbol {
  color: var(--gold);
  font-size: 28px;
}
.gift-card h3 {
  margin: 4px 0 8px;
  font: 600 23px var(--display);
}

/* Logo bank pada kartu hadiah */
.bank-logo {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0 auto -20px;
  object-fit: contain;
}

.gift-card p {
  margin: 4px 0;
  color: var(--muted);
  font: 17px var(--serif);
  font-weight: 800;
}
/* .gift-card .bank-name {
  color: #245b91;
  font: 700 17px var(--sans);
} */

.account-number {
  color: var(--ink) !important;
  font: 600 20px var(--sans) !important;
  letter-spacing: 1px;
}
.copy-button {
  margin-top: 14px;
  padding: 8px 13px;
  color: var(--brown);
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}
.copy-button:hover {
  color: white;
  background: var(--brown);
}
.qris-placeholder {
  width: 116px;
  height: 116px;
  display: grid;
  place-content: center;
  gap: 5px;
  margin: 10px auto;
  border: 1px dashed var(--gold);
  background: #f7eddb;
  color: var(--brown);
}
.qris-placeholder span {
  font: 700 23px var(--sans);
}
.qris-placeholder small {
  max-width: 90px;
  font-size: 8px;
}
.gift-address {
  min-height: 62px;
}
.guestbook-section {
  background: #f3e7d4;
}
.guestbook-form {
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin: auto auto 30px;
  align-items: start;
}
.guestbook-form textarea {
  grid-column: 1 / 3;
  resize: vertical;
}
.guestbook-form .btn {
  min-height: 46px;
}
.guestbook-form .form-feedback {
  grid-column: 1 / -1;
}
.messages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.message-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fffaf1;
}
.message-card strong {
  display: block;
  font: 600 18px var(--display);
}
.message-card small {
  color: var(--gold);
  font-size: 9px;
}
.message-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font: 14px/1.5 var(--serif);
  overflow-wrap: anywhere;
}
.site-footer {
  padding: 55px 25px;
  color: #f7e8ca;
  text-align: center;
  background: linear-gradient(120deg, #2d190f, #684329);
}
.footer-ornament {
  color: var(--gold-light);
  font-size: 25px;
}
.site-footer > p:first-of-type {
  max-width: 560px;
  margin: 12px auto;
  font: italic 16px/1.5 var(--serif);
}
.site-footer h2 {
  margin: 15px 0 0;
  font: 55px var(--script);
  color: #f5dfb7;
}
.site-footer h2 span {
  font: 35px var(--serif);
}
.footer-date {
  color: var(--gold-light);
  letter-spacing: 4px;
  font-size: 11px;
}
.site-footer small {
  color: #c9ad82;
  font-size: 9px;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 35px;
  background: rgba(22, 13, 8, 0.94);
}
.lightbox.show {
  display: grid;
}
.lightbox img {
  max-width: min(100%, 1000px);
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  border: 0;
  background: none;
  font-size: 38px;
  cursor: pointer;
}
@media (max-width: 800px) {
  .site-nav {
    min-height: 60px;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 15px;
    background: var(--brown-dark);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .music-toggle {
    padding: 6px 9px;
  }
  .music-state {
    display: none;
  }
  .section-shell {
    padding: 65px 0;
  }
  .couple-grid {
    gap: 12px;
  }
  .person-card h3 {
    font-size: 23px;
  }
  .portrait-frame {
    width: min(190px, 31vw);
  }
  .event-cards {
    gap: 12px;
  }
  .event-card {
    padding: 23px 15px;
  }
  .event-card h3 {
    font-size: 20px;
  }
  .gift-grid {
    gap: 10px;
  }
  .gift-card {
    padding: 20px 12px;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 13px;
  }
  .cover {
    min-height: 94svh;
    padding: 50px 18px;
    background-position: center;
  }
  .cover-inner {
    padding: 25px 12px;
  }
  .couple-script {
    font-size: clamp(62px, 17vw, 86px);
  }
  .cover-note {
    font-size: 14px;
  }
  .section-shell {
    width: min(100% - 34px, 480px);
    padding: 55px 0;
  }
  .intro {
    padding-top: 54px;
    padding-bottom: 28px;
  }
  .intro-quote {
    font-size: 20px;
  }
  .section-heading {
    margin-bottom: 27px;
  }
  .section-heading h2 {
    font-size: 36px;
  }
  .section-subtitle {
    font-size: 15px;
  }
  .couple-grid {
    grid-template-columns: 1fr 28px 1fr;
    gap: 5px;
  }
  .portrait-frame {
    width: 100%;
    max-width: 155px;
    padding: 5px;
  }
  .person-card h3 {
    font-size: 20px;
    line-height: 1.1;
  }
  .person-card p {
    font-size: 13px;
  }
  .person-role {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .couple-ampersand {
    font-size: 42px;
  }
  .event-section {
    padding: 60px 0;
  }
  .event-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .event-card h3 {
    font-size: 23px;
  }
  .countdown {
    gap: 5px;
  }
  .countdown div {
    min-width: 55px;
    padding: 7px 5px;
  }
  .countdown strong {
    font-size: 25px;
  }
  .countdown i {
    font-size: 15px;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 35px;
  }
  .timeline::before {
    top: 20px;
    bottom: 20px;
    left: 25px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .timeline-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 15px;
    text-align: left;
  }
  .timeline-icon {
    grid-row: 1 / 4;
    margin: 0;
  }
  .timeline-date,
  .timeline-item h3,
  .timeline-item > p:last-child {
    grid-column: 2;
    max-width: none;
    margin-left: 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .gallery-item {
    padding: 3px;
  }
  .form-card {
    padding: 22px 17px;
  }
  .gift-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: auto;
  }
  .gift-card {
    padding: 24px;
  }
  .gift-address {
    min-height: 0;
  }
  .guestbook-form {
    grid-template-columns: 1fr;
  }
  .guestbook-form textarea {
    grid-column: auto;
  }
  .guestbook-form .form-feedback {
    grid-column: auto;
  }
  .messages-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    padding: 45px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   MOTION UPDATE — animasi scroll dan detail interaktif
   ========================================================= */
.cover {
  background-position: center calc(22% + var(--cover-shift, 0px));
}
.cover-inner {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cover-inner.cover-ready {
  opacity: 1;
  transform: translateY(0);
}
.cover-ornament {
  animation: ornamentFloat 4s ease-in-out infinite;
}
@keyframes ornamentFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}
.cover-pattern {
  animation: borderGlow 6s ease-in-out infinite alternate;
}
@keyframes borderGlow {
  from {
    border-color: rgba(222, 190, 133, 0.25);
  }
  to {
    border-color: rgba(255, 224, 166, 0.8);
  }
}

/* Elemen baru terlihat saat masuk viewport. */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.person-card.reveal-on-scroll:first-child {
  transform: translateX(-28px);
}
.person-card.reveal-on-scroll:last-child {
  transform: translateX(28px);
}
.person-card.reveal-on-scroll.is-visible {
  transform: translateX(0);
}

/* Gerakan lembut pada kartu dan gambar agar halaman tidak terasa datar. */
.person-card,
.event-card,
.gift-card,
.message-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.person-card:hover {
  transform: translateY(-7px);
}
.event-card:hover,
.gift-card:hover,
.message-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 13px 30px rgba(41, 24, 13, 0.13);
}
.portrait-frame {
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}
.person-card:hover .portrait-frame {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 18px 32px rgba(73, 45, 24, 0.2);
}
.gallery-item {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 13px 24px rgba(59, 36, 23, 0.18);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Kelopak bunga yang jatuh perlahan di halaman sampul. */
.petal-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.floating-petal {
  position: absolute;
  top: -24px;
  width: 10px;
  height: 15px;
  border-radius: 80% 10% 80% 10%;
  background: rgba(236, 202, 145, 0.58);
  filter: blur(0.2px);
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0% {
    transform: translate3d(0, -30px, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.55;
  }
  100% {
    transform: translate3d(var(--drift), 105vh, 0) rotate(500deg);
    opacity: 0;
  }
}

/* Indikator musik dan navigasi aktif. */
.music-toggle.playing {
  border-color: var(--gold-light);
  background: rgba(211, 173, 107, 0.17);
}
.music-toggle.playing .music-note {
  display: inline-block;
  animation: musicPulse 0.8s ease-in-out infinite alternate;
}
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--gold-light);
  transition: right 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}
.nav-links a.active {
  color: var(--gold-light);
}

@media (max-width: 560px) {
  .reveal-on-scroll {
    transform: translateY(20px);
  }
  .person-card.reveal-on-scroll:first-child,
  .person-card.reveal-on-scroll:last-child {
    transform: translateY(20px);
  }
  .person-card.reveal-on-scroll.is-visible {
    transform: translateY(0);
  }
  .floating-petal {
    width: 7px;
    height: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .cover-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .floating-petal,
  .cover-ornament,
  .cover-pattern,
  .music-note {
    animation: none !important;
  }
}

/* =========================================================
   MOBILE POLISH — bottom navigation dock seperti referensi
   ========================================================= */
.nav-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-links a:first-child .nav-icon {
  fill: currentColor;
  stroke-width: 1.25;
}
.music-note {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 18px;
    scroll-padding-bottom: 105px;
  }
  body {
    padding-bottom: 94px;
  }
  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    top: auto;
    width: auto;
    min-height: 70px;
    margin: 0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(255, 244, 224, 0.68);
    border-radius: 42px;
    color: #38251b;
    background: rgba(196, 160, 139, 0.96);
    box-shadow:
      0 9px 30px rgba(48, 29, 18, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .site-nav::before,
  .site-nav::after {
    content: "❧";
    position: absolute;
    z-index: -1;
    top: 50%;
    color: rgba(255, 245, 224, 0.72);
    font: 38px var(--serif);
    pointer-events: none;
  }
  .site-nav::before {
    left: -12px;
    transform: translateY(-50%) rotate(-45deg);
  }
  .site-nav::after {
    right: -12px;
    transform: translateY(-50%) rotate(135deg);
  }
  .nav-brand,
  .nav-toggle {
    display: none !important;
  }
  .nav-links {
    position: static;
    inset: auto;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    flex: 1;
    gap: 0;
    padding: 0;
    background: transparent;
  }
  .nav-links a {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 5px 2px;
    border: 0 !important;
    border-radius: 15px;
    color: #302018;
    text-align: center;
    text-decoration: none;
    transition:
      color 0.25s ease,
      background 0.25s ease,
      transform 0.25s ease;
  }
  .nav-links a span {
    display: none;
  }
  .nav-links a .nav-icon {
    width: 27px;
    height: 27px;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a.active {
    color: #fff8e9;
    background: linear-gradient(145deg, #916638, #5c381f);
    box-shadow: 0 4px 12px rgba(61, 36, 20, 0.22);
    transform: translateY(-2px);
  }
  .music-toggle {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    gap: 0;
    padding: 0;
    margin-left: 2px;
    color: #302018;
    border: 0;
    border-radius: 15px;
    background: transparent;
    box-shadow: none;
    transition:
      color 0.25s ease,
      background 0.25s ease,
      transform 0.25s ease;
  }
  .music-toggle .nav-icon {
    width: 29px;
    height: 29px;
  }
  .music-toggle .music-state {
    display: none;
  }
  .music-toggle.playing {
    color: #fff8e9;
    border: 0;
    background: linear-gradient(145deg, #916638, #5c381f);
    box-shadow: 0 4px 12px rgba(61, 36, 20, 0.22);
    transform: translateY(-2px);
  }
  .music-toggle.playing .music-note {
    animation: musicPulse 0.8s ease-in-out infinite alternate;
  }
  .site-nav a:active,
  .music-toggle:active {
    transform: scale(0.92);
  }
  .section-shell {
    width: min(100% - 32px, 520px);
  }
  .cover {
    min-height: 100svh;
    min-height: 100dvh;
  }
  .cover-inner {
    width: 100%;
  }
  .section-heading h2 {
    font-size: clamp(30px, 8vw, 38px);
  }
  .section-subtitle {
    max-width: 38ch;
    font-size: 15px;
  }
  .intro-quote {
    font-size: clamp(19px, 5vw, 22px);
  }
  .person-card h3 {
    font-size: clamp(17px, 4.8vw, 22px);
  }
  .person-card p {
    font-size: 13px;
  }
  .event-card h3 {
    font-size: clamp(20px, 5.5vw, 24px);
  }
  .gallery-grid {
    gap: 8px;
  }
  .gallery-item {
    border-radius: 12px;
    overflow: hidden;
  }
  .gallery-item img {
    border-radius: 8px;
  }
  .form-card,
  .gift-card,
  .message-card {
    border-radius: 12px;
  }
  .btn {
    min-height: 48px;
  }
}
@media (max-width: 380px) {
  .site-nav {
    left: 9px;
    right: 9px;
    min-height: 64px;
    padding: 6px 8px;
  }
  .nav-links a {
    min-height: 48px;
  }
  .nav-links a .nav-icon {
    width: 24px;
    height: 24px;
  }
  .music-toggle {
    width: 47px;
    height: 48px;
    flex-basis: 47px;
  }
  .music-toggle .nav-icon {
    width: 26px;
    height: 26px;
  }
  .couple-grid {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  }
  .person-card h3 {
    font-size: 17px;
  }
  .countdown {
    gap: 3px;
  }
  .countdown div {
    min-width: 49px;
  }
  .countdown strong {
    font-size: 22px;
  }
}
@media (min-width: 761px) {
  .nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .nav-links a .nav-icon {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .nav-links a,
  .music-toggle {
    transition: none !important;
  }
}

/* BATIK & WAYANG VISUAL LAYER */
.section-shell:not(.intro) {
  position: relative;
}
.section-heading::after {
  content: "❧  ✧  ❧";
  display: block;
  margin: 10px auto 0;
  color: #b58a4b;
  font: 20px var(--serif);
  letter-spacing: 5px;
  opacity: 0.78;
}
.intro,
.couple-section,
.story-section,
.gallery-section,
.rsvp-section,
.gift-section,
.guestbook-section {
  background-image:
    linear-gradient(rgba(251, 244, 232, 0.82), rgba(251, 244, 232, 0.82)),
    url("../assets/images/batik-kawung.svg");
  background-size:
    auto,
    150px 150px;
  background-repeat: repeat;
}
.couple-section,
.story-section,
.gift-section {
  border-top: 1px solid rgba(181, 138, 75, 0.18);
}
.event-section {
  border-top: 3px double rgba(215, 179, 119, 0.5);
  border-bottom: 3px double rgba(215, 179, 119, 0.5);
}
.event-card {
  border-radius: 18px 4px 18px 4px;
  box-shadow: inset 0 0 25px rgba(220, 184, 121, 0.06);
}
.person-card .portrait-frame {
  box-shadow:
    0 0 0 4px rgba(181, 138, 75, 0.08),
    0 12px 28px rgba(73, 45, 24, 0.16);
}
.gallery-item {
  box-shadow: 0 7px 18px rgba(73, 45, 24, 0.1);
}
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 5px double rgba(223, 193, 138, 0.65);
}
.site-footer::before,
.site-footer::after {
  content: "꧁";
  position: absolute;
  top: 15%;
  color: rgba(223, 193, 138, 0.24);
  font: 115px var(--serif);
  pointer-events: none;
}
.site-footer::before {
  left: -15px;
}
.site-footer::after {
  right: -15px;
  transform: scaleX(-1);
}
@media (max-width: 760px) {
  .cover {
    background-size:
      auto 78%,
      auto 78%,
      auto,
      auto;
    background-position:
      left bottom,
      right bottom,
      center,
      center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-color: #f5e4c8;
  }
  .cover-inner {
    padding: 28px 15px;
  }
  .cover-pattern {
    inset: 9px;
  }
  .cover::before,
  .cover::after {
    font-size: 135px;
  }
  .event-section {
    background-size: auto, auto, auto;
  }
  .section-heading::after {
    margin-top: 7px;
    font-size: 17px;
  }
}

/* =========================================================
   MOBILE COVER REFINEMENT
   Perbaikan khusus halaman sampul pada layar HP.
   Bagian desktop dan section lainnya tidak diubah.
   ========================================================= */
@media (max-width: 760px) {
  .cover {
    /*
      Urutan layer background:
      1. radial-gradient (lapisan pencahayaan)
      2. wayang-rama
      3. wayang-sinta
      4. linear-gradient (warna dasar)
      Semua layer dibuat memenuhi tinggi cover agar tidak muncul
      bidang kosong di bagian atas.
    */
    background-size:
      100% 100%,
      auto 100%,
      auto 100%,
      100% 100%;
    background-position:
      center center,
      left center,
      right center,
      center center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-color: #f5e4c8;
  }

  .cover-inner {
    width: 100%;
    max-width: 440px;
    padding: 26px 15px;
  }

  .cover .eyebrow {
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: 2px;
  }

  .cover-ornament {
    font-size: 27px;
  }

  .couple-script {
    font-size: clamp(58px, 16vw, 76px);
    line-height: 1.04;
  }

  .cover-date {
    margin: 13px 0 15px;
    font-size: 11px;
    letter-spacing: 1.35px;
    line-height: 1.5;
  }

  .cover-divider span {
    width: clamp(38px, 12vw, 52px);
  }

  .to-label {
    margin-top: 19px;
  }

  .guest-name {
    min-width: 0;
    max-width: 100%;
    padding: 6px 17px;
    font-size: 16px;
  }

  .cover-note {
    max-width: 340px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.55;
  }

  .cover-hint {
    max-width: 290px;
    margin: 12px auto 0;
    font-size: 8px;
    line-height: 1.5;
  }

  .cover-bottom {
    bottom: 10px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .cover {
    padding: 38px 13px;
  }

  .cover-inner {
    padding: 20px 8px;
  }

  .couple-script {
    font-size: clamp(56px, 15.5vw, 62px);
  }

  .cover-date {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .guest-name {
    font-size: 15px;
  }
}


/* Status buku tamu ketika memuat atau belum ada ucapan. */
.guestbook-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font: 15px/1.6 var(--serif);
}
.guestbook-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}
