/* ===================================================
   Yuni & Rizal — Wedding Invitation
   Mobile-first. Desktop shows a centered phone frame.
=================================================== */

:root {
  --gold: #d9c9a3;
  --gold-soft: #e9dfc7;
  --cream: #f7f3ea;
  --ink: #1c1b18;
  --sky: #b7d0dc;
  --story-bg: #fdfbf6;
  --story-ink: #2b2620;
  --story-accent-1: #c1875a;
  --story-accent-2: #cf7f9e;
  --story-accent-3: #6f9cbd;
  --frame-width: 430px;
  --frame-height: 932px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

/* Locked while the cover hasn't been opened yet — prevents scrolling past
   it on both mobile (html/body scroll) and desktop (.scroll-area scroll). */
html.is-locked,
html.is-locked body {
  overflow: hidden;
}

.scroll-area.is-locked {
  overflow: hidden;
}

body {
  font-family: "Cormorant Garamond", serif;
  background: #0e0e0c;
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Desktop frame (forces mobile-sized viewport) ---------- */
.device-frame {
  position: relative;
  width: 100%;
  max-width: var(--frame-width);
  margin: 0 auto;
  overflow-x: hidden;
  background: #000;
}

.scroll-area {
  width: 100%;
}

/* ---------- Intro stage: cover + hero crossfade, one screen tall ---------- */
.intro-stage {
  position: relative;
  width: 100%;
  height: 100vh;
}

@media (min-width: 540px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 0;
    background:
      radial-gradient(circle at 50% 20%, #1c1c18 0%, #0a0a08 70%);
  }

  .device-frame {
    height: var(--frame-height);
    border-radius: 28px;
    box-shadow:
      0 0 0 8px #171612,
      0 0 0 9px #3a362a,
      0 30px 60px -15px rgba(0, 0, 0, 0.7);
    /* Establishes a containing block so position:fixed children (the music
       player) stay pinned to the phone frame instead of the browser window. */
    transform: translateZ(0);
  }

  .scroll-area {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .scroll-area::-webkit-scrollbar {
    display: none;
  }

  .intro-stage {
    height: var(--frame-height);
  }
}

/* ---------- Cover section ---------- */
.cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.cover.is-hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.cover__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cover__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.cover__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 8, 0.55) 0%,
      rgba(10, 10, 8, 0.05) 22%,
      rgba(10, 10, 8, 0.05) 55%,
      rgba(10, 10, 8, 0.35) 75%,
      rgba(8, 8, 6, 0.88) 100%
    );
}

.cover__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 48px 28px 36px;
  text-align: center;
}

/* ---------- Top: eyebrow + names ---------- */
.cover__top {
  animation: fadeDown 1.1s ease both;
}

.eyebrow {
  font-family: "Marcellus", serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 10px;
}

.couple-names {
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.15;
  color: #fffdf7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.couple-names span {
  display: inline-block;
  font-size: 0.6em;
  margin: 0 4px;
  color: var(--gold-soft);
  vertical-align: middle;
}

/* ---------- Bottom: guest + CTA ---------- */
.cover__bottom {
  animation: fadeUp 1.1s ease both;
  animation-delay: 0.15s;
}

.guest-label {
  font-family: "Marcellus", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.guest-name {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  color: #fffdf7;
  margin-bottom: 20px;
}

.divider {
  width: 64px;
  height: 1px;
  margin: 0 auto 22px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold) 20%,
    var(--gold) 80%,
    transparent
  );
}

.open-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid rgba(233, 223, 199, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  font-family: "Marcellus", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.open-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.open-btn:active {
  transform: scale(0.96);
}

.open-btn__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.hashtag {
  margin-top: 18px;
  font-family: "Marcellus", serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.65);
}

/* ---------- Hero / opening section ---------- */
.hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 1s ease 0.25s;
}

