:root {
  --color-bg: #fef7f8;
  --color-bg-alt: #fce8ee;
  --color-text: #3a2a30;
  --color-primary: #c96b82;
  --color-primary-dark: #8f3550;
  --color-secondary: #fce8ee;
  --color-accent: #e8a5b5;
  --color-gold: #c9a66b;
  --color-gold-light: #e8d4ab;
  --color-muted: #8f5f6e;
  --color-card: #ffffff;
  --color-border: #f5e4e8;

  /* --- Font --- */
  --font-display:
    "Playfair Display", "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", -apple-system, "Segoe UI", sans-serif;
  --font-script: "Alex Brush", "Parisienne", "Brush Script MT", cursive;

  --radius: 20px;
  --shadow-soft: 0 16px 36px -16px rgba(143, 53, 80, 0.28);
  --gradient-primary: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  --gradient-gold: linear-gradient(
    135deg,
    var(--color-gold-light),
    var(--color-gold)
  );

  --pattern-kawung: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiI+CjxnIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0IyNzI2QyIgc3Ryb2tlLXdpZHRoPSIxLjEiIG9wYWNpdHk9IjAuMTYiPgo8ZWxsaXBzZSBjeD0iMzYiIGN5PSIyMCIgcng9IjExIiByeT0iMTYiLz4KPGVsbGlwc2UgY3g9IjM2IiBjeT0iNTIiIHJ4PSIxMSIgcnk9IjE2Ii8+CjxlbGxpcHNlIGN4PSIyMCIgY3k9IjM2IiByeD0iMTYiIHJ5PSIxMSIvPgo8ZWxsaXBzZSBjeD0iNTIiIGN5PSIzNiIgcng9IjE2IiByeT0iMTEiLz4KPGNpcmNsZSBjeD0iMzYiIGN5PSIzNiIgcj0iMy4yIi8+CjwvZz4KPC9zdmc+");
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-gold);
  z-index: 300;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(201, 166, 107, 0.6);
}

.global-petals {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.global-vine {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 46px;
  z-index: 4;
  pointer-events: none;
  opacity: 0.5;
  background-repeat: repeat-y;
  background-size: 100% 220px;
}
.global-vine.left {
  left: 0;
  background-image:
    radial-gradient(
      circle at 10px 20px,
      var(--color-gold) 0 3px,
      transparent 4px
    ),
    radial-gradient(
      circle at 30px 90px,
      var(--color-primary) 0 2.5px,
      transparent 3.5px
    ),
    radial-gradient(
      circle at 14px 160px,
      var(--color-gold-light) 0 2px,
      transparent 3px
    );
}
.global-vine.right {
  right: 0;
  background-image:
    radial-gradient(
      circle at 36px 50px,
      var(--color-gold) 0 3px,
      transparent 4px
    ),
    radial-gradient(
      circle at 16px 120px,
      var(--color-primary) 0 2.5px,
      transparent 3.5px
    ),
    radial-gradient(
      circle at 32px 190px,
      var(--color-gold-light) 0 2px,
      transparent 3px
    );
}
@media (max-width: 900px) {
  .global-vine {
    display: none;
  }
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 400;
  margin: 0 0 12px;
}
.eyebrow.light {
  color: #f3d9cf;
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  line-height: 1.15;
  margin: 0;
  color: #3a2228;
}

.section-desc {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.mini-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--color-primary);
  font-size: 11px;
}
.mini-divider i {
  animation: heartbeat 2.2s ease-in-out infinite;
}
.mini-divider span {
  width: 36px;
  height: 1.5px;
  background: var(--color-accent);
}
.mini-divider.light {
  color: #fff;
}
.mini-divider.light span {
  background: rgba(255, 255, 255, 0.7);
}

.script-name {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 6.9rem);
  line-height: 1;
  margin: 0;
  color: #fdefef;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.script-medium {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--color-primary);
  margin: 0 0 16px;
}

section {
  padding: 90px 20px;
  position: relative;
}

.pattern-bg {
  background-image: var(--pattern-kawung);
  background-size: 72px 72px;
}

.wash-bg {
  background-image:
    radial-gradient(
      circle at 12% 8%,
      rgba(178, 114, 108, 0.14),
      transparent 45%
    ),
    radial-gradient(
      circle at 88% 92%,
      rgba(201, 166, 107, 0.16),
      transparent 48%
    ),
    var(--pattern-kawung);
  background-size:
    auto,
    auto,
    72px 72px;
}

