/*
AlovaStory Product Theme
Theme Key: velora
Offline prototype v6
*/

:root {
  --alova-navy: #0D1B2A;
  --alova-deep-navy: #1B263B;
  --alova-teal: #4B6B7C;
  --alova-steel-blue: #3D5A80;
  --alova-airy-blue: #98B4C7;
  --alova-sky-blue: #C8D9E6;
  --alova-pale-blue: #D8E6F2;
  --alova-ice-blue: #EAF2F8;
  --alova-beige: #F2EFE7;
  --alova-white: #FFFFFF;

  --page-bg: var(--alova-beige);
  --page-ink: var(--alova-navy);

  --font-editorial: Georgia, "Times New Roman", serif;
  --font-script: "Snell Roundhand", "Brush Script MT", "Lucida Handwriting", "Apple Chancery", cursive;
  --font-sans: "Helvetica Neue", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --ease-editorial: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page-bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--page-ink);
  background: var(--page-bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body.is-opening-active { overflow: hidden; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
.alova-theme { min-height: 100dvh; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* SECTION 01 — OPENING */
.opening {
  position: fixed; inset: 0; z-index: 100; min-height: 100dvh; overflow: hidden;
  background: transparent;
  isolation: isolate;
}
.opening::before,
.opening::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 0;
  background: var(--page-bg);
  transition: transform 1880ms cubic-bezier(.76, 0, .24, 1);
  will-change: transform;
}
.opening::before {
  left: 0;
  transform-origin: left center;
}
.opening::after {
  right: 0;
  transform-origin: right center;
}
.opening.is-leaving { pointer-events: none; }
.opening.is-leaving::before { transform: translateX(-100%); }
.opening.is-leaving::after { transform: translateX(100%); }
.opening__art {
  position: absolute; left: 50%; top: 40%; z-index: 2; width: min(64vw, 520px); aspect-ratio: 1; transform: translate(-50%, -50%);
}
.opening__orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit text { fill: var(--page-ink); font-family: var(--font-sans); text-transform: uppercase; }
.orbit--outer text { font-size: 19px; font-weight: 500; letter-spacing: 4px; }
.orbit--middle text { font-size: 13px; font-weight: 500; letter-spacing: 2.8px; }
.orbit--inner text { font-size: 9.5px; font-weight: 500; letter-spacing: 1.9px; }
.opening__monogram {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; object-fit: contain; transform: translate(-50%, -50%);
}
.opening__guest {
  position: absolute; left: 50%; bottom: max(7vh, 34px); z-index: 2; width: min(88vw, 420px); transform: translateX(-50%); text-align: center;
}
.opening__eyebrow { margin: 0 0 .45rem; font-size: .72rem; font-weight: 700; }
.opening__guest-name { margin: 0; font-size: .98rem; font-weight: 400; line-height: 1.4; }
.opening__button {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 34px; margin-top: .9rem; padding: .42rem .9rem;
  border: 1.5px solid currentColor; border-radius: 999px; color: var(--page-ink); background: transparent; font-size: .75rem; font-weight: 700; cursor: pointer;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms var(--ease-editorial);
}
.opening__button:hover { color: var(--alova-white); background: var(--alova-deep-navy); border-color: var(--alova-deep-navy); transform: translateY(-1px); }
.opening__button-icon { width: 15px; height: 15px; }
.opening__button-icon svg { width: 100%; height: 100%; }
.opening:not(.is-ready) .opening__art,
.opening:not(.is-ready) .opening__guest { opacity: 0; }
.opening.is-ready .opening__art { animation: opening-art-in 1s var(--ease-editorial) both; }
.opening.is-ready .opening__guest { animation: opening-guest-in .7s .22s var(--ease-editorial) both; }
@keyframes opening-art-in { from { opacity: 0; transform: translate(-50%, -47%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes opening-guest-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }


.opening.is-leaving .opening__art {
  animation: opening-gate-art-out 1180ms cubic-bezier(.4,0,.2,1) both;
}
.opening.is-leaving .opening__guest {
  animation: opening-gate-guest-out 980ms cubic-bezier(.4,0,.2,1) both;
}
@keyframes opening-gate-art-out {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
}
@keyframes opening-gate-guest-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* SECTION 02 — HERO */
.hero { position: relative; min-height: 100dvh; overflow: hidden; background: var(--page-bg); }
.hero__inner { width: min(calc(100% - 44px), 1120px); min-height: 100dvh; margin-inline: auto; padding: max(30px, env(safe-area-inset-top)) 0 84px; }
.hero__greeting {
  display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; width: min(100%, 760px); margin-inline: auto;
  font-size: clamp(.7rem, 1.3vw, .95rem); font-weight: 500; letter-spacing: .24em;
}
.hero__copy { width: min(100%, 650px); margin: clamp(72px, 9vw, 112px) auto 0; text-align: center; }
.hero__title {
  margin: 0; font-family: var(--font-editorial); font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 400; line-height: 1; letter-spacing: .18em;
}
.hero__curves { position: relative; width: min(100%, 540px); height: 190px; margin: 46px auto 0; }
.hero__curve-svg { width: 100%; height: 180px; overflow: visible; }
.hero__curve-text { fill: var(--page-ink); font-family: var(--font-editorial); font-size: 19px; letter-spacing: 5px; }
.hero__curve-text--two { font-size: 18px; }
.hero__thought {
  position: absolute; left: 50%; bottom: 5px; margin: 0; transform: translateX(-50%); font-family: var(--font-editorial); font-size: 1.2rem; letter-spacing: .22em;
}
.hero__photos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 820px);
  margin: clamp(52px, 6.5vw, 92px) auto 0;
  overflow: hidden;
}

.editorial-photo {
  margin: 0;
  opacity: 0;
}

.editorial-photo__paper {
  padding: 10px 10px 18px;
  border-top: 1px solid rgba(13, 27, 42, .38);
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 1px 0 rgba(13,27,42,.06);
}

.editorial-photo__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.editorial-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.hero__greeting,
.hero__copy {
  opacity: 1;
}

.hero:not(.is-visible) .editorial-photo { opacity: 0; }

/*
  The opening copy is intentionally already present behind the gate.
  When the panels move aside, guests immediately see the first words.
  Only the two polaroids wait for the gate to finish.
*/
.hero.is-visible .editorial-photo--left {
  animation: hero-polaroid-left-meet 2.85s cubic-bezier(.22,1,.36,1) both .72s;
}

.hero.is-visible .editorial-photo--right {
  animation: hero-polaroid-right-meet 2.85s cubic-bezier(.22,1,.36,1) both .94s;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-polaroid-left-meet {
  from { opacity: 0; transform: translateX(-74px) rotate(-4deg) scale(.97); }
  to { opacity: 1; transform: translateX(0) rotate(-1deg) scale(1); }
}

@keyframes hero-polaroid-right-meet {
  from { opacity: 0; transform: translateX(74px) rotate(4deg) scale(.97); }
  to { opacity: 1; transform: translateX(0) rotate(1deg) scale(1); }
}

/* SECTION 03 — COUPLE INTRO */
.couple-intro { position: relative; background: var(--page-bg); color: var(--page-ink); }
.couple-intro__inner { width: min(calc(100% - 40px), 760px); margin-inline: auto; padding: 72px 0 52px; }
.couple-intro__visual {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: clamp(18px, 4vw, 34px); width: min(100%, 520px); margin-inline: auto;
}
.couple-intro__name {
  margin: 0; font-size: .86rem; font-weight: 500; line-height: 1.25; letter-spacing: .2em; writing-mode: vertical-rl; text-orientation: upright;
}
.couple-intro__name--left { justify-self: end; }
.couple-intro__name--right { justify-self: start; }
.couple-intro__art-wrap { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; }
.couple-intro__art { width: min(100%, 300px); aspect-ratio: 1; object-fit: contain; }
.couple-intro__bismillah { width: min(100%, 220px); margin: 18px auto 0; }
.couple-intro__bismillah-asset { width: 100%; height: auto; object-fit: contain; }
.couple-intro__verse { width: min(100%, 510px); margin: 54px auto 0; text-align: center; }
.couple-intro__quote { margin: 0; font-size: clamp(.92rem, 1.7vw, 1.05rem); font-weight: 400; line-height: 1.6; letter-spacing: .01em; }
.couple-intro__source { margin: 30px 0 0; font-size: clamp(.78rem, 1.35vw, .9rem); font-weight: 700; font-style: italic; letter-spacing: .03em; }

/* SECTION 04 — COUPLE PROFILE */
.couple-profile { position: relative; background: var(--page-bg); color: var(--page-ink); }
.couple-profile__inner { width: min(calc(100% - 34px), 640px); margin-inline: auto; padding: 8px 0 56px; }
.person-card { width: 100%; text-align: center; }
.person-card__frame {
  position: relative; width: min(100%, 228px); margin: 0 auto 16px; aspect-ratio: 1 / 1;
}
.person-card__frame--bottom { margin: 22px auto 0; }
.person-card__photo-wrap {
  position: absolute; left: 50%; top: 50%; width: 58%; height: 76%; transform: translate(-50%, -50%); overflow: hidden; border-radius: 50% / 46%; background: rgba(255,255,255,.28);
}
.person-card__photo { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1) contrast(1.04); }
.person-card__frame-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.person-card__name {
  margin: 0; font-family: var(--font-script); font-size: clamp(2.15rem, 6vw, 3.15rem); font-weight: 400; line-height: .98;
}
.person-card__divider {
  width: 1px; height: 56px; margin: 18px auto 20px; background-image: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 5px); opacity: .72;
}
.person-card__meta {
  margin: 0; font-size: clamp(.89rem, 1.6vw, 1rem); line-height: 1.55; font-style: italic;
}
.person-card__meta + .person-card__meta { margin-top: 2px; }
.couple-profile__monogram-wrap { display: grid; place-items: center; margin: 16px 0 18px; }
.couple-profile__monogram { width: 175px; height: 200px; aspect-ratio: auto; object-fit: contain; }

@media (max-width: 640px) {
  .opening__art { top: 38%; width: min(88vw, 430px); }
  .orbit--outer text { font-size: 17px; letter-spacing: 3.2px; }
  .orbit--middle text { font-size: 12px; letter-spacing: 2.2px; }
  .orbit--inner text { font-size: 9px; letter-spacing: 1.6px; }
  .opening__monogram { width: 24%; }
  .opening__guest { bottom: max(7vh, 28px); }

  .hero__inner { width: min(calc(100% - 28px), 560px); padding-top: max(25px, env(safe-area-inset-top)); padding-bottom: 56px; }
  .hero__greeting { font-size: clamp(.58rem, 2.5vw, .72rem); letter-spacing: .14em; }
  .hero__copy { margin-top: 78px; }
  .hero__title { font-size: clamp(1.8rem, 8vw, 2.35rem); letter-spacing: .16em; }
  .hero__curves { width: min(100%, 410px); height: 170px; margin-top: 34px; }
  .hero__curve-text { font-size: 16px; letter-spacing: 4px; }
  .hero__curve-text--two { font-size: 15px; }
  .hero__thought { bottom: 8px; font-size: .98rem; }

  .couple-intro__inner { width: min(calc(100% - 28px), 560px); padding-top: 56px; padding-bottom: 40px; }
  .couple-intro__visual { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 12px; width: min(100%, 390px); }
  .couple-intro__name { font-size: .72rem; letter-spacing: .13em; }
  .couple-intro__art { width: min(100%, 240px); }
  .couple-intro__bismillah { width: min(100%, 170px); margin-top: 16px; }
  .couple-intro__verse { width: min(100%, 410px); margin-top: 48px; }
  .couple-intro__quote { font-size: .9rem; line-height: 1.58; }
  .couple-intro__source { margin-top: 28px; font-size: .78rem; }

  .couple-profile__inner { width: min(calc(100% - 24px), 380px); padding-top: 6px; padding-bottom: 42px; }
  .person-card__frame { width: min(100%, 204px); margin-bottom: 14px; }
  .person-card__name { font-size: clamp(1.95rem, 11vw, 2.7rem); }
  .person-card__divider { height: 48px; margin: 16px auto 18px; }
  .person-card__meta { font-size: .9rem; line-height: 1.5; }
  .couple-profile__monogram-wrap { margin: 10px 0 12px; }
  .couple-profile__monogram { width: 175px; height: 200px; }
}

@media (max-height: 690px) {
  .opening__art { top: 36%; width: min(64vh, 430px); }
  .opening__guest { bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-visible .hero__photos,
  .hero.is-visible .editorial-photo--left,
  .hero.is-visible .editorial-photo--right {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* =========================================================
   SECTION 05 — WEDDING EVENT
   ========================================================= */

.event-section {
  position: relative;
  background: var(--page-bg);
  color: var(--page-ink);
}

.event-section__inner {
  width: min(calc(100% - 32px), 680px);
  margin-inline: auto;
  padding: 52px 0 64px;
  text-align: center;
}

.event-section__intro {
  font-size: clamp(.9rem, 1.7vw, 1rem);
  line-height: 1.45;
  letter-spacing: .015em;
}

.event-section__intro p { margin: 0; }

.event-section__date {
  display: grid;
  gap: 2px;
  margin-top: 44px;
  font-size: clamp(.92rem, 1.8vw, 1.03rem);
  line-height: 1.35;
}

.event-section__schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: min(100%, 480px);
  margin: 42px auto 0;
}

.event-section__schedule-item {
  display: grid;
  gap: 3px;
  font-size: clamp(.86rem, 1.5vw, .96rem);
  line-height: 1.35;
}

.event-section__ornament-wrap {
  display: grid;
  place-items: center;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 44px auto 0;
}

.event-section__ornament {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-section__venue { margin-top: 34px; }

.event-section__venue-name {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.25;
  letter-spacing: .04em;
}

.event-section__address {
  margin: 20px 0 0;
  font-size: clamp(.84rem, 1.5vw, .94rem);
  line-height: 1.5;
}

.event-section__location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 24px;
  padding: .6rem .85rem;
  border-radius: 4px;
  color: var(--alova-white);
  background: var(--alova-navy);
  font-size: .64rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 52px);
  justify-content: center;
  gap: 5px;
  margin-top: 28px;
}

.countdown__item {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 6px 4px;
  border: 1px solid rgba(13, 27, 42, .08);
  background: rgba(255,255,255,.5);
}

.countdown__item strong {
  font-size: .8rem;
  line-height: 1;
}

.countdown__item span {
  margin-top: 5px;
  font-size: .43rem;
  line-height: 1;
  opacity: .75;
}

.dress-code {
  width: min(100%, 500px);
  margin: 42px auto 0;
  padding: 22px 22px 24px;
  border-radius: 10px;
  background: rgba(255,255,255,.56);
}

.dress-code h3 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 1rem;
  font-weight: 400;
}

.dress-code p {
  margin: 16px 0 0;
  font-size: .55rem;
  line-height: 1.55;
}

.dress-code strong {
  display: block;
  margin-top: 9px;
  font-family: var(--font-editorial);
  font-size: .56rem;
  font-style: italic;
}

.dress-code__swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin: 18px auto 0;
}
.dress-code__swatch {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 7px;
  min-width: 58px;
}
.dress-code__color {
  display: block;
  width: 48px;
  aspect-ratio: 1;
  box-sizing: border-box;
  background: var(--dress-color);
  border: 1px solid rgba(13,27,42,.28);
}
.dress-code__color-name {
  max-width: 76px;
  font-family: var(--font-sans);
  font-size: .48rem;
  line-height: 1.25;
  letter-spacing: .04em;
  text-align: center;
}

