@font-face {
  font-family: 'Farmhouse';
  src:
    url('/fonts/Farmhouse.ttf') format('truetype'),
    url('/fonts/Farmhouse.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Caslon Text';
  src: url('/fonts/LibreCaslonText-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Caslon Text';
  src: url('/fonts/LibreCaslonText-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Caslon Text';
  src: url('/fonts/LibreCaslonText-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-paper: #e9eaea;
  --color-paper-soft: #f5f3ef;
  --color-crimson: #b31b21;
  --color-crimson-bright: #cb2127;
  --color-green: #096935;
  --color-backdrop: #173324;
  --color-ink: #2c1415;
  --font-serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-script: 'Farmhouse', 'Sacramento', cursive;
  --radius-pill: 999px;
  --radius-card: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-bottom: 72px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  background-color: var(--color-backdrop);
  color: var(--color-crimson);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

body.is-locked,
body.is-opening-book {
  height: 100dvh;
  overflow: hidden;
}

body.is-locked .page-shell,
body.is-opening-book .page-shell {
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  align-items: center;
  overflow: hidden;
}

body.is-locked .invitation-canvas,
body.is-opening-book .invitation-canvas {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

body.is-locked .section-cover,
body.is-opening-book .section-cover {
  height: 100%;
  min-height: 0;
  padding: clamp(38px, 6dvh, 70px) 24px clamp(36px, 5.5dvh, 62px);
}

body.is-locked .cover-illustration-wrap,
body.is-opening-book .cover-illustration-wrap {
  width: min(70%, 240px, 31dvh);
}

body.is-locked .invitation-content {
  display: none;
}

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

button,
input,
textarea,
a {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shell and responsive canvas */
.page-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  overflow-x: clip;
}

.desktop-sidebar {
  display: none;
}

.invitation-canvas {
  width: 100%;
  min-height: 100dvh;
  background-color: var(--color-paper);
  background-image: url('/assets/texture.webp?v=20261203r');
  background-repeat: repeat-y;
  background-size: 100% auto;
  position: relative;
  overflow-x: hidden;
}

.invitation-content {
  position: relative;
  overflow: clip;
}

.section {
  position: relative;
  width: 100%;
  overflow: visible;
  contain: style;
}

/* Shared typography and controls */
.section-heading {
  margin: 0 0 18px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.1rem, 8.5vw, 3rem);
  line-height: 1.08;
  color: var(--color-crimson);
  position: relative;
  z-index: 3;
}

.pill-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 26px;
  border: 1.5px solid var(--color-crimson);
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.72);
  color: var(--color-crimson);
  text-decoration: none;
  font-size: clamp(1rem, 3.8vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pill-outline-btn:hover,
.pill-outline-btn:active {
  background-color: var(--color-crimson);
  color: #ffffff;
}

.pill-btn-lg {
  padding: 10px 34px;
  font-size: clamp(1.05rem, 4vw, 1.2rem);
}

.pill-btn-block {
  width: 100%;
  text-align: center;
}

.btn-solid-crimson {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 1.5px solid var(--color-crimson);
  border-radius: var(--radius-pill);
  background-color: var(--color-crimson);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-solid-crimson:hover {
  background-color: #8f1419;
}

.pill-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 1.5px solid var(--color-crimson);
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.78);
  color: var(--color-crimson);
  font-size: clamp(0.95rem, 3.6vw, 1.08rem);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pill-tab.is-active {
  background-color: var(--color-crimson);
  color: #ffffff;
}

.frame-bg-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* Section 1: cover */
.section-cover {
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 76px 28px 68px;
}

.cover-paper-backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--color-paper);
  background-image: url('/assets/texture.webp?v=20261203r');
  background-repeat: repeat-y;
  background-size: 100% auto;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.cover-alas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  z-index: 1;
}

.cover-book-shadow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    rgba(24, 10, 10, 0.36) 0%,
    rgba(24, 10, 10, 0.14) 38%,
    rgba(24, 10, 10, 0) 76%
  );
}

.cover-book-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
  perspective: 1500px;
  perspective-origin: left center;
}

.cover-book-door {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.cover-book-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cover-book-front::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 12px;
  z-index: 4;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(0, 0, 0, 0.16) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.cover-book-back {
  transform: rotateY(180deg);
}

.cover-red-frame-back {
  filter: brightness(0.8) saturate(0.95);
}

.cover-florals-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}

.section-cover.is-book-opening {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  background: transparent;
}