.section-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
}

.glass-panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 252, 249, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  padding: 40px clamp(18px, 5vw, 50px);
  box-shadow: var(--shadow-soft);
}

.reveal {
  opacity: 0;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}
.reveal[data-reveal="fade-up"] {
  transform: translateY(34px);
}
.reveal[data-reveal="fade-right"] {
  transform: translateX(-40px);
}
.reveal[data-reveal="fade-left"] {
  transform: translateX(40px);
}
.reveal[data-reveal="zoom"] {
  transform: scale(0.85);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
@keyframes petalFall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(110vh) translateX(40px) rotate(360deg);
    opacity: 0;
  }
}
@keyframes shimmerGold {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@keyframes bounceDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}
@keyframes blobDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -16px) scale(1.08);
  }
}

.cover {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(232, 212, 171, 0.18),
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 85%,
      rgba(232, 212, 171, 0.14),
      transparent 50%
    ),
    linear-gradient(160deg, #b2726c 0%, #92454a 55%, #5c1f28 100%);
  transition:
    transform 0.9s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.9s ease;
  overflow: hidden;
}
.fonts-loading .cover-inner {
  opacity: 0;
  animation: none;
}
.cover.hide {
  transform: translateY(-100%);
  opacity: 0.4;
  pointer-events: none;
}
.cover-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 30px;
  animation: fadeInCover 1.2s ease;
}
@keyframes fadeInCover {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cover-frame {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(232, 212, 171, 0.4);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}
.cover-frame::before,
.cover-frame::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-gold-light);
  opacity: 0.85;
}
.cover-frame::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.cover-frame::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}
.cover-kicker {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 14px;
  color: var(--color-gold-light);
}

.at1 {
  color: var(--color-gold-light);
}

