@font-face {
  font-family: "WeddingScript";
  src: url("../assets/fonts/Floriselscript.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --wine: #4b071c;
  --wine-2: #650b26;
  --wine-3: #310311;
  --brown: #4a2d23;
  --cream: #fff9ed;
  --cream-2: #f2e1c5;
  --beige: #d8b997;
  --gold: #c59655;
  --ink: #2f1611;
  --muted: rgba(47, 22, 17, .63);
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(25, 3, 10, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --stage: 430px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: #180208;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.noscript {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--cream);
  color: var(--wine);
  text-align: center;
}

.loader-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: end center;
  min-height: 100svh;
  padding: max(22px, env(safe-area-inset-top)) 22px max(34px, env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background: #070103;
  opacity: 1;
  visibility: visible;
  transition: opacity .76s var(--ease), visibility .76s var(--ease), filter .76s var(--ease);
}

.loader-intro.is-hiding {
  opacity: 0;
  visibility: hidden;
  filter: blur(10px) brightness(1.12);
  pointer-events: none;
}

.loader-intro__video {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -3;
  width: 103%;
  height: 103%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  background: #070103;
  transform: translate(-50%, -50%) scale(1.018);
}

.loader-intro__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 42%, transparent 20%, rgba(10, 1, 4, .10) 58%, rgba(10, 1, 4, .48) 100%),
    linear-gradient(180deg, rgba(8, 1, 4, .04), rgba(8, 1, 4, .14) 58%, rgba(8, 1, 4, .48) 100%);
  pointer-events: none;
}

.loader-intro__shade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(84px, 12vh, 132px);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(197, 150, 85, .13), transparent 62%),
    linear-gradient(180deg, transparent, rgba(49, 3, 17, .46) 58%, rgba(7, 1, 3, .86) 100%);
}

.loader-intro__shade::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(58px, 8vh, 92px);
  width: min(82vw, 720px);
  height: clamp(70px, 11vh, 116px);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255, 249, 237, .12), transparent 68%),
    linear-gradient(180deg, rgba(75, 7, 28, .10), rgba(49, 3, 17, .46));
  filter: blur(18px);
  opacity: .82;
  transform: translateX(-50%);
}

.loader-intro::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 1px solid rgba(255, 249, 237, .18);
  pointer-events: none;
}

.loader-intro__content {
  width: min(100%, 390px);
  padding-bottom: clamp(10px, 4vh, 34px);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}

.loader-intro.is-ready .loader-intro__content,
.loader-intro.has-video-error .loader-intro__content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.loader-intro__overline {
  margin: 0 0 14px;
  color: rgba(255, 249, 237, .86);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .55);
}

.loader-intro__button {
  position: relative;
  min-height: 56px;
  width: min(100%, 300px);
  padding: 0 28px;
  border: 1px solid rgba(255, 249, 237, .56);
  border-radius: 999px;
  background: rgba(255, 249, 237, .08);
  color: var(--cream);
  box-shadow:
    0 22px 62px rgba(0, 0, 0, .36),
    inset 0 0 0 1px rgba(255, 255, 255, .10);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform .28s var(--ease), background .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}

.loader-intro__button::before {
  content: "";
  position: absolute;
  inset: -42% auto -42% -38%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .62), transparent);
  transform: skewX(-18deg);
  animation: loaderButtonShine 2.6s .4s infinite;
}

.loader-intro__button span {
  position: relative;
  z-index: 1;
}

.loader-intro__button:hover {
  border-color: rgba(255, 249, 237, .86);
  background: rgba(255, 249, 237, .15);
  box-shadow: 0 26px 72px rgba(0, 0, 0, .46), 0 0 34px rgba(247, 217, 162, .18);
  transform: translateY(-2px);
}

.loader-intro__button:active {
  transform: translateY(1px) scale(.99);
}

body:not(.site-entered) .music-toggle,
body:not(.site-entered) .help-button,
body:not(.site-entered) .nav-toggle,
body:not(.site-entered) .site-nav,
body:not(.site-entered) .scroll-note {
  opacity: 0;
  pointer-events: none;
}

@keyframes loaderButtonShine {
  0%, 44% { left: -38%; opacity: 0; }
  56% { opacity: .9; }
  82%, 100% { left: 112%; opacity: 0; }
}

@media (max-width: 480px) {
  .loader-intro {
    place-items: end center;
    padding: 18px 16px max(22px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 50% 38%, rgba(197, 150, 85, .22), transparent 38%),
      linear-gradient(180deg, #1d050c, #070103 76%);
  }

  .loader-intro::after {
    inset: 10px;
    border-color: rgba(255, 249, 237, .14);
  }

  .loader-intro__video {
    left: 50%;
    top: 50%;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: 50% 57%;
    opacity: 1;
    filter: saturate(1.08) brightness(.96);
    transform: translate(-50%, -50%) scale(1);
  }

  .loader-intro__shade {
    background:
      radial-gradient(ellipse at 50% 48%, transparent 18%, rgba(10, 1, 4, .08) 54%, rgba(10, 1, 4, .48) 100%),
      radial-gradient(ellipse at 50% 54%, rgba(247, 217, 162, .14), transparent 40%),
      linear-gradient(180deg, rgba(8, 1, 4, .20), rgba(8, 1, 4, .04) 34%, rgba(8, 1, 4, .48) 100%);
  }

  .loader-intro__shade::before {
    display: none;
  }

  .loader-intro__shade::after {
    height: max(128px, calc(env(safe-area-inset-bottom) + 118px));
    background:
      radial-gradient(ellipse at 50% 100%, rgba(197, 150, 85, .12), transparent 62%),
      linear-gradient(180deg, transparent, rgba(49, 3, 17, .46) 44%, rgba(7, 1, 3, .88) 100%);
  }

  .loader-intro__content {
    width: min(100%, 330px);
    padding-bottom: 0;
    align-self: end;
  }

  .loader-intro__overline {
    font-size: 11px;
    letter-spacing: .22em;
  }

  .loader-intro__button {
    width: min(100%, 286px);
    min-height: 54px;
    font-size: 12px;
  }
}

@media (min-width: 481px) and (max-width: 760px) {
  .loader-intro {
    place-items: end center;
    padding: 20px 18px max(24px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 50% 38%, rgba(197, 150, 85, .18), transparent 38%),
      linear-gradient(180deg, #1d050c, #070103 76%);
  }

  .loader-intro__video {
    left: 50%;
    top: 50%;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: 50% 56%;
    opacity: 1;
    filter: saturate(1.08) brightness(.96);
    transform: translate(-50%, -50%) scale(1);
  }

  .loader-intro__shade {
    background:
      radial-gradient(ellipse at 50% 48%, transparent 20%, rgba(10, 1, 4, .08) 58%, rgba(10, 1, 4, .46) 100%),
      radial-gradient(ellipse at 50% 54%, rgba(247, 217, 162, .13), transparent 42%),
      linear-gradient(180deg, rgba(8, 1, 4, .18), transparent 36%, rgba(8, 1, 4, .46) 100%);
  }

  .loader-intro__shade::before {
    display: none;
  }

  .loader-intro__shade::after {
    height: max(122px, calc(env(safe-area-inset-bottom) + 112px));
    background:
      radial-gradient(ellipse at 50% 100%, rgba(197, 150, 85, .12), transparent 62%),
      linear-gradient(180deg, transparent, rgba(49, 3, 17, .42) 46%, rgba(7, 1, 3, .84) 100%);
  }

  .loader-intro__content {
    align-self: end;
    padding-bottom: 0;
  }
}

/* PNG envelope intro-loader.
   File roles:
   01_background_burgundy.png - static full-screen background.
   02_invitation_card.png - the only layer that moves, strictly on Y.
   03_envelope_front_pocket.png - static front pocket above the card.
   04_top_flap_hinge.png - independent sibling layer; its lower edge is the hinge line.
   05_names_decor.png - optional static overlay, hidden by default to avoid duplicate names. */
.loader-intro {
  place-items: center;
  padding: 0;
  background: #4b071c;
}

.loader-intro.is-hiding {
  filter: none;
}

.loader-envelope-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.loader-envelope-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.loader-envelope-stage {
  position: relative;
  z-index: 1;
  /* Loader scale/position: large premium envelope, slightly below the viewport center. */
  width: min(60vw, 860px);
  aspect-ratio: 1122 / 1402;
  overflow: visible;
  opacity: 0;
  transform: translateY(clamp(28px, 7vh, 64px));
  transform-style: preserve-3d;
  perspective: 1400px;
  pointer-events: none;
}

.loader-envelope-layer {
  position: absolute;
  max-width: none;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* Card mask: keeps the paper visually inside the central pocket channel. */
.loader-card-mask {
  position: absolute;
  left: 50%;
  top: 18.8%;
  z-index: 12;
  width: 48%;
  height: 57%;
  overflow: hidden;
  transform: translateX(-50%);
  pointer-events: none;
}

/* The invitation card moves only on the Y axis in script.js. */
.loader-invitation-card {
  left: 0;
  top: 0;
  z-index: 12;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: translateY(78%);
  filter: drop-shadow(0 18px 24px rgba(45, 18, 12, .12));
}

/* The front pocket is static and always stays above the invitation card. */
.loader-front-pocket {
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.loader-names-decor {
  left: 50%;
  top: 50%;
  z-index: 30;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
}

.loader-names-decor.is-hidden {
  display: none;
}

/* Hinge line: the lower edge of 04_top_flap_hinge.png sits on the pocket opening. */
.loader-top-flap {
  left: 4.18%;
  top: 14.38%;
  z-index: 35;
  width: 91.62%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: rotateX(0deg);
  transform-origin: 50% 100%;
  backface-visibility: visible;
  filter: drop-shadow(0 12px 18px rgba(55, 22, 10, .08));
}

.loader-intro__content {
  position: relative;
  z-index: 2;
  align-self: end;
  margin: 0 auto;
  padding: 0 18px max(28px, env(safe-area-inset-bottom));
}

.loader-intro.is-debug .loader-envelope-stage,
.loader-intro.is-debug .loader-card-mask,
.loader-intro.is-debug .loader-top-flap {
  outline: 1px solid rgba(255, 80, 80, .75);
}

.loader-intro.is-debug .loader-top-flap {
  border-bottom: 2px solid rgba(0, 255, 255, .9);
}

@media (max-width: 760px) {
  .loader-envelope-stage {
    width: min(94vw, 620px);
    transform: translateY(clamp(20px, 6vh, 52px));
  }

  .loader-intro__content {
    width: min(100%, 330px);
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}

@media (max-height: 680px) and (orientation: landscape) {
  .loader-envelope-stage {
    width: min(56vw, 760px);
    transform: translateY(clamp(14px, 5vh, 38px));
  }

  .loader-intro__content {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

.script {
  font-family: "WeddingScript", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: .01em;
}

.overline {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.ambient-bg {
  position: fixed;
  inset: 0 0 -30vh 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 30%, rgba(175, 40, 59, .28), transparent 30%),
    radial-gradient(circle at 80% 55%, rgba(126, 15, 45, .35), transparent 35%),
    linear-gradient(135deg, #130106 0%, #26040e 42%, #090103 100%);
}
.ambient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 75%, rgba(255, 213, 144, .18), transparent 18%),
    radial-gradient(circle at 75% 22%, rgba(255, 135, 95, .10), transparent 20%);
  filter: blur(3px);
}
.candle {
  position: absolute;
  bottom: 9vh;
  width: 15px;
  height: 118px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(90deg, #fff9e8, #d8af76 55%, #fff1cd);
  box-shadow: 0 0 38px rgba(255, 192, 109, .42);
  opacity: .72;
}
.candle::before {
  content: "";
  position: absolute;
  top: -29px;
  left: 50%;
  width: 17px;
  height: 32px;
  transform: translateX(-50%);
  border-radius: 55% 45% 55% 45%;
  background: radial-gradient(circle at 50% 65%, #fff8c4, #f8a03c 58%, rgba(250, 60, 22, .14));
  filter: blur(.2px);
  animation: flame 2.4s infinite var(--ease);
}
.candle::after {
  content: "";
  position: absolute;
  top: -42px;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 186, 93, .25), transparent 68%);
  animation: glow 3s infinite var(--ease);
}
.candle i { display: none; }
.candle--one { left: calc(50% - 330px); }
.candle--two { left: calc(50% - 292px); height: 95px; }
.candle--three { right: calc(50% - 330px); height: 135px; }
.bg-grapes {
  position: absolute;
  border-radius: 50%;
  filter: blur(.3px);
  opacity: .65;
}
.bg-grapes {
  left: calc(50% + 255px);
  bottom: 19vh;
  width: 12px;
  height: 12px;
  background: #1a0410;
  box-shadow: 14px 7px 0 #240315, -6px 17px 0 #2b0618, 10px 24px 0 #13020b, 25px 22px 0 #280516, 2px 39px 0 #19020b, 21px 39px 0 #260414;
}

@keyframes flame {
  0%, 100% { transform: translateX(-50%) rotate(-3deg) scale(1); }
  50% { transform: translateX(-48%) rotate(4deg) scale(1.08); }
}
@keyframes glow {
  0%, 100% { opacity: .55; transform: translateX(-50%) scale(1); }
  50% { opacity: .88; transform: translateX(-50%) scale(1.12); }
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 80%, rgba(143, 20, 48, .32), transparent 26%),
    radial-gradient(circle at 80% 30%, rgba(238, 203, 150, .14), transparent 28%),
    linear-gradient(160deg, #23020d, #4b071c 45%, #170106);
  transition: opacity .65s var(--ease), visibility .65s var(--ease);
  overflow: hidden;
}
.intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__curtain {
  position: absolute;
  left: -12%;
  right: -12%;
  height: 35vh;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.12), transparent 36%),
    linear-gradient(115deg, #24010b 0%, #6a0c2a 28%, #320311 52%, #7a1432 76%, #22020c 100%);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.35));
  animation: silkFloat 7s infinite alternate var(--ease);
}
.intro__curtain--top { top: -12vh; border-radius: 0 0 45% 55% / 0 0 18% 26%; transform: rotate(-2deg); }
.intro__curtain--bottom { bottom: -18vh; border-radius: 45% 55% 0 0 / 24% 18% 0 0; transform: rotate(2deg); animation-delay: -2s; }
.intro__card {
  position: relative;
  width: min(100%, 390px);
  min-height: 620px;
  padding: 54px 30px 34px;
  border: 1px solid rgba(255, 242, 220, .25);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,249,237,.98), rgba(255,249,237,.92)),
    radial-gradient(circle at 30% 20%, rgba(177,16,54,.10), transparent 25%);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
  animation: cardRise 1s .2s both var(--ease);
}
.intro__card::before,
.intro__card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 220px;
  top: 60px;
  border-radius: 90px;
  border-left: 3px solid #20110e;
  transform-origin: bottom;
}
.intro__card::before { left: 22px; transform: rotate(-11deg); }
.intro__card::after { right: 22px; transform: rotate(12deg); }
.intro__title {
  position: relative;
  z-index: 2;
  margin: 8px 0 22px;
  color: var(--wine);
  font-size: clamp(46px, 13vw, 82px);
  line-height: .86;
}
.intro__date-scene {
  position: relative;
  height: 195px;
  margin: 14px 0 18px;
}
.date-slip {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  width: 188px;
  height: 88px;
  padding: 18px 18px 14px;
  background: #efe3cf;
  color: var(--wine);
  box-shadow: 0 20px 30px rgba(74, 7, 28, .22);
  transform: translate(-50%, 95px) rotate(-8deg);
  animation: dateSlip 1.15s 1.1s forwards var(--ease);
}
.date-slip::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(75,7,28,.24);
}
.date-slip span { display: block; font-size: 19px; letter-spacing: .04em; }
.date-slip b { display: block; margin-top: 4px; font-size: 18px; }
.hand-shadow {
  position: absolute;
  left: calc(50% + 18px);
  bottom: 52px;
  z-index: 4;
  width: 152px;
  height: 76px;
  border-radius: 45px 18px 38px 30px;
  background: linear-gradient(105deg, #dec4a8, #f4dbc1 48%, #b88e74);
  box-shadow: 0 16px 28px rgba(66, 20, 10, .28);
  transform: translateX(125px) rotate(-9deg);
  animation: handIn 1.2s 1.08s forwards var(--ease);
}
.hand-shadow i {
  position: absolute;
  top: -17px;
  width: 40px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(100deg, #f1d8bf, #cba187);
  transform: rotate(-72deg);
}
.hand-shadow i:nth-child(1) { left: 6px; }
.hand-shadow i:nth-child(2) { left: 38px; top: -11px; height: 78px; }
.hand-shadow i:nth-child(3) { left: 70px; top: -6px; height: 66px; }
.intro__hint {
  margin: 0 auto 18px;
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.load-line {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(75,7,28,.12);
  overflow: hidden;
  margin: 18px 0 16px;
}
.load-line i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wine), var(--gold));
  transition: width .3s var(--ease);
}
.enter-btn,
.submit-btn,
.soft-button,
.round-link,
.phone-link {
  border: 0;
  text-decoration: none;
  cursor: pointer;
}
.enter-btn, .submit-btn, .soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 14px 30px rgba(75,7,28,.25);
}
.enter-btn { width: 100%; }
.soft-button--light { background: var(--cream); color: var(--wine); }

