/* ============================================================
   Amelia & James — digital invitation card · v2 (richer)
   Design system: deep ink · cream paper · champagne gold · blush
   Fonts: Cormorant Garamond (serif) + Jost (sans)
   ============================================================ */

:root {
  --ink: #191410;
  --ink-soft: #4c4236;
  --paper: #faf5ea;
  --paper-2: #f3ecdc;
  --champagne: #c9a76b;
  --champagne-deep: #a57f45;
  --champagne-light: #e8d3a2;
  --rose: #c98e7c;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gold: linear-gradient(105deg, #e8d3a2 0%, #c9a76b 32%, #f3e2b6 50%, #a57f45 68%, #e8d3a2 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% 0%, #241c13 0%, var(--ink) 55%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.js:not(.no-motion) body.locked { overflow: hidden; }

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

a { color: inherit; }

::selection { background: var(--champagne); color: var(--ink); }

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- gold foil text ---------- */
.gold-text {
  background: var(--gold);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.js:not(.no-motion) .gold-text { animation: goldflow 12s linear infinite; }
@keyframes goldflow { to { background-position: 220% 0; } }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  text-align: center;
}

.eyebrow--lines { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.eyebrow--lines::before,
.eyebrow--lines::after {
  content: "";
  height: 1px;
  width: clamp(30px, 5vw, 54px);
  background: linear-gradient(90deg, transparent, var(--champagne));
}
.eyebrow--lines::after { background: linear-gradient(90deg, var(--champagne), transparent); }

.card-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  text-align: center;
  margin: 0.9rem auto clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.01em;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  color: var(--champagne);
}
.ornament span:first-child,
.ornament span:last-child {
  width: min(110px, 20vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne));
}
.ornament span:last-child {
  background: linear-gradient(90deg, var(--champagne), transparent);
}
.ornament span:nth-child(2) { font-size: 0.8rem; }

/* ============================================================
   STAGE 1 — ENVELOPE
   ============================================================ */
.envelope {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(110% 90% at 50% 35%, #2b2115 0%, var(--ink) 70%);
}

.js:not(.no-motion) .envelope { display: flex; }
.envelope { display: none; }

.envelope__scene {
  position: relative;
  text-align: center;
}

.envelope__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(250, 245, 234, 0.75);
  margin-bottom: 2.2rem;
}

.envelope__pocket {
  position: relative;
  width: min(360px, 84vw);
  aspect-ratio: 3 / 2;
  perspective: 900px;
}

/* patterned lining peeks through once the flap opens */
.envelope__lining {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 12px;
  background:
    radial-gradient(circle at 3px 3px, rgba(201, 142, 124, 0.32) 1.6px, transparent 2.6px),
    linear-gradient(118deg, #f0e6d2 0%, #faf3e2 45%, #eadfc8 100%);
  background-size: 15px 15px, auto;
}

.envelope__body {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(118deg, #efe5cf 0%, #f9f2e1 45%, #e9dec6 100%);
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(165, 127, 69, 0.25);
}

.envelope__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 12px;
  background: linear-gradient(to bottom, rgba(120, 90, 45, 0.35) 0%, rgba(120, 90, 45, 0.12) 46%, transparent 55%);
}

/* the flap — rotates upward when opened; its tip carries the gold */
.envelope__flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 62%;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(to bottom, #f7f0dd 0%, #ede0c6 78%, #d9b87f 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border-radius: 12px 12px 0 0;
}

/* wax seal with a slowly rotating dashed ring */
.seal {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(255, 244, 214, 0.5);
  background:
    radial-gradient(circle at 34% 30%, #ecd9a8, var(--champagne) 48%, #8f6a33 100%);
  box-shadow:
    0 10px 26px -8px rgba(0, 0, 0, 0.6),
    inset 0 -4px 10px rgba(90, 60, 15, 0.4),
    inset 0 3px 8px rgba(255, 250, 235, 0.35);
  cursor: pointer;
  padding: 8px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), filter 0.35s ease;
}
.seal::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(232, 211, 162, 0.5);
  border-radius: 50%;
}
.js:not(.no-motion) .seal::after { animation: ringrotate 45s linear infinite; }
@keyframes ringrotate { to { transform: rotate(360deg); } }

.seal svg { width: 100%; height: 100%; display: block; }
.seal:hover, .seal:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 16px 34px -8px rgba(0, 0, 0, 0.7),
    inset 0 -4px 10px rgba(90, 60, 15, 0.4),
    0 0 0 6px rgba(232, 211, 162, 0.14);
  outline: none;
}
.seal:focus-visible { filter: brightness(1.08); }

/* small monogram etched on the envelope */
.envelope__mono {
  position: absolute;
  left: 0; right: 0;
  bottom: 10%;
  z-index: 2;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: rgba(165, 127, 69, 0.75);
  user-select: none;
}

.envelope__hint {
  margin-top: 2.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(250, 245, 234, 0.6);
}
.js:not(.no-motion) .envelope__hint { animation: hintpulse 2.6s ease-in-out infinite; }
@keyframes hintpulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