.cover-names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 12vw, 5.5rem);
  margin: 0;
}
.cover-names span {
  font-size: 0.6em;
  opacity: 0.85;
  padding: 0 8px;
  color: var(--color-gold-light);
}
.cover-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0;
}
.cover-divider span {
  width: 40px;
  height: 1px;
  background: rgba(232, 212, 171, 0.5);
}
.cover-divider i {
  animation: heartbeat 1.6s ease-in-out infinite;
  color: var(--color-gold-light);
}
.cover-to {
  font-size: 13px;
  opacity: 0.85;
  margin: 22px 0 4px;
}
.cover-guest {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  margin: 0 0 34px;
}
.btn-open {
  border: 1px solid rgba(232, 212, 171, 0.6);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  animation: floatY 3s ease-in-out infinite;
}
.btn-open:hover {
  background: var(--gradient-gold);
  color: #4a2a1f;
  border-color: transparent;
}
.cover-petals {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(251, 244, 236, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(122, 42, 52, 0.1);
  border-bottom: 1px solid var(--color-border);
}
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-script);
  font-size: 26px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.navbar.scrolled .nav-logo {
  color: var(--color-primary-dark);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.navbar.scrolled .nav-link {
  color: rgba(59, 42, 44, 0.75);
}
.nav-link:hover {
  color: var(--color-primary);
}
.nav-toggle,
.music-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.navbar.scrolled .nav-toggle,
.navbar.scrolled .music-toggle {
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}
.nav-toggle {
  display: none;
}
.music-toggle.playing i {
  animation: heartbeat 1.2s infinite;
  color: var(--color-gold);
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(0.75);
  transform: scale(1.08);
}

@media (min-width: 768px) and (orientation: landscape) {
  .hero-bg img {
    object-position: 50% 38%;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(58, 20, 26, 0.7),
    rgba(122, 42, 52, 0.45) 40%,
    rgba(43, 15, 20, 0.85)
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-date {
  color: var(--color-gold-light);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 18px 0 34px;
}
.hero-petals {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-corner {
  position: absolute;
  z-index: 2;
  opacity: 0.75;
  pointer-events: none;
}
.hero-corner svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-corner.tl {
  top: 90px;
  left: 24px;
  width: 56px;
  height: 56px;
}
.hero-corner.tr {
  top: 90px;
  right: 24px;
  width: 56px;
  height: 56px;
  transform: scaleX(-1);
}
@media (min-width: 640px) {
  .hero-corner.tl,
  .hero-corner.tr {
    width: 74px;
    height: 74px;
  }
  .hero-corner.tl {
    top: 100px;
    left: 40px;
  }
  .hero-corner.tr {
    top: 100px;
    right: 40px;
  }
}

.countdown {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cd-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(232, 212, 171, 0.45);
  border-radius: 16px;
  padding: 12px 16px;
  min-width: 66px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.cd-num {
  display: block;
  font-size: 28px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.cd-label {
  display: block;
  font-size: 10px;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 4px;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-gold-light);
  font-size: 22px;
  animation: bounceDown 1.8s ease-in-out infinite;
  z-index: 2;
}

.edge-wave {
  position: absolute;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}
.edge-wave.bottom {
  bottom: -1px;
}
.edge-wave.top {
  top: 0;
  transform: translateY(-99%);
}
.edge-wave svg {
  width: 100%;
  height: 52px;
  display: block;
}
@media (max-width: 640px) {
  .edge-wave svg {
    height: 34px;
  }
}

.quote-section {
  background: var(--color-bg-alt);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-box {
  max-width: 720px;
  margin: 0 auto;
}
.quote-text {
  max-width: 640px;
  margin: 0 auto;
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.8;
  font-size: 15px;
  position: relative;
  z-index: 1;
}
.quote-source {
  color: var(--color-primary-dark);
  opacity: 0.75;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.quote-section .script-medium {
  position: relative;
  z-index: 1;
}

.couple {
  background: var(--color-bg);
}
.couple .section-blob,
.story .section-blob {
  display: none;
}
.couple .section-blob {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(201, 166, 107, 0.22),
    transparent 70%
  );
  top: -80px;
  right: -70px;
  animation: blobDrift 10s ease-in-out infinite;
}
.couple-panel {
  max-width: 860px;
  margin: 0 auto;
}
.couple-grid {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.couple-photo-wrap {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}
.couple-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -10px 6px 6px -10px;
  border: 1px solid rgba(201, 107, 130, 0.38);
  border-radius: 26px;
  z-index: -1;
}
.couple-photo {
  width: 100%;
  aspect-ratio: 9 / 10;
  height: 400px;
  object-fit: cover;
  border-radius: 22px;
  background: #f5dde4;
  box-shadow:
    10px 12px 0 rgba(232, 165, 181, 0.5),
    0 22px 32px -14px rgba(143, 53, 80, 0.3);
  transition: transform 0.5s ease;
  display: block;
}
.couple-photo-wrap:hover .couple-photo {
  transform: scale(1.02);
}
.couple-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 250px;
  background: rgba(255, 252, 249, 0.95);
  backdrop-filter: blur(6px);
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  border-bottom: 3px solid var(--color-primary);
}
.couple-caption.right {
  text-align: right;
}
.couple-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  margin: 2px 0;
  color: var(--color-primary-dark);
}
.couple-parents {
  font-size: 10.5px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 560px) {
  .couple-photo-wrap {
    max-width: 280px;
  }
  .couple-photo {
    height: auto;
    aspect-ratio: 9 / 10;
  }
}

.story {
  background: var(--color-bg-alt);
  overflow: hidden;
}
.story .section-blob {
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(178, 114, 108, 0.22),
    transparent 70%
  );
  bottom: -100px;
  left: -90px;
  animation: blobDrift 11s ease-in-out infinite reverse;
}

.timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
  background: var(--color-accent);
  opacity: 0.8;
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  align-items: start;
  column-gap: 24px;
  margin-bottom: 34px;
  position: relative;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  position: relative;
  z-index: 1;
}
.timeline-card {
  grid-column: 1;
  grid-row: 1;
  padding: 0;
  text-align: right;
  margin-top: -2px;
}
.timeline-item:nth-child(even) .timeline-card {
  grid-column: 3;
  text-align: left;
  margin-top: 8px;
}
.timeline-year {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: #f6dbe3;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  margin: 2px 0 8px;
  font-size: 19px;
  color: #3a2228;
}
.timeline-card p {
  color: var(--color-muted);
  font-size: 12.5px;
  line-height: 1.75;
  margin: 0;
}
.timeline-card .story-more-btn {
  justify-content: flex-end;
}
.timeline-item:nth-child(even) .timeline-card .story-more-btn {
  justify-content: flex-start;
}

@media (max-width: 700px) {
  .timeline::before {
    left: 17px;
    transform: none;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    grid-template-columns: 34px 1fr;
    column-gap: 16px;
  }
  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    grid-column: 1;
  }
  .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
    text-align: left;
    margin-top: 0;
  }
  .timeline-card .story-more-btn,
  .timeline-item:nth-child(even) .timeline-card .story-more-btn {
    justify-content: flex-start;
  }
}