@keyframes silkFloat { from { transform: translateY(-2px) rotate(-2deg); } to { transform: translateY(10px) rotate(2deg); } }
@keyframes cardRise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dateSlip { to { transform: translate(-50%, 0) rotate(-7deg); } }
@keyframes handIn { 0% { transform: translateX(125px) rotate(-9deg); } 65% { transform: translateX(5px) rotate(-9deg); } 100% { transform: translateX(62px) rotate(-9deg); opacity: .92; } }

.invite {
  width: min(100%, var(--stage));
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 120px rgba(0,0,0,.45);
  background: var(--cream);
  overflow: hidden;
}
.scene {
  position: relative;
  scroll-margin-top: 96px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  overflow: hidden;
}
.scene--cream { background: linear-gradient(180deg, #fffaf0, #f5e8d5); }
.scene--burgundy { background: radial-gradient(circle at 50% 12%, rgba(122, 19, 52, .65), transparent 32%), linear-gradient(180deg, var(--wine), #310311 58%, var(--wine)); color: var(--cream); }
.scene__inner { position: relative; z-index: 3; width: 100%; }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.hero { text-align: center; }
.hero__inner { min-height: 570px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero__names {
  margin: 0;
  color: var(--wine);
  font-size: clamp(62px, 18vw, 104px);
  line-height: .84;
  text-shadow: 0 10px 40px rgba(75,7,28,.10);
}
.hero__text {
  max-width: 275px;
  margin: 18px auto 20px;
  color: rgba(47, 22, 17, .7);
  line-height: 1.65;
  font-size: 15px;
}
.animated-date-card {
  position: relative;
  margin: 24px auto 0;
  width: 210px;
  padding: 16px 18px;
  background: #f1dfc5;
  color: var(--wine);
  box-shadow: 0 22px 50px rgba(75, 7, 28, .22);
  transform: rotate(-5deg);
  animation: heroDateFloat 4s infinite alternate var(--ease);
}
.animated-date-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(75,7,28,.22); }
.animated-date-card span { display: block; font-size: 18px; }
.animated-date-card b { display: block; margin-top: 4px; }
@keyframes heroDateFloat { from { transform: rotate(-5deg) translateY(0); } to { transform: rotate(-3deg) translateY(-8px); } }

.silk {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 170px;
  background: linear-gradient(115deg, #180105, #4c061c 22%, #771232 45%, #24020c 70%, #690d2a);
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.35));
  opacity: .96;
  animation: silkFloat 6s infinite alternate var(--ease);
  z-index: 1;
}
.silk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 28px, rgba(255,255,255,.055) 32px 39px, transparent 42px 58px);
  mix-blend-mode: screen;
}
.silk--top { top: -84px; border-radius: 0 0 50% 50% / 0 0 42% 42%; }
.silk--bottom { bottom: -86px; border-radius: 50% 50% 0 0 / 42% 42% 0 0; animation-delay: -2s; }
.silk--deep { background: linear-gradient(115deg, #110004, #350312, #6a0c28, #24020c); }

.photo-triptych { display: grid; grid-template-columns: 70px 1fr 70px; gap: 10px; align-items: center; margin: 82px 0 34px; }
.photo-triptych figure { margin: 0; overflow: hidden; background: #eadcc5; box-shadow: 0 18px 34px rgba(0,0,0,.25); }
.photo-triptych__main { aspect-ratio: 1 / 1.05; }
.photo-triptych__side { aspect-ratio: 3 / 4; transform: translateY(15px); }
.photo-triptych img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); }
.text-panel { text-align: center; line-height: 1.6; }
.text-panel h2 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  line-height: 1.05;
  text-transform: lowercase;
}
.text-panel p { margin: 0 auto 12px; max-width: 320px; color: rgba(255,249,237,.82); }
.accent-line { margin: 12px 0 16px !important; color: #d7a36a !important; font-size: 42px; line-height: 1; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 340px; margin: 20px auto 0; }
.countdown div { padding: 12px 6px; border: 1px solid rgba(255,249,237,.20); border-radius: 18px; background: rgba(255,249,237,.06); }
.countdown b { display: block; font-size: 25px; color: #f8d29c; }
.countdown span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,249,237,.72); }

.section-script { margin: -6px 0 22px; color: var(--wine); font-size: clamp(48px, 14vw, 76px); line-height: .8; text-align: center; }
.scene--burgundy .section-script { color: #f3d7a7; }
.place { text-align: center; }
.venue-card {
  margin: 20px auto 0;
  overflow: hidden;
  border-radius: 30px;
  background: #fffdf6;
  box-shadow: 0 24px 70px rgba(75,7,28,.15);
  text-align: left;
}
.venue-card figure { margin: 0; aspect-ratio: 1.35 / 1; overflow: hidden; }
.venue-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.venue-card div { padding: 24px; }
.venue-card h3 { margin: 0 0 10px; color: var(--wine); font-size: 24px; line-height: 1.15; }
.venue-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.55; }
.round-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  font-weight: 700;
  font-size: 13px;
}
.calendar { text-align: center; }
.calendar-card {
  margin: 10px auto 0;
  padding: 20px 18px 24px;
  border: 1px solid rgba(75,7,28,.22);
  background: rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.20), 0 28px 70px rgba(75,7,28,.12);
}
.calendar-card__top { display: flex; justify-content: space-between; margin-bottom: 18px; color: var(--wine); font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.calendar-week, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-week { margin-bottom: 10px; color: rgba(47,22,17,.55); font-size: 12px; font-weight: 700; }
.calendar-grid span { min-height: 37px; display: grid; place-items: center; border-radius: 999px; font-size: 18px; color: var(--ink); position: relative; }
.calendar-grid .muted { color: rgba(47,22,17,.25); }
.wedding-day { color: var(--cream) !important; background: var(--wine); font-weight: 800; }
.wedding-day::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid var(--wine);
  border-radius: 50% 50% 47% 53%;
  transform: rotate(-10deg);
  animation: heartPulse 1.8s infinite var(--ease);
}
@keyframes heartPulse { 0%,100%{ transform: rotate(-10deg) scale(1); } 50%{ transform: rotate(-10deg) scale(1.08); } }