.envelope__skip {
  background: none;
  border: none;
  color: rgba(250, 245, 234, 0.45);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.envelope__skip:hover { color: rgba(250, 245, 234, 0.9); }

/* ============================================================
   STAGE 2 — THE CARD
   ============================================================ */
.card {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  background: var(--paper);
  box-shadow: 0 80px 160px -50px rgba(0, 0, 0, 0.9);
  z-index: 10;
}

.js:not(.no-motion) .card { transform: translateY(100vh); }

/* ---------- Cover ---------- */
.cover {
  position: relative;
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 12vh, 7rem) clamp(1.4rem, 6vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 12%, rgba(232, 211, 162, 0.16), transparent 60%),
    var(--paper);
}

/* optional photo backdrop (README → "Photo features"); the cream veil
   keeps the invitation text readable over any photo */
.cover__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #40311f, #191410);
}
.cover__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.cover__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 50% 18%, rgba(250, 245, 234, 0.78) 0%, rgba(250, 245, 234, 0.42) 52%, rgba(243, 236, 220, 0.62) 100%);
}
/* keep the cover copy above the photo, and the gold frame/studs above both */
.cover > *:not(.cover__photo) { position: relative; z-index: 1; }
.cover::before, .cover::after { z-index: 2; }

/* thin gold inner frame */
.cover::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 2.5vw, 22px);
  border: 1px solid rgba(165, 127, 69, 0.4);
  border-radius: 3px;
  pointer-events: none;
}

/* four gold corner studs */
.cover::after {
  content: "";
  position: absolute;
  inset: clamp(20px, 3.5vw, 30px);
  background-image:
    radial-gradient(circle at 0 0, var(--champagne) 2.5px, transparent 3.5px),
    radial-gradient(circle at 100% 0, var(--champagne) 2.5px, transparent 3.5px),
    radial-gradient(circle at 0 100%, var(--champagne) 2.5px, transparent 3.5px),
    radial-gradient(circle at 100% 100%, var(--champagne) 2.5px, transparent 3.5px);
  pointer-events: none;
}

/* vertical Japanese accent */
.cover__vertical {
  position: absolute;
  right: clamp(1.1rem, 4vw, 2.4rem);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.7em;
  color: rgba(165, 127, 69, 0.55);
  text-orientation: mixed;
  user-select: none;
}
.cover__vertical::after {
  content: "";
  position: absolute;
  top: -3rem; left: 50%;
  width: 1px; height: 1.9rem;
  background: linear-gradient(to bottom, transparent, var(--champagne));
}
.cover__vertical::before {
  content: "";
  position: absolute;
  bottom: -3rem; left: 50%;
  width: 1px; height: 1.9rem;
  background: linear-gradient(to top, transparent, var(--champagne));
}

/* the monogram floats gently, like it's pressed on wax */
.js:not(.no-motion) .cover__monogram { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-7px); } }

.cover__monogram { margin: 1.8rem 0 1.6rem; position: relative; z-index: 1; }
.cover__monogram svg { width: 92px; height: 92px; filter: drop-shadow(0 6px 14px rgba(165, 127, 69, 0.35)); }

.cover__names {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 11vw, 6.2rem);
  line-height: 1.04;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}
.cover__names span { display: block; }
.cover__amp {
  font-style: italic;
  font-weight: 400;
  font-size: 0.34em;
  line-height: 1.3;
}

.cover__request {
  margin-top: 2.2rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.cover__date {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.8vw, 1.4rem);
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.cover__date em {
  font-style: italic;
  color: var(--champagne-deep);
}

.cover__place {
  margin-top: 2.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

/* ---------- Arch photo ---------- */
.arch {
  padding: clamp(2.5rem, 7vw, 5rem) 1.5rem clamp(3rem, 8vw, 5rem);
  background: var(--paper-2);
  text-align: center;
}

.arch__frame {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  clip-path: inset(0 round 0 0 50% 50%);
  background: linear-gradient(160deg, #40311f, #191410);
  /* gold ring that hugs the arch silhouette */
  filter: drop-shadow(0 40px 70px rgba(25, 20, 16, 0.5))
          drop-shadow(0 0 0.5px rgba(232, 211, 162, 0.8))
          drop-shadow(0 0 8px rgba(232, 211, 162, 0.28));
}

.arch__media {
  position: absolute;
  inset: -4% 0 -4% 0;
  will-change: transform;
}
.arch__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}
/* the portrait breathes — slowly and barely; a 15% zoom on a face is
   what makes the page feel unsteady, so the range is roughly halved */
.js:not(.no-motion) .arch__media img { animation: archbreathe 40s var(--ease-out) infinite alternate; }
@keyframes archbreathe {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}

.arch__cap {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.55em 1.5em;
  border: 1px solid rgba(165, 127, 69, 0.35);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  box-shadow: 0 14px 30px -20px rgba(25, 20, 16, 0.5);
}

/* ---------- Quote ---------- */
.quote {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper);
  text-align: center;
}
.quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.5;
  max-width: 720px;
  margin-inline: auto;
  color: var(--ink);
}
.quote__text em { color: var(--champagne-deep); }
.quote__by {
  margin-top: 1.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}

/* ---------- Details ---------- */
.details {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper-2);
  position: relative;
}

.details__list {
  max-width: 620px;
  margin-inline: auto;
}