.story-more-btn {
  margin-top: 14px;
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 2px;
  transition:
    gap 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.story-more-btn i {
  font-size: 10px;
  transition: transform 0.25s ease;
}
.story-more-btn:hover {
  gap: 10px;
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
}
.story-more-btn:hover i {
  transform: translateX(2px);
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(43, 15, 20, 0.301);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.story-modal.active {
  display: flex;
  animation: fadeInCover 0.25s ease;
}
.story-bubble {
  position: relative;
  max-width: 460px;
  width: 100%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 26px;
  padding: 44px 34px 34px;
  box-shadow: 0 30px 70px -18px rgba(43, 15, 20, 0.6);
  text-align: center;
  transform: scale(0.9) translateY(10px);
  animation: bubblePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes bubblePop {
  to {
    transform: scale(1) translateY(0);
  }
}
.story-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 26px 26px 0 0;
}
.story-bubble-emoji {
  font-size: 40px;
  margin-bottom: 10px;
  animation: floatY 3s ease-in-out infinite;
}
.story-bubble h3 {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-primary-dark);
  font-size: 23px;
  margin: 0 0 16px;
}
.story-bubble p {
  color: var(--color-text);
  font-size: 14.5px;
  line-height: 1.85;
  margin: 0;
}
.story-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.25s ease;
}
.story-close:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: rotate(90deg);
}

.text-reveal .tr-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(3px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    filter 0.6s ease;
}
.text-reveal.tr-visible .tr-word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.events {
  background: var(--color-bg);
}
.events.wash-bg {
  background-color: var(--color-bg);
}
.events-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  position: relative;
  z-index: 1;
}
.event-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 26px 26px 28px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.event-emoji {
  font-size: 24px;
  margin-bottom: 10px;
  line-height: 1;
}
.event-card .eyebrow {
  font-size: 9px;
  margin-bottom: 6px;
}
.event-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 20px;
  color: #3a2228;
}
.event-info {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.event-info li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
}
.event-info i {
  color: var(--color-primary);
  margin-top: 3px;
  font-size: 12px;
  width: 14px;
  text-align: center;
}
.event-info strong {
  display: block;
  font-weight: 600;
  color: #3a2228;
  font-size: 13px;
}
.event-info span {
  display: block;
  color: var(--color-muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.event-info .note {
  color: var(--color-muted);
  font-size: 11.5px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary-dark);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  background: #fff;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.rundown {
  max-width: 780px;
  margin: 34px auto 0;
  background: var(--color-bg-alt);
  border-radius: 24px;
  padding: 30px 28px;
  border: 1.5px solid var(--color-accent);
  position: relative;
  z-index: 1;
}
.rundown-title {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 20px;
  color: #3a2228;
}
.accordion-item {
  border: 1.5px solid var(--color-accent);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fdeef3;
}
.accordion-head {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}
.accordion-head i {
  transition: transform 0.35s ease;
  color: var(--color-primary);
}
.accordion-item.open .accordion-head i {
  transform: rotate(180deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 20px;
}
.accordion-item.open .accordion-body {
  max-height: 400px;
  padding: 0 20px 18px;
}
.accordion-body p {
  margin: 6px 0;
  font-size: 13px;
  color: var(--color-muted);
}

.gallery {
  background: var(--color-bg-alt);
}
.gallery-panel {
  max-width: 1160px;
  margin: 0 auto;
}
.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}
.gallery-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
  box-shadow: 0 10px 26px -12px rgba(122, 42, 52, 0.3);
  border: 3px solid var(--color-card);
}
.gallery-photo:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
}
.gallery-grid img:nth-child(2),
.gallery-grid img:nth-child(5) {
  margin-top: 30px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInCover 0.3s ease;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.rsvp {
  background: var(--color-bg);
  overflow: hidden;
}
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(165deg, var(--color-card), #fbf0ea);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}
.form-card.small {
  padding: 26px;
  margin-bottom: 40px;
}
.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  margin-bottom: 8px;
}
input,
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.form-card.small input,
.form-card.small textarea {
  margin-bottom: 14px;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(178, 114, 108, 0.18);
}

.toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.toggle-btn {
  padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-muted);
  transition: all 0.25s ease;
}
.toggle-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 10px 24px -10px rgba(122, 42, 52, 0.5);
}
.btn-primary:hover {
  box-shadow: 0 14px 30px -10px rgba(122, 42, 52, 0.6);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary.small {
  width: auto;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 13px;
}

.thanks-box {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, var(--color-bg-alt), #efd2c6);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  padding: 60px 30px;
  animation: fadeInCover 0.5s ease;
  position: relative;
  z-index: 1;
}
.thanks-box.show {
  display: block;
}
.thanks-emoji {
  font-size: 50px;
  margin-bottom: 14px;
  animation: heartbeat 1.4s ease-in-out infinite;
}
.thanks-box h3 {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
}
.thanks-box p {
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
}

.rsvp .section-blob {
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(201, 166, 107, 0.28),
    transparent 70%
  );
  top: -60px;
  right: -80px;
  animation: blobDrift 9s ease-in-out infinite;
}