.lace-board {
  position: relative;
  max-width: 352px;
  margin: 0 auto;
  padding: 42px 24px 32px;
  color: var(--ink);
  text-align: center;
  background: linear-gradient(#f8e9cc, #f3dcb6);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.30);
}
.lace-board::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dotted rgba(75,7,28,.38);
  border-radius: 20px;
  pointer-events: none;
}
.lace-board__clip {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 72px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 30px 30px 10px 10px;
  background: linear-gradient(#ead08f, #a77232);
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}
.lace-board__clip::after { content: ""; position: absolute; top: 12px; left: 50%; width: 16px; height: 16px; transform: translateX(-50%); border-radius: 50%; background: #fff2c6; }
.lace-board .section-script { color: var(--wine); }
.timeline { display: grid; gap: 12px; margin: 18px 0; }
.timeline article {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.36);
}
.timeline time { color: var(--wine); font-weight: 800; }
.timeline span { color: var(--brown); }
.board-note { margin: 14px auto 0; max-width: 250px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.bow {
  position: absolute;
  bottom: 70px;
  left: 50%;
  width: 76px;
  height: 34px;
  transform: translateX(-50%);
  z-index: 4;
}
.bow::before, .bow::after { content: ""; position: absolute; width: 40px; height: 30px; background: #2d010d; border-radius: 50% 10% 50% 10%; }
.bow::before { left: 0; transform: rotate(20deg); }
.bow::after { right: 0; transform: scaleX(-1) rotate(20deg); }

.details { text-align: center; }
.watermark { position: absolute; right: 20px; top: 92px; margin: 0; color: rgba(244, 218, 177, .20); font-size: 58px; }
.envelope-scene { height: 210px; display: grid; place-items: center; margin-bottom: 20px; }
.envelope {
  position: relative;
  width: 230px;
  height: 145px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7d132f, #430719);
  box-shadow: 0 26px 58px rgba(0,0,0,.32);
  transform: rotate(-6deg);
  animation: envelopeFloat 4s infinite alternate var(--ease);
}
.envelope::before, .envelope::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0; height: 0;
  border-style: solid;
}
.envelope::before { left: 0; border-width: 72px 115px 0 0; border-color: transparent rgba(31,1,9,.20) transparent transparent; }
.envelope::after { right: 0; border-width: 72px 0 0 115px; border-color: transparent transparent transparent rgba(255,255,255,.06); }
.envelope__flap {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 58%, 100% 0);
  background: linear-gradient(#8b1736, #5a0a22);
}
.envelope__paper {
  position: absolute;
  left: 50%;
  top: -48px;
  width: 185px;
  padding: 16px;
  transform: translateX(-50%) rotate(6deg);
  background: #fff4df;
  color: var(--wine);
  font-size: 10px;
  line-height: 1.35;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  animation: paperPeek 1s var(--ease) both;
}
.envelope__paper p { margin: 0; }
@keyframes envelopeFloat { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(-4deg) translateY(-8px); } }
@keyframes paperPeek { from { transform: translateX(-50%) translateY(26px) rotate(6deg); opacity: 0; } to { transform: translateX(-50%) translateY(0) rotate(6deg); opacity: 1; } }
.text-panel--centered h2 { margin: 12px 0; color: #f6d7a5; font-size: 29px; }
.phone-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 22px; border: 1px solid rgba(255,249,237,.50); border-radius: 999px; color: var(--cream); font-weight: 800; }
.small-note { margin-top: 20px !important; font-size: 12px; color: rgba(255,249,237,.65) !important; }
.rsvp { text-align: center; }
.form-intro { max-width: 320px; margin: 0 auto 22px; color: var(--muted); line-height: 1.6; }
.rsvp-form { display: grid; gap: 15px; text-align: left; }
.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 15px;
  border: 1px solid rgba(75,7,28,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.48);
  box-shadow: 0 12px 34px rgba(75,7,28,.07);
}
.field > span, .field legend { color: var(--wine); font-weight: 800; font-size: 14px; }
.field small { color: rgba(47,22,17,.55); line-height: 1.4; }
input[type="text"], textarea {
  width: 100%;
  border: 1px solid rgba(75,7,28,.20);
  border-radius: 18px;
  background: #fffdf7;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}
input[type="text"]:focus, textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(75,7,28,.08); }
textarea { resize: vertical; }
.radio-field { border: 1px solid rgba(75,7,28,.12); }
.radio-field legend { padding: 0; margin-bottom: 6px; }
.radio-field label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.48); color: var(--brown); cursor: pointer; }
.radio-field input { width: 18px; height: 18px; accent-color: var(--wine); }
.field--hidden { display: none; }
.submit-btn { width: 100%; margin-top: 4px; }
.form-status { margin: 0; min-height: 24px; color: var(--wine); font-weight: 700; line-height: 1.4; text-align: center; }
.field.has-error { border-color: #a21435; box-shadow: 0 0 0 4px rgba(162,20,53,.08); }

.final {
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 43%, rgba(244, 214, 162, .2), transparent 20%),
    radial-gradient(circle at 24% 31%, rgba(181, 30, 67, .32), transparent 13%),
    radial-gradient(circle at 76% 34%, rgba(181, 30, 67, .28), transparent 14%),
    linear-gradient(180deg, #62091f, #2e020f 56%, #5a061d);
}
.final::before {
  content: "Wedding";
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 1;
  transform: translate(-50%, -50%) rotate(-6deg);
  font-family: "WeddingScript", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(130px, 28vw, 360px);
  line-height: 1;
  color: rgba(244, 214, 162, .055);
  pointer-events: none;
  white-space: nowrap;
}
.final::after {
  content: "";
  position: absolute;
  inset: clamp(18px, 4vw, 58px);
  z-index: 1;
  border: 1px solid rgba(244, 214, 162, .18);
  border-radius: clamp(24px, 3vw, 46px);
  box-shadow: inset 0 0 90px rgba(244, 214, 162, .045);
  pointer-events: none;
}
.final .scene__inner {
  max-width: 900px;
  display: grid;
  place-items: center;
}
.final .overline,
.final__title,
.final__date,
.final p:not(.overline) {
  position: relative;
  z-index: 3;
}
.final .overline {
  margin-bottom: 14px;
}
.final__title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(68px, 9vw, 138px);
  line-height: .88;
  color: #f4d6a2;
  text-shadow: 0 18px 54px rgba(0,0,0,.34);
}
.final__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(560px, 86vw);
  margin: 20px auto 22px;
  color: rgba(244, 214, 162, .9);
  font-weight: 800;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: .34em;
}
.final__date::before,
.final__date::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 214, 162, .66));
}
.final__date::after {
  background: linear-gradient(90deg, rgba(244, 214, 162, .66), transparent);
}
.final p:not(.overline) {
  max-width: 420px;
  margin: 0 auto;
  color: rgba(255,249,237,.8);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.7;
}
.music-toggle, .help-button {
  position: fixed;
  z-index: 50;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.music-toggle {
  top: max(14px, env(safe-area-inset-top));
  right: calc(50% - min(50vw, var(--stage) / 2) + 14px);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(75,7,28,.82);
  border: 1px solid rgba(255,249,237,.24);
  display: grid;
  place-items: center;
}
.music-toggle__ring { position: absolute; inset: 5px; display: grid; place-items: center; border: 1px solid rgba(255,249,237,.35); border-radius: 50%; font-size: 0; letter-spacing: 0; text-transform: uppercase; animation: spin 9s linear infinite; }
.music-toggle__icon { font-size: 22px; color: var(--cream); }
.music-toggle.is-muted .music-toggle__icon { font-size: 20px; }
.help-button {
  top: max(92px, calc(env(safe-area-inset-top) + 92px));
  right: calc(50% - min(50vw, var(--stage) / 2) + 22px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(75,7,28,.82);
  font-weight: 900;
}
.nav-toggle {
  display: none;
}
.site-nav {
  position: fixed;
  left: 50%;
  top: max(14px, env(safe-area-inset-top));
  z-index: 49;
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(calc(100vw - 116px), 940px);
  max-width: 940px;
  min-height: 58px;
  padding: 9px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border: 1px solid rgba(248, 210, 156, .42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 237, .24), transparent 58%),
    linear-gradient(180deg, rgba(255, 249, 237, .17), rgba(255, 249, 237, .07)),
    rgba(49, 3, 17, .78);
  background-clip: padding-box;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(49, 3, 17, .34);
  backdrop-filter: blur(18px) saturate(1.15);
  transform: translateX(-50%);
  transition: opacity .3s var(--ease);
}
.site-nav::-webkit-scrollbar {
  display: none;
}
.site-nav a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 249, 237, .92);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .32);
  transition: background .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease), transform .24s var(--ease), box-shadow .24s var(--ease);
}
.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(248, 210, 156, .45);
  background:
    linear-gradient(180deg, rgba(255, 249, 237, .30), rgba(255, 249, 237, .13));
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255, 249, 237, .08);
  transform: translateY(-1px);
}
.site-nav a:focus-visible {
  outline: 2px solid rgba(248, 210, 156, .9);
  outline-offset: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-note {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20,1,7,.52);
  color: var(--cream);
  font-size: 12px;
  backdrop-filter: blur(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.scroll-note.is-hidden { opacity: 0; transform: translateX(-50%) translateY(12px); pointer-events: none; }
.scroll-note span { width: 11px; height: 18px; border: 1px solid rgba(255,249,237,.75); border-radius: 999px; position: relative; }
.scroll-note span::after { content: ""; position: absolute; left: 50%; top: 4px; width: 3px; height: 3px; transform: translateX(-50%); border-radius: 50%; background: var(--cream); animation: wheel 1.2s infinite; }
@keyframes wheel { to { top: 11px; opacity: 0; } }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15,1,6,.64);
  opacity: 0;
  visibility: hidden;
  transition: .35s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__card {
  position: relative;
  width: min(100%, 360px);
  padding: 28px;
  border-radius: 30px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.modal__card--burgundy { background: linear-gradient(160deg, var(--wine), #310311); color: var(--cream); }
.modal__card h3 { margin: 0 0 14px; color: var(--wine); font-size: 25px; }
.modal__card--burgundy h3 { color: #f5d5a3; }
.modal__card p, .modal__card li { line-height: 1.55; }
.modal__card ol { padding-left: 20px; margin: 0 0 18px; }
.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(75,7,28,.08);
  color: inherit;
  font-size: 26px;
  cursor: pointer;
}

@media (min-width: 760px) {
  body::after {
    content: "";
    position: fixed;
    inset: 22px calc(50% - 238px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 38px;
    pointer-events: none;
    z-index: -1;
  }
  .invite { margin-top: 22px; margin-bottom: 22px; border-radius: 36px; }
  .scene { min-height: 820px; }
}

@media (max-width: 480px) {
  :root { --stage: 100vw; }
  .scene { padding-left: 22px; padding-right: 22px; }
  .site-nav {
    left: 14px;
    right: 94px;
    width: auto;
    min-height: 50px;
    padding: 7px;
    transform: none;
  }
  .site-nav a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
  }
  .intro { padding: 0; }
  .intro__card { width: 100%; min-height: 100svh; border-radius: 0; padding: 74px 28px 34px; }
  .intro__card::before { left: 14px; }
  .intro__card::after { right: 14px; }
  .photo-triptych { grid-template-columns: 62px 1fr 62px; }
  .countdown { gap: 6px; }
  .countdown div { padding: 10px 4px; }
  .countdown b { font-size: 22px; }
  .timeline article { grid-template-columns: 70px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== v4: layout fixes, stronger Reels-style animation, desktop redesign ===== */
.hero .overline,
.place .overline,
.rsvp .overline {
  margin-bottom: 22px;
}

.hero__inner {
  min-height: 650px;
  padding-top: 34px;
  padding-bottom: 54px;
}

.hero__names {
  margin-top: 10px;
  line-height: .98;
  font-size: clamp(56px, 15vw, 92px);
}

.hero__text {
  position: relative;
  z-index: 6;
  max-width: 315px;
  margin-top: 22px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(75, 7, 28, .10);
  border-radius: 24px;
  background: rgba(255, 250, 240, .84);
  box-shadow: 0 16px 38px rgba(75, 7, 28, .08);
  backdrop-filter: blur(8px);
}

.animated-date-card {
  display: none;
}

.hero__date-delivery {
  position: relative;
  z-index: 5;
  width: min(100%, 390px);
  height: 170px;
  margin: 18px auto 0;
  pointer-events: none;
}

.delivered-date {
  position: absolute;
  left: 50%;
  top: 42px;
  z-index: 4;
  width: 224px;
  padding: 18px 20px 16px;
  color: var(--wine);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 247, 229, .98), rgba(239, 219, 189, .98));
  border: 1px solid rgba(75, 7, 28, .18);
  box-shadow: 0 26px 58px rgba(75, 7, 28, .20);
  transform: translate(170px, 16px) rotate(-8deg);
  opacity: 0;
}

.delivered-date::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(75, 7, 28, .18);
  pointer-events: none;
}

.delivered-date span,
.delivered-date b {
  position: relative;
  z-index: 1;
  display: block;
}

.delivered-date span {
  font-size: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.delivered-date b {
  margin-top: 5px;
  font-size: 18px;
}

.delivery-hand {
  position: absolute;
  right: -186px;
  top: 54px;
  z-index: 7;
  width: 250px;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 22px 30px rgba(49, 3, 17, .28));
  transform: translateX(160px) rotate(-5deg);
}

.delivery-hand__sleeve { fill: url(#sleeveTone); }
.delivery-hand__cuff { fill: #f7efe5; }
.delivery-hand__palm,
.delivery-hand__finger,
.delivery-hand__thumb { fill: url(#skinTone); stroke: rgba(111, 61, 42, .22); stroke-width: 1.3; }
.delivery-hand__thumb { filter: drop-shadow(0 3px 2px rgba(88, 43, 26, .14)); }

body.site-entered .hero__date-delivery .delivered-date {
  animation: paperDelivered 1.75s .25s forwards var(--ease), dateBreath 4.8s 2.1s infinite alternate var(--ease);
}

body.site-entered .hero__date-delivery .delivery-hand {
  animation: handDelivery 2.25s .12s forwards var(--ease);
}

@keyframes handDelivery {
  0% { opacity: 0; transform: translateX(180px) translateY(8px) rotate(-5deg); }
  15% { opacity: 1; }
  56% { opacity: 1; transform: translateX(-132px) translateY(0) rotate(-5deg); }
  72% { opacity: 1; transform: translateX(-132px) translateY(0) rotate(-5deg); }
  100% { opacity: 0; transform: translateX(70px) translateY(10px) rotate(-5deg); }
}

@keyframes paperDelivered {
  0% { opacity: 0; transform: translate(170px, 18px) rotate(-8deg); }
  16% { opacity: 1; }
  56% { opacity: 1; transform: translate(-50%, 4px) rotate(-8deg); }
  74% { opacity: 1; transform: translate(-50%, 4px) rotate(-8deg); }
  100% { opacity: 1; transform: translate(-50%, 0) rotate(-5deg); }
}

@keyframes dateBreath {
  from { transform: translate(-50%, 0) rotate(-5deg); }
  to { transform: translate(-50%, -8px) rotate(-3deg); }
}

.text-panel--transparent {
  position: relative;
  z-index: 5;
  padding: 28px 22px;
  border: 1px solid rgba(255, 249, 237, .16);
  border-radius: 30px;
  background: rgba(50, 3, 17, .48);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
}

.text-panel h2 {
  text-transform: none;
}

.accent-line {
  margin-top: 24px !important;
  margin-bottom: 12px !important;
}

.countdown {
  margin-top: 12px;
}

.story .scene__inner {
  padding-top: 50px;
  padding-bottom: 76px;
}

.photo-triptych {
  position: relative;
  z-index: 3;
  margin-top: 116px;
  margin-bottom: 24px;
}

.photo-triptych figure {
  transform-origin: center;
  opacity: .15;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.photo-triptych__main { transform: translateY(30px) scale(.96); }
.photo-triptych__side:first-child { transform: translate(-12px, 28px) rotate(-8deg) scale(.92); }
.photo-triptych__side:last-child { transform: translate(12px, 28px) rotate(8deg) scale(.92); }
.scene.is-active .photo-triptych figure { opacity: 1; }
.scene.is-active .photo-triptych__main { transform: translateY(0) scale(1); }
.scene.is-active .photo-triptych__side:first-child { transform: translate(0, 15px) rotate(-5deg) scale(1); transition-delay: .12s; }
.scene.is-active .photo-triptych__side:last-child { transform: translate(0, 15px) rotate(5deg) scale(1); transition-delay: .22s; }

.section-script {
  margin-top: 4px;
  margin-bottom: 34px;
  line-height: .98;
}

.place .section-script {
  margin-top: 8px;
  margin-bottom: 42px;
}

.venue-card {
  position: relative;
  z-index: 4;
  margin-top: 0;
}

.timing .scene__inner {
  padding-top: 24px;
}

.lace-board {
  margin-top: -14px;
}

.rsvp {
  padding-top: 118px;
  padding-bottom: 86px;
}

.rsvp .section-script {
  margin-top: 10px;
  margin-bottom: 26px;
  padding-top: 6px;
}

.form-intro {
  position: relative;
  z-index: 4;
  max-width: 365px;
  padding: 13px 16px;
  border-radius: 22px;
  background: rgba(255, 250, 240, .78);
  box-shadow: 0 14px 38px rgba(75, 7, 28, .07);
}

.rsvp-form {
  position: relative;
  z-index: 5;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.field-title,
.field > span,
.field legend {
  display: block;
  margin: 0 0 2px;
  color: var(--wine);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
}

.radio-field {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(75,7,28,.12);
}

.radio-field .field-title {
  margin-bottom: 2px;
}

.radio-field label {
  position: relative;
  z-index: 1;
}

.field.has-error {
  animation: fieldShake .36s ease;
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (min-width: 900px) {
  :root { --stage: 100vw; }

  .site-nav {
    width: min(calc(100vw - 210px), 940px);
  }

  body {
    background: #180208;
  }

  body::after {
    display: none;
  }

  .invite {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .scene {
    min-height: 100vh;
    padding: 96px clamp(46px, 7vw, 110px);
  }

  .scene__inner {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__inner {
    min-height: calc(100vh - 192px);
    max-width: 1040px;
  }

  .hero__names {
    max-width: 820px;
    font-size: clamp(92px, 9vw, 150px);
    line-height: .92;
  }

  .hero__text {
    max-width: 460px;
    font-size: 18px;
  }

  .hero__date-delivery {
    width: 520px;
    height: 190px;
  }

  .delivered-date {
    width: 260px;
    top: 48px;
  }

  .delivery-hand {
    width: 290px;
    right: -210px;
  }

  .story .scene__inner {
    display: grid;
    grid-template-columns: minmax(420px, .98fr) minmax(430px, .9fr);
    align-items: center;
    gap: clamp(48px, 6vw, 86px);
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .photo-triptych {
    grid-template-columns: 118px minmax(260px, 1fr) 118px;
    gap: 18px;
    margin: 70px 0 0;
  }

  .text-panel--transparent {
    padding: 42px 44px;
  }

  .text-panel p {
    max-width: 420px;
    font-size: 17px;
  }

  .text-panel h2 {
    font-size: 44px;
  }

  .accent-line {
    font-size: 62px;
  }

  .countdown {
    max-width: 440px;
    gap: 12px;
  }

  .countdown div {
    padding: 16px 10px;
  }

  .countdown b {
    font-size: 34px;
  }

  .place .scene__inner {
    max-width: 1080px;
  }

  .venue-card {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(360px, .82fr);
    align-items: stretch;
    max-width: 1040px;
  }

  .venue-card figure {
    aspect-ratio: auto;
    min-height: 430px;
  }

  .venue-card div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
  }

  .venue-card h3 {
    font-size: 34px;
  }

  .calendar-card {
    max-width: 720px;
    padding: 34px 42px 40px;
  }

  .calendar-card__top {
    font-size: 30px;
  }

  .calendar-grid span {
    min-height: 56px;
    font-size: 24px;
  }

  .lace-board {
    max-width: 600px;
    padding: 58px 54px 48px;
  }

  .timeline article {
    grid-template-columns: 112px 1fr;
    padding: 16px 18px;
    font-size: 18px;
  }

  .details .scene__inner {
    max-width: 980px;
  }

  .envelope-scene {
    height: 260px;
  }

  .envelope {
    width: 310px;
    height: 188px;
  }

  .envelope__paper {
    width: 250px;
    top: -62px;
    font-size: 13px;
  }

  .text-panel--centered h2 {
    font-size: 46px;
  }

  .rsvp .scene__inner {
    max-width: 760px;
  }

  .rsvp-form {
    max-width: 640px;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .rsvp-form .field:first-child,
  .rsvp-form .field--hidden,
  .rsvp-form .field:nth-last-of-type(1),
  .rsvp-form .submit-btn,
  .rsvp-form .form-status {
    grid-column: 1 / -1;
  }

  .music-toggle {
    right: 28px;
    top: 24px;
  }

  .help-button {
    right: 42px;
    top: 108px;
  }

  .modal__card {
    width: min(100%, 460px);
  }
}

/* Wedding mood block replacing the day plan */
.timing .vow-card {
  position: relative;
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 52px 28px 34px;
  overflow: hidden;
  border: 1px solid rgba(247, 217, 162, .42);
  border-radius: 34px 34px 120px 120px;
  background:
    radial-gradient(circle at 50% 8%, rgba(247, 217, 162, .26), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 237, .96), rgba(235, 205, 168, .93));
  color: var(--wine);
  box-shadow:
    0 32px 90px rgba(12, 1, 5, .42),
    inset 0 0 0 10px rgba(255, 255, 255, .24);
  text-align: center;
  isolation: isolate;
}

.timing .vow-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border: 1px solid rgba(75, 7, 28, .12);
  border-radius: 26px 26px 105px 105px;
}

.timing .vow-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  width: 86px;
  height: 86px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 150, 85, .34), transparent 68%);
  transform: translateX(-50%);
  animation: vowGlow 4.8s infinite alternate var(--ease);
}

.timing .vow-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.timing .vow-orbit span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(197, 150, 85, .72);
  box-shadow: 0 0 18px rgba(247, 217, 162, .68);
  animation: vowFloat 5.6s infinite var(--ease);
}

.timing .vow-orbit span:nth-child(1) { left: 18%; top: 20%; animation-delay: 0s; }
.timing .vow-orbit span:nth-child(2) { right: 16%; top: 26%; width: 6px; height: 6px; animation-delay: .8s; }
.timing .vow-orbit span:nth-child(3) { left: 14%; bottom: 28%; width: 5px; height: 5px; animation-delay: 1.4s; }
.timing .vow-orbit span:nth-child(4) { right: 18%; bottom: 20%; animation-delay: 2.1s; }

.timing .vow-card .section-script {
  margin-bottom: 16px;
  color: var(--wine);
  font-size: clamp(58px, 14vw, 86px);
  line-height: .9;
}

.timing .vow-card__text {
  max-width: 300px;
  margin: 0 auto 24px;
  color: rgba(47, 22, 17, .76);
  font-size: 15px;
  line-height: 1.72;
}

.timing .vow-moments {
  display: grid;
  gap: 12px;
}

.timing .vow-moments article {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid rgba(75, 7, 28, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  text-align: left;
  box-shadow: 0 14px 36px rgba(75, 7, 28, .08);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.timing .vow-moments article:nth-child(2) { transition-delay: .12s; }
.timing .vow-moments article:nth-child(3) { transition-delay: .24s; }
.timing.is-active .vow-moments article { opacity: 1; transform: translateY(0); }

.timing .vow-moments span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fff9ed 0 18%, transparent 20%),
    linear-gradient(145deg, var(--wine), #8a1538);
  box-shadow: inset 0 0 0 1px rgba(255, 249, 237, .28), 0 10px 22px rgba(75, 7, 28, .18);
}

.timing .vow-moments b {
  color: var(--wine);
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.timing .vow-moments small {
  color: rgba(47, 22, 17, .62);
  font-size: 12px;
}

@keyframes vowFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .42; }
  45% { transform: translate3d(10px, -16px, 0) scale(1.35); opacity: .95; }
}

@keyframes vowGlow {
  from { transform: translateX(-50%) scale(.82); opacity: .5; }
  to { transform: translateX(-50%) scale(1.22); opacity: .95; }
}

@media (min-width: 760px) {
  .timing .vow-card {
    width: min(100%, 520px);
    padding: 64px 54px 44px;
  }

  .timing .vow-card__text {
    max-width: 390px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .scene {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .hero__inner {
    min-height: 680px;
  }

  .hero__names {
    font-size: clamp(54px, 17vw, 82px);
  }

  .hero__date-delivery {
    height: 162px;
  }

  .delivered-date {
    width: 205px;
    top: 42px;
  }

  .delivery-hand {
    width: 235px;
    right: -178px;
  }

  .story .scene__inner {
    padding-top: 70px;
  }

  .photo-triptych {
    margin-top: 124px;
  }

  .text-panel--transparent {
    padding: 24px 18px;
  }

  .place .section-script {
    margin-bottom: 38px;
  }

  .rsvp {
    padding-top: 136px;
  }
}

/* ================================
   V6 точечные правки по верстке
   ================================ */

/* Убираем лишние декоративные линии на стартовой карточке */
.intro__card::before,
.intro__card::after {
  display: none !important;
}

.intro__card {
  min-height: auto;
  padding-top: 58px;
  padding-bottom: 36px;
}

.intro__card .overline {
  margin-bottom: 18px;
}

.intro__title {
  margin-top: 18px !important;
  margin-bottom: 34px !important;
  font-size: clamp(42px, 8.2vw, 74px) !important;
  line-height: 1.04 !important;
  overflow: visible;
}

.intro__date-scene--clean {
  height: 122px;
  margin: 4px 0 12px;
}

.intro__date-scene--clean .date-slip {
  bottom: 18px;
}

/* Старую рисованную руку убираем до подбора нормального PNG-референса */
.hand-shadow,
.delivery-hand {
  display: none !important;
}

.hero__date-delivery {
  height: 148px;
}

.delivered-date {
  transform: translate(-50%, 22px) rotate(-7deg);
}

body.site-entered .hero__date-delivery .delivered-date {
  animation: paperDeliveredClean 1.15s .25s forwards var(--ease), dateBreathClean 4.8s 1.7s infinite alternate var(--ease);
}

@keyframes paperDeliveredClean {
  0% { opacity: 0; transform: translate(-50%, 72px) rotate(-10deg) scale(.92); }
  60% { opacity: 1; transform: translate(-50%, -4px) rotate(-6deg) scale(1.02); }
  100% { opacity: 1; transform: translate(-50%, 0) rotate(-5deg) scale(1); }
}

@keyframes dateBreathClean {
  from { transform: translate(-50%, 0) rotate(-5deg); }
  to { transform: translate(-50%, -8px) rotate(-3deg); }
}

/* Исправляем наложения первого экрана */
.hero__names {
  line-height: 1.02 !important;
  margin-top: 10px !important;
  margin-bottom: 8px !important;
}

.hero__text {
  position: relative;
  z-index: 8;
  max-width: min(92%, 410px);
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 249, 237, .76);
  box-shadow: 0 14px 40px rgba(75, 7, 28, .08);
  backdrop-filter: blur(6px);
}

/* Блок места: два адреса, фото и карты */
.place {
  align-items: flex-start;
  padding-top: 96px;
  padding-bottom: 98px;
}

.place .section-script {
  margin-top: 18px !important;
  margin-bottom: 54px !important;
  line-height: 1.02 !important;
}

.venue-list {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.venue-card {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0 !important;
}

.venue-kicker {
  margin: 0 0 8px !important;
  color: var(--gold) !important;
  font-size: 11px;
  line-height: 1.2 !important;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.map-frame {
  width: 100%;
  height: 210px;
  margin: 18px 0 16px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(75, 7, 28, .13);
  background: #eadcc5;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(.72) contrast(.96);
}

/* Календарь: 20 июня выделено сердечками */
.wedding-day {
  isolation: isolate;
  background: transparent !important;
  color: var(--wine) !important;
  font-weight: 900;
}

.wedding-day::before {
  content: "♡";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  transform: translate(-50%, -48%) rotate(-8deg);
  color: var(--wine);
  font-size: 64px;
  line-height: 1;
  animation: heartPulseV6 1.9s infinite var(--ease);
}

.wedding-day::after {
  content: "♥  ♥";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  border: 0 !important;
  color: var(--wine);
  font-size: 12px;
  letter-spacing: 8px;
  animation: miniHeartsV6 2.2s infinite var(--ease);
}

@keyframes heartPulseV6 {
  0%, 100% { transform: translate(-50%, -48%) rotate(-8deg) scale(1); opacity: .95; }
  50% { transform: translate(-50%, -48%) rotate(-8deg) scale(1.08); opacity: 1; }
}

@keyframes miniHeartsV6 {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .65; }
  50% { transform: translateX(-50%) translateY(-3px); opacity: 1; }
}

/* Details наверху по центру, не за конвертом */
.details .scene__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: 30px;
}

.watermark {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  order: -2;
  width: 100%;
  text-align: center;
  color: #d7a36a !important;
  font-size: clamp(62px, 13vw, 116px) !important;
  line-height: .86;
  pointer-events: none;
}

.envelope-scene {
  order: -1;
  margin-bottom: 4px !important;
}

.text-panel--centered {
  position: relative;
  z-index: 6;
  max-width: 620px;
  padding: 22px 20px;
  border-radius: 28px;
  background: rgba(49, 3, 17, .42);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .16);
  backdrop-filter: blur(7px);
}

/* Мы женимся на ПК крупнее */
.accent-line {
  font-size: clamp(54px, 12vw, 78px) !important;
  line-height: 1.1 !important;
}

.story .text-panel--transparent {
  overflow: visible;
}

/* Форма: радио-блоки не должны быть маленькими */
.rsvp {
  padding-top: 132px;
}

.rsvp .section-script {
  position: relative;
  z-index: 4;
  margin-top: 24px !important;
  margin-bottom: 28px !important;
  line-height: 1.03 !important;
}

.rsvp-form {
  width: 100%;
}

.radio-field {
  width: 100%;
  min-height: 0;
  padding: 20px;
}

.radio-field label {
  min-height: 58px;
}

.field-title {
  margin-bottom: 8px !important;
}

@media (min-width: 900px) {
  .intro__card {
    width: min(100%, 430px);
  }

  .intro__title {
    font-size: clamp(56px, 4.7vw, 86px) !important;
  }

  .hero__inner {
    max-width: 1180px;
  }

  .hero__names {
    font-size: clamp(92px, 7.2vw, 136px) !important;
    max-width: 880px;
  }

  .hero__text {
    font-size: 20px;
    max-width: 560px;
  }

  .accent-line {
    font-size: clamp(76px, 6vw, 104px) !important;
  }

  .countdown {
    margin-top: 24px !important;
    max-width: 520px;
  }

  .place .scene__inner {
    max-width: 1200px;
  }

  .venue-list {
    max-width: 1180px;
  }

  .venue-card {
    grid-template-columns: minmax(390px, .9fr) minmax(430px, 1fr) !important;
  }

  .venue-card:nth-child(even) {
    grid-template-columns: minmax(430px, 1fr) minmax(390px, .9fr) !important;
  }

  .venue-card:nth-child(even) figure {
    order: 2;
  }

  .venue-card figure {
    min-height: 460px;
  }

  .map-frame {
    height: 240px;
  }

  .details .scene__inner {
    max-width: 980px;
    padding-top: 0;
  }

  .watermark {
    font-size: clamp(98px, 8vw, 150px) !important;
  }

  .rsvp .scene__inner {
    max-width: 900px;
  }

  .rsvp-form {
    max-width: 820px !important;
    grid-template-columns: 1fr 1fr;
  }

  .rsvp-form .radio-field {
    grid-column: 1 / -1 !important;
  }

  .rsvp-form .field:first-child,
  .rsvp-form .field--hidden,
  .rsvp-form .field:nth-last-of-type(1),
  .rsvp-form .submit-btn,
  .rsvp-form .form-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .intro__card {
    padding-top: 78px;
  }

  .intro__title {
    font-size: clamp(46px, 14vw, 70px) !important;
    line-height: 1.08 !important;
  }

  .hero__inner {
    min-height: 700px;
    justify-content: flex-start;
    padding-top: 68px;
  }

  .hero__date-delivery {
    margin-top: 12px;
  }

  .hero__text {
    margin-top: 22px;
  }

  .place {
    padding-top: 104px;
  }

  .place .section-script {
    margin-bottom: 48px !important;
  }

  .venue-card div {
    padding: 22px 18px 24px;
  }

  .map-frame {
    height: 190px;
  }

  .wedding-day::before {
    font-size: 54px;
  }

  .wedding-day::after {
    bottom: -12px;
    font-size: 10px;
    letter-spacing: 6px;
  }

  .watermark {
    font-size: 76px !important;
  }

  .rsvp {
    padding-top: 142px;
  }

  .radio-field {
    padding: 18px;
  }
}
/* ================================
   Final small fixes
   ================================ */

/* 1. Фото церкви / банкетного зала не должно налезать на карту */
.venue-card {
  overflow: hidden !important;
}

.venue-card figure,
.venue-card__media {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 28px 28px 0 0;
  aspect-ratio: 4 / 3;
  min-height: 0 !important;
}

.venue-card figure img,
.venue-card__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 42% !important;
}

.venue-card > div {
  position: relative !important;
  z-index: 2 !important;
  background: rgba(255, 249, 237, .96);
}

.map-frame {
  position: relative !important;
  z-index: 5 !important;
  display: block !important;
  width: 100% !important;
  clear: both !important;
  margin-top: 20px !important;
  overflow: hidden !important;
}

/* На ПК фото и карта остаются раздельными, без залезаний */
@media (min-width: 900px) {
  .venue-card figure,
  .venue-card__media {
    border-radius: 30px 0 0 30px;
    aspect-ratio: auto;
    height: 100% !important;
    min-height: 430px !important;
  }

  .venue-card:nth-child(even) figure,
  .venue-card:nth-child(even) .venue-card__media {
    border-radius: 0 30px 30px 0;
  }

  .venue-card > div {
    min-width: 0;
  }

  .map-frame {
    height: 250px !important;
  }
}

/* На мобилке делаем аккуратную вертикальную карточку */
@media (max-width: 899px) {
  .venue-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .venue-card figure,
  .venue-card__media {
    height: auto !important;
    min-height: 0 !important;
    max-height: 360px;
  }

  .venue-card > div {
    padding: 24px 18px 26px !important;
  }

  .map-frame {
    height: 210px !important;
  }
}

/* 2. Details наверху по центру и цветом как "Мы женимся" */
.details .watermark {
  position: relative !important;
  order: -10 !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 10 !important;
  display: block !important;
  width: 100% !important;
  margin: 0 auto 18px !important;
  text-align: center !important;
  color: #d7a36a !important;
  opacity: .46 !important;
  font-size: clamp(62px, 10vw, 122px) !important;
  line-height: .86 !important;
}

.details .envelope-scene {
  position: relative !important;
  z-index: 3 !important;
  margin-top: 0 !important;
}

/* 3. Уменьшить "Мы женимся!" только на ПК */
@media (min-width: 900px) {
  .story .accent-line {
    width: max-content;
    max-width: none;
    margin: 34px auto 22px !important;
    font-size: clamp(54px, 3.7vw, 66px) !important;
    line-height: .78 !important;
    white-space: nowrap;
  }
}

/* 4. На мобилке оставляем "Мы женимся!" как было */
@media (max-width: 899px) {
  .story .accent-line {
    font-size: clamp(48px, 13vw, 72px) !important;
  }
}

/* 5. RSVP: блок "Вы сможете присутствовать?" не должен быть маленьким */
.rsvp-form {
  width: 100% !important;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.rsvp-form .radio-field {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.rsvp-form #companyNamesField {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.rsvp-form .radio-field label {
  width: 100% !important;
}

@media (min-width: 900px) {
  .rsvp-form {
    grid-template-columns: 1fr 1fr !important;
  }

  .rsvp-form .radio-field {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 899px) {
  .rsvp-form {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================
   HERO SCENE — рука с датой как в reels
   ========================================= */

.hero-scene {
  position: relative;
  overflow: hidden;
  padding: 80px 20px 50px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 20%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.06), transparent 18%),
    linear-gradient(180deg, #7b0027 0%, #5a001e 48%, #7c1436 100%);
}

.hero-scene__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.hero-scene__content {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  margin: 0 auto;
  background: rgba(251, 245, 236, 0.96);
  border-radius: 34px;
  padding: 34px 28px 46px;
  box-shadow: 0 30px 80px rgba(27, 0, 8, 0.25);
  text-align: center;
}

.hero-scene__kicker {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #b2844e;
}

.hero-scene__title {
  margin: 0;
  line-height: 0.88;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-scene__title-script {
  font-family: "TattooABC", "Floriselscript", "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 90px);
  font-weight: 400;
  color: #6e1731;
}

.hero-scene__title-script--second {
  margin-top: -4px;
}

.hero-scene__date-wrap {
  position: relative;
  margin: 34px auto 0;
  width: 100%;
  max-width: 560px;
  min-height: 270px;
}

.hero-scene__date-card {
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translateX(-50%) scale(0.9);
  width: min(84%, 320px);
  background: linear-gradient(180deg, #fffaf3 0%, #f5ede0 100%);
  border: 1px solid rgba(182, 145, 89, 0.45);
  border-radius: 8px;
  padding: 26px 18px;
  box-shadow: 0 14px 36px rgba(60, 21, 20, 0.18);
  opacity: 0;
  z-index: 3;
}

.hero-scene__date-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(182, 145, 89, 0.55);
  border-radius: 4px;
  pointer-events: none;
}

.hero-scene__date-card span {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.25;
  font-weight: 500;
  color: #8d6436;
}

.hero-scene__hand {
  position: absolute;
  right: -26px;
  bottom: -10px;
  width: min(54vw, 340px);
  max-width: 340px;
  opacity: 0;
  transform: translateX(110px) translateY(30px) rotate(-4deg);
  transform-origin: right bottom;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.hero-scene.is-animated .hero-scene__hand {
  animation: handEnter 1.3s cubic-bezier(.22,.61,.36,1) forwards;
}

.hero-scene.is-animated .hero-scene__date-card {
  animation: dateCardReveal 1s .45s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes handEnter {
  0% {
    opacity: 0;
    transform: translateX(110px) translateY(30px) rotate(-4deg);
  }
  60% {
    opacity: 1;
    transform: translateX(-10px) translateY(0) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg);
  }
}

@keyframes dateCardReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(22px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* =========================================
   CLOSING SCENE — details + цветы с кольцами
   ========================================= */

.closing-scene {
  position: relative;
  overflow: hidden;
  padding: 88px 20px 110px;
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,.08), transparent 20%),
    linear-gradient(180deg, #7b0027 0%, #5d001e 52%, #7c1436 100%);
}

.closing-scene__inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.closing-scene__top {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.closing-scene__watermark {
  margin: 0 0 22px;
  font-family: "TattooABC", "Floriselscript", "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 90px);
  line-height: 0.9;
  color: #d7a36a;
  opacity: 0.52;
}

.closing-scene__envelope {
  position: relative;
  width: min(100%, 420px);
  height: 250px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(132, 17, 50, .92), rgba(96, 8, 34, .92));
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(24, 0, 7, 0.28);
  overflow: visible;
}

.closing-scene__envelope::before,
.closing-scene__envelope::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.closing-scene__envelope::before {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  border-radius: 10px;
}

.closing-scene__envelope::after {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(90, 7, 29, .55), rgba(255,255,255,.03));
  clip-path: polygon(0 100%, 50% 54%, 100% 100%);
  border-radius: 0 0 10px 10px;
}

.closing-scene__note {
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  width: min(86%, 300px);
  background: #fbf4e8;
  color: #7c4b4b;
  padding: 20px 16px;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(23, 0, 7, 0.18);
  font-size: 16px;
  line-height: 1.4;
  z-index: 5;
}

/* =========================================
   DESKTOP
   ========================================= */

@media (min-width: 900px) {
  .hero-scene {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 90px 40px 70px;
  }

  .hero-scene__content {
    padding: 44px 40px 56px;
  }

  .hero-scene__date-wrap {
    min-height: 330px;
    max-width: 660px;
  }

  .hero-scene__date-card {
    top: 36px;
    width: 320px;
  }

  .hero-scene__hand {
    width: 320px;
    right: 26px;
    bottom: -8px;
  }

  .closing-scene {
    padding: 110px 40px 140px;
  }

  .closing-scene__envelope {
    width: 420px;
    height: 250px;
  }

}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 899px) {
  .hero-scene {
    padding: 62px 16px 36px;
  }

  .hero-scene__content {
    padding: 26px 18px 36px;
    border-radius: 26px;
  }

  .hero-scene__kicker {
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
  }

  .hero-scene__title-script {
    font-size: clamp(36px, 12vw, 58px);
  }

  .hero-scene__date-wrap {
    min-height: 240px;
    margin-top: 24px;
  }

  .hero-scene__date-card {
    top: 20px;
    width: min(82%, 255px);
    padding: 20px 14px;
  }

  .hero-scene__date-card span {
    font-size: 19px;
  }

  .hero-scene__hand {
    width: min(64vw, 250px);
    right: -12px;
    bottom: 0;
  }

  .closing-scene {
    padding: 70px 16px 86px;
  }

  .closing-scene__watermark {
    margin-bottom: 18px;
    font-size: clamp(40px, 13vw, 62px);
  }

  .closing-scene__envelope {
    width: min(100%, 330px);
    height: 190px;
  }

  .closing-scene__note {
    width: min(86%, 250px);
    font-size: 14px;
    padding: 16px 12px;
    top: -20px;
  }

}
/* ================================
   V6 — правка цвета Details и отступа заголовка на загрузочном экране
   ================================ */

/* Details цветом как "Мы женимся!" */
.details .watermark {
  color: #d7a36a !important;
  opacity: 1 !important;
}

/* Отступ сверху у "День нашей свадьбы" на загрузочном экране */
.intro__title {
  margin-top: 34px !important;
}
.details .watermark {
  color: #d7a36a !important;
  opacity: .72 !important;
}

/* Calendar: keep the 20th readable above the heart accent. */
.wedding-day {
  z-index: 1;
  background: var(--wine) !important;
  color: var(--cream) !important;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(75, 7, 28, .22);
}

.wedding-day::before {
  content: "" !important;
  inset: -6px !important;
  left: auto !important;
  top: auto !important;
  z-index: -1;
  border: 2px solid rgba(75, 7, 28, .32) !important;
  border-radius: 999px !important;
  transform: none !important;
  animation: dayRingPulse 1.9s infinite var(--ease) !important;
}

.wedding-day::after {
  content: "♥" !important;
  left: auto !important;
  right: -7px !important;
  bottom: auto !important;
  top: -11px !important;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  transform: none !important;
  border: 0 !important;
  border-radius: 50%;
  background: var(--cream);
  color: var(--wine);
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(75, 7, 28, .2);
  animation: dayHeartFloat 2.2s infinite var(--ease) !important;
}

@keyframes dayRingPulse {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes dayHeartFloat {
  0%, 100% { transform: translateY(0); opacity: .82; }
  50% { transform: translateY(-2px); opacity: 1; }
}

/* Richer timing and details scenes */
.timing {
  background:
    radial-gradient(circle at 50% 28%, rgba(244, 214, 162, .16), transparent 24%),
    radial-gradient(circle at 18% 78%, rgba(181, 30, 67, .26), transparent 22%),
    radial-gradient(circle at 82% 74%, rgba(181, 30, 67, .22), transparent 24%),
    linear-gradient(180deg, #690921, #2d020f 58%, #64081f);
}

.timing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(104deg, transparent 0 34px, rgba(255, 249, 237, .035) 35px 43px),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 22%, transparent 78%, rgba(255,255,255,.035));
  pointer-events: none;
}

.timing .scene__inner,
.details .scene__inner {
  position: relative;
  z-index: 3;
}

.timing .lace-board {
  width: min(100%, 720px);
  max-width: 720px;
  padding: clamp(42px, 5vw, 62px) clamp(28px, 5vw, 58px) clamp(34px, 4vw, 48px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .62), transparent 34%),
    linear-gradient(145deg, #fff0cf, #f3d6a0 58%, #ecd09c);
  box-shadow:
    0 34px 90px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(255,255,255,.52);
}

.timing .lace-board::before {
  inset: 16px;
  border: 1px dashed rgba(75, 7, 28, .36);
  border-radius: 24px;
}

.timing .lace-board__clip {
  width: 92px;
  height: 52px;
  top: -24px;
  border-radius: 32px 32px 14px 14px;
  background:
    radial-gradient(circle at 50% 38%, #fff3c8 0 10px, transparent 11px),
    linear-gradient(135deg, #f0d391, #a36c2c);
}

.timing .section-script {
  margin-bottom: 28px;
  font-size: clamp(58px, 6vw, 96px);
}

.timing .timeline {
  position: relative;
  gap: 16px;
  margin: 20px auto 22px;
  max-width: 560px;
}

.timing .timeline::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(75, 7, 28, .34), transparent);
}

.timing .timeline article {
  position: relative;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  min-height: 64px;
  padding: 14px 18px 14px 20px;
  border: 1px solid rgba(75, 7, 28, .08);
  border-radius: 22px;
  background: rgba(255, 250, 239, .72);
  box-shadow: 0 14px 32px rgba(75,7,28,.08);
}

.timing .timeline article::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 7px rgba(75,7,28,.09), 0 0 0 12px rgba(197,150,85,.12);
}

.timing .timeline time {
  position: relative;
  z-index: 1;
  justify-self: end;
  color: var(--wine);
  font-size: 20px;
}

.timing .timeline span {
  font-size: 18px;
  color: rgba(47, 22, 17, .78);
}

.timing .board-note {
  max-width: 390px;
  padding-top: 14px;
  border-top: 1px solid rgba(75,7,28,.12);
  font-size: 13px;
}

.timing .bow {
  display: none;
}

.details {
  background:
    linear-gradient(180deg, rgba(255, 242, 213, .2) 0, rgba(255, 242, 213, .08) 38px, transparent 120px),
    radial-gradient(circle at 50% 18%, rgba(244, 214, 162, .14), transparent 26%),
    radial-gradient(circle at 16% 70%, rgba(181, 30, 67, .24), transparent 18%),
    radial-gradient(circle at 84% 72%, rgba(181, 30, 67, .2), transparent 20%),
    linear-gradient(180deg, #650920, #2f020f 60%, #63071f);
}

.details::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 4vw, 58px);
  z-index: 1;
  border: 1px solid rgba(244, 214, 162, .16);
  border-radius: clamp(22px, 3vw, 42px);
  pointer-events: none;
}

.details .silk {
  display: block;
  top: -84px;
  height: 172px;
  z-index: 2;
  opacity: .98;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 246, 222, .72), rgba(246, 206, 143, .24) 42%, transparent 68%),
    linear-gradient(116deg, rgba(255, 238, 199, .88), rgba(190, 125, 62, .46) 32%, rgba(93, 9, 33, .35) 68%, transparent);
  filter: blur(.1px) drop-shadow(0 20px 42px rgba(18, 1, 8, .28));
  border-radius: 0 0 52% 48% / 0 0 34% 42%;
}

.details .silk::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 214, 162, .64), transparent);
}

.details .scene__inner {
  width: min(100%, 980px);
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.details .watermark {
  position: relative;
  top: auto;
  right: auto;
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0 0 -18px;
  color: #f6d7a5 !important;
  opacity: .9 !important;
  font-size: clamp(86px, 10vw, 156px);
  line-height: .82;
}

.details .envelope-scene {
  position: relative;
  z-index: 2;
  height: auto;
  min-height: 300px;
  margin: 0;
}

.details .envelope {
  width: min(100%, 350px);
  height: 218px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9a1638, #53081e);
  box-shadow: 0 34px 80px rgba(0,0,0,.34);
}

.details .envelope::before { border-width: 109px 175px 0 0; }
.details .envelope::after { border-width: 109px 0 0 175px; }

.details .envelope__paper {
  width: 260px;
  top: -66px;
  padding: 20px 18px;
  font-size: 14px;
  box-shadow: 0 18px 36px rgba(0,0,0,.2);
}

.details .text-panel--centered {
  position: relative;
  z-index: 3;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(244, 214, 162, .18);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,249,237,.1), rgba(255,249,237,.045));
  box-shadow: 0 28px 80px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
}

.details .text-panel--centered::before {
  content: "контакты";
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.details .text-panel--centered h2 {
  margin: 10px 0 18px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
}

.details .phone-link {
  min-height: 52px;
  padding: 0 30px;
  border-color: rgba(244, 214, 162, .42);
  background: rgba(75, 7, 28, .22);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.details .small-note {
  max-width: 410px;
  margin: 24px auto 0 !important;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 214, 162, .16);
  font-size: 15px;
  line-height: 1.65;
}

@media (min-width: 900px) {
  .details .scene__inner {
    grid-template-columns: minmax(330px, .9fr) minmax(420px, 1fr);
  }

  .details .watermark {
    grid-column: 1 / -1;
  }

  .details::after {
    width: min(560px, 38vw);
    left: 18%;
    opacity: .28;
  }
}

@media (max-width: 899px) {
  .timing::after,
  .details::after {
    width: min(420px, 86vw);
    opacity: .22;
  }

  .timing .lace-board {
    padding: 42px 22px 34px;
  }

  .timing .timeline article {
    grid-template-columns: 78px 1fr;
    padding-right: 14px;
  }

  .timing .timeline span {
    font-size: 16px;
  }

  .details .scene__inner {
    gap: 22px;
  }

  .details .watermark {
    margin-bottom: -8px;
  }

  .details .envelope-scene {
    min-height: 230px;
  }

  .details .envelope {
    width: min(86vw, 300px);
    height: 186px;
  }

  .details .envelope::before { border-width: 93px 150px 0 0; }
  .details .envelope::after { border-width: 93px 0 0 150px; }

  .details .envelope__paper {
    width: min(74vw, 228px);
    top: -58px;
    font-size: 12px;
  }
}

/* Timing: lace clipboard card inspired by vintage scalloped wedding stationery. */
.timing .silk--top {
  opacity: .34;
  height: 96px;
}

.timing .lace-board {
  isolation: isolate;
  width: min(92vw, 470px);
  max-width: 470px;
  min-height: 650px;
  padding: 76px clamp(30px, 5vw, 48px) 62px;
  border: 10px solid rgba(255, 244, 218, .86);
  border-radius: 34px;
  color: #4d2a1f;
  background:
    radial-gradient(circle at 20% 11%, rgba(255,255,255,.72), transparent 18%),
    radial-gradient(circle at 78% 88%, rgba(181, 122, 52, .16), transparent 25%),
    repeating-linear-gradient(45deg, rgba(88, 45, 26, .035) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #fff1cf, #f8ddb0 52%, #eed09e);
  box-shadow:
    0 36px 96px rgba(0,0,0,.36),
    inset 0 0 0 1px rgba(255,255,255,.7),
    inset 0 0 54px rgba(112, 61, 24, .12);
}

.timing .lace-board > * {
  position: relative;
  z-index: 3;
}

.timing .lace-board::before {
  inset: 18px;
  z-index: 2;
  border: 1px dotted rgba(75,7,28,.38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 7%, rgba(117, 63, 27, .16), transparent 18%),
    radial-gradient(circle at 50% 93%, rgba(117, 63, 27, .14), transparent 18%);
}

.timing .lace-board::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 1;
  border-radius: 38px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(75,7,28,.34) 0 2px, transparent 2.5px) top left / 22px 22px repeat-x,
    radial-gradient(circle, rgba(75,7,28,.34) 0 2px, transparent 2.5px) bottom left / 22px 22px repeat-x,
    radial-gradient(circle, rgba(75,7,28,.34) 0 2px, transparent 2.5px) top left / 22px 22px repeat-y,
    radial-gradient(circle, rgba(75,7,28,.34) 0 2px, transparent 2.5px) top right / 22px 22px repeat-y,
    radial-gradient(ellipse at 50% 9%, rgba(255,255,255,.62), transparent 18%),
    radial-gradient(ellipse at 50% 91%, rgba(255,255,255,.5), transparent 18%);
  opacity: .48;
}

.timing .lace-board__clip {
  top: -38px;
  width: 92px;
  height: 62px;
  border-radius: 28px 28px 12px 12px;
  background:
    radial-gradient(circle at 50% 35%, #fff4c8 0 9px, transparent 10px),
    linear-gradient(135deg, #f1d997, #b0752f 65%, #8f5720);
  box-shadow: 0 14px 28px rgba(40, 3, 12, .26);
}

.timing .overline {
  margin-bottom: 8px;
  color: rgba(166, 108, 48, .82);
}

.timing .section-script {
  margin: 0 0 30px;
  color: #5c0b24 !important;
  font-size: clamp(58px, 9vw, 86px);
  line-height: .92;
}

.timing .timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 24px;
  max-width: 100%;
  margin: 18px auto 26px;
}

.timing .timeline::before {
  display: none;
}

.timing .timeline article {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 128px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.timing .timeline article:nth-child(even) {
  text-align: right;
  transform: translateY(30px);
}

.timing .timeline article::before {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 8px;
  transform: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(92, 11, 36, .66);
  font-size: 31px;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

.timing .timeline time {
  justify-self: auto;
  color: #5c0b24;
  font-family: "WeddingScript", Georgia, serif;
  font-size: clamp(38px, 7vw, 50px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: 0;
}

.timing .timeline span {
  margin-top: 8px;
  color: rgba(78, 42, 31, .78);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
}

.timing .board-note {
  max-width: 310px;
  margin-top: 32px;
  padding: 15px 18px 0;
  border-top: 1px solid rgba(92, 11, 36, .18);
  color: rgba(78, 42, 31, .58);
  font-size: 12px;
}

.timing .bow {
  display: block;
  bottom: clamp(22px, 4vw, 44px);
  width: 96px;
  height: 42px;
  opacity: .95;
}

.timing .bow::before,
.timing .bow::after {
  background: #2c010d;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

@media (max-width: 899px) {
  .timing .lace-board {
    min-height: 610px;
    padding: 66px 24px 56px;
  }

  .timing .timeline {
    gap: 22px 18px;
  }

  .timing .timeline article {
    min-height: 116px;
  }

  .timing .timeline article:nth-child(even) {
    transform: translateY(24px);
  }

  .timing .timeline time {
    font-size: clamp(34px, 11vw, 46px);
  }
}

.timing .lace-board {
  background:
    url("../assets/images/timing-lace-bg.svg") center / 100% 100% no-repeat,
    radial-gradient(circle at 20% 11%, rgba(255,255,255,.72), transparent 18%),
    radial-gradient(circle at 78% 88%, rgba(181, 122, 52, .16), transparent 25%),
    repeating-linear-gradient(45deg, rgba(88, 45, 26, .035) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #fff1cf, #f8ddb0 52%, #eed09e);
}

.timing .lace-board::after {
  background: none;
}

.timing .timeline article::before {
  content: "";
  width: 38px;
  height: 38px;
  background: #5c0b24;
  opacity: .68;
  -webkit-mask: var(--timing-icon) center / contain no-repeat;
  mask: var(--timing-icon) center / contain no-repeat;
}

.timing .timeline article:nth-child(even)::before {
  justify-self: end;
}

.timing .timeline article:nth-child(1)::before {
  --timing-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v5'/%3E%3Cpath d='M9.5 4.5h5'/%3E%3Cpath d='M4 22h16'/%3E%3Cpath d='M6 22v-8l6-5l6 5v8'/%3E%3Cpath d='M10 22v-5a2 2 0 0 1 4 0v5'/%3E%3C/svg%3E");
}

.timing .timeline article:nth-child(2)::before {
  --timing-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21v-9l7-5l7 5v9'/%3E%3Cpath d='M9 21v-5a3 3 0 0 1 6 0v5'/%3E%3Cpath d='M7 10v-4h10v4'/%3E%3Cpath d='M10 6v-3h4v3'/%3E%3C/svg%3E");
}

.timing .timeline article:nth-child(3)::before {
  --timing-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11h16a1 1 0 0 1 1 1v.5c0 1.5 -2.517 5.573 -4 6.5v1a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-1c-1.687 -1.054 -4 -5 -4 -6.5v-.5a1 1 0 0 1 1 -1'/%3E%3Cpath d='M12 4a2.4 2.4 0 0 0 -1 2a2.4 2.4 0 0 0 1 2'/%3E%3Cpath d='M16 4a2.4 2.4 0 0 0 -1 2a2.4 2.4 0 0 0 1 2'/%3E%3Cpath d='M8 4a2.4 2.4 0 0 0 -1 2a2.4 2.4 0 0 0 1 2'/%3E%3C/svg%3E");
}

.timing .timeline article:nth-child(4)::before {
  --timing-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h2'/%3E%3Cpath d='M5 4v2'/%3E%3Cpath d='M11.5 4l-.5 2'/%3E%3Cpath d='M18 5h2'/%3E%3Cpath d='M19 4v2'/%3E%3Cpath d='M15 9l-1 1'/%3E%3Cpath d='M18 13l2 -.5'/%3E%3Cpath d='M18 19h2'/%3E%3Cpath d='M19 18v2'/%3E%3Cpath d='M14 16.518l-6.518 -6.518l-4.39 9.58a1 1 0 0 0 1.329 1.329l9.579 -4.39'/%3E%3C/svg%3E");
}

.timing .lace-board {
  min-height: 560px;
}

.timing .timeline:has(article:nth-child(2):last-child) {
  margin-top: 26px;
  margin-bottom: 30px;
}

.timing .timeline:has(article:nth-child(2):last-child) article {
  min-height: 150px;
  justify-content: center;
}

.timing .timeline:has(article:nth-child(2):last-child) span {
  font-size: 16px;
}

@media (max-width: 899px) {
  .timing .lace-board {
    min-height: 540px;
  }
}

/* Wine silk dividers based on the local Pexels fabric texture. */
.silk {
  height: clamp(118px, 14vw, 184px);
  background:
    linear-gradient(90deg, rgba(24, 1, 8, .74), rgba(106, 8, 37, .16) 28%, rgba(255, 211, 147, .18) 50%, rgba(84, 5, 30, .18) 72%, rgba(18, 1, 7, .76)),
    linear-gradient(180deg, rgba(255, 232, 190, .18), rgba(70, 4, 25, .32)),
    url("../assets/images/wine-silk-divider.jpg") center 48% / cover no-repeat;
  filter:
    saturate(.86)
    hue-rotate(-9deg)
    brightness(.66)
    contrast(1.18)
    drop-shadow(0 22px 36px rgba(18, 1, 8, .34));
  opacity: .92;
}

.silk::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 45%, rgba(255, 234, 194, .2), transparent 32%),
    radial-gradient(ellipse at 74% 58%, rgba(255, 218, 160, .16), transparent 34%),
    linear-gradient(105deg, transparent 0 28%, rgba(255,255,255,.11) 41%, transparent 58% 100%);
  mix-blend-mode: screen;
  opacity: .68;
  pointer-events: none;
}

.silk::after {
  background:
    repeating-linear-gradient(105deg, transparent 0 34px, rgba(255,255,255,.045) 38px 43px, transparent 47px 68px),
    linear-gradient(90deg, rgba(255, 223, 169, .16), transparent 24%, transparent 76%, rgba(255, 223, 169, .14));
  opacity: .82;
}

.silk--top {
  top: -72px;
  border-radius: 0 0 48% 52% / 0 0 34% 42%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 78%, transparent 100%);
}

.silk--bottom {
  bottom: -76px;
  border-radius: 52% 48% 0 0 / 42% 34% 0 0;
  -webkit-mask-image: linear-gradient(to top, #000 0 78%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0 78%, transparent 100%);
}

.silk--deep,
.timing .silk--top {
  opacity: .82;
  background-position: center 42%;
  filter:
    saturate(.9)
    hue-rotate(-11deg)
    brightness(.58)
    contrast(1.24)
    drop-shadow(0 24px 42px rgba(18, 1, 8, .38));
}

.rsvp .silk--top {
  opacity: .9;
  top: -78px;
}

.timing .bow {
  display: none !important;
}

@media (max-width: 899px) {
  .silk {
    height: 128px;
  }

  .silk--top {
    top: -66px;
  }

  .silk--bottom {
    bottom: -68px;
  }
}

@media (min-width: 900px) {
  .story .scene__inner {
    grid-template-columns: minmax(560px, 1fr) minmax(430px, .84fr);
    gap: clamp(82px, 8vw, 132px);
  }

  .photo-triptych {
    position: relative;
    display: block;
    width: min(42vw, 560px);
    height: min(60vh, 590px);
    min-height: 510px;
    margin: 34px 0 0;
    isolation: isolate;
    perspective: 1200px;
  }

  .photo-triptych::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -3;
    width: 72%;
    height: 86%;
    transform: translate(-50%, -50%) rotate(-5deg);
    border: 1px solid rgba(248, 210, 156, .32);
    border-radius: 999px 999px 42px 42px;
    background:
      linear-gradient(160deg, rgba(255, 249, 237, .08), transparent 42%),
      radial-gradient(circle at 50% 28%, rgba(248, 210, 156, .20), transparent 46%);
    box-shadow:
      inset 0 0 0 1px rgba(255, 249, 237, .08),
      0 34px 92px rgba(0, 0, 0, .30);
  }

  .photo-triptych .photo-triptych__main::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -46px;
    width: 1px;
    height: 42px;
    transform: translateX(-50%);
    background: linear-gradient(transparent, rgba(248, 210, 156, .82));
    pointer-events: none;
  }

  .photo-triptych::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -2;
    width: 88%;
    height: 70%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
      radial-gradient(circle, rgba(248, 210, 156, .23), transparent 58%),
      radial-gradient(circle at 50% 78%, rgba(255, 249, 237, .10), transparent 42%);
    filter: blur(18px);
  }

  .photo-triptych figure {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border: 0;
    background: rgba(255, 249, 237, .92);
    box-shadow:
      0 30px 80px rgba(0, 0, 0, .46),
      0 0 0 1px rgba(248, 210, 156, .28);
    opacity: .15;
    transition: opacity .95s var(--ease), transform .95s var(--ease), filter .95s var(--ease), box-shadow .95s var(--ease);
  }

  .photo-triptych figure::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 249, 237, .46);
    background:
      linear-gradient(135deg, rgba(255,255,255,.24), transparent 34%),
      linear-gradient(180deg, transparent 58%, rgba(0,0,0,.24));
    pointer-events: none;
  }

  .photo-triptych__side::before {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: -1;
    border: 1px solid rgba(248, 210, 156, .20);
    pointer-events: none;
  }

  .photo-triptych__side:first-child::before {
    border-radius: 999px;
  }

  .photo-triptych__side:last-child::before {
    border-radius: 32px;
  }

  .photo-triptych img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.08) brightness(1.03);
    transform: scale(1.035);
  }

  .photo-triptych__main {
    left: 50%;
    top: 48%;
    z-index: 3;
    width: min(27vw, 360px);
    min-width: 310px;
    aspect-ratio: 4 / 5.45;
    padding: 10px;
    border-radius: 999px 999px 34px 34px;
    transform: translate(-50%, -40%) rotate(.4deg) scale(.94);
  }

  .photo-triptych__main img {
    border-radius: 999px 999px 24px 24px;
  }

  .photo-triptych__side {
    z-index: 2;
    padding: 8px;
    filter: brightness(.88) saturate(.88);
  }

  .photo-triptych__side:first-child {
    left: 1%;
    top: 53%;
    width: min(15vw, 205px);
    min-width: 170px;
    aspect-ratio: 1 / 1.18;
    border-radius: 999px;
    transform: translate(48px, 44px) rotate(-16deg) scale(.86);
  }

  .photo-triptych__side:first-child img {
    border-radius: 999px;
  }

  .photo-triptych__side:last-child {
    right: 2%;
    top: 23%;
    width: min(14vw, 190px);
    min-width: 160px;
    aspect-ratio: 3 / 4.6;
    border-radius: 26px;
    transform: translate(-42px, 46px) rotate(13deg) scale(.86);
  }

  .photo-triptych__side:last-child img {
    border-radius: 18px;
  }

  .scene.is-active .photo-triptych figure {
    opacity: 1;
  }

  .scene.is-active .photo-triptych__main {
    transform: translate(-50%, -50%) rotate(.4deg) scale(1);
  }

  .scene.is-active .photo-triptych__side:first-child {
    transform: translate(0, 0) rotate(-12deg) scale(1);
    transition-delay: .12s;
  }

  .scene.is-active .photo-triptych__side:last-child {
    transform: translate(0, 0) rotate(10deg) scale(1);
    transition-delay: .22s;
  }

  .photo-triptych:hover .photo-triptych__main {
    transform: translate(-50%, -51.5%) rotate(.4deg) scale(1.018);
    box-shadow:
      0 38px 92px rgba(0, 0, 0, .50),
      0 0 0 1px rgba(248, 210, 156, .36),
      0 0 34px rgba(248, 210, 156, .16);
  }

  .photo-triptych:hover .photo-triptych__side:first-child {
    transform: translate(-10px, 6px) rotate(-15deg) scale(1.02);
  }

  .photo-triptych:hover .photo-triptych__side:last-child {
    transform: translate(10px, -8px) rotate(13deg) scale(1.02);
  }
}