.detail-row {
  display: grid;
  grid-template-columns: clamp(40px, 6vw, 60px) minmax(110px, 1fr) 1.6fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(165, 127, 69, 0.3);
}
.detail-row:last-child { border-bottom: 1px solid rgba(165, 127, 69, 0.3); }

.detail-row__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--champagne-deep);
  line-height: 1;
}

.detail-row dt {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--champagne-deep);
}

.detail-row dd {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Memories ---------- */
.memories {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper-2);
}

.memories__intro {
  text-align: center;
  max-width: 46ch;
  margin: -1.8rem auto 2.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.memories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.8rem);
}

.memory { cursor: zoom-in; }

.memory__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(150deg, #40311f, #191410);
  box-shadow: 0 30px 60px -30px rgba(25, 20, 16, 0.55);
}

.memory__media {
  position: absolute;
  inset: -4% 0 -4% 0;
  will-change: transform;
}
.memory__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 1s var(--ease-out), filter 0.6s ease;
}
.memory:hover .memory__media img,
.memory:focus-visible .memory__media img { transform: scale(1.34); filter: brightness(1.04); }

.memory__cap {
  margin-top: 0.8rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* a wide cinematic moment spanning the full width */
.memory--wide { grid-column: 1 / -1; margin-top: 0.5rem; }
.memory--wide .memory__frame { aspect-ratio: 16 / 9; border-radius: 8px; }

/* ---------- RSVP ---------- */
.rsvp {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}

.rsvp::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 55% at 20% 30%, rgba(201, 142, 124, 0.2), transparent 65%),
    radial-gradient(44% 60% at 82% 70%, rgba(201, 142, 124, 0.15), transparent 65%),
    radial-gradient(30% 40% at 66% 10%, rgba(232, 211, 162, 0.28), transparent 60%);
  filter: blur(6px);
  pointer-events: none;
}

.rsvp__card {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.4rem, 6vw, 3.6rem) clamp(1.4rem, 5vw, 3rem);
  border: 1px solid rgba(165, 127, 69, 0.35);
  border-radius: 8px;
  background: rgba(250, 245, 234, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rsvp__note {
  margin: 1.2rem 0 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--champagne-light), var(--champagne) 55%, var(--champagne-deep));
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  box-shadow: 0 14px 30px -14px rgba(165, 127, 69, 0.8);
}
.btn svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(165, 127, 69, 0.9); }
.btn:hover svg { transform: translateX(4px); }

.js:not(.no-motion) .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 250, 235, 0.55) 50%, transparent 70%);
  transform: translateX(-130%);
}
.js:not(.no-motion) .btn:hover::after { animation: sweep 0.9s var(--ease-out); }
@keyframes sweep { to { transform: translateX(130%); } }

/* ---------- Free page (optional) ----------
   A free-text panel for anything extra — see index.html and the README.
   The whole section is removed by the platform when the host leaves it
   empty (or deletes it), and the nav link prunes itself. */
.free-page {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper-2);
}

.free-page__intro {
  text-align: center;
  max-width: 46ch;
  margin: -1.8rem auto 2.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.free-blocks {
  display: grid;
  gap: 2.2rem;
  max-width: 620px;
  margin-inline: auto;
}

.free-block {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--paper);
  border: 1px solid rgba(165, 127, 69, 0.22);
  border-radius: 8px;
  box-shadow: 0 30px 60px -40px rgba(25, 20, 16, 0.45);
}

.free-block__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 0.8rem;
}

.free-block__content {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-inline: auto;
  text-align: center;
}

/* optional photo slot — delete .free-block__media and the block still works */
.free-block__media {
  margin: 1.4rem auto 0;
  max-width: 480px;
  cursor: zoom-in;
}
.free-block__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: linear-gradient(150deg, #40311f, #191410);
  box-shadow: 0 30px 60px -30px rgba(25, 20, 16, 0.55);
}

.free-powered-by {
  margin-top: 2.6rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--champagne-deep);
}

/* ---------- Back cover ---------- */
.back {
  position: relative;
  background:
    radial-gradient(90% 70% at 50% 0%, #2b2115 0%, var(--ink) 70%);
  color: var(--paper);
  text-align: center;
  padding: clamp(4rem, 10vw, 6.5rem) 1.5rem;
  overflow: hidden;
}

/* watermark monogram behind the back cover copy — its letters are morphed
   from the couple's first names at render time (.monogram-first/second) */
.back__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(10rem, 34vw, 24rem);
  letter-spacing: 0.08em;
  color: rgba(232, 211, 162, 0.05);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.back__monogram, .back__love, .back__fine { position: relative; z-index: 1; }
.back__monogram { margin-bottom: 1.6rem; }
.back__monogram svg { width: 74px; height: 74px; }

.back__love {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  line-height: 1.6;
}
.back__love em { font-style: italic; color: var(--champagne-light); }

.back__fine {
  margin-top: 1.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(250, 245, 234, 0.5);
}

/* ============================================================
   TIMELINE (compact, inside details)
   ============================================================ */
.details__timeline-eyebrow { margin-top: clamp(3rem, 7vw, 4.5rem); }

.timeline {
  list-style: none;
  max-width: 560px;
  margin-inline: auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(104px + 0.75rem);
  top: 1.2rem;
  bottom: 1.2rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(165, 127, 69, 0.55) 8%, rgba(165, 127, 69, 0.55) 92%, transparent);
}
.timeline__item {
  display: grid;
  grid-template-columns: 92px 24px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
}
.timeline__time {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--champagne-deep);
  padding-top: 0.15em;
  text-align: right;
}
.timeline__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 0.45em;
  justify-self: center; /* keep dots centered under the ::before line */
  background: var(--champagne);
  box-shadow: 0 0 0 4px rgba(165, 127, 69, 0.16);
}
.timeline__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}
.timeline__body p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ============================================================
   MILESTONES — a second countdown for a second moment.
   Each .milestone counts to its data-until; a data-since adds
   elapsed time + a progress bar from since → until.
   ============================================================ */