.section-cover.is-book-opening .cover-paper-backdrop {
  animation: coverBackdropFade 0.85s ease 0.28s forwards;
}

.section-cover.is-book-opening .cover-book-door {
  animation: bookCoverOpen 1.15s cubic-bezier(0.28, 0.04, 0.2, 1) forwards;
}

.section-cover.is-book-opening .cover-book-shadow {
  animation: bookShadowSweep 1.15s ease-out forwards;
}

.section-cover.is-book-opening .cover-floral-top {
  animation: floralExitTop 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-cover.is-book-opening .cover-floral-bottom {
  animation: floralExitBottom 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-cover.is-book-opening .cover-out-up {
  animation: assetOutUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-cover.is-book-opening .cover-out-zoom {
  animation: assetOutZoom 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-cover.is-book-opening .cover-out-down {
  animation: assetOutDown 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-cover.is-book-opened {
  display: none;
}

.cover-red-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 2;
}

.cover-floral-top {
  position: absolute;
  top: -6px;
  left: -3%;
  width: 106%;
  max-width: none;
  z-index: 3;
}

.cover-floral-bottom {
  position: absolute;
  bottom: -8px;
  left: -3%;
  width: 106%;
  max-width: none;
  z-index: 3;
}

.cover-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cover-subtitle {
  margin: 0;
  font-size: clamp(1rem, 4vw, 1.2rem);
  letter-spacing: 0.14em;
  color: var(--color-crimson);
}

.cover-title {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.9rem, 12vw, 3.85rem);
  line-height: 1.05;
  color: var(--color-crimson);
}

.cover-illustration-wrap {
  width: min(76%, 270px);
  margin: 4px auto 6px;
}

.cover-illustration {
  width: 100%;
  height: auto;
}

.cover-guest-box {
  margin: 4px 0 4px;
  padding: 0 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 3.9vw, 1.12rem);
  line-height: 1.3;
  color: var(--color-crimson);
  text-align: center;
  max-width: 100%;
}

.cover-guest-name {
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

.btn-open-invitation {
  min-height: 46px;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-crimson);
  background-color: var(--color-crimson);
  color: #ffffff;
  font-size: clamp(1.1rem, 4.4vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 2px;
  box-shadow: 0 4px 12px rgba(179, 27, 33, 0.22);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn-open-invitation:hover {
  background-color: #93151a;
  transform: translateY(-1px);
}

.cover-date-code {
  margin: 4px 0 0;
  font-size: clamp(1.05rem, 4.2vw, 1.3rem);
  letter-spacing: 0.28em;
  color: var(--color-crimson);
  font-weight: 500;
}

/* Section 2: Ar-Rum Ayat 21 */
.section-ayat {
  padding: 0 0 52px;
  margin-top: -3px;
  position: relative;
  z-index: 4;
}

.ayat-floral-top {
  width: 106%;
  max-width: none;
  margin: -6px 0 8px -3%;
}

.ayat-frame-box {
  position: relative;
  width: 100%;
  max-width: 432px;
  padding: 0 8px;
  margin: 0 auto;
}

.ayat-frame-img {
  width: 100%;
  height: auto;
}

.ayat-text-overlay {
  position: absolute;
  inset: 31% 18% 16% 19%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 18px;
}

.ayat-quote {
  margin: 0;
  font-size: clamp(0.72rem, 2.7vw, 0.86rem);
  line-height: 1.44;
  max-width: 248px;
  color: var(--color-crimson);
}

.ayat-source {
  margin: auto 0 0;
  padding-right: 11%;
  padding-bottom: 3%;
  font-size: clamp(1.12rem, 4.5vw, 1.4rem);
  font-weight: 700;
  color: var(--color-crimson);
}

/* Section 3: bride and groom profiles */
.section-mempelai {
  padding: 36px 20px 56px;
}

.couple-card {
  position: relative;
  margin-bottom: 18px;
}

.couple-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.couple-row-reverse {
  justify-content: space-between;
}

.couple-photo-wrap {
  flex: 0 0 44%;
  max-width: 185px;
}

.couple-photo {
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.couple-photo-left .couple-photo {
  transform: rotate(-5deg);
}

.couple-photo-right .couple-photo {
  transform: rotate(5deg);
}

.couple-photo-wrap:hover .couple-photo {
  transform: rotate(0deg) scale(1.02);
}

.couple-info {
  position: relative;
  flex: 1;
  min-width: 0;
}

.couple-info-left {
  text-align: left;
}

.couple-floral {
  position: absolute;
  width: 125px;
  opacity: 0.92;
  pointer-events: none;
  z-index: 0;
}

.couple-floral-right {
  top: -30px;
  right: -8px;
  width: 118px;
}

.couple-floral-left {
  top: -36px;
  left: auto;
  right: -8px;
  width: 110px;
  opacity: 0.86;
}

.couple-name {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.15rem, 8.2vw, 2.75rem);
  line-height: 0.98;
  color: var(--color-crimson);
}

.couple-parents {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(0.92rem, 3.5vw, 1.05rem);
  line-height: 1.38;
  color: var(--color-crimson);
}

.couple-address {
  margin: 18px 0 10px;
  text-align: center;
  font-size: clamp(0.95rem, 3.7vw, 1.12rem);
  color: var(--color-crimson);
}

.couple-ig-wrap {
  display: flex;
  justify-content: center;
}

.couple-divider {
  display: flex;
  justify-content: center;
  margin: 24px 0 28px;
}

.couple-divider-logo {
  width: 56px;
  height: auto;
  mix-blend-mode: multiply;
}

/* Section 4: Cerita Kami and audio player */
.section-cerita {
  padding: 36px 6px 56px;
}

.spotify-frame-box {
  position: relative;
  width: 100%;
  max-width: 428px;
  aspect-ratio: 870 / 495;
  margin: 0 auto 20px;
}

.frame-overlay-top {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.spotify-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 10.5% 14.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.68);
  -webkit-mask-image: url('/assets/4-frame-spotify-mask.webp');
  mask-image: url('/assets/4-frame-spotify-mask.webp');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  isolation: isolate;
  transform: translateZ(0);
}

.spotify-inner.has-spotify-embed {
  padding: 0 6.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.spotify-inner.has-spotify-embed iframe,
.spotify-iframe {
  display: block;
  width: 100%;
  height: 80px;
  border: 0;
  border-radius: 12px;
}

.spotify-embed-mount {
  width: 100%;
  height: 80px;
}

.spotify-direct-wrap {
  text-align: center;
  margin: -6px 0 14px;
}

.built-in-player {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 4px;
  background: transparent;
  border: 0;
}

.player-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.player-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
  min-width: 0;
}

.player-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-green);
  font-weight: 700;
}

.player-title {
  font-size: clamp(0.98rem, 3.8vw, 1.12rem);
  color: var(--color-crimson);
}

.player-artist {
  font-size: clamp(0.8rem, 3vw, 0.88rem);
  color: var(--color-ink);
}

.music-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  flex-shrink: 0;
}