@media (max-width: 640px) {
  .event-section__inner {
    width: min(calc(100% - 24px), 420px);
    padding-top: 58px;
    padding-bottom: 68px;
  }

  .event-section__date { margin-top: 38px; }

  .event-section__schedule {
    width: min(100%, 350px);
    gap: 14px;
    margin-top: 34px;
  }

  .event-section__schedule-item { font-size: .84rem; }

  .event-section__ornament-wrap {
    width: min(100%, 270px);
    margin-top: 36px;
  }

  .event-section__venue { margin-top: 26px; }
  .event-section__address { margin-top: 16px; }
  .event-section__location { margin-top: 20px; }
  .countdown { margin-top: 24px; }
  .dress-code { margin-top: 34px; padding: 20px 18px 22px; }
}


/* =========================================================
   SECTION 06 — OUR JOURNEY
   ========================================================= */

.journey-section {
  position: relative;
  background: var(--page-bg);
  color: var(--page-ink);
}

.journey-section__inner {
  width: min(calc(100% - 40px), 760px);
  margin-inline: auto;
  padding: 50px 0 80px;
}

.journey-section__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.journey-section__eyebrow {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .2em;
  opacity: .85;
}

.journey-section__title {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
}

.journey-section__divider {
  width: 100%;
  height: 1px;
  margin: 26px 0 44px;
  background: rgba(13, 27, 42, .18);
}

.journey-section__list {
  display: grid;
  gap: 34px;
}

.journey-card {
  width: min(100%, 410px);
}

.journey-card--right {
  margin-left: auto;
  text-align: left;
}

.journey-card--left {
  margin-right: auto;
  text-align: left;
}

.journey-card__title {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
}

.journey-card__text {
  margin: 0;
  font-size: clamp(.92rem, 1.6vw, 1rem);
  line-height: 1.65;
}

.journey-section__ornament {
  text-align: center;
  font-size: .9rem;
  letter-spacing: .22em;
  opacity: .75;
}

@media (max-width: 640px) {
  .journey-section__inner {
    width: min(calc(100% - 24px), 430px);
    padding: 38px 0 58px;
  }
  .journey-section__header { gap: 10px; }
  .journey-section__eyebrow { font-size: .65rem; letter-spacing: .16em; }
  .journey-section__title { font-size: clamp(1.8rem, 10vw, 2.45rem); }
  .journey-section__divider { margin: 20px 0 32px; }
  .journey-section__list { gap: 22px; }
  .journey-card,
  .journey-card--right,
  .journey-card--left {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .journey-card__title { margin-bottom: 10px; font-size: 1rem; }
  .journey-card__text { font-size: .9rem; line-height: 1.6; }
}


/* =========================================================
   SECTION 07 — GALLERY
   ========================================================= */

.gallery-section {
  position: relative;
  background: var(--page-bg);
  color: var(--page-ink);
}

.gallery-section__inner {
  width: min(calc(100% - 38px), 760px);
  margin-inline: auto;
  padding: 44px 0 88px;
}

.gallery-editorial {
  width: min(100%, 540px);
  margin-inline: auto;
}

.paper-photo { margin: 0; }
.paper-photo__inner {
  background: rgba(255,255,255,.54);
  padding: 10px 10px 18px;
  box-shadow: 0 1px 0 rgba(13,27,42,.06);
}
.paper-photo img,
.polaroid-card img,
.memory-card img,
.mini-polaroid img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}
.paper-photo--hero { width: min(100%, 280px); margin: 0 auto; }
.paper-photo__inner--hero img { aspect-ratio: 4 / 5; }