/* Keep the wedding mood title clear of the small overline */
.timing .vow-card .overline {
  position: relative;
  z-index: 2;
  margin-bottom: 34px;
}

.timing .vow-card .section-script {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 22px;
  line-height: 1.08;
}

@media (max-width: 480px) {
  .timing .vow-card {
    padding-top: 64px;
  }

  .timing .vow-card .overline {
    margin-bottom: 38px;
  }

  .timing .vow-card .section-script {
    font-size: clamp(50px, 15vw, 68px);
    line-height: 1.12;
  }
}

.timing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(82px, 12svh, 124px) clamp(18px, 5vw, 32px);
}

.timing .scene__inner {
  display: grid;
  place-items: center;
  width: 100%;
  padding-top: 0;
}

.timing .timing-card {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: clamp(34px, 7vw, 58px) clamp(22px, 6vw, 50px);
  border: 1px solid rgba(255, 244, 218, .88);
  border-radius: 18px;
  background: #fff7e8;
  color: var(--ink);
  text-align: center;
  box-shadow:
    0 34px 86px rgba(10, 1, 5, .44),
    0 0 0 1px rgba(75, 7, 28, .08);
}

.timing .timing-card::before,
.timing .timing-card::after {
  display: none;
}

.timing .timing-card .overline {
  color: rgba(75, 7, 28, .64);
}