.milestones {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper-2);
}

.milestones__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 1.6rem);
  max-width: 720px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.milestone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.7rem, 4vw, 2.2rem);
  border: 1px solid rgba(165, 127, 69, 0.32);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 30px 60px -38px rgba(25, 20, 16, 0.5);
  overflow: hidden;
  text-align: center;
}
.milestone::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.milestone__kicker {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}
.milestone__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  line-height: 1.15;
}
.milestone__name em { color: var(--champagne-deep); }
.milestone__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  min-height: 2.6em;
}
.milestone__elapsed {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.milestone__elapsed strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5em;
  letter-spacing: 0;
  color: var(--champagne-deep);
  font-weight: 500;
}

.milestone__count {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.milestone__tile {
  flex: 1;
  max-width: 88px;
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.3rem 0.7rem;
  background: var(--paper-2);
  border: 1px solid rgba(165, 127, 69, 0.22);
  border-radius: 6px;
}
.milestone__tile b {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.milestone__tile i {
  font-style: normal;
  font-size: 0.54rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.milestone__bar {
  height: 1px;
  margin: 0.2rem 0 0.4rem;
  background: rgba(165, 127, 69, 0.25);
  position: relative;
}
.milestone__bar span {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--champagne-deep), var(--champagne-light));
}
.milestone__note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   HOW WE MET — scrollytelling. The photo column stays pinned
   (position: sticky) while the chapters scroll past; the pinned
   photo crossfades to whichever chapter crosses the stage line.
   ============================================================ */
.story {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper-2);
}

.story__intro {
  text-align: center;
  max-width: 520px;
  margin: -1.8rem auto 2.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.story__stage {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  align-items: start;
  max-width: 820px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.story__pin {
  position: sticky;
  top: clamp(72px, 10vh, 88px); /* clears the sticky nav */
}

.story__photos {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(25, 20, 16, 0.55);
  background: linear-gradient(150deg, #40311f, #191410);
}
.story__photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.story__photo.is-active { opacity: 1; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }

.story__meta {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
}
.story__counter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--champagne-deep);
}
.story__dots { display: flex; gap: 0.5rem; }
.story__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--champagne-deep);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.story__dots button.is-active { background: var(--champagne); transform: scale(1.3); }

.story__chapters {
  list-style: none;
  display: grid;
  gap: clamp(3rem, 9vh, 5.5rem);
  padding: clamp(1rem, 4vh, 2rem) 0 0;
}
.story__chapter {
  scroll-margin-top: 24vh;
  padding-bottom: clamp(3rem, 9vh, 5.5rem);
  border-bottom: 1px solid rgba(165, 127, 69, 0.25);
}
.story__chapter:last-child { border-bottom: 0; }
.story__year {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--champagne);
  display: block;
  margin-bottom: 0.4rem;
}
.story__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
  transition: color 0.35s ease;
}
.story__chapter.is-active .story__title { color: var(--champagne-deep); }
.story__text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* When the renderer removes the photo slot (no story photos saved), drop the
   orphaned counter/hint column too — even before JS runs. The story then
   reads as a clean text column instead of a floating "Tap the photo" bar. */
.story__pin:not(:has(.story__photos)) { display: none; }

/* ============================================================
   VENUE / MAP
   ============================================================ */
.venue {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper);
}

.venue__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.venue__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.venue__info h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.venue__addr {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.venue__chips { list-style: none; display: grid; gap: 0.7rem; margin: 0.4rem 0 0.8rem; }
.venue__chips li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.venue__chips svg { width: 17px; height: 17px; color: var(--champagne-deep); flex: none; }

.weather {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem;
  border: 1px dashed rgba(165, 127, 69, 0.45);
  border-radius: 12px;
  background: rgba(250, 245, 234, 0.75);
  align-self: flex-start;
}
.weather[hidden] { display: none; }
.weather__icon { width: 34px; height: 34px; color: var(--champagne-deep); flex: none; }
.weather__icon svg { width: 100%; height: 100%; display: block; }
.weather__body { display: grid; gap: 0.15rem; }
.weather__date {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.weather__main {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  display: flex;
  gap: 0.55rem;
}

.venue__map {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: clamp(240px, 38vw, 360px);
  border: 1px solid rgba(165, 127, 69, 0.4);
  background: var(--paper-2);
  box-shadow: 0 30px 60px -35px rgba(25, 20, 16, 0.5);
}
.venue__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) sepia(0.16) contrast(1.02);
  transition: filter 0.6s ease;
}
.venue__map:hover iframe,
.venue__map:focus-within iframe { filter: grayscale(0) sepia(0); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--champagne-deep);
  color: var(--champagne-deep);
  box-shadow: none;
  align-self: flex-start;
}
.btn--ghost:hover { background: rgba(165, 127, 69, 0.08); box-shadow: 0 10px 24px -14px rgba(165, 127, 69, 0.7); }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper);
}