.gallery-editorial__middle {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
  margin-top: 24px;
}

.polaroid-card {
  position: relative;
  margin: 0;
}

.polaroid-card--right { margin-top: 78px; }

.polaroid-card__tape,
.memory-card__tape {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 70px;
  height: 16px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(13,27,42,.05);
  transform: translateX(-50%) rotate(-4deg);
  z-index: 2;
}

.polaroid-card__paper,
.memory-card__paper,
.mini-polaroid__paper {
  padding: 8px 8px 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 1px 0 rgba(13,27,42,.08);
}

.polaroid-card__paper img { aspect-ratio: 4 / 5; }
.gallery-editorial__note {
  padding-top: 20px;
  text-align: center;
}
.gallery-editorial__micro {
  margin: 0;
  font-size: .55rem;
  letter-spacing: .1em;
  font-weight: 500;
}
.gallery-editorial__micro--offset {
  margin-top: 18px;
  line-height: 1.7;
}
.gallery-editorial__meta {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 18px;
  text-align: center;
}
.gallery-editorial__names {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 20px;
  align-items: center;
  font-size: .68rem;
  letter-spacing: .16em;
}
.gallery-editorial__date {
  font-size: .52rem;
  line-height: 1.55;
  letter-spacing: .08em;
}
.paper-photo--wide {
  width: min(100%, 420px);
  margin: 34px auto 0;
}
.paper-photo__inner--wide {
  padding: 0;
  background: transparent;
}
.paper-photo__inner--wide img { aspect-ratio: 16 / 10; }