.music-eq span {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--color-green);
  opacity: 0.45;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.built-in-player.is-playing .music-eq span {
  opacity: 1;
  background-color: var(--color-crimson);
  animation: eqBounce 0.9s ease-in-out infinite alternate;
}

.built-in-player.is-playing .music-eq span:nth-child(2) {
  animation-delay: 0.18s;
}

.built-in-player.is-playing .music-eq span:nth-child(3) {
  animation-delay: 0.36s;
}

.built-in-player.is-playing .music-eq span:nth-child(4) {
  animation-delay: 0.12s;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-play-btn {
  min-height: 44px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-green);
  background-color: var(--color-green);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.player-play-btn:hover {
  background-color: #064d26;
}

.player-progress-track {
  flex: 1;
  height: 6px;
  background-color: rgba(9, 105, 53, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.player-progress-fill {
  width: 0%;
  height: 100%;
  background-color: var(--color-crimson);
  transition: width 0.25s linear;
}

/* Cerita Kami 3-Step Botanical Timeline */
.story-timeline {
  position: relative;
  max-width: 380px;
  margin: 26px auto 0;
  padding: 6px 0;
}

.story-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 24px;
  left: 50%;
  width: 2.5px;
  transform: translateX(-50%);
  background-color: var(--color-green);
  border-radius: 999px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-green);
  margin: 5px auto 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(233, 234, 234, 0.85);
}

.timeline-copy {
  font-size: clamp(0.84rem, 3.1vw, 0.96rem);
  line-height: 1.38;
  color: var(--color-crimson);
}

.timeline-copy.is-right {
  text-align: left;
}

.timeline-copy.is-left {
  text-align: right;
}

.timeline-title {
  margin: 0 0 3px;
  font-size: clamp(0.95rem, 3.6vw, 1.08rem);
  font-weight: 700;
  color: var(--color-crimson);
}

.timeline-text {
  margin: 0;
}

.timeline-flower-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2px;
}

.timeline-flower-img {
  width: clamp(76px, 22vw, 102px);
  height: auto;
  mix-blend-mode: multiply;
}