.faq__list { max-width: 620px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid rgba(165, 127, 69, 0.3); }
.faq__item:first-child { border-top: 1px solid rgba(165, 127, 69, 0.3); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  color: var(--ink);
  transition: color 0.3s ease;
}
.faq__q:hover, .faq__q:focus-visible { color: var(--champagne-deep); outline: none; }

.faq__icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--champagne-deep);
  transition: transform 0.35s var(--ease-out);
}
.faq__icon::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq__icon::after { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.faq__item.is-open .faq__icon::after { transform: translateX(-50%) scaleY(0); }

.faq__a { height: 0; overflow: hidden; }
.faq__a-inner { padding: 0 0.2rem 1.2rem; font-size: 0.92rem; line-height: 1.75; color: var(--ink-soft); max-width: 56ch; }

/* ============================================================
   RSVP FORM
   ============================================================ */
[hidden] { display: none !important; }

.rsvp-form {
  margin-top: 1.8rem;
  text-align: left;
  display: grid;
  gap: 1.1rem;
}

.rsvp-form__field { display: grid; gap: 0.4rem; }
.rsvp-form__field label,
.rsvp-form__attending legend {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="tel"],
.rsvp-form input[type="number"],
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(165, 127, 69, 0.35);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rsvp-form textarea { resize: vertical; }
.rsvp-form input[type="text"]:focus,
.rsvp-form input[type="email"]:focus,
.rsvp-form input[type="tel"]:focus,
.rsvp-form input[type="number"]:focus,
.rsvp-form textarea:focus,
.rsvp-form select:focus {
  outline: none;
  border-color: var(--champagne-deep);
  box-shadow: 0 0 0 3px rgba(165, 127, 69, 0.18);
}

.rsvp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.rsvp-form__attending { border: none; padding: 0; display: grid; gap: 0.5rem; }
.rsvp-form__attending legend { margin-bottom: 0.35rem; }
.rsvp-form__attending label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}
.rsvp-form__attending input { accent-color: var(--champagne-deep); width: 17px; height: 17px; }

.btn--form { width: 100%; justify-content: center; margin-top: 0.3rem; }
.btn.is-loading { opacity: 0.65; pointer-events: none; }

.rsvp-form__hint { font-size: 0.7rem; color: var(--ink-soft); text-align: center; }

/* platform rsvp_user.js hooks */
.rsvp-form .error { display: block; color: #b03a2e; font-size: 0.78rem; margin-top: 0.3rem; }
.rsvp-form .error:empty { display: none; }
.rsvp-form .loading { text-align: center; color: var(--ink-soft); font-size: 0.85rem; padding: 0.6rem 0 0; }

/* success state */
.rsvp-done { text-align: center; padding: 1.2rem 0 0.4rem; }
.rsvp-done__check { width: 86px; height: 86px; margin: 0 auto 1.1rem; display: block; }
.js:not(.no-motion) .rsvp-done__check circle,
.js:not(.no-motion) .rsvp-done__check path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.rsvp-done h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-bottom: 0.4rem; }
.rsvp-done p { font-size: 0.92rem; line-height: 1.7; color: var(--ink-soft); max-width: 40ch; margin-inline: auto; }
.rsvp-done__reset {
  margin-top: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--champagne-deep);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* alternative reply paths under the panel */
.rsvp__alt {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(165, 127, 69, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.rsvp__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rsvp__qr img { border-radius: 6px; border: 1px solid rgba(165, 127, 69, 0.3); }
.rsvp__alt-line {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: left;
}
.rsvp__alt-line a { color: var(--champagne-deep); }

.rsvp__giftline {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(165, 127, 69, 0.22);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.rsvp__giftline a { color: var(--champagne-deep); }

/* ============================================================
   GIFTS / AMPLOP DIGITAL (QRIS)
   ============================================================ */
.gifts {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper);
}
.gifts__intro {
  text-align: center;
  max-width: 46ch;
  margin: -1.8rem auto 2.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.amplop {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 4vw, 2.4rem);
  align-items: center;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 2.2rem);
  border: 1px solid rgba(165, 127, 69, 0.32);
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: 0 30px 60px -38px rgba(25, 20, 16, 0.5);
  position: relative;
  z-index: 1;
}
.amplop::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.amplop__qr {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}
.amplop__qr img {
  width: clamp(150px, 34vw, 180px);
  height: auto;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(165, 127, 69, 0.4);
  background: #fff;
  box-shadow: 0 14px 28px -16px rgba(25, 20, 16, 0.4);
}
.amplop__scan {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.amplop__badge {
  display: inline-block;
  padding: 0.5em 1.2em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--champagne-light), var(--champagne) 55%, var(--champagne-deep));
  color: var(--ink);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.amplop__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  margin-bottom: 0.6rem;
}
.amplop__body h3 em { color: var(--champagne-deep); }
.amplop__body > p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 46ch;
}
.amplop__an {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.amplop__an strong { color: var(--champagne-deep); font-weight: 600; }
.amplop__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.amplop__chips li {
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(165, 127, 69, 0.3);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.7rem;
  color: var(--ink-soft);
}

/* ============================================================
   GOLD DUST
   ============================================================ */
.dust {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}
.dust i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #f3e2b6 0%, rgba(243, 226, 182, 0.3) 45%, transparent 72%);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 9, 5, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
}
.lightbox[hidden] { display: none; }