.memory-strip {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 228px) 110px;
  justify-content: center;
  align-items: center;
  gap: 22px;
  width: min(100%, 590px);
  margin: 64px auto 0;
}
.memory-strip__quote {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  font-style: italic;
}
.memory-strip__stack {
  position: relative;
  display: grid;
  gap: 10px;
}
.memory-card { margin: 0; }
.memory-card__paper img { aspect-ratio: 4 / 5; }
.memory-card--two { transform: translateX(8px); }
.memory-card--three { transform: translateX(-4px); }
.memory-strip__ring {
  width: 110px;
  aspect-ratio: 1;
}
.memory-strip__ring svg { width: 100%; height: 100%; overflow: visible; }
.memory-strip__ring text {
  fill: var(--page-ink);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.poem-collage {
  width: min(100%, 560px);
  margin: 84px auto 0;
}
.poem-heart {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  aspect-ratio: 1.1 / 1;
}
.poem-heart__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.poem-heart__shape path {
  fill: none;
  stroke: #b25045;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.poem-heart__content {
  position: absolute;
  inset: 16% 14% 14%;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  grid-template-rows: auto 1fr;
  column-gap: 22px;
}
.poem-heart__left h3,
.poem-heart__right h3 {
  margin: 0 0 22px;
  font-size: 1.15rem;
  font-weight: 700;
}
.poem-heart__date {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: .92rem;
  line-height: 1.15;
}
.poem-heart__right p,
.poem-heart__bottom {
  margin: 0;
  font-size: .95rem;
  line-height: 1.45;
}
.poem-heart__bottom {
  grid-column: 1 / -1;
  align-self: end;
  width: 56%;
  margin-left: 18%;
}
.poem-collage__photos {
  position: relative;
  width: min(100%, 460px);
  height: 332px;
  margin: 40px auto 0;
}
.mini-polaroid {
  position: absolute;
  margin: 0;
  width: 39%;
}
.mini-polaroid__paper { padding: 8px 8px 18px; }
.mini-polaroid--a { top: 10px; left: 0; transform: rotate(-6deg); }
.mini-polaroid--b { top: 0; right: 0; transform: rotate(5deg); }
.mini-polaroid--c { top: 112px; left: 28px; width: 31%; transform: rotate(-4deg); }
.mini-polaroid--d { top: 138px; right: 30px; width: 31%; transform: rotate(4deg); }
.mini-polaroid--a img,
.mini-polaroid--b img,
.mini-polaroid--c img { aspect-ratio: 4 / 5; }
.mini-polaroid--d img { aspect-ratio: 16 / 10; }

@media (max-width: 640px) {
  .gallery-section__inner {
    width: min(calc(100% - 24px), 420px);
    padding: 34px 0 64px;
  }
  .paper-photo--hero { width: min(100%, 240px); }
  .gallery-editorial__middle {
    grid-template-columns: 1fr 58px 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .polaroid-card--right { margin-top: 68px; }
  .gallery-editorial__micro { font-size: .5rem; }
  .gallery-editorial__micro--offset { margin-top: 14px; }
  .gallery-editorial__names { gap: 16px; font-size: .62rem; }
  .paper-photo--wide { width: min(100%, 300px); margin-top: 28px; }

  .memory-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(100%, 286px);
    margin-top: 50px;
    text-align: left;
  }
  .memory-strip__quote {
    width: 130px;
    font-size: .82rem;
    justify-self: start;
  }
  .memory-strip__stack { width: 100%; }
  .memory-strip__ring {
    width: 86px;
    justify-self: end;
    margin-top: -8px;
  }

  .poem-collage {
    width: 100%;
    margin-top: 62px;
  }
  .poem-heart {
    width: min(100%, 330px);
  }
  .poem-heart__content {
    inset: 17% 12% 13%;
    column-gap: 16px;
  }
  .poem-heart__left h3,
  .poem-heart__right h3 { font-size: 1rem; margin-bottom: 18px; }
  .poem-heart__date,
  .poem-heart__right p,
  .poem-heart__bottom { font-size: .84rem; }
  .poem-collage__photos {
    width: min(100%, 320px);
    height: 286px;
    margin-top: 28px;
  }
  .mini-polaroid--c { top: 106px; left: 16px; }
  .mini-polaroid--d { top: 126px; right: 16px; }
}





/* =========================================================
   SECTION 08 — LONG POLAROID
   ========================================================= */

.long-polaroid-section {
  position: relative;
  background: var(--page-bg);
  color: var(--page-ink);
}

.long-polaroid-section__inner {
  width: min(calc(100% - 32px), 720px);
  margin-inline: auto;
  padding: 30px 0 72px;
}

.long-polaroid-layout {
  display: grid;
  grid-template-columns: 145px 195px 145px;
  justify-content: center;
  align-items: start;
  column-gap: 42px;
}

.long-polaroid {
  position: relative;
  width: 195px;
  margin: 0 auto;
  transform: rotate(-3deg);
  transform-origin: center top;
}

.long-polaroid__tape {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 78px;
  height: 17px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(13,27,42,.05);
  transform: translateX(-50%) rotate(-4deg);
  z-index: 2;
}

.long-polaroid__paper {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 10px 10px 14px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 1px 0 rgba(13,27,42,.08);
}

.long-polaroid__slot {
  width: 175px;
  height: 175px;
  margin: 0;
  overflow: hidden;
}

.long-polaroid__slot img {
  display: block;
  width: 175px;
  height: 175px;
  max-width: none;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.love-note {
  width: 145px;
  align-self: start;
  background: rgba(255,255,255,.4);
  border: 1px solid rgba(13,27,42,.08);
  padding: 13px 13px 15px;
}

.love-note--left {
  justify-self: end;
  margin-top: 22px;
}

.love-note--right {
  justify-self: start;
  margin-top: 390px;
}

.love-note__mark {
  margin: 0 0 9px;
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  line-height: 1;
}

.love-note__text {
  margin: 0;
  font-size: .79rem;
  line-height: 1.58;
  font-style: italic;
}

@media (max-width: 640px) {
  .long-polaroid-section__inner {
    width: min(calc(100% - 24px), 360px);
    padding: 24px 0 56px;
  }

  .long-polaroid-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 16px;
  }

  .long-polaroid {
    width: 195px;
    grid-row: 2;
  }

  .love-note {
    width: 175px;
    padding: 12px 12px 14px;
  }

  .love-note--left {
    grid-row: 1;
    justify-self: start;
    margin: 0 0 -2px 18px;
  }

  .love-note--right {
    grid-row: 3;
    justify-self: end;
    margin: -2px 18px 0 0;
  }

  .love-note__text {
    font-size: .78rem;
    line-height: 1.55;
  }
}


/* =========================================================
   SECTION 09 — POEM HEART FRAME
   ========================================================= */

.poem-heart-section {
  position: relative;
  background: var(--page-bg);
  color: var(--page-ink);
}

.poem-heart-section__inner {
  width: min(calc(100% - 32px), 760px);
  margin-inline: auto;
  padding: 34px 0 84px;
}

.poem-heart-frame {
  position: relative;
  width: min(100%, 660px);
  margin: 0 auto;
}

.poem-heart-frame__asset {
  display: block;
  width: 100%;
  height: auto;
}

.poem-heart-frame__content {
  position: absolute;
  inset: 0;
  color: var(--page-ink);
}

.poem-heart-frame__left,
.poem-heart-frame__right,
.poem-heart-frame__bottom {
  position: absolute;
  text-align: center;
}

.poem-heart-frame__left {
  top: 24%;
  left: 22%;
  width: 18%;
}

.poem-heart-frame__right {
  top: 22%;
  right: 19%;
  width: 26%;
}

.poem-heart-frame__left h3,
.poem-heart-frame__right h3 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.poem-heart-frame__date {
  margin: 0;
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  font-weight: 700;
  line-height: 1.26;
}

.poem-heart-frame__top-text,
.poem-heart-frame__bottom {
  margin: 0;
  font-size: clamp(1.02rem, 1.7vw, 1.42rem);
  font-weight: 600;
  line-height: 1.3;
}

.poem-heart-frame__bottom {
  bottom: 19%;
  left: 50%;
  width: 28%;
  transform: translateX(-50%);
}

@media (max-width: 640px) {
  .poem-heart-section__inner {
    width: min(calc(100% - 24px), 380px);
    padding: 26px 0 60px;
  }

  .poem-heart-frame {
    width: min(100%, 360px);
  }

  .poem-heart-frame__left {
    top: 24%;
    left: 21%;
    width: 21%;
  }

  .poem-heart-frame__right {
    top: 23%;
    right: 16%;
    width: 29%;
  }

  .poem-heart-frame__left h3,
  .poem-heart-frame__right h3 {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .poem-heart-frame__date {
    font-size: 1.04rem;
    line-height: 1.15;
  }

  .poem-heart-frame__top-text,
  .poem-heart-frame__bottom {
    font-size: .98rem;
    line-height: 1.28;
  }

  .poem-heart-frame__bottom {
    bottom: 19%;
    width: 34%;
  }
}


/* =========================================================
   SECTION 10 — STACKED POLAROID GALLERY
   Baseline image sizes:
   1:1 = 175px
   4:5 = 150px wide
   5:4 = 210px wide
   ========================================================= */

.stack-gallery {
  position: relative;
  overflow: hidden;
  background: var(--page-bg);
  color: var(--page-ink);
}

.stack-gallery__inner {
  width: min(calc(100% - 32px), 720px);
  margin-inline: auto;
  padding: 32px 0 86px;
}

.stack-gallery__stage {
  position: relative;
  width: min(100%, 540px);
  height: 430px;
  margin: 0 auto;
}

.stack-polaroid {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  --enter-x: 0px;
  --enter-y: 64px;
  --enter-r: 0deg;
  position: absolute;
  left: 50%;
  top: 0;
  margin: 0;
  opacity: 0;
  transform:
    translate(
      calc(-50% + var(--x) + var(--enter-x)),
      calc(var(--y) + var(--enter-y))
    )
    rotate(calc(var(--r) + var(--enter-r)))
    scale(.88);
  transform-origin: center;
  transition:
    opacity 360ms ease,
    transform 760ms var(--ease-editorial);
  will-change: transform, opacity;
}

.stack-polaroid.is-in {
  opacity: 1;
  transform:
    translate(calc(-50% + var(--x)), var(--y))
    rotate(var(--r))
    scale(1);
}


.stack-gallery.is-resetting .stack-polaroid {
  transition:
    opacity 260ms ease,
    transform 390ms var(--ease-editorial);
}


.stack-polaroid__paper {
  padding: 8px 8px 18px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 8px 24px rgba(13,27,42,.08);
}

.stack-polaroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

/* 5:4 landscape — baseline 210px */
.stack-polaroid--landscape {
  --x: 0px;
  --y: 86px;
  --r: -2deg;
  --enter-x: 0px;
  --enter-y: 90px;
  --enter-r: -5deg;
  width: 210px;
  z-index: 1;
}
.stack-polaroid--landscape img {
  aspect-ratio: 5 / 4;
}

/* 4:5 portrait — baseline 150px wide */
.stack-polaroid--portrait-left {
  --x: -132px;
  --y: 42px;
  --r: -8deg;
  --enter-x: -90px;
  --enter-y: 38px;
  --enter-r: -8deg;
  width: 150px;
  z-index: 2;
}
.stack-polaroid--portrait-right {
  --x: 128px;
  --y: 176px;
  --r: 7deg;
  --enter-x: 100px;
  --enter-y: 70px;
  --enter-r: 8deg;
  width: 150px;
  z-index: 5;
}
.stack-polaroid--portrait-left img,
.stack-polaroid--portrait-right img {
  aspect-ratio: 4 / 5;
}

/* V50 — Gallery 12: fixed polaroid frame + clipped focal/zoom media.
   The photo may move/zoom only inside .stack-polaroid__media; it can no longer cover the paper frame. */
.stack-polaroid--portrait-right .stack-polaroid__paper {
  padding: 9px 9px 19px;
  box-sizing: border-box;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(13,27,42,.08);
}
.stack-polaroid--portrait-right .stack-polaroid__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eceae4;
}
.stack-polaroid--portrait-right .stack-polaroid__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

/* 1:1 square — baseline 175px */
.stack-polaroid--square-right {
  --x: 112px;
  --y: 22px;
  --r: 7deg;
  --enter-x: 95px;
  --enter-y: 42px;
  --enter-r: 8deg;
  width: 175px;
  z-index: 3;
}
.stack-polaroid--square-left {
  --x: -84px;
  --y: 188px;
  --r: -5deg;
  --enter-x: -90px;
  --enter-y: 72px;
  --enter-r: -7deg;
  width: 175px;
  z-index: 4;
}
.stack-polaroid--square-right img,
.stack-polaroid--square-left img {
  aspect-ratio: 1 / 1;
}

@media (max-width: 640px) {
  .stack-gallery__inner {
    width: min(calc(100% - 20px), 390px);
    padding: 26px 0 64px;
  }

  .stack-gallery__stage {
    width: 340px;
    height: 390px;
  }

  .stack-polaroid--landscape {
    --x: 0px;
    --y: 82px;
    width: 190px;
  }

  .stack-polaroid--portrait-left {
    --x: -96px;
    --y: 42px;
    width: 136px;
  }

  .stack-polaroid--square-right {
    --x: 88px;
    --y: 26px;
    width: 158px;
  }

  .stack-polaroid--square-left {
    --x: -68px;
    --y: 178px;
    width: 158px;
  }

  .stack-polaroid--portrait-right {
    --x: 92px;
    --y: 170px;
    width: 136px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-polaroid {
    opacity: 1;
    transition: none;
    transform: translate(calc(-50% + var(--x)), var(--y)) rotate(var(--r)) scale(1);
  }
}


/* =========================================================
   SECTION 11 — RSVP
   SECTION 12 — COMMENT WALL
   ========================================================= */

.rsvp-section,
.wishes-section {
  position: relative;
  background: var(--page-bg);
  color: var(--page-ink);
}

.rsvp-section__inner,
.wishes-section__inner {
  width: min(calc(100% - 32px), 680px);
  margin-inline: auto;
}

.rsvp-section__inner {
  padding: 56px 0 68px;
}

.wishes-section__inner {
  padding: 42px 0 86px;
}

.editorial-heading {
  position: relative;
  width: min(100%, 500px);
  margin-inline: auto;
  text-align: center;
}

.editorial-heading__kicker {
  margin: 0 0 8px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .24em;
}

.editorial-heading__title {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(2.45rem, 7vw, 4.1rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .04em;
}

.editorial-heading__note {
  width: min(100%, 360px);
  margin: 16px auto 0;
  font-size: .82rem;
  line-height: 1.55;
  font-style: italic;
}

.editorial-heading::after {
  content: "";
  display: block;
  width: 52px;
  height: 1px;
  margin: 22px auto 0;
  background: currentColor;
  opacity: .45;
}

.rsvp-card {
  position: relative;
  width: min(100%, 540px);
  margin: 34px auto 0;
  padding: 30px 30px 28px;
  border: 1px solid rgba(13,27,42,.22);
  background: rgba(255,255,255,.2);
}

.rsvp-card::before,
.rsvp-card::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(13,27,42,.45);
  pointer-events: none;
}

.rsvp-card::before {
  top: 8px;
  left: 8px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.rsvp-card::after {
  right: 8px;
  bottom: 8px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.rsvp-card__mark {
  position: absolute;
  top: -11px;
  left: 50%;
  padding: 0 10px;
  transform: translateX(-50%);
  background: var(--page-bg);
  font-size: .9rem;
}

.rsvp-form,
.wish-form {
  display: grid;
  gap: 22px;
}

.field-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-label {
  color: var(--page-ink);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.editorial-input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid rgba(13,27,42,.45);
  border-radius: 0;
  outline: 0;
  padding: 8px 2px 9px;
  color: var(--page-ink);
  background: transparent;
  font-size: .9rem;
}

.editorial-input::placeholder {
  color: rgba(13,27,42,.42);
}

.editorial-input:focus {
  border-bottom-color: var(--page-ink);
  box-shadow: 0 1px 0 var(--page-ink);
}

.editorial-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--page-ink) 50%),
    linear-gradient(135deg, var(--page-ink) 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 8px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.editorial-textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}

.rsvp-choice {
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-choice__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.choice-pill {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(13,27,42,.26);
  text-align: center;
  font-size: .72rem;
  line-height: 1.3;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.choice-pill input:checked + span {
  color: var(--alova-white);
  background: var(--page-ink);
  border-color: var(--page-ink);
}

.choice-pill input:focus-visible + span {
  outline: 2px solid var(--alova-airy-blue);
  outline-offset: 3px;
}

.rsvp-form__row,
.wish-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.editorial-button {
  justify-self: center;
  min-height: 38px;
  min-width: 142px;
  border: 1px solid var(--page-ink);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--alova-white);
  background: var(--page-ink);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
}

.editorial-button:hover {
  color: var(--page-ink);
  background: transparent;
  transform: translateY(-1px);
}

.editorial-button--small {
  min-width: 124px;
  min-height: 36px;
}

.form-status {
  min-height: 1.2em;
  margin: -10px 0 0;
  text-align: center;
  font-size: .72rem;
  font-style: italic;
}

.wishes-composer {
  width: min(100%, 570px);
  margin: 32px auto 0;
  padding: 24px 24px 22px;
  border-top: 1px solid rgba(13,27,42,.25);
  border-bottom: 1px solid rgba(13,27,42,.25);
}

.field-group--message {
  grid-column: 2;
}

.wish-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wish-form__hint {
  font-size: .58rem;
  opacity: .62;
}

.wish-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 620px);
  margin: 34px auto 0;
}

.wish-card {
  position: relative;
  min-height: 182px;
  padding: 24px 18px 18px;
  border: 1px solid rgba(13,27,42,.16);
  background: rgba(255,255,255,.46);
}

.wish-card--tilt-left {
  transform: rotate(-1.5deg);
}

.wish-card--tilt-right {
  transform: rotate(1.4deg);
}

.wish-card__mark {
  position: absolute;
  top: 9px;
  right: 11px;
  font-size: .72rem;
  opacity: .72;
}

.wish-card__message {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: .94rem;
  line-height: 1.5;
}

.wish-card__author {
  margin: 18px 0 0;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.wish-card.is-new {
  animation: wish-card-in .52s var(--ease-editorial) both;
}

@keyframes wish-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@media (max-width: 640px) {
  .rsvp-section__inner,
  .wishes-section__inner {
    width: min(calc(100% - 24px), 390px);
  }

  .rsvp-section__inner {
    padding: 44px 0 54px;
  }

  .wishes-section__inner {
    padding: 34px 0 64px;
  }

  .editorial-heading__title {
    font-size: clamp(2.4rem, 15vw, 3.4rem);
  }

  .rsvp-card {
    margin-top: 28px;
    padding: 26px 18px 24px;
  }

  .rsvp-choice__grid,
  .rsvp-form__row,
  .wish-form__row {
    grid-template-columns: 1fr;
  }

  .field-group--message {
    grid-column: auto;
  }

  .choice-pill span {
    min-height: 44px;
  }

  .wishes-composer {
    padding: 20px 14px 18px;
  }

  .wish-form__actions {
    align-items: flex-end;
  }

  .wish-wall {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(100%, 300px);
  }

  .wish-card {
    min-height: 0;
    padding: 22px 18px 18px;
  }

  .wish-card--tilt-left,
  .wish-card--tilt-right {
    transform: none;
  }
}


/* =========================================================
   SECTION 13 — WEDDING GIFT
   ========================================================= */

.gift-section {
  position: relative;
  background: var(--page-bg);
  color: var(--page-ink);
}

.gift-section__inner {
  width: min(calc(100% - 32px), 680px);
  margin-inline: auto;
  padding: 15px 0 30px;
}

.gift-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 590px);
  margin: 30px auto 0;
}