.timing .timing-card .section-script {
  max-width: 440px;
  margin: 0 auto clamp(24px, 5vw, 38px);
  color: var(--wine) !important;
  font-size: clamp(48px, 11vw, 82px);
  line-height: 1;
}

.timing .event-schedule {
  display: grid;
  width: min(100%, 430px);
  margin: 0 auto;
  border-top: 1px solid rgba(75, 7, 28, .18);
  border-bottom: 1px solid rgba(75, 7, 28, .18);
}

.timing .event-schedule article {
  display: grid;
  grid-template-columns: minmax(88px, .32fr) 1fr;
  gap: clamp(14px, 5vw, 30px);
  align-items: center;
  padding: clamp(20px, 5vw, 26px) 0;
  text-align: left;
}

.timing .event-schedule article + article {
  border-top: 1px solid rgba(75, 7, 28, .14);
}

.timing .event-schedule time {
  color: var(--wine);
  font-family: "WeddingScript", Georgia, serif;
  font-size: clamp(38px, 9vw, 54px);
  line-height: .82;
  white-space: nowrap;
}

.timing .event-schedule span {
  color: rgba(47, 22, 17, .82);
  font-size: clamp(16px, 3.8vw, 20px);
  font-weight: 650;
  line-height: 1.42;
}

.timing .timing-card .board-note {
  max-width: 360px;
  margin: clamp(24px, 5vw, 34px) auto 0;
  padding: 0;
  border: 0;
  color: rgba(47, 22, 17, .62);
  font-size: clamp(13px, 3.3vw, 14px);
  line-height: 1.6;
}