.lightbox__figure { max-width: min(900px, 92vw); text-align: center; }
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: 6px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}
.lightbox__cap {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(250, 245, 234, 0.85);
}

.lightbox__close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(250, 245, 234, 0.4);
  background: transparent;
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}
.lightbox__close:hover { transform: rotate(90deg); background: rgba(250, 245, 234, 0.12); }

/* prev / next + counter */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(250, 245, 234, 0.35);
  background: rgba(13, 9, 5, 0.4);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav:hover { background: rgba(250, 245, 234, 0.18); }
.lightbox__nav:disabled { opacity: 0.25; cursor: default; }
.lightbox__nav--prev { left: clamp(0.8rem, 4vw, 2.5rem); }
.lightbox__nav--next { right: clamp(0.8rem, 4vw, 2.5rem); }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox__count {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  color: rgba(250, 245, 234, 0.75);
}

/* ============================================================
   REVEALS — fade, rise & de-blur
   ============================================================ */
.js:not(.no-motion) [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(3px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.js:not(.no-motion) [data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }

/* ============================================================
   GUESTBOOK — mounts for the platform-injected guestbook.
   The engine replaces .guestbook-body with #guestbookForm,
   #comments-container and #load-more; style that markup here
   (see docs/template-rsvp-guestbook-guide.md §3).
   ============================================================ */
.guestbook-section {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper);
}
.guestbook-head {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}
.guestbook-head .card-title { margin: 0 0 0.6rem; }
.guestbook-description { color: var(--ink-soft); font-size: 0.95rem; }
.guestbook-body {
  max-width: 560px;
  margin: 2.2rem auto 0;
}

/* injected #guestbookForm */
.guestbook-section .form-group { margin-bottom: 1.1rem; }
.guestbook-section .form-group label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.guestbook-section .form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(165, 127, 69, 0.35);
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.guestbook-section textarea.form-control { resize: vertical; min-height: 96px; }
.guestbook-section .form-control:focus {
  outline: none;
  border-color: var(--champagne-deep);
  box-shadow: 0 0 0 3px rgba(165, 127, 69, 0.18);
}
.guestbook-section .error {
  display: block;
  color: #b03a2e;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}
/* utility classes the injected markup carries — make the submit row center */
.guestbook-section .d-flex { display: flex; justify-content: center; }
.guestbook-section .d-inline-flex { display: inline-flex; }
.guestbook-section .mx-auto { margin-inline: auto; }
.guestbook-section .btn {
  margin-top: 0.4rem;
  color: var(--ink); /* beat the platform's .text-white on the gold button */
}
.guestbook-section .ph { font-size: 1.1em; }
.guestbook-section .loading-guestbook {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 0.6rem 0 0;
}

/* injected message list + entries */
.guestbook-section #comments-container {
  border-top-color: rgba(165, 127, 69, 0.35) !important; /* overrides inline border:1px solid */
}
.guestbook-section .guestbook-entry {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(165, 127, 69, 0.3);
}
.guestbook-section .guestbook-entry:last-child { border-bottom: 0; }
.guestbook-section .guestbook-entry h5 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.2rem;
}
.guestbook-section .guestbook-entry p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 0.3rem;
}
.guestbook-section .guestbook-entry small {
  color: var(--champagne-deep);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* injected load-more pager */
.guestbook-section .more-guestbook-wrap { text-align: center; margin-top: 1.4rem; }
.guestbook-section #load-more {
  border: 1px solid rgba(165, 127, 69, 0.5);
  background: transparent;
  color: var(--champagne-deep);
  border-radius: 999px;
  padding: 0.65rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.guestbook-section #load-more:hover {
  background: rgba(165, 127, 69, 0.12);
  color: var(--champagne-deep);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .memories__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .detail-row { grid-template-columns: 40px 1fr; gap: 0.4rem 0.8rem; }
  .detail-row dd { grid-column: 2; }
  .cover { min-height: 90svh; }
  .cover__vertical { display: none; }
  .venue__grid { grid-template-columns: 1fr; }
  .rsvp-form__row { grid-template-columns: 1fr; }
  .rsvp__alt { flex-direction: column; gap: 1.2rem; }
  .timeline__item { grid-template-columns: 80px 22px 1fr; }
  .timeline::before { left: calc(92px + 11px); } /* 80px col + 12px gap + half of 22px dot col */
  .milestones__grid { grid-template-columns: 1fr; }
  .milestone__lead { min-height: 0; }
  .story__stage { grid-template-columns: 1fr; gap: 1.6rem; }
  .story__pin { position: sticky; top: 66px; z-index: 5; }
  .story__photos { aspect-ratio: 4 / 5; }
  .story__chapters { gap: 3rem; }
  .milestone__tile { max-width: none; }
}