.gift-card {
  position: relative;
  min-width: 0;
  min-height: 318px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(13,27,42,.2);
  background: rgba(255,255,255,.28);
}

.gift-card::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 24px;
  height: 24px;
  border-right: 1px solid rgba(13,27,42,.38);
  border-bottom: 1px solid rgba(13,27,42,.38);
  pointer-events: none;
}

.gift-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(13,27,42,.18);
}

.gift-card__label {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .16em;
}


.gift-bank {
  display: grid;
  align-content: center;
  min-height: 190px;
  text-align: center;
}

.gift-bank__name {
  margin: 0 0 12px;
  font-family: var(--font-editorial);
  font-size: 1.45rem;
  letter-spacing: .05em;
}

.gift-bank__account {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.gift-bank__owner {
  margin: 10px 0 0;
  font-size: .65rem;
  letter-spacing: .05em;
  opacity: .72;
}

.gift-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--page-ink);
  border-radius: 999px;
  color: var(--page-ink);
  background: transparent;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.gift-copy:hover {
  color: var(--alova-white);
  background: var(--page-ink);
  transform: translateY(-1px);
}

.gift-copy__status {
  min-height: 1.15em;
  margin: 7px 0 0;
  text-align: center;
  font-size: .6rem;
  font-style: italic;
}

.gift-qr {
  width: 176px;
  margin: 22px auto 0;
  padding: 8px;
  background: #fff;
}

.gift-qr img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.gift-qr__note {
  width: min(100%, 190px);
  margin: 13px auto 0;
  text-align: center;
  font-size: .64rem;
  line-height: 1.5;
  font-style: italic;
}

/* =========================================================
   GLOBAL SECTION RHYTHM
   Baseline gap between adjacent content sections: ~50px
   (25px bottom + 25px top).
   ========================================================= */

.couple-intro__inner,
.couple-profile__inner,
.event-section__inner,
.journey-section__inner,
.gallery-section__inner,
.long-polaroid-section__inner,
.poem-heart-section__inner,
.stacked-polaroid-section__inner,
.rsvp-section__inner,
.wishes-section__inner,
.gift-section__inner {
  padding-top: 25px;
  padding-bottom: 25px;
}

@media (max-width: 640px) {
  .gift-section__inner {
    width: min(calc(100% - 24px), 390px);
    padding: 15px 0 30px;
  }

  .gift-options {
    grid-template-columns: 1fr;
    width: min(100%, 300px);
    gap: 14px;
    margin-top: 28px;
  }

  .gift-card {
    min-height: auto;
    padding: 20px 18px 18px;
  }

  .gift-bank {
    min-height: 168px;
  }

  .gift-qr {
    width: 174px;
  }

  .gift-qr img {
    width: 158px;
    height: 158px;
  }

  .couple-intro__inner,
  .couple-profile__inner,
  .event-section__inner,
  .journey-section__inner,
  .gallery-section__inner,
  .long-polaroid-section__inner,
  .poem-heart-section__inner,
  .stacked-polaroid-section__inner,
  .rsvp-section__inner,
  .wishes-section__inner,
  .gift-section__inner {
    padding-top: 25px;
    padding-bottom: 25px;
  }
}


/* =========================================================
   SECTION 14 — THANK YOU
   ========================================================= */

.thank-you-section {
  position: relative;
  background: var(--page-bg);
  color: var(--page-ink);
}

.thank-you-section__inner {
  width: min(calc(100% - 32px), 560px);
  margin-inline: auto;
  padding: 25px 0 38px;
  text-align: center;
}

.thank-you__eyebrow {
  margin: 0;
  font-size: .76rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .01em;
}

.thank-you__headline {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 360px);
  margin: 36px auto 0;
}