@media (max-width: 480px) {
  .timing {
    padding-inline: 16px;
  }

  .timing .timing-card {
    border-radius: 14px;
  }

  .timing .event-schedule article {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
}

/* Full-screen video loader. The video is contained so the envelope stays visible on any viewport. */
.loader-intro {
  display: grid;
  place-items: end center;
  width: 100vw;
  height: 100vh;
  min-height: 100svh;
  padding: 24px 18px max(28px, env(safe-area-inset-bottom));
  background: rgb(33, 3, 1);
}

.loader-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      #080101 0%,
      #170102 9%,
      #4e0305 23%,
      rgba(83, 4, 6, .92) 31%,
      rgba(83, 4, 6, .08) 40%,
      transparent 47%,
      transparent 58%,
      rgba(70, 3, 6, .12) 66%,
      rgba(72, 3, 7, .94) 75%,
      #240104 90%,
      #080101 100%),
    radial-gradient(circle at 26% 30%, rgba(70, 5, 8, .20), transparent 24%),
    radial-gradient(circle at 78% 62%, rgba(74, 5, 9, .18), transparent 28%),
    repeating-linear-gradient(18deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 5px);
  opacity: .22;
}

.loader-intro__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  background: rgb(33, 3, 1);
  filter: saturate(1.04) contrast(1.04) brightness(.96);
  transform: none;
}