@media (max-width: 420px) {
  .seal { width: 72px; height: 72px; }
  .amplop { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .amplop__body > p { max-width: none; }
}

/* ============================================================
   SCROLL PROGRESS — thin gold hairline tracking the card
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 400;
  pointer-events: none;
  background: linear-gradient(90deg, var(--champagne-light), var(--champagne-deep));
}

/* ============================================================
   ENVELOPE GUEST GREETING — personalised line via the `name` global
   ============================================================ */
.envelope__guest {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.95rem, 4vw, 1.2rem);
  letter-spacing: 0.05em;
  color: var(--champagne-light);
  margin-bottom: 0.5rem;
}

/* ============================================================
   DRESS-CODE PALETTE — swatches so guests match the theme
   ============================================================ */
.palette {
  max-width: 680px;
  margin: 0.6rem auto 0;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}
.palette__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  text-align: center;
}
.palette__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-align: center;
}
.palette__sep { color: var(--champagne); font-size: 0.6em; }

/* ============================================================
   PLAYLIST — Spotify embed
   ============================================================ */
.playlist {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper-2);
  text-align: center;
}
.playlist__intro {
  max-width: 46ch;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.playlist__embed {
  max-width: 560px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #191410;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}
.playlist__embed iframe { display: block; width: 100%; height: 352px; border: 0; }

/* ============================================================
   VENUE ACTIONS — add-to-calendar / copy-link buttons
   ============================================================ */
.venue__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.9rem; }
.venue__actions .btn svg { width: 16px; height: 16px; }

/* ============================================================
   TOAST — copy-link confirmation
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  z-index: 300;
  max-width: 90vw;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   CONFETTI PETALS — celebratory fall after RSVP
   ============================================================ */
.confetti-layer { position: fixed; inset: 0; z-index: 250; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute;
  top: -12px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 3px 9px 3px 9px;
  background: var(--champagne);
  opacity: 0;
  animation: petal-fall var(--fall, 4s) linear forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  100% { transform: translate3d(var(--sway, 40px), 112vh, 0) rotate(340deg); opacity: 0.55; }
}

/* ============================================================
   PHOTO FEATURES — all optional. Add class="no-photos" to <body>
   (e.g. <body class="locked no-photos">) to hide every photo
   feature at once: cover photo, arch portrait, story photos and
   the memories gallery. See README → "Photo features".
   ============================================================ */
.no-photos .cover__photo,
.no-photos .arch,
.no-photos .memories,
.no-photos .flyer,
.no-photos .story__pin,
.no-photos .free-block__media { display: none !important; }
.no-photos .story__stage { grid-template-columns: 1fr; max-width: 560px; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js:not(.no-motion) .envelope__hint,
  .js:not(.no-motion) .seal::after,
  .js:not(.no-motion) .cover__monogram,
  .js:not(.no-motion) .arch__media img,
  .js:not(.no-motion) .gold-text,
  .js:not(.no-motion) .btn::after { animation: none !important; }
  .js:not(.no-motion) [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .gold-text { color: var(--champagne-light); }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   CARD NAVIGATION — sticky text nav; links prune themselves
   when their section is removed (see main.js → initNav)
   ============================================================ */
.card-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  background: rgba(250, 245, 234, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(165, 127, 69, 0.32);
  box-shadow: 0 18px 34px -30px rgba(25, 20, 16, 0.6);
}
.card-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease;
}
.card-nav__link:hover { color: var(--champagne-deep); background: rgba(165, 127, 69, 0.1); }
.card-nav__link.is-active { color: var(--champagne-deep); background: rgba(165, 127, 69, 0.14); }
.card-nav__link:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }

/* sections clear the sticky nav when jumped to */
.card [id] { scroll-margin-top: clamp(64px, 9vh, 84px); }

/* ============================================================
   COVER PHOTO — the backdrop is clickable; a small chip is its
   accessible control (opens the photo in the lightbox, zoomable)
   ============================================================ */
.cover__photo { cursor: zoom-in; }
.cover__photobtn {
  position: relative;
  z-index: 1;
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55em 1.3em;
  border-radius: 999px;
  border: 1px solid rgba(165, 127, 69, 0.45);
  background: rgba(250, 245, 234, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.cover__photobtn:hover,
.cover__photobtn:focus-visible {
  background: var(--paper);
  color: var(--champagne-deep);
  transform: translateY(-1px);
  outline: none;
}
.cover__photobtn svg { width: 13px; height: 13px; color: var(--champagne-deep); }

/* ============================================================
   CLICKABLE PHOTO AFFORDANCES — arch, story, flyer, QR codes
   ============================================================ */
.arch__frame,
.story__photos,
.flyer__figure { cursor: zoom-in; }
.arch__frame:focus-visible,
.story__photos:focus-visible,
.flyer__figure:focus-visible,
.rsvp__qr:focus-visible,
.amplop__qr:focus-visible {
  outline: 2px solid var(--champagne-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.story__hint {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  opacity: 0.85;
}

/* ============================================================
   FILM — optional video feature (data-video-url, see README)
   ============================================================ */
.film {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper);
  text-align: center;
}
.film__intro {
  max-width: 46ch;
  margin: -1.8rem auto 2.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}
.film__frame {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(165, 127, 69, 0.4);
  background: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(25, 20, 16, 0.6);
}
.film__play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.film__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 1.2s var(--ease-out), opacity 0.6s ease;
}
.film__play:hover img,
.film__play:focus-visible img { transform: scale(1.05); opacity: 1; }
.film__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25, 20, 16, 0.65), rgba(25, 20, 16, 0.08) 55%);
}
.film__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(250, 245, 234, 0.92);
  color: var(--champagne-deep);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease-out), background 0.3s ease;
}
.film__play-icon svg { width: 26px; height: 26px; margin-left: 3px; }
.film__play:hover .film__play-icon,
.film__play:focus-visible .film__play-icon {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}
.film__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(250, 245, 234, 0.9);
}
.film__note {
  max-width: 52ch;
  margin: 1rem auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.film__note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
  background: var(--paper-2);
  border: 1px solid rgba(165, 127, 69, 0.3);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}