.thank-you__word {
  font-family: var(--font-script);
  font-size: clamp(3rem, 9vw, 4.35rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.thank-you__arc {
  margin-inline: auto;
  line-height: 1.55;
  transform: none;
}

.thank-you__arc--small {
  width: min(100%, 290px);
  margin-top: 44px;
  font-size: .8rem;
}

.thank-you__arc--large {
  width: min(100%, 340px);
  margin-top: 34px;
  font-size: .8rem;
}

.thank-you__message {
  width: min(100%, 340px);
  margin: 40px auto 0;
  font-size: .8rem;
  line-height: 1.5;
}

.thank-you__see-you {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: min(100%, 240px);
  margin: 34px auto 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.thank-you__see-you span:nth-child(2),
.thank-you__see-you span:nth-child(5) { transform: translateY(16px); }
.thank-you__see-you span:nth-child(3),
.thank-you__see-you span:nth-child(4) { transform: translateY(4px); }

.thank-you__asset {
  width: min(100%, 360px);
  margin: 48px auto 0;
}

.thank-you__asset img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.thank-you__credit {
  margin: 28px 0 0;
  font-size: .62rem;
  letter-spacing: .08em;
  opacity: .7;
}

.thank-you__credit a {
  color: inherit;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .thank-you-section__inner {
    width: min(calc(100% - 24px), 380px);
    padding: 25px 0 34px;
  }
  .thank-you__headline {
    width: min(100%, 300px);
    margin-top: 32px;
  }

  .thank-you__word {
    font-size: clamp(2.8rem, 13vw, 3.6rem);
  }

  .thank-you__arc--small {
    margin-top: 40px;
  }

  .thank-you__arc--large {
    margin-top: 30px;
  }

  .thank-you__message {
    margin-top: 36px;
  }

  .thank-you__asset {
    width: min(100%, 300px);
    margin-top: 42px;
  }
}


/* =========================================================
   FINAL MOTION SYSTEM — V24
   ========================================================= */

/* Subtle one-time reveal. Classes are only added by JS, so
   content remains fully visible when JavaScript is unavailable. */
.motion-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 980ms ease,
    transform 1260ms var(--ease-editorial);
  will-change: opacity, transform;
}

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

/* Poem gets a slightly softer scale entrance. */
.poem-heart-section.motion-reveal {
  transform: translateY(14px) scale(.985);
}
.poem-heart-section.motion-reveal.is-motion-visible {
  transform: translateY(0) scale(1);
}

/* Thank-you illustration keeps gently travelling left/right. */
.thank-you__asset {
  animation: thank-you-side-drift 5.2s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes thank-you-side-drift {
  from { transform: translateX(-12px); }
  to   { transform: translateX(12px); }
}

@media (max-width: 640px) {
  .motion-reveal {
    transform: translateY(14px);
  }

  .thank-you__asset {
    animation-duration: 4.8s;
  }

  @keyframes thank-you-side-drift {
    from { transform: translateX(-8px); }
    to   { transform: translateX(8px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening::before,
  .opening::after {
    transition-duration: 1ms;
  }

  .opening.is-leaving .opening__art,
  .opening.is-leaving .opening__guest {
    animation-duration: 1ms;
  }

  .motion-reveal,
  .motion-reveal.is-motion-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .thank-you__asset {
    animation: none;
    transform: none;
  }

  .motion-fade-soft,
  .motion-slide-left,
  .motion-slide-right,
  .motion-gallery-photo,
  .motion-wide-rise,
  .motion-line-soft,
  .motion-long-slide,
  .motion-fade-soft.is-motion-visible,
  .motion-slide-left.is-motion-visible,
  .motion-slide-right.is-motion-visible,
  .motion-gallery-photo.is-motion-visible,
  .motion-wide-rise.is-motion-visible,
  .motion-line-soft.is-motion-visible,
  .motion-long-slide.is-motion-visible {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
    transition: none;
  }
}


/* =========================================================
   ADVANCED MOTION — V25
   ========================================================= */
.motion-fade-soft,
.motion-slide-left,
.motion-slide-right,
.motion-gallery-photo,
.motion-wide-rise,
.motion-line-soft,
.motion-long-slide {
  opacity: 0;
  transition:
    opacity 980ms ease,
    transform 1320ms var(--ease-editorial),
    clip-path 1320ms var(--ease-editorial);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform, clip-path;
}

.motion-fade-soft {
  transform: translateY(16px) scale(.985);
}

.motion-slide-left {
  transform: translateX(-42px);
}

.motion-slide-right {
  transform: translateX(42px);
}

.motion-gallery-photo {
  transform: translateY(18px) scale(.97);
}

.motion-wide-rise {
  transform: translateY(24px) scale(.985);
}

.motion-line-soft {
  transform: translateY(12px);
  clip-path: inset(0 100% 0 0);
}

.motion-long-slide {
  transform: translateX(-46px) rotate(-3.4deg);
}

.motion-fade-soft.is-motion-visible,
.motion-slide-left.is-motion-visible,
.motion-slide-right.is-motion-visible,
.motion-gallery-photo.is-motion-visible,
.motion-wide-rise.is-motion-visible,
.motion-line-soft.is-motion-visible,
.motion-long-slide.is-motion-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.motion-fade-soft.is-motion-visible,
.motion-gallery-photo.is-motion-visible,
.motion-wide-rise.is-motion-visible {
  transform: translateY(0) scale(1);
}

.motion-slide-left.is-motion-visible,
.motion-slide-right.is-motion-visible,
.motion-line-soft.is-motion-visible {
  transform: translateX(0) translateY(0);
}

.motion-long-slide.is-motion-visible {
  transform: translateX(0) rotate(-3.4deg);
}

/* keep note cards simpler */
.love-note.motion-slide-left { transform: translateX(-24px); }
.love-note.motion-slide-right { transform: translateX(24px); }
.love-note.motion-slide-left.is-motion-visible,
.love-note.motion-slide-right.is-motion-visible { transform: translateX(0); }

@media (max-width: 640px) {
  .motion-slide-left { transform: translateX(-24px); }
  .motion-slide-right { transform: translateX(24px); }
  .motion-gallery-photo { transform: translateY(14px) scale(.98); }
  .motion-wide-rise { transform: translateY(18px) scale(.99); }
  .motion-long-slide { transform: translateX(-24px) rotate(-3.4deg); }
}


@media (max-width: 640px) {
  .hero__photos {
    width: min(100%, 560px);
    margin-top: 40px;
    gap: 5px;
  }

  .editorial-photo__paper {
    padding: 7px 7px 13px;
  }
}

/* =========================================================
   V39 — VELORA WEDDING EVENT MOTION
   JS adds .is-event-motion-pending before the section reaches view.
   Without JS, content remains visible normally.
   ========================================================= */
.event-section.is-event-motion-pending .event-section__lead,
.event-section.is-event-motion-pending .event-section__date,
.event-section.is-event-motion-pending .event-section__schedule-item,
.event-section.is-event-motion-pending .event-section__ornament-wrap,
.event-section.is-event-motion-pending .event-section__venue,
.event-section.is-event-motion-pending .countdown__item,
.event-section.is-event-motion-pending .dress-code {
  opacity: 0;
}

.event-section.is-event-motion-pending .event-section__lead,
.event-section.is-event-motion-pending .event-section__date,
.event-section.is-event-motion-pending .dress-code {
  transform: translateY(22px);
}

.event-section.is-event-motion-pending .event-section__schedule-item:first-child {
  transform: translateX(-38px);
}

.event-section.is-event-motion-pending .event-section__schedule-item:last-child {
  transform: translateX(38px);
}

.event-section.is-event-motion-pending .event-section__ornament-wrap {
  transform: translateX(-40px) scale(.98);
}

.event-section.is-event-motion-pending .event-section__venue {
  transform: translateX(40px);
}

.event-section.is-event-motion-pending .countdown__item:nth-child(odd) {
  transform: translateX(-22px);
}

.event-section.is-event-motion-pending .countdown__item:nth-child(even) {
  transform: translateX(22px);
}

.event-section__lead,
.event-section__date,
.event-section__schedule-item,
.event-section__ornament-wrap,
.event-section__venue,
.countdown__item,
.dress-code {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .event-section.is-event-motion-pending .event-section__lead,
  .event-section.is-event-motion-pending .event-section__date,
  .event-section.is-event-motion-pending .event-section__schedule-item,
  .event-section.is-event-motion-pending .event-section__ornament-wrap,
  .event-section.is-event-motion-pending .event-section__venue,
  .event-section.is-event-motion-pending .countdown__item,
  .event-section.is-event-motion-pending .dress-code {
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   V38 — VELORA MUSIC VINYL
   ========================================================= */
.velora-music__audio {
  display: none;
}

.velora-music {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 95;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  transform: translateZ(0);
  transition: opacity 280ms ease, transform 280ms var(--ease-editorial);
}

body.is-opening-active .velora-music {
  opacity: 0;
  pointer-events: none;
}

.velora-music:hover {
  transform: scale(1.04);
}

.velora-music:focus-visible {
  outline: 2px solid var(--alova-steel-blue);
  outline-offset: 3px;
}

.velora-music__disc-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.velora-music__vinyl {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(13, 27, 42, .16));
}

.velora-music__tonearm {
  position: absolute;
  top: -28%;
  right: -34%;
  width: 122%;
  height: auto;
  transform-origin: 86% 14%;
  transform: rotate(14deg);
  transition: transform 760ms cubic-bezier(.22, 1, .36, 1);
  filter: drop-shadow(0 4px 10px rgba(13, 27, 42, .16));
  pointer-events: none;
}

.velora-music.is-playing .velora-music__vinyl {
  animation: velora-vinyl-spin 6.5s linear infinite;
}

.velora-music.is-playing .velora-music__tonearm {
  transform: rotate(-6deg);
}

@keyframes velora-vinyl-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .velora-music {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }

  .velora-music__tonearm {
    top: -26%;
    right: -36%;
    width: 126%;
  }
}

/* =========================================================
   V38 — POEM HEART USER-APPROVED OVERRIDES
   ========================================================= */
.poem-heart-frame__asset {
    display: block;
    width: 100%;
    height: 600px;
}

@media (max-width: 640px) {
  .poem-heart-frame__bottom {
    bottom: 250px;
    width: 34%;
  }
}

@media (max-width: 640px) {
  .poem-heart-frame__top-text, .poem-heart-frame__bottom {
    font-size: 14px;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .velora-music.is-playing .velora-music__vinyl {
    animation: none;
  }
}



/* =========================================================
   V40 — CENTERED INVITATION DESKTOP MODE
   Velora intentionally keeps the phone-sized invitation experience
   on desktop instead of using a 70:30 desktop showcase.
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Avoid the narrow browser scrollbar/gutter reading as an uncovered gap. */
body {
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.alova-theme {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: clip;
  background: var(--page-bg);
  container-name: velora-invitation;
  container-type: inline-size;
}

/* Mobile stays truly edge-to-edge. */
@media (max-width: 767px) {
  html,
  body,
  .alova-theme {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: var(--page-bg);
  }

  .alova-theme {
    box-shadow: none;
  }
}

/* Desktop = centered phone-sized invitation canvas. */
@media (min-width: 768px) {
  html,
  body {
    background: var(--page-bg);
  }

  body {
    min-height: 100dvh;
  }

  .alova-theme {
    width: 430px;
    max-width: 430px;
    min-height: 100dvh;
    background: var(--page-bg);
    box-shadow: none;
  }

  /* Opening gate must cover only the centered invitation canvas. */
  .opening {
    left: 50%;
    right: auto;
    width: 430px;
    max-width: 100vw;
    transform: translateX(-50%);
  }

  .opening__art {
    width: min(88%, 390px);
  }

  .opening__guest {
    width: min(88%, 380px);
  }

  /* Fixed music control follows the right edge of the invitation canvas. */
  .velora-music {
    right: calc((100vw - 430px) / 2 + 12px);
  }
}

/*
  Re-apply the approved phone composition based on invitation CANVAS width,
  not browser viewport width. This is what keeps desktop visually identical
  to the mobile invitation.
*/
@container velora-invitation (max-width: 640px) {
.opening__art { top: 38%; width: min(88vw, 430px); }
  .orbit--outer text { font-size: 17px; letter-spacing: 3.2px; }
  .orbit--middle text { font-size: 12px; letter-spacing: 2.2px; }
  .orbit--inner text { font-size: 9px; letter-spacing: 1.6px; }
  .opening__monogram { width: 24%; }
  .opening__guest { bottom: max(7vh, 28px); }

  .hero__inner { width: min(calc(100% - 28px), 560px); padding-top: max(25px, env(safe-area-inset-top)); padding-bottom: 56px; }
  .hero__greeting { font-size: clamp(.58rem, 2.5vw, .72rem); letter-spacing: .14em; }
  .hero__copy { margin-top: 78px; }
  .hero__title { font-size: clamp(1.8rem, 8vw, 2.35rem); letter-spacing: .16em; }
  .hero__curves { width: min(100%, 410px); height: 170px; margin-top: 34px; }
  .hero__curve-text { font-size: 16px; letter-spacing: 4px; }
  .hero__curve-text--two { font-size: 15px; }
  .hero__thought { bottom: 8px; font-size: .98rem; }

  .couple-intro__inner { width: min(calc(100% - 28px), 560px); padding-top: 56px; padding-bottom: 40px; }
  .couple-intro__visual { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 12px; width: min(100%, 390px); }
  .couple-intro__name { font-size: .72rem; letter-spacing: .13em; }
  .couple-intro__art { width: min(100%, 240px); }
  .couple-intro__bismillah { width: min(100%, 170px); margin-top: 16px; }
  .couple-intro__verse { width: min(100%, 410px); margin-top: 48px; }
  .couple-intro__quote { font-size: .9rem; line-height: 1.58; }
  .couple-intro__source { margin-top: 28px; font-size: .78rem; }

  .couple-profile__inner { width: min(calc(100% - 24px), 380px); padding-top: 6px; padding-bottom: 42px; }
  .person-card__frame { width: min(100%, 204px); margin-bottom: 14px; }
  .person-card__name { font-size: clamp(1.95rem, 11vw, 2.7rem); }
  .person-card__divider { height: 48px; margin: 16px auto 18px; }
  .person-card__meta { font-size: .9rem; line-height: 1.5; }
  .couple-profile__monogram-wrap { margin: 10px 0 12px; }
  .couple-profile__monogram { width: 175px; height: 200px; }

.event-section__inner {
    width: min(calc(100% - 24px), 420px);
    padding-top: 58px;
    padding-bottom: 68px;
  }

  .event-section__date { margin-top: 38px; }

  .event-section__schedule {
    width: min(100%, 350px);
    gap: 14px;
    margin-top: 34px;
  }

  .event-section__schedule-item { font-size: .84rem; }

  .event-section__ornament-wrap {
    width: min(100%, 270px);
    margin-top: 36px;
  }

  .event-section__venue { margin-top: 26px; }
  .event-section__address { margin-top: 16px; }
  .event-section__location { margin-top: 20px; }
  .countdown { margin-top: 24px; }
  .dress-code { margin-top: 34px; padding: 20px 18px 22px; }

.journey-section__inner {
    width: min(calc(100% - 24px), 430px);
    padding: 38px 0 58px;
  }
  .journey-section__header { gap: 10px; }
  .journey-section__eyebrow { font-size: .65rem; letter-spacing: .16em; }
  .journey-section__title { font-size: clamp(1.8rem, 10vw, 2.45rem); }
  .journey-section__divider { margin: 20px 0 32px; }
  .journey-section__list { gap: 22px; }
  .journey-card,
  .journey-card--right,
  .journey-card--left {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .journey-card__title { margin-bottom: 10px; font-size: 1rem; }
  .journey-card__text { font-size: .9rem; line-height: 1.6; }

.gallery-section__inner {
    width: min(calc(100% - 24px), 420px);
    padding: 34px 0 64px;
  }
  .paper-photo--hero { width: min(100%, 240px); }
  .gallery-editorial__middle {
    grid-template-columns: 1fr 58px 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .polaroid-card--right { margin-top: 68px; }
  .gallery-editorial__micro { font-size: .5rem; }
  .gallery-editorial__micro--offset { margin-top: 14px; }
  .gallery-editorial__names { gap: 16px; font-size: .62rem; }
  .paper-photo--wide { width: min(100%, 300px); margin-top: 28px; }

  .memory-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(100%, 286px);
    margin-top: 50px;
    text-align: left;
  }
  .memory-strip__quote {
    width: 130px;
    font-size: .82rem;
    justify-self: start;
  }
  .memory-strip__stack { width: 100%; }
  .memory-strip__ring {
    width: 86px;
    justify-self: end;
    margin-top: -8px;
  }

  .poem-collage {
    width: 100%;
    margin-top: 62px;
  }
  .poem-heart {
    width: min(100%, 330px);
  }
  .poem-heart__content {
    inset: 17% 12% 13%;
    column-gap: 16px;
  }
  .poem-heart__left h3,
  .poem-heart__right h3 { font-size: 1rem; margin-bottom: 18px; }
  .poem-heart__date,
  .poem-heart__right p,
  .poem-heart__bottom { font-size: .84rem; }
  .poem-collage__photos {
    width: min(100%, 320px);
    height: 286px;
    margin-top: 28px;
  }
  .mini-polaroid--c { top: 106px; left: 16px; }
  .mini-polaroid--d { top: 126px; right: 16px; }

.long-polaroid-section__inner {
    width: min(calc(100% - 24px), 360px);
    padding: 24px 0 56px;
  }

  .long-polaroid-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 16px;
  }

  .long-polaroid {
    width: 195px;
    grid-row: 2;
  }

  .love-note {
    width: 175px;
    padding: 12px 12px 14px;
  }

  .love-note--left {
    grid-row: 1;
    justify-self: start;
    margin: 0 0 -2px 18px;
  }

  .love-note--right {
    grid-row: 3;
    justify-self: end;
    margin: -2px 18px 0 0;
  }

  .love-note__text {
    font-size: .78rem;
    line-height: 1.55;
  }

.poem-heart-section__inner {
    width: min(calc(100% - 24px), 380px);
    padding: 26px 0 60px;
  }

  .poem-heart-frame {
    width: min(100%, 360px);
  }

  .poem-heart-frame__left {
    top: 24%;
    left: 21%;
    width: 21%;
  }

  .poem-heart-frame__right {
    top: 23%;
    right: 16%;
    width: 29%;
  }

  .poem-heart-frame__left h3,
  .poem-heart-frame__right h3 {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .poem-heart-frame__date {
    font-size: 1.04rem;
    line-height: 1.15;
  }

  .poem-heart-frame__top-text,
  .poem-heart-frame__bottom {
    font-size: .98rem;
    line-height: 1.28;
  }

  .poem-heart-frame__bottom {
    bottom: 19%;
    width: 34%;
  }

.stack-gallery__inner {
    width: min(calc(100% - 20px), 390px);
    padding: 26px 0 64px;
  }

  .stack-gallery__stage {
    width: 340px;
    height: 390px;
  }

  .stack-polaroid--landscape {
    --x: 0px;
    --y: 82px;
    width: 190px;
  }

  .stack-polaroid--portrait-left {
    --x: -96px;
    --y: 42px;
    width: 136px;
  }

  .stack-polaroid--square-right {
    --x: 88px;
    --y: 26px;
    width: 158px;
  }

  .stack-polaroid--square-left {
    --x: -68px;
    --y: 178px;
    width: 158px;
  }

  .stack-polaroid--portrait-right {
    --x: 92px;
    --y: 170px;
    width: 136px;
  }

.rsvp-section__inner,
  .wishes-section__inner {
    width: min(calc(100% - 24px), 390px);
  }

  .rsvp-section__inner {
    padding: 44px 0 54px;
  }

  .wishes-section__inner {
    padding: 34px 0 64px;
  }

  .editorial-heading__title {
    font-size: clamp(2.4rem, 15vw, 3.4rem);
  }

  .rsvp-card {
    margin-top: 28px;
    padding: 26px 18px 24px;
  }

  .rsvp-choice__grid,
  .rsvp-form__row,
  .wish-form__row {
    grid-template-columns: 1fr;
  }

  .field-group--message {
    grid-column: auto;
  }

  .choice-pill span {
    min-height: 44px;
  }

  .wishes-composer {
    padding: 20px 14px 18px;
  }

  .wish-form__actions {
    align-items: flex-end;
  }

  .wish-wall {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(100%, 300px);
  }

  .wish-card {
    min-height: 0;
    padding: 22px 18px 18px;
  }

  .wish-card--tilt-left,
  .wish-card--tilt-right {
    transform: none;
  }

.gift-section__inner {
    width: min(calc(100% - 24px), 390px);
    padding: 15px 0 30px;
  }

  .gift-options {
    grid-template-columns: 1fr;
    width: min(100%, 300px);
    gap: 14px;
    margin-top: 28px;
  }

  .gift-card {
    min-height: auto;
    padding: 20px 18px 18px;
  }

  .gift-bank {
    min-height: 168px;
  }

  .gift-qr {
    width: 174px;
  }

  .gift-qr img {
    width: 158px;
    height: 158px;
  }

  .couple-intro__inner,
  .couple-profile__inner,
  .event-section__inner,
  .journey-section__inner,
  .gallery-section__inner,
  .long-polaroid-section__inner,
  .poem-heart-section__inner,
  .stacked-polaroid-section__inner,
  .rsvp-section__inner,
  .wishes-section__inner,
  .gift-section__inner {
    padding-top: 25px;
    padding-bottom: 25px;
  }

.thank-you-section__inner {
    width: min(calc(100% - 24px), 380px);
    padding: 25px 0 34px;
  }
  .thank-you__headline {
    width: min(100%, 300px);
    margin-top: 32px;
  }

  .thank-you__word {
    font-size: clamp(2.8rem, 13vw, 3.6rem);
  }

  .thank-you__arc--small {
    margin-top: 40px;
  }

  .thank-you__arc--large {
    margin-top: 30px;
  }

  .thank-you__message {
    margin-top: 36px;
  }

  .thank-you__asset {
    width: min(100%, 300px);
    margin-top: 42px;
  }

.motion-slide-left { transform: translateX(-24px); }
  .motion-slide-right { transform: translateX(24px); }
  .motion-gallery-photo { transform: translateY(14px) scale(.98); }
  .motion-wide-rise { transform: translateY(18px) scale(.99); }
  .motion-long-slide { transform: translateX(-24px) rotate(-3.4deg); }

.hero__photos {
    width: min(100%, 560px);
    margin-top: 40px;
    gap: 5px;
  }

  .editorial-photo__paper {
    padding: 7px 7px 13px;
  }

.poem-heart-frame__bottom {
    bottom: 250px;
    width: 34%;
  }

.poem-heart-frame__top-text, .poem-heart-frame__bottom {
    font-size: 14px;
    line-height: 1.25;
  }
}

/* Music stays compact inside the phone canvas on centered desktop mode. */
@media (min-width: 768px) {
  .velora-music {
    width: 48px;
    height: 48px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}


/* =========================================================
   V44 — QR GUEST ACCESS
   Visually integrated below Open Invitation so the approved
   inner invitation remains untouched.
   ========================================================= */
.opening__guest {
  bottom: max(3.2vh, 14px);
}

.opening-qr {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--page-ink);
}

.opening-qr__title {
  margin: 0;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.opening-qr__code-wrap {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  padding: 4px;
  border: 1px solid rgba(13, 27, 42, .18);
  background: rgba(255, 255, 255, .18);
}

.opening-qr__code {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.opening-qr__note {
  margin: 0;
  font-size: .55rem;
  line-height: 1.3;
  letter-spacing: .02em;
}

.opening:not(.is-ready) .opening-qr {
  opacity: 0;
}

.opening.is-ready .opening-qr {
  animation: velora-qr-in .86s .48s var(--ease-editorial) both;
}

.opening.is-leaving .opening-qr {
  animation: velora-qr-out .52s cubic-bezier(.4,0,.2,1) both;
}

@keyframes velora-qr-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes velora-qr-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 640px) {
  .opening-qr {
    margin-top: 12px;
    gap: 5px;
  }

  .opening-qr__code-wrap {
    width: 100px;
    height: 100px;
  }
}

@media (max-height: 720px) {
  .opening__guest {
    bottom: 8px;
  }

  .opening-qr {
    margin-top: 9px;
  }

  .opening-qr__code-wrap {
    width: 88px;
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening.is-ready .opening-qr,
  .opening.is-leaving .opening-qr {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   V45 — VELORA LOADING SCREEN
   Theme-specific, minimal, and capped at 4 seconds.
   ========================================================= */
.velora-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--page-bg);
  color: var(--page-ink);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 520ms ease,
    visibility 520ms ease;
}

.velora-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.velora-loader__inner {
  display: grid;
  justify-items: center;
  width: min(78vw, 280px);
}

.velora-loader__mark {
  width: 94px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: velora-loader-mark 1.8s ease-in-out infinite;
}

.velora-loader__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.velora-loader__line {
  position: relative;
  width: 112px;
  height: 1px;
  margin-top: 26px;
  overflow: hidden;
  background: rgba(13, 27, 42, .16);
}

.velora-loader__line-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: currentColor;
  transition: width 220ms ease;
}

.velora-loader__copy {
  margin: 12px 0 0;
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .66;
}

@keyframes velora-loader-mark {
  0%,
  100% {
    opacity: .58;
    transform: scale(.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .velora-loader__mark {
    animation: none;
  }

  .velora-loader,
  .velora-loader__line-fill {
    transition: none;
  }
}


/* =========================================================
   V45 — USER-APPROVED QR SPACING OVERRIDE
   ========================================================= */
@media (max-width: 640px) {
  .opening-qr {
    margin-top: 28px;
    gap: 5px;
  }
}

.opening__guest {
  bottom: max(5.2vh, 14px);
}


/* WordPress integration-only additions: do not alter OFFLINE composition. */
.alova-theme img[style*="--alova-media-zoom"]{transform:scale(var(--alova-media-zoom,1));transform-origin:var(--alova-focal-x,50%) var(--alova-focal-y,50%);}
.velora-addon-gallery{display:grid;gap:18px;margin-top:24px;}
.velora-addon-gallery__item{position:relative!important;inset:auto!important;transform:none!important;margin:0 auto;max-width:78%;}

/* v1.0.6 — Guest-context safety */
.opening-qr[hidden] {
  display: none !important;
}

.velora-personal-link-note {
  margin: 0;
  padding: 22px 18px;
  border: 1px solid rgba(13, 27, 42, .16);
  background: rgba(255,255,255,.34);
  font-size: .78rem;
  line-height: 1.65;
  text-align: center;
  color: var(--page-ink);
}

/* Velora v1.0.7 — Wedding Gift dynamic cards */
.gift-card__topline {
  justify-content: flex-end;
}

.gift-card__label {
  text-align: right;
}

.gift-bank--physical {
  gap: 12px;
}

.gift-bank__owner--address {
  max-width: 100%;
  margin-inline: auto;
  line-height: 1.65;
}

.gift-card--qris .gift-qr,
.gift-card--ewallet .gift-qr,
.gift-card--bank .gift-qr {
  margin-top: 18px;
}


/* =========================================================
   V1.0.8 — MOBILE VISIBLE VIEWPORT + OPENING ORDINAL
   Integration-only fix. Approved Velora composition is unchanged.
   ========================================================= */
.opening__ordinal-suffix {
  baseline-shift: super;
  text-transform: none;
}

@media (max-width: 767px) {
  .opening {
    inset: 0 0 auto 0;
    height: 100vh;
    height: 100svh;
    height: var(--velora-opening-vh, 100svh);
    min-height: 0;
  }

  /* Mirror the existing short-height composition, but key it to the actual
     visible viewport so Safari / in-app browser chrome cannot cause overlap. */
  .opening.is-short-viewport .opening__art {
    top: 36%;
    width: min(64vh, 430px);
    width: min(calc(var(--velora-opening-vh, 100svh) * .64), 430px);
  }

  .opening.is-short-viewport .opening__guest {
    bottom: 8px;
  }

  .opening.is-short-viewport .opening-qr {
    margin-top: 9px;
  }

  .opening.is-short-viewport .opening-qr__code-wrap {
    width: 88px;
    height: 88px;
  }
}

/* =========================================================
   V1.0.10 — MOBILE OPENING ORBIT MICRO-OFFSET
   User-requested visual correction only: move the opening
   circular/orbit artwork 18px upward on mobile without changing
   its size, typography, spacing model, or desktop composition.
   ========================================================= */
@media (max-width: 640px) {
  .opening__art {
    top: calc(38% - 18px);
  }

  .opening.is-short-viewport .opening__art {
    top: calc(36% - 18px);
  }
}

/* =========================================================
   V1.0.11 — DEMO QR VERTICAL FOOTPRINT
   Demo-only Guestbook label replaces the normal QR note row
   instead of adding a fourth grid row. Client invitations are
   unchanged because the selector only matches injected demo UI.
   ========================================================= */
.opening-qr:has(.wdg-guest-qr-demo-label) .opening-qr__note {
  display: none;
}

.opening-qr .wdg-guest-qr-demo-label {
  margin: 0;
  font-size: .55rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--page-ink);
}


/* =========================================================
   v1.0.14 — MOBILE SCROLL PERFORMANCE + MEDIA ZOOM RELIABILITY
   Keep compositor hints only while an animation is actually active.
   ========================================================= */
.motion-reveal,
.motion-fade-soft,
.motion-slide-left,
.motion-slide-right,
.motion-gallery-photo,
.motion-wide-rise,
.motion-line-soft,
.motion-long-slide,
.event-section__lead,
.event-section__date,
.event-section__schedule-item,
.event-section__ornament-wrap,
.event-section__venue,
.countdown__item,
.dress-code,
.stack-polaroid,
.thank-you__asset {
  will-change: auto;
}

.stack-gallery.is-stack-running [data-stack-card] {
  will-change: transform, opacity;
}

/* The closing drift is visually unchanged, but it does not consume a
   compositor layer while the section is far outside the viewport. */
.thank-you__asset {
  animation-play-state: paused;
}

#thank-you.is-motion-visible .thank-you__asset {
  animation-play-state: running;
  will-change: transform;
}

/* v1.0.17 — fourth replaceable Velora illustration */