/* Section 5: wedding countdown and dress code */
.section-countdown {
  padding: clamp(82px, 22vw, 108px) 20px 64px;
  text-align: center;
}

.countdown-floral-top {
  position: absolute;
  top: clamp(-28px, -6vw, -20px);
  left: -2%;
  width: 104%;
  max-width: none;
  pointer-events: none;
  z-index: 1;
}

.section-countdown .countdown-floral-top.floral-sway-slow {
  animation-name: countdownFloralSway;
  animation-duration: 5.4s;
}

.section-countdown .section-heading {
  font-size: clamp(1.48rem, 5.5vw, 1.98rem);
  line-height: 1.18;
  max-width: none;
  margin: 0 auto clamp(46px, 12vw, 68px);
}

.countdown-day {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 4.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-crimson);
  position: relative;
  z-index: 3;
}

.countdown-date {
  margin: 0 0 28px;
  font-size: clamp(1.3rem, 5vw, 1.72rem);
  line-height: 1.25;
  color: var(--color-crimson);
  position: relative;
  z-index: 3;
}

.countdown-frame-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 28px;
  z-index: 3;
}

.countdown-inner {
  position: absolute;
  inset: 14% 9%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-kicker {
  margin: 0 0 4px;
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: var(--color-crimson);
}

.countdown-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(4px, 2vw, 10px);
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.cd-num {
  font-size: clamp(1.65rem, 7.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-crimson);
  font-variant-numeric: tabular-nums;
  transition: transform 0.22s ease;
}

.cd-num.is-ticking {
  transform: scale(1.06);
}

.cd-unit {
  margin-top: 4px;
  font-size: clamp(0.75rem, 2.8vw, 0.92rem);
  color: var(--color-crimson);
}

.cd-sep {
  font-size: clamp(1.5rem, 6.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-crimson);
}

.countdown-status-note {
  margin: 6px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-green);
}

.save-date-actions {
  margin-bottom: 26px;
  position: relative;
  z-index: 3;
}

.dresscode-wrap {
  max-width: 336px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dresscode-swatches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.swatch-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-crimson-bright);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dresscode-pill {
  margin: 0;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background-color: var(--color-crimson-bright);
  color: #ffffff;
  font-size: clamp(0.76rem, 3.1vw, 0.92rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Section 6: event schedule and embedded map */
.section-acara {
  padding: 44px 20px 56px;
}

.acara-floral-top {
  position: absolute;
  top: 10px;
  left: -34px;
  width: 146px;
  pointer-events: none;
  z-index: 1;
}

.acara-floral-bottom {
  position: absolute;
  bottom: -8px;
  right: -48px;
  width: 174px;
  pointer-events: none;
  z-index: 1;
}

.event-block {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.lokasi-embedded {
  position: relative;
  z-index: 2;
  text-align: center;
}

.event-frame-box {
  position: relative;
  width: 100%;
  max-width: 375px;
  margin: 0 auto 16px;
}

.event-inner {
  position: absolute;
  inset: 14% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
}

.event-date {
  margin: 0;
  font-size: clamp(1rem, 4.1vw, 1.25rem);
  color: var(--color-crimson);
}

.event-time {
  margin: 0;
  font-size: clamp(1.1rem, 4.4vw, 1.38rem);
  font-weight: 700;
  color: var(--color-crimson);
}

.event-address {
  margin: 2px 0 0;
  font-size: clamp(0.84rem, 3.2vw, 1rem);
  line-height: 1.35;
  color: var(--color-crimson);
}

.event-action-wrap {
  display: flex;
  justify-content: center;
}

/* Section 7: location frame */
.section-lokasi {
  padding: 12px 20px 56px;
  text-align: center;
}

.lokasi-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 390px;
  aspect-ratio: 1010 / 973;
  margin: 0 auto 18px;
}

.lokasi-map-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #dde6df;
  z-index: 1;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: url('/assets/7-frame-lokasi-mask.webp');
  mask-image: url('/assets/7-frame-lokasi-mask.webp');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.lokasi-map-viewport iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lokasi-frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.lokasi-details {
  max-width: 360px;
  margin: 0 auto;
}

.lokasi-venue-name {
  margin: 0;
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  font-weight: 700;
  color: var(--color-crimson);
}

.lokasi-venue-address {
  margin: 4px 0 18px;
  font-size: clamp(1rem, 3.8vw, 1.15rem);
  line-height: 1.4;
  color: var(--color-crimson);
  white-space: pre-line;
}

/* Section 8: RSVP attendance form */
.section-rsvp {
  padding: 68px 28px 72px;
}

.rsvp-floral {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.rsvp-floral-tl {
  top: 0;
  left: 0;
  width: 82px;
  animation-delay: 0s;
}

.rsvp-floral-mr {
  top: 120px;
  right: -12px;
  width: 92px;
  animation-delay: -1.1s;
}

.rsvp-floral-bl {
  bottom: 92px;
  left: -8px;
  width: 84px;
  animation-delay: -2.2s;
}

.rsvp-floral-br {
  bottom: -4px;
  right: -12px;
  width: 96px;
  animation-delay: -3.3s;
}

.underline-form {
  position: relative;
  z-index: 3;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: clamp(1.02rem, 4vw, 1.18rem);
  color: var(--color-crimson);
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 8px;
  border: 0;
  border-bottom: 1.5px solid var(--color-crimson);
  border-radius: 4px 4px 0 0;
  background-color: rgba(246, 245, 242, 0.88);
  color: var(--color-ink);
  font-size: 1rem;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(44, 20, 21, 0.56);
}

.rsvp-radio-group {
  border: 0;
  padding: 6px 0 4px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  font-size: clamp(1.05rem, 4.1vw, 1.2rem);
  color: var(--color-crimson);
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  width: 24px;
  height: 24px;
}

.radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--color-crimson);
  background-color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-option input:checked + .radio-circle::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--color-crimson);
}