.loader-intro__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 0, 1, .22) 0%, transparent 24%, transparent 68%, rgba(4, 0, 1, .36) 100%),
    radial-gradient(ellipse at 50% 43%, transparent 38%, rgba(5, 0, 1, .28) 100%),
    linear-gradient(90deg, rgba(4, 0, 1, .26), transparent 15%, transparent 85%, rgba(4, 0, 1, .26));
}

.loader-intro__shade::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 236, 189, .20), transparent 14%),
    radial-gradient(circle at 70% 69%, rgba(197, 150, 85, .17), transparent 17%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: .35;
}

.loader-intro__shade::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(760px, 100vw);
  height: clamp(118px, 19vh, 188px);
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 238, 202, .08), transparent 60%),
    linear-gradient(180deg, transparent, rgba(18, 1, 6, .26) 58%, rgba(4, 0, 1, .72) 100%);
}

.loader-paper-overlay {
  position: absolute;
  left: var(--loader-paper-left, 50%);
  top: var(--loader-paper-top, 42.8%);
  z-index: 4;
  width: var(--loader-paper-width, min(36vw, 530px));
  aspect-ratio: 1 / 1.05;
  color: rgb(33, 3, 1);
  overflow: visible;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.loader-paper-overlay__inner {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  text-align: center;
}

.loader-paper-overlay__line,
.loader-paper-overlay__divider {
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity .34s var(--ease),
    transform .34s var(--ease),
    clip-path .44s var(--ease);
  will-change: opacity, transform;
}

.loader-paper-overlay__line {
  color: rgb(33, 3, 1);
  text-shadow: 0 2px 2px rgba(255, 246, 228, .20);
}

.loader-paper-overlay__line--title,
.loader-paper-overlay__line--subtitle {
  font-family: "WeddingScript", "Bad Script", "Marck Script", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: .01em;
  padding: .12em .18em;
  overflow: visible;
}

.loader-paper-overlay__line--title {
  margin-top: 11.5%;
  font-size: clamp(36px, 3.35vw, 62px);
  line-height: 1.06;
}

.loader-paper-overlay__line--subtitle {
  margin-top: .8%;
  font-size: clamp(30px, 2.75vw, 50px);
  line-height: 1.02;
}

.loader-paper-overlay__divider {
  display: block;
  width: 58%;
  margin: 4.6% auto 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  clip-path: inset(0 50% 0 50%);
}

.loader-paper-overlay__divider circle,
.loader-paper-overlay__divider path:nth-child(5) {
  fill: currentColor;
}

.loader-paper-overlay__line--date {
  margin-top: 4.3%;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.15vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
}

.loader-intro.is-paper-ready .loader-paper-overlay__line--title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.loader-intro.is-paper-ready .loader-paper-overlay__line--subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .12s;
}