.wishes {
  background: var(--color-bg-alt);
}
.wish-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 480px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}
.wish-item {
  display: flex;
  gap: 14px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  border-radius: 20px;
  padding: 18px 20px;
  animation: fadeInCover 0.5s ease;
}
.wish-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.wish-name {
  font-weight: 500;
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--color-primary-dark);
}
.wish-msg {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

.gift {
  background: var(--color-bg);
}
.gift-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}
.gift-card {
  background: linear-gradient(165deg, var(--color-card), #fbf0ea);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 30px 24px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.gift-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-gold);
}
.gift-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}
.gift-emoji {
  font-size: 34px;
  margin-bottom: 12px;
}
.gift-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--color-primary-dark);
}
.gift-card p {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.bank-box {
  background: var(--color-bg-alt);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  margin-bottom: 10px;
}
.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.bank-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.copy-btn {
  background: none;
  border: none;
  color: var(--color-primary-dark);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.bank-number {
  font-family: monospace;
  font-size: 16px;
  margin: 2px 0;
  letter-spacing: 0.05em;
}
.bank-owner {
  font-size: 11px;
  color: var(--color-muted);
  margin: 0;
}

.contact {
  background: var(--color-bg-alt);
  text-align: center;
}
.contact-panel {
  max-width: 760px;
  margin: 0 auto;
}
.contact h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  margin: 4px 0 30px;
  color: var(--color-primary-dark);
}
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
}
.contact-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.contact-card i {
  color: var(--color-primary);
  font-size: 16px;
}
.contact-card span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-muted);
  letter-spacing: 0.1em;
}
.contact-card strong {
  font-size: 12px;
  font-weight: 500;
}

.footer {
  position: relative;
  text-align: center;
  padding: 110px 20px 90px;
  background: linear-gradient(165deg, #5c1f28, #3b1218);
  color: #fff;
}
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-kawung);
  background-size: 90px 90px;
  opacity: 0.5;
  mix-blend-mode: overlay;
  filter: invert(1);
}
.footer > * {
  position: relative;
  z-index: 1;
}
.footer .at1 {
  color: var(--color-gold-light);
}

.footer .eyebrow {
  color: var(--color-gold-light);
}
.footer .script-name {
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.footer-quote {
  max-width: 460px;
  margin: 26px auto 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 14px;
}
.footer-date {
  margin-top: 30px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.7;
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(122, 42, 52, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 60;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px);
}

.petal {
  position: absolute;
  top: -10%;
  font-size: 16px;
  animation: petalFall linear infinite;
  pointer-events: none;
  opacity: 0.85;
}

@media (max-width: 860px) {
  .couple-grid,
  .events-grid,
  .gift-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid img:nth-child(2),
  .gallery-grid img:nth-child(5) {
    margin-top: 0;
  }
  section {
    padding: 64px 18px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 74%;
    max-width: 300px;
    background: var(--color-card);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -10px 0 30px rgba(122, 42, 52, 0.15);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-link {
    color: var(--color-text) !important;
    font-size: 14px;
  }
  .nav-toggle {
    display: flex;
  }
  .navbar:not(.scrolled) .nav-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
  }
  .glass-panel {
    padding: 28px 16px;
    border-radius: 22px;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    column-gap: 14px;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .cd-box {
    min-width: 58px;
    padding: 10px 12px;
  }
  .cd-num {
    font-size: 22px;
  }
  .contact-card {
    width: 100%;
    justify-content: flex-start;
  }
  .hero-corner {
    display: none;
  }
}