.hero.is-visible {
  opacity: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 8, 0.6) 0%,
      rgba(10, 10, 8, 0.1) 20%,
      rgba(10, 10, 8, 0.15) 55%,
      rgba(8, 8, 6, 0.85) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 40px 26px 30px;
  text-align: center;
}

.hero__top {
  animation: fadeDown 1s ease both;
  animation-delay: 0.3s;
}

.eyebrow--soft {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--gold-soft);
  margin-bottom: 6px;
}

.couple-names--sm {
  font-size: 44px;
}

.hero__bottom {
  display: flex;
  align-items: stretch;
  gap: 18px;
  animation: fadeUp 1s ease both;
  animation-delay: 0.4s;
}

.countdown {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, auto);
  row-gap: 16px;
  column-gap: 26px;
  padding-top: 4px;
  padding-bottom: 14px;
  text-align: left;
}

.countdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(247, 243, 234, 0.22);
}

.countdown__num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 26px;
  color: #fffdf7;
  line-height: 1.1;
}

.countdown__label {
  font-family: "Marcellus", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.save-date {
  flex-shrink: 0;
  width: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-left: 18px;
  border-left: 1px solid rgba(247, 243, 234, 0.22);
  text-align: center;
}

.save-date__date {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.03em;
  color: #fffdf7;
}

.save-date__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(233, 223, 199, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  font-family: "Marcellus", serif;
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.save-date__btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.save-date__btn:active {
  transform: scale(0.96);
}

.save-date__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------- Animations ---------- */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 700px) {
  .couple-names {
    font-size: 52px;
  }
}

/* ---------- Quote + photo-stack section ---------- */
.quote-section {
  position: relative;
  width: 100%;
  background: #201f1c;
  padding: 56px 26px 40px;
  text-align: center;
}

.quote-section__inner {
  max-width: 320px;
  margin: 0 auto 44px;
}

.quote-text {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.85;
  color: var(--cream);
  opacity: 0.92;
  margin-bottom: 18px;
}

.quote-source {
  font-family: "Marcellus", serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}

/* ---------- Photo stack carousel ---------- */
.photo-stack {
  margin-bottom: 34px;
}

.photo-stack__viewport {
  position: relative;
  height: 300px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.photo-stack__viewport:active {
  cursor: grabbing;
}

.photo-stack__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 270px;
  margin: -135px 0 0 -110px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.55s cubic-bezier(0.22, 0.68, 0, 1.01), opacity 0.55s ease;
}

.photo-stack__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.photo-stack__card[data-position="active"] {
  transform: translate(0, 0) scale(1);
  opacity: 1;
  z-index: 3;
}

.photo-stack__card[data-position="prev"] {
  transform: translate(-72px, 14px) scale(0.86);
  opacity: 0.6;
  z-index: 2;
}

.photo-stack__card[data-position="next"] {
  transform: translate(72px, 14px) scale(0.86);
  opacity: 0.6;
  z-index: 2;
}

.photo-stack__card[data-position="hidden"] {
  transform: translate(0, 14px) scale(0.7);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.photo-stack__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.photo-stack__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(247, 243, 234, 0.3);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.photo-stack__dot.is-active {
  background: var(--gold-soft);
  transform: scale(1.3);
}

/* ---------- Sticky music player (fixed to the phone frame's bottom-left) ---------- */
.music-player {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 234, 0.35);
  background: rgba(20, 19, 17, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.25s ease;
}

.music-player:hover {
  background: rgba(20, 19, 17, 0.75);
}

.music-player svg {
  width: 19px;
  height: 19px;
}

.music-player.is-playing svg {
  animation: spin 4s linear infinite;
}

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

/* ---------- The Bride & The Groom section ---------- */
.people-section {
  position: relative;
  width: 100%;
  background: #14130f;
}

.people-section__header {
  padding: 18px 20px;
  background: #161512;
  text-align: center;
}

.people-section__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: #fffdf7;
}

.people-card {
  display: flex;
  align-items: stretch;
  min-height: 480px;
}

.people-card__label {
  width: 60px;
  flex-shrink: 0;
  background: var(--cream);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.people-card__label-main {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.05em;
}

.people-card__label-sub {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.people-card__photo {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.people-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

.people-card__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(8, 8, 6, 0.88) 0%,
      rgba(8, 8, 6, 0.25) 42%,
      rgba(8, 8, 6, 0.05) 65%,
      transparent 100%
    );
}

.people-card__info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  text-align: left;
}

.people-card__nick {
  font-family: "Alex Brush", cursive;
  font-size: 32px;
  line-height: 1;
  color: #fffdf7;
  margin-bottom: 4px;
}

.people-card__name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 16px;
  color: #fffdf7;
  margin-bottom: 8px;
}