.radio-option input:focus-visible + .radio-circle {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

.form-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.form-feedback {
  position: relative;
  z-index: 4;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

.form-feedback.is-success {
  background-color: #edf7f0;
  border: 1px solid var(--color-green);
  color: var(--color-green);
}

.form-feedback.is-error {
  background-color: #fdf0f0;
  border: 1px solid var(--color-crimson);
  color: var(--color-crimson);
}

/* Section 9: wedding gift tabs and cards */
.section-gift {
  padding: 48px 22px 56px;
}

.gift-floral {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.gift-floral-left {
  left: -30px;
  bottom: 24px;
  width: 100px;
}

.gift-floral-right {
  right: -42px;
  top: 112px;
  width: 108px;
}

.gift-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
  z-index: 3;
}

.gift-panel {
  position: relative;
  z-index: 3;
}

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

.gift-card-frame {
  position: relative;
  width: 100%;
  max-width: 332px;
  margin: 0 auto;
}

.gift-card-inner {
  position: absolute;
  inset: 13% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}

.gift-bank-name {
  margin: 0;
  font-size: clamp(1.1rem, 4.4vw, 1.35rem);
  font-weight: 700;
  color: var(--color-crimson);
}

.gift-account-number {
  margin: 0;
  font-size: clamp(1.45rem, 6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-crimson);
  font-variant-numeric: tabular-nums;
}

.gift-account-holder {
  margin: 0 0 6px;
  font-size: clamp(0.9rem, 3.4vw, 1.05rem);
  color: var(--color-crimson);
}

.gift-card-frame-tall {
  max-width: 345px;
}

.gift-card-inner-tall {
  inset: 14% 12%;
  justify-content: space-between;
  padding: 18px 0 12px;
}

.gift-shipping-addr {
  margin: auto 0;
  font-size: clamp(0.95rem, 3.6vw, 1.1rem);
  line-height: 1.42;
  color: var(--color-crimson);
  white-space: pre-line;
}

.btn-copy-small {
  min-height: 36px;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-crimson);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-crimson);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-copy-small:hover {
  background-color: var(--color-crimson);
  color: #ffffff;
}

/* Section 10: prayer and wishes */
.section-wishes {
  padding: 48px 22px 72px;
}

.wishes-floral-right {
  position: absolute;
  right: -12px;
  bottom: -4px;
  width: 92px;
  opacity: 0.72;
  pointer-events: none;
  z-index: 1;
}

.wishes-frame-box {
  position: relative;
  width: 100%;
  max-width: 390px;
  aspect-ratio: 870 / 918;
  margin: 0 auto 28px;
  z-index: 2;
}

.wishes-mask-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.45);
  -webkit-mask-image: url('/assets/10-frame-wishes-mask.webp');
  mask-image: url('/assets/10-frame-wishes-mask.webp');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  isolation: isolate;
  transform: translateZ(0);
}

.wishes-frame-img {
  position: relative;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  z-index: 2;
  pointer-events: none;
}