.film__external {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--champagne-deep);
}

/* ============================================================
   FLYER / BANNER — optional flyer image + download (see README)
   ============================================================ */
.flyer {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 6vw, 3.5rem);
  background: var(--paper-2);
  text-align: center;
}
.flyer__intro {
  max-width: 46ch;
  margin: -1.8rem auto 2.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}
.flyer__figure { max-width: 640px; margin-inline: auto; }
.flyer__frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(165, 127, 69, 0.4);
  background: linear-gradient(150deg, #40311f, #191410);
  box-shadow: 0 40px 80px -40px rgba(25, 20, 16, 0.55);
}
.flyer__frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.flyer__figure:hover .flyer__frame img,
.flyer__figure:focus-visible .flyer__frame img { transform: scale(1.05); }
.flyer__zoom {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.4em 1em;
  border-radius: 999px;
  background: rgba(250, 245, 234, 0.85);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
}
.flyer__cap {
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.flyer__actions {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
}
.flyer__actions .btn--ghost { align-self: center; }

/* ============================================================
   LIGHTBOX — stage (image or video), zoom tools, open-original
   ============================================================ */
.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(900px, 92vw);
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: 6px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.lightbox__video {
  width: min(880px, 90vw);
  aspect-ratio: 16 / 9;
  max-height: 78vh;
}
.lightbox__video iframe,
.lightbox__video video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}
.lightbox__tools {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}
.lightbox__tool {
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(250, 245, 234, 0.35);
  background: rgba(13, 9, 5, 0.4);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease;
}
.lightbox__tool:hover { background: rgba(250, 245, 234, 0.18); }
.lightbox__tool:disabled { opacity: 0.3; cursor: default; }
.lightbox__tool--readout {
  width: auto;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.lightbox__original {
  position: absolute;
  right: 1.2rem;
  bottom: 1.3rem;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: rgba(250, 245, 234, 0.85);
}
.lightbox__original:hover { color: var(--champagne-light); }

/* ============================================================
   FOOTER BRAND — placeholder the platform can bind/swap
   ============================================================ */
.footer-brand {
  position: relative;
  z-index: 1;
  margin-top: 2.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(250, 245, 234, 0.45);
}
.footer-brand-name { color: var(--champagne-light); }

/* ============================================================
   POWERED-BY — full-width brand strip below the card (static
   platform HTML; never bound to a morph)
   ============================================================ */
.powered-by {
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
  padding: 1.5rem 1.5rem 2rem;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(250, 245, 234, 0.5);
  background:
    radial-gradient(120% 80% at 50% 0%, #241c13 0%, var(--ink) 55%);
}
.link-footer { color: var(--champagne-light); }

/* ============================================================
   MOBILE — nav scrolls, lightbox tools tighten up
   ============================================================ */
@media (max-width: 760px) {
  .card-nav {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.55rem 0.75rem;
  }
  .card-nav::-webkit-scrollbar { display: none; }
  .card-nav__link { min-height: 42px; }
  .lightbox__tools { left: 0.8rem; bottom: 0.8rem; }
  .lightbox__original { right: 0.8rem; bottom: 0.9rem; }
  .lightbox__tool { min-width: 38px; height: 38px; }
  .lightbox__count { bottom: 1.1rem; }
  .lightbox__close { top: 0.9rem; right: 1rem; }
}
@media (max-width: 480px) {
  .lightbox__count { display: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .grain, .envelope, .lightbox, .dust, .cover__photo, .cover__photobtn,
  .scroll-progress, .toast, .confetti-layer, .story__meta, .story__dots,
  .card-nav, .film__play, .flyer__zoom, .powered-by { display: none !important; }
  .js:not(.no-motion) .card { transform: none; }
  body { background: #fff; overflow: visible; }
  .card { box-shadow: none; max-width: 100%; }
  .cover { min-height: auto; }
  .arch__frame, .memory__frame { box-shadow: none; }
  .back { background: var(--ink); }
  .js:not(.no-motion) [data-reveal] { opacity: 1; transform: none; filter: none; }
  .story__stage { grid-template-columns: 1fr; }
  .story__pin { position: static; }
  .story__photo { position: static; opacity: 1; }
  .story__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .story__photos .story__photo img { aspect-ratio: 4 / 3; object-fit: cover; }
  .milestones__grid { grid-template-columns: 1fr 1fr; }
  .amplop { grid-template-columns: auto 1fr; }
}