.people-card__parents {
  font-family: "Cormorant Garamond", serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

.people-card__ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(247, 243, 234, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-family: "Marcellus", serif;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.people-card__ig svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ---------- Akad / event section ---------- */
.event-section {
  padding: 32px 18px 44px;
  background: #0b0b09;
}

.event-card {
  border-radius: 20px;
  overflow: hidden;
  background: #1b1a16;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.event-card__photo {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.event-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}

.event-card__body {
  display: flex;
  align-items: stretch;
}

.event-card__label {
  width: 54px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 0;
}

.event-card__label::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: 0;
  width: 1px;
  background: rgba(247, 243, 234, 0.18);
}

/* Mirrored layout: details on the left, label on the right (e.g. Resepsi).
   DOM order is already [details, label], so plain row direction places the
   label on the right — only the divider needs to move to its other edge. */
.event-card__body--reverse .event-card__label::after {
  left: 0;
  right: auto;
}

.event-card__label-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 23px;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.event-card__details {
  flex: 1;
  padding: 28px 24px 30px;
  text-align: center;
}

.event-card__day {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: #fffdf7;
  margin-bottom: 14px;
}

.event-hr {
  width: 46px;
  height: 1px;
  margin: 0 auto;
  background: rgba(247, 243, 234, 0.25);
}

.event-card__date-num {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 44px;
  color: #fffdf7;
  line-height: 1;
  margin: 14px 0;
}

.event-card__month {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 16px;
  color: #fffdf7;
  margin: 14px 0 12px;
}

.event-card__time {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  color: var(--sky);
  margin-bottom: 10px;
}

.event-card__location {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--sky);
  margin-bottom: 20px;
}

.event-card__maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(233, 223, 199, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-family: "Marcellus", serif;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.25s ease;
}

.event-card__maps-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.event-card__maps-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------- Scroll-reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.68, 0, 1.01),
    transform 0.9s cubic-bezier(0.22, 0.68, 0, 1.01);
}

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

.reveal--delay {
  transition-delay: 0.15s;
}

/* ---------- Parallax photos ---------- */
.parallax-img {
  will-change: transform;
  transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .parallax-img {
    transform: none !important;
  }

  .story-slide {
    transition: none;
  }
}

/* ---------- Love Story section (deliberately light, a break from the dark theme) ---------- */
.story-section {
  background: var(--story-bg);
  color: var(--story-ink);
  padding: 48px 24px 8px;
  text-align: center;
}

.story-title {
  font-size: 32px;
  line-height: 1;
}

.story-title__serif {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  color: var(--story-ink);
}

.story-title__script {
  font-family: "Alex Brush", cursive;
  font-size: 1.35em;
  margin-left: 8px;
  color: var(--story-ink);
}

.story-title__rule {
  width: 56px;
  height: 1px;
  margin: 16px auto 36px;
  background: rgba(43, 38, 32, 0.25);
}

.story-carousel {
  position: relative;
  padding-bottom: 44px;
}

.story-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 0.68, 0, 1.01);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.story-carousel__track:active {
  cursor: grabbing;
}

.story-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.22, 0.68, 0, 1.01),
    transform 0.6s cubic-bezier(0.22, 0.68, 0, 1.01);
  pointer-events: none;
}