.wishes-scroll-area {
  position: absolute;
  inset: 12% 13%;
  overflow-y: auto;
  padding-right: 4px;
}

.wishes-state-msg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.98rem;
  color: var(--color-crimson);
}

.wishes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-item {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(179, 27, 33, 0.45);
}

.wish-item:last-child {
  border-bottom: 0;
}

.wish-author {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-crimson);
}

.wish-address {
  margin: 0 0 2px;
  font-size: 0.82rem;
  color: var(--color-green);
}

.wish-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.38;
  color: var(--color-crimson);
  white-space: pre-line;
  word-break: break-word;
}

/* Section 11: closing note */
.section-closing {
  padding: 132px 26px 212px;
  text-align: center;
  min-height: 670px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-bg-watermark {
  position: absolute;
  top: 46%;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translateY(-46%);
  width: 96%;
  max-width: 440px;
  opacity: 0.14;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.closing-floral-top {
  position: absolute;
  top: -6px;
  left: -24px;
  width: clamp(94px, 25vw, 110px);
  pointer-events: none;
  z-index: 2;
}

.closing-floral-top-right {
  position: absolute;
  top: -22px;
  right: -22px;
  width: clamp(90px, 24vw, 112px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

.closing-floral-bottom {
  position: absolute;
  bottom: -24px;
  left: -4%;
  width: 108%;
  max-width: none;
  pointer-events: none;
  z-index: 2;
}

.closing-content {
  position: relative;
  z-index: 3;
  max-width: 340px;
  margin: 0 auto;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.closing-text {
  margin: 0 0 6px;
  padding: 0 18px 0 26px;
  font-size: clamp(0.95rem, 3.8vw, 1.12rem);
  line-height: 1.42;
  color: var(--color-crimson);
}

.closing-illustration-wrap {
  width: min(76%, 272px);
  margin: 4px 0;
}

.closing-couple {
  margin: 6px 0 0;
  font-family: var(--font-script);
  font-size: clamp(2.55rem, 10.5vw, 3.35rem);
  line-height: 1.05;
  color: var(--color-crimson);
}

.closing-logo {
  width: 48px;
  margin-top: 2px;
  position: relative;
  z-index: 4;
  mix-blend-mode: multiply;
}

/* Mobile bottom navigation and floating audio toggle */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(9, 105, 53, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-nav[hidden] {
  display: none;
}

.mobile-bottom-nav a {
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  border-radius: 8px;
}

.mobile-bottom-nav a.is-active {
  color: var(--color-crimson);
  background-color: rgba(179, 27, 33, 0.08);
}

.floating-music-btn {
  position: fixed;
  right: 14px;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 39;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-crimson);
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--color-crimson);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.floating-music-btn[aria-pressed='true'] {
  border-color: var(--color-green);
  color: var(--color-green);
}

.floating-music-btn:active {
  transform: scale(0.95);
}

.floating-music-btn .music-icon {
  display: block;
}

.floating-music-btn .music-icon-on {
  display: none;
}

.floating-music-btn[aria-pressed='true'] .music-icon-on {
  display: block;
}

.floating-music-btn[aria-pressed='true'] .music-icon-off {
  display: none;
}

.floating-music-btn[hidden] {
  display: none;
}

/* Save the date modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(15, 31, 22, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  background-color: var(--color-paper-soft);
  border: 2px solid var(--color-green);
  border-radius: var(--radius-card);
  padding: 28px 22px 24px;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(179, 27, 33, 0.35);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-crimson);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.modal-logo {
  width: 48px;
  margin: 0 auto 8px;
  mix-blend-mode: multiply;
}

.modal-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  color: var(--color-crimson);
}

.modal-desc {
  margin: 0 0 18px;
  font-size: 0.98rem;
  color: var(--color-ink);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Botanical sway, falling petals, and book-opening choreography */
@keyframes coverFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coverPortraitBloom {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floralSwayGentle {
  0%,
  100% {
    transform: skewX(-1.4deg) scale(1.02, 1);
  }
  50% {
    transform: skewX(1.6deg) scale(1.04, 1.02);
  }
}

@keyframes countdownFloralSway {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(3px) scale(1.012);
  }
}

@keyframes floralSwayLeft {
  0%,
  100% {
    transform: skewY(-2.2deg) scale(1.015, 1) rotate(-0.8deg);
  }
  50% {
    transform: skewY(2.6deg) scale(1.045, 1.015) rotate(1.1deg);
  }
}

@keyframes floralSwayRight {
  0%,
  100% {
    transform: skewY(2.2deg) scale(1.015, 1) rotate(0.8deg);
  }
  50% {
    transform: skewY(-2.6deg) scale(1.045, 1.015) rotate(-1.1deg);
  }
}

@keyframes floralSwayBottom {
  0%,
  100% {
    transform: skewX(1.2deg) scale(1.02, 1);
  }
  50% {
    transform: skewX(-1.4deg) scale(1.04, 1.02);
  }
}

@keyframes floralSwayFloat {
  0%,
  100% {
    transform: rotate(-2.5deg) translateY(0);
  }
  50% {
    transform: rotate(2.8deg) translateY(-4px);
  }
}

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

@keyframes floralExitTop {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-115%) scale(1.08);
  }
}

@keyframes floralExitBottom {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(115%) scale(1.08);
  }
}

@keyframes assetOutUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-48px) scale(0.94);
  }
}