.loader-intro.is-paper-ready .loader-paper-overlay__divider {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
  transition-delay: .22s;
}

.loader-intro.is-paper-ready .loader-paper-overlay__line--date {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .32s;
}

.loader-intro__sparkles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 34%, rgba(255, 249, 237, .92) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 29%, rgba(255, 229, 178, .78) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 66%, rgba(255, 249, 237, .66) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 73%, rgba(255, 229, 178, .58) 0 1px, transparent 2px);
  background-size: 220px 260px, 280px 320px, 240px 280px, 310px 350px;
  opacity: .38;
  animation: loaderSparkleDrift 6s infinite alternate var(--ease);
}

.loader-intro::after {
  z-index: 6;
  inset: 14px;
  border-color: rgba(255, 249, 237, .20);
  box-shadow: inset 0 0 120px rgba(7, 1, 3, .22);
}

.loader-intro__content {
  position: relative;
  z-index: 7;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 0 0 clamp(4px, 1.5vh, 18px);
  transform: none;
}

.loader-intro__overline {
  margin-bottom: 10px;
  color: rgba(255, 249, 237, .78);
  text-shadow: 0 10px 30px rgba(0, 0, 0, .72);
}

.loader-intro.has-video-error .loader-intro__video {
  opacity: .24;
}

@keyframes loaderSparkleDrift {
  from {
    transform: translate3d(-8px, -5px, 0);
    opacity: .24;
  }
  to {
    transform: translate3d(8px, 8px, 0);
    opacity: .46;
  }
}

@media (max-width: 760px) {
  .loader-intro {
    padding: 18px 14px max(112px, calc(env(safe-area-inset-bottom) + 104px));
    background: rgb(33, 3, 1);
  }

  .loader-intro::before,
  .loader-intro__sparkles,
  .loader-intro__shade::before,
  .loader-intro__shade::after {
    display: none;
  }

  .loader-intro__video {
    inset: 0;
    width: 100vw;
    height: 100svh;
    object-fit: contain;
    object-position: center center;
    filter: none;
    background: rgb(33, 3, 1);
    transform: none;
  }

  .loader-intro__shade {
    background:
      linear-gradient(180deg, rgba(4, 0, 1, .10), transparent 26%, transparent 72%, rgba(4, 0, 1, .18));
  }

  .loader-paper-overlay {
    top: var(--loader-paper-top, 39.4%);
    width: var(--loader-paper-width, min(48vw, 260px));
    aspect-ratio: 1 / 1.04;
  }

  .loader-paper-overlay__line--title {
    margin-top: 9%;
    font-size: clamp(20px, 5.8vw, 31px);
    line-height: 1.08;
  }

  .loader-paper-overlay__line--subtitle {
    margin-top: .3%;
    font-size: clamp(18px, 5.1vw, 27px);
    line-height: 1.04;
  }

  .loader-paper-overlay__divider {
    width: 58%;
    margin-top: 4%;
    stroke-width: 5;
  }

  .loader-paper-overlay__line--date {
    margin-top: 3.8%;
    font-size: clamp(15px, 4.1vw, 22px);
  }

  .loader-intro::after {
    display: none;
  }

  .loader-intro__content {
    width: min(100%, 330px);
    padding-bottom: 0;
  }

  .loader-paper-overlay__line,
  .loader-paper-overlay__divider {
    transform: translateY(5px);
    transition: opacity .42s var(--ease), transform .42s var(--ease);
    will-change: opacity, transform;
  }

  .loader-paper-overlay__divider {
    clip-path: none;
  }

}

@media (min-width: 430px) and (max-width: 480px) and (min-height: 930px) and (orientation: portrait) {
  .loader-paper-overlay {
    top: var(--loader-paper-top, 41.2%);
  }
}

@media (max-width: 380px) and (orientation: portrait) {
  .loader-paper-overlay {
    top: var(--loader-paper-top, 38.6%);
    width: var(--loader-paper-width, min(50vw, 230px));
  }

  .loader-paper-overlay__line--title {
    font-size: clamp(18px, 5.5vw, 28px);
  }

  .loader-paper-overlay__line--subtitle {
    font-size: clamp(16px, 4.9vw, 24px);
  }

  .loader-paper-overlay__line--date {
    font-size: clamp(14px, 3.9vw, 20px);
  }
}

@media (min-width: 381px) and (max-width: 429px) and (min-height: 880px) and (orientation: portrait) {
  .loader-paper-overlay {
    top: var(--loader-paper-top, 39.4%);
  }
}

@media (min-width: 430px) and (max-width: 480px) and (max-height: 929px) and (orientation: portrait) {
  .loader-paper-overlay {
    top: var(--loader-paper-top, 40.2%);
  }
}

@media (max-width: 1023px) {
  .scene {
    scroll-margin-top: 92px;
  }

  .nav-toggle {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: 18px;
    z-index: 58;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(248, 210, 156, .48);
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 8%, rgba(255, 249, 237, .24), transparent 56%),
      rgba(75, 7, 28, .86);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, .26),
      inset 0 0 0 1px rgba(255, 249, 237, .08);
    backdrop-filter: blur(16px);
    cursor: pointer;
  }

  .nav-toggle span {
    grid-area: 1 / 1;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--cream);
    box-shadow: 0 0 12px rgba(255, 249, 237, .22);
    transition: transform .28s var(--ease), opacity .2s var(--ease);
  }

  .nav-toggle span:nth-child(1) {
    transform: translateY(-8px);
  }

  .nav-toggle span:nth-child(3) {
    transform: translateY(8px);
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .site-nav {
    left: auto;
    right: 18px;
    top: max(84px, calc(env(safe-area-inset-top) + 84px));
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: min(calc(100vw - 34px), 330px);
    min-height: 0;
    max-height: calc(100svh - 118px);
    padding: 12px;
    overflow: hidden;
    border-radius: 26px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(.98);
    transform-origin: top right;
    transition: opacity .24s var(--ease), transform .24s var(--ease);
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-nav a {
    min-width: 0;
    min-height: 42px;
    padding: 0 16px;
    font-size: 12px;
    letter-spacing: .08em;
    text-align: center;
    justify-content: center;
    border-color: rgba(248, 210, 156, .18);
    background: rgba(255, 249, 237, .08);
  }

  .music-toggle {
    top: auto;
    right: 16px;
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 76px));
    width: 54px;
    height: 54px;
  }

  .music-toggle__icon {
    font-size: 20px;
  }

  .help-button {
    top: auto;
    right: 22px;
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 22px));
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .site-nav {
    width: min(calc(100vw - 24px), 310px);
  }

  .site-nav a {
    min-height: 40px;
    font-size: 11px;
  }
}

/* Hero date: reference-style typography, no background plate */
.hero__date-ornament {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  min-height: 34px;
  margin-top: 14px;
}

.hero__date-line {
  display: inline-block;
  color: #4b071c;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(17px, 3.8vw, 24px);
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  letter-spacing: .10em;
  text-shadow:
    0 1px 0 rgba(255, 249, 237, .88),
    0 0 16px rgba(184, 135, 61, .30);
  opacity: 0;
  transform: translateY(18px);
}

body.site-entered .hero__date-ornament .hero__date-line {
  animation: dateLineIn .9s .25s forwards var(--ease), dateLineFloat 4.8s 1.4s infinite alternate var(--ease);
}

@keyframes dateLineIn {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes dateLineFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

@media (min-width: 900px) {
  .hero__date-ornament {
    width: 360px;
    min-height: 36px;
  }
}

@media (max-width: 480px) {
  .hero__date-ornament {
    min-height: 32px;
    margin-top: 10px;
  }
}