.story-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.story-slide__photo {
  width: 100%;
  height: 400px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px -18px rgba(43, 38, 32, 0.3);
}

.story-slide__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.story-slide__title {
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  font-size: 34px;
  color: var(--story-ink);
  margin: 30px 0 16px;
}

.story-slide__text {
  font-family: "Cormorant Garamond", serif;
  font-size: 14.5px;
  line-height: 1.9;
  padding: 0 8px;
}

.story-slide__text span {
  margin-right: 0.3em;
}

.story-text__c1 {
  color: var(--story-ink);
}

.story-text__c2 {
  color: var(--story-accent-1);
}

.story-text__c3 {
  color: var(--story-accent-3);
}

.story-nav-btn {
  position: absolute;
  top: 400px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(43, 38, 32, 0.08);
  color: var(--story-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.story-nav-btn:hover {
  background: rgba(43, 38, 32, 0.16);
}

.story-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: rgba(43, 38, 32, 0.08);
}

.story-nav-btn--prev {
  left: -6px;
}

.story-nav-btn--next {
  right: -6px;
}

.story-nav-btn svg {
  width: 16px;
  height: 16px;
}

.story-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.story-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(43, 38, 32, 0.22);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.story-dot.is-active {
  background: var(--story-ink);
  transform: scale(1.3);
}

/* ---------- Wedding Gift section ---------- */
.gift-section {
  padding: 48px 24px 56px;
  background: #0b0b09;
  text-align: center;
}

.gift-eyebrow {
  font-family: "Marcellus", serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 10px;
}

.gift-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  color: #fffdf7;
  margin-bottom: 18px;
}

.gift-desc {
  max-width: 320px;
  margin: 0 auto 32px;
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(247, 243, 234, 0.75);
}

.gift-desc em {
  color: var(--gold-soft);
  font-style: italic;
}

.gift-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gift-card {
  border-radius: 18px;
  padding: 26px 22px;
  background: #1b1a16;
  border: 1px solid rgba(247, 243, 234, 0.08);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.6);
}

.gift-card__bank {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold-soft);
  margin-bottom: 16px;
}

.gift-card__bank svg {
  width: 20px;
  height: 20px;
}