@keyframes assetOutZoom {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.16) translateY(-14px);
  }
}

@keyframes assetOutDown {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(52px) scale(0.95);
  }
}

@keyframes petalFallFull {
  0% {
    opacity: 0;
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }
  10% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.8;
    transform: translate3d(var(--sway, 22px), 50vh, 0) rotate(145deg);
  }
  90% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--sway, 22px) * -0.7), 112vh, 0) rotate(300deg);
  }
}

@keyframes bookCoverOpen {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }
  18% {
    transform: rotateY(-18deg);
    opacity: 1;
  }
  74% {
    transform: rotateY(-108deg);
    opacity: 1;
  }
  100% {
    transform: rotateY(-136deg);
    opacity: 0;
  }
}

@keyframes bookShadowSweep {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  28% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-35%);
  }
}

@keyframes eqBounce {
  0% {
    height: 6px;
  }
  100% {
    height: 20px;
  }
}

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

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cover-enter-1 {
  animation: coverFadeUp 0.65s ease both 0.08s;
}
.cover-enter-2 {
  animation: coverFadeUp 0.7s ease both 0.2s;
}
.cover-enter-3 {
  animation: coverPortraitBloom 0.8s cubic-bezier(0.22, 1, 0.36, 1) both 0.34s;
}
.cover-enter-4 {
  animation: coverFadeUp 0.65s ease both 0.48s;
}
.cover-enter-5 {
  animation: coverFadeUp 0.65s ease both 0.6s;
}

.floral-sway-slow {
  transform-origin: top center;
  animation: floralSwayGentle 4.6s ease-in-out infinite;
}

.floral-sway-left {
  transform-origin: left center;
  animation: floralSwayLeft 4s ease-in-out infinite;
}

.floral-sway-right {
  transform-origin: right center;
  animation: floralSwayRight 4.4s ease-in-out infinite;
  animation-delay: -1.6s;
}

.floral-sway-bottom {
  transform-origin: bottom center;
  animation: floralSwayBottom 5s ease-in-out infinite;
  animation-delay: -1s;
}

.floral-sway-float {
  transform-origin: center center;
  animation: floralSwayFloat 4.4s ease-in-out infinite;
  animation-delay: -0.8s;
}

.section .floral-sway-slow,
.section .floral-sway-left,
.section .floral-sway-right,
.section .floral-sway-bottom,
.section .floral-sway-float {
  animation-play-state: paused;
}

.section.is-in-view .floral-sway-slow,
.section.is-in-view .floral-sway-left,
.section.is-in-view .floral-sway-right,
.section.is-in-view .floral-sway-bottom,
.section.is-in-view .floral-sway-float,
.section-cover:not(.is-book-opened) .floral-sway-slow,
.section-cover:not(.is-book-opened) .floral-sway-bottom {
  animation-play-state: running;
}

.falling-petals-global {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  z-index: 25;
}

.falling-petal {
  position: absolute;
  top: -8vh;
  display: block;
  border-radius: 75% 15% 75% 15%;
  opacity: 0;
  animation-name: petalFallFull;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.gift-panel:not([hidden]) {
  animation: tabFadeIn 0.3s ease both;
}

.modal-backdrop:not([hidden]) .modal-card {
  animation: modalPopIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Section & Staggered Reveal Choreography */
.reveal-block {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.34s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-block .anim-up,
.reveal-block .anim-scale,
.reveal-block .anim-from-left,
.reveal-block .anim-from-right,
.reveal-block .anim-stamp-left,
.reveal-block .anim-stamp-right {
  opacity: 0;
  transition: opacity 0.34s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--stagger, 0ms) * 0.45);
}

.reveal-block .anim-up {
  transform: translateY(12px);
}

.reveal-block .anim-scale {
  transform: scale(0.97);
}

.reveal-block .anim-from-left {
  transform: translateX(-12px);
}

.reveal-block .anim-from-right {
  transform: translateX(12px);
}

.reveal-block .anim-stamp-left {
  transform: translateX(-12px) rotate(-6deg) scale(0.97);
}

.reveal-block .anim-stamp-right {
  transform: translateX(12px) rotate(6deg) scale(0.97);
}

.reveal-block.is-visible .anim-up,
.reveal-block.is-visible .anim-scale,
.reveal-block.is-visible .anim-from-left,
.reveal-block.is-visible .anim-from-right,
.reveal-block.is-visible .anim-stamp-left,
.reveal-block.is-visible .anim-stamp-right {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .floral-sway-slow,
  .floral-sway-left,
  .floral-sway-right,
  .floral-sway-bottom,
  .floral-sway-float {
    animation-duration: 6.5s;
  }
  .reveal-block,
  .reveal-block .anim-up,
  .reveal-block .anim-scale,
  .reveal-block .anim-from-left,
  .reveal-block .anim-from-right,
  .reveal-block .anim-stamp-left,
  .reveal-block .anim-stamp-right {
    transition-duration: 0.28s;
  }
}

/* Tablet breakpoint (540px to 1023px) */
@media (min-width: 540px) {
  .page-shell {
    padding: 24px 16px 84px;
  }

  body.is-locked .page-shell,
  body.is-opening-book .page-shell {
    padding: 16px;
  }

  .invitation-canvas {
    max-width: 460px;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  }

  body.is-locked .invitation-canvas,
  body.is-opening-book .invitation-canvas {
    height: calc(100dvh - 32px);
    max-height: 820px;
  }

  .section-cover {
    min-height: 760px;
  }

  body.is-locked .section-cover,
  body.is-opening-book .section-cover {
    height: 100%;
    min-height: 0;
  }
}

/* Desktop two-pane layout (>=1024px) */
@media (min-width: 1024px) {
  .page-shell {
    padding: 28px 32px;
    gap: 36px;
    align-items: flex-start;
  }

  body.is-locked .page-shell,
  body.is-opening-book .page-shell {
    padding: 16px 32px;
    align-items: center;
  }

  .desktop-sidebar {
    display: block;
    width: 280px;
    position: sticky;
    top: 20px;
  }

  body.is-locked .desktop-sidebar,
  body.is-opening-book .desktop-sidebar {
    position: static;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }

  .sidebar-card {
    background-color: var(--color-paper-soft);
    border: 2px solid var(--color-green);
    border-radius: 18px;
    padding: 16px 18px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  }

  .sidebar-logo {
    width: 48px;
    margin: 0 auto 6px;
    mix-blend-mode: multiply;
  }

  .sidebar-eyebrow {
    margin: 0;
    font-size: 0.84rem;
    letter-spacing: 0.14em;
    color: var(--color-crimson);
  }

  .sidebar-couple {
    margin: 2px 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.05;
    color: var(--color-crimson);
  }

  .sidebar-event-label {
    margin: 2px 0 0;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-crimson);
  }

  .sidebar-date {
    margin: 0 0 10px;
    font-size: 0.94rem;
    color: var(--color-green);
    font-weight: 600;
  }

  .sidebar-guest {
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid rgba(179, 27, 33, 0.25);
  }

  .sidebar-guest-label {
    display: block;
    font-size: 0.78rem;
    color: var(--color-green);
  }

  .sidebar-guest-name {
    display: block;
    font-size: 0.96rem;
    color: var(--color-crimson);
  }

  .sidebar-guest-address {
    display: block;
    font-size: 0.8rem;
    color: var(--color-ink);
    margin-top: 2px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 12px;
    text-align: left;
  }

  .sidebar-nav a {
    padding: 5px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-ink);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .sidebar-nav a:hover,
  .sidebar-nav a.is-active {
    background-color: rgba(179, 27, 33, 0.1);
    color: var(--color-crimson);
    font-weight: 600;
  }

  .sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .btn-outline-green {
    min-height: 44px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-green);
    background-color: #ffffff;
    color: var(--color-green);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
  }

  .btn-outline-green:hover {
    background-color: var(--color-green);
    color: #ffffff;
  }

  .btn-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--color-crimson);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .mobile-bottom-nav,
  .floating-music-btn {
    display: none !important;
  }

  .section-closing {
    padding-bottom: 212px;
  }
}