.gift-card__bank-name {
  font-family: "Marcellus", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gift-card__number {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: #fffdf7;
  margin-bottom: 6px;
}

.gift-card__holder {
  font-family: "Cormorant Garamond", serif;
  font-size: 13.5px;
  color: rgba(247, 243, 234, 0.65);
  margin-bottom: 20px;
}

.gift-card__copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(233, 223, 199, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-family: "Marcellus", serif;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.gift-card__copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.gift-card__copy-btn:active {
  transform: scale(0.96);
}

.gift-card__copy-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.gift-card__copy-btn.is-copied {
  background: rgba(179, 209, 165, 0.18);
  border-color: rgba(179, 209, 165, 0.55);
  color: #d3ecc9;
}

/* ---------- Wishes / Ucapan & Doa section ---------- */
.wishes-section {
  padding: 48px 24px 56px;
  background: #14130f;
  text-align: center;
}

.wishes-eyebrow {
  font-family: "Marcellus", serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 10px;
}

.wishes-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  color: #fffdf7;
  margin-bottom: 12px;
}

.wishes-desc {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  color: rgba(247, 243, 234, 0.7);
  margin-bottom: 30px;
}

.wishes-form {
  text-align: left;
  padding: 24px 20px;
  border-radius: 18px;
  background: #1b1a16;
  border: 1px solid rgba(247, 243, 234, 0.08);
  margin-bottom: 32px;
}

.wishes-form__field {
  margin-bottom: 18px;
}

.wishes-form__field:last-of-type {
  margin-bottom: 22px;
}

.wishes-form__field label,
.wishes-form__label {
  display: block;
  font-family: "Marcellus", serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 9px;
}

.wishes-form__field input[type="text"],
.wishes-form__field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(247, 243, 234, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  resize: vertical;
}

.wishes-form__field input[type="text"]::placeholder,
.wishes-form__field textarea::placeholder {
  color: rgba(247, 243, 234, 0.4);
}

.wishes-form__field input[type="text"]:focus,
.wishes-form__field textarea:focus {
  outline: none;
  border-color: rgba(233, 223, 199, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

.wishes-attendance {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wishes-attendance input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wishes-attendance label {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(247, 243, 234, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 243, 234, 0.75);
  font-family: "Marcellus", serif;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wishes-attendance input[type="radio"]:checked + label {
  background: rgba(233, 223, 199, 0.16);
  border-color: rgba(233, 223, 199, 0.6);
  color: #fffdf7;
}

.wishes-attendance input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.wishes-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  border: 1px solid rgba(233, 223, 199, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-family: "Marcellus", serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.wishes-form__submit:hover {
  background: rgba(255, 255, 255, 0.16);
}

.wishes-form__submit:active {
  transform: scale(0.98);
}

.wishes-form__submit svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.wishes-list {
  max-height: 420px;
  overflow-y: auto;
  text-align: left;
  scrollbar-width: none;
}

.wishes-list::-webkit-scrollbar {
  display: none;
}

.wishes-empty {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(247, 243, 234, 0.55);
  text-align: center;
  padding: 20px 0;
}

.wish-item {
  padding: 16px 18px;
  border-radius: 14px;
  background: #1b1a16;
  border: 1px solid rgba(247, 243, 234, 0.08);
  margin-bottom: 12px;
}

.wish-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.wish-item__name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 15.5px;
  color: #fffdf7;
}

.wish-item__badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: "Marcellus", serif;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.wish-item__badge--hadir {
  background: rgba(160, 199, 145, 0.18);
  color: #bfe0ae;
}

.wish-item__badge--tidak_hadir {
  background: rgba(199, 145, 145, 0.18);
  color: #e0aeae;
}

.wish-item__badge--ragu {
  background: rgba(199, 178, 145, 0.18);
  color: #e0cdae;
}

.wish-item__message {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 243, 234, 0.85);
  margin-bottom: 8px;
}

.wish-item__time {
  font-family: "Marcellus", serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.4);
}

/* ---------- Best Moment gallery ---------- */
.gallery-section {
  background: var(--story-bg);
  padding: 48px 0 0;
  text-align: center;
}

.gallery-title {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 28px;
}

.gallery-title__serif {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  color: var(--story-ink);
}

.gallery-title__script {
  font-family: "Alex Brush", cursive;
  font-size: 1.35em;
  margin-left: 8px;
  color: var(--story-ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Thank You / closing section ---------- */
.thanks-section {
  background: var(--story-bg);
  color: var(--story-ink);
  padding: 56px 32px 64px;
  text-align: center;
}

.thanks-note {
  max-width: 300px;
  margin: 0 auto 34px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(43, 38, 32, 0.75);
}

.thanks-signature-label {
  margin-top: 30px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(43, 38, 32, 0.7);
}

.thanks-names {
  margin-top: 8px;
  font-family: "Alex Brush", cursive;
  font-size: 40px;
  color: var(--story-ink);
}

/* ===================================================
   Added for the Laravel integration (not in the original static template)
=================================================== */

/* ---------- Back to top (fixed to the phone frame's bottom-right,
   mirroring .music-player's bottom-left placement/palette) ---------- */
#btn-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 234, 0.35);
  background: rgba(20, 19, 17, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  cursor: pointer;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .25s ease;
}

#btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#btn-back-to-top:hover {
  background: rgba(20, 19, 17, 0.75);
}

#btn-back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Gallery photo preview (lightbox) — same convention used
   across every other template this app ships ---------- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}

.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, .25);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, .25);
}

.gallery-lightbox-prev {
  left: 16px;
}

.gallery-lightbox-next {
  right: 16px;
}
