/* ==========================================================================
   wedding-id-kisah-kita — "Kisah Kita"
   A keepsake-style Indonesian wedding invitation: paper card pages on a
   deep stage, opened with a wax seal.

   Design tokens / sections / platform mount points are commented for
   morph binding (editable fields → stable selectors).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #243730;
  --bg-deep: #16241f;
  --bg-soft: #2e463d;
  --header-h: 58px;
  --dock-h: 62px;
  --card: #fdf9ee;
  --card-hi: #fffdf6;
  --card-edge: #ece2cc;
  --gold: #b8914d;
  --gold-soft: #d3b071;
  --rose: #c2705f;
  --ink: #3b2f27;
  --ink-soft: rgba(59, 47, 39, .6);
  --sage: #7f8f77;
  --line-light: rgba(59, 47, 39, .18);
  --err: #b3261e;
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --body: "EB Garamond", "Georgia", serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 18px;
  /* Cover photo wash — tune the first alpha value to make the cover photo
     more (lower alpha) or less (higher alpha) visible behind the paper. */
  --cover-wash: rgba(253, 249, 238, .74);
  --cover-wash-mid: rgba(253, 249, 238, .55);
  --cover-wash-base: rgba(246, 238, 218, .92);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;   /* anchor jumps glide; reduced-motion turns it off */
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--bg);
  color: var(--card);
  font-family: var(--sans);
  font-size: .85rem;
  border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   APP SHELL — a naturally scrolling long invitation. Each panel is a
   full-viewport "scene" that centers its paper card; tall content simply
   grows and the whole page scrolls like a normal website.
   ========================================================================== */
.app {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--bg-soft) 0%, var(--bg) 46%, var(--bg-deep) 100%);
}

/* Ambient depth: soft colored glows drifting across the emerald stage */
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 26% at 16% 9%, rgba(211, 176, 113, .15), transparent 70%),
    radial-gradient(44% 30% at 86% 28%, rgba(127, 143, 119, .18), transparent 72%),
    radial-gradient(52% 34% at 50% 96%, rgba(194, 112, 95, .13), transparent 74%),
    radial-gradient(30% 20% at 78% 74%, rgba(211, 176, 113, .09), transparent 70%);
}

/* Faint gold speckle — keepsake stardust on the deep stage */
.app::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(rgba(211, 176, 113, .22) 1px, transparent 1.4px),
    radial-gradient(rgba(253, 249, 238, .10) 1px, transparent 1.4px);
  background-size: 260px 260px, 380px 380px;
  background-position: 12px 24px, 150px 90px;
}

.panel { position: relative; z-index: 1;
  /* Native anchor/deep-link jumps stop below the fixed app bar */
  scroll-margin-top: calc(var(--header-h) + 8px); }

/* Without JS the layout is identical — the page simply scrolls with no
   dock/menu enhancements (they are built by JS and hidden). */

/* ---------- Stage + card page ---------- */
.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Top padding clears the fixed app bar; bottom clears the floating dock,
     so card content never hides behind either. */
  padding:
    calc(var(--header-h) + 30px + var(--safe-t))
    20px
    calc(var(--dock-h) + 48px + var(--safe-b));
}

.page {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--card-hi) 0%, var(--card) 62%, #f6eeda 100%);
  border: 1px solid rgba(59, 47, 39, .14);
  border-radius: 22px;
  box-shadow:
    0 40px 80px -36px rgba(0, 0, 0, .75),
    0 6px 18px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .65);
  padding: 46px 36px;
  overflow: hidden;
}

.page::before {                 /* gold hairline inner frame */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 145, 77, .5);
  border-radius: 14px;
  pointer-events: none;
}
.page::after {                  /* corner ticks */
  content: "";
  position: absolute;
  inset: 16px;
  border: 0;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 22px 1px,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 22px,
    linear-gradient(var(--gold), var(--gold)) top right / 22px 1px,
    linear-gradient(var(--gold), var(--gold)) top right / 1px 22px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 22px 1px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px 22px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 22px 1px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 22px;
  background-repeat: no-repeat;
  opacity: .55;
  pointer-events: none;
}

.page__inner {
  position: relative;           /* above ::before/::after frames */
  width: 100%;
  text-align: center;
}

.page--tall { justify-content: flex-start; }
.page--cover { justify-content: center; }

/* Decorative tape corners on the cover card */
.page__tape {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(184, 145, 77, .5);
  pointer-events: none;
}
.page__tape--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.page__tape--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), filter .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(194, 112, 95, .8);
}
.btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn--ghost {
  border-color: var(--line-light);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--block { width: 100%; }

/* ==========================================================================
   COVER — wax seal card
   ========================================================================== */
.cover-inner {
  position: relative;
  z-index: 1;                      /* above the optional cover photo */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Optional cover photo — a soft image behind the sealed card.
   The cream wash keeps every piece of cover text readable no matter
   how bright or dark the photo is. Delete the <div class="cover-photo">
   in index.html for a clean paper card. */
.cover-photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(243, 235, 219, .65), rgba(201, 192, 172, .55));
  pointer-events: none;
}
/* The cover photo is a real <img> (not a CSS background) so the platform can
   swap its src. The platform may replace it with a responsive <picture>
   carrying the same class, so style by class, not tag. */
.cover-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  pointer-events: none;
}
.cover-photo__img.is-fallback { display: none; }
.cover-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--cover-wash), var(--cover-wash-mid) 46%, var(--cover-wash-base));
}

/* Corner chip to view the cover photo full-size (delete .cover-photo to remove) */
.cover-photo__zoom {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(184, 145, 77, .5);
  background: rgba(253, 249, 238, .85);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(59, 47, 39, .5);
  backdrop-filter: blur(4px);
  pointer-events: auto;   /* .cover-photo itself ignores pointer events */
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.cover-photo__zoom svg { width: 14px; height: 14px; }
.cover-photo__zoom:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-1px); }
.cover-photo__zoom:active { transform: scale(.97); }

.cover__monogram {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .5em;
  margin: 0 0 26px;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.cover__monogram span { color: var(--gold); letter-spacing: 0; }

/* The wax seal: serrated disc via repeating-conic-gradient mask */
.seal {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 0 26px;
  border-radius: 50%;
  border: 0;
  background:
    radial-gradient(circle at 34% 28%, #e09484 0%, var(--rose) 44%, #9c4638 100%);
  -webkit-mask: repeating-conic-gradient(from 3deg, #000 0deg 8deg, transparent 8deg 16deg);
  mask: repeating-conic-gradient(from 3deg, #000 0deg 8deg, transparent 8deg 16deg);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  box-shadow: 0 14px 30px -12px rgba(156, 70, 56, .85);
  transition: transform .5s var(--ease);
}
.seal::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, .55);
}
.seal::before {                 /* soft pulsing halo — "press me" */
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 1px solid rgba(211, 176, 113, .6);
  animation: seal-pulse 2.8s var(--ease) infinite;
}
@keyframes seal-pulse {
  0%   { transform: scale(.86); opacity: .9; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}
.seal:hover { transform: scale(1.04); }

/* seal "cracked open" moment (JS adds the class; reduced-motion skips it) */
.seal.is-open {
  transform: scale(1.12) rotate(8deg);
  opacity: 0;
}

.cover__script {
  font-family: var(--script);
  font-size: clamp(2.3rem, 9vw, 3.1rem);
  line-height: 1.15;
  color: var(--rose);
  margin: 0 0 4px;
}

.cover__names {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.7rem, 6.4vw, 2.5rem);
  line-height: 1.14;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.cover__names .bride-name { font-style: italic; }
.cover__amp {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  color: var(--gold);
  line-height: 1.3;
}

.cover__line {
  margin: 14px 0 0;
  font-size: .98rem;
  color: var(--ink-soft);
  max-width: 360px;
}

.cover__date {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: .04em;
}

.cover__cta { margin-top: 30px; }
.cover__hint {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Animated scroll cue under the hint — the invitation invites scrolling */
.cover__scrollcue {
  margin: 26px auto 0;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(59, 47, 39, .32);
  border-radius: 999px;
  position: relative;
}
.cover__scrollcue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: cue-dot 1.9s ease-in-out infinite;
}
@keyframes cue-dot {
  0%   { transform: translateY(0); opacity: 1; }
  65%  { transform: translateY(15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   OPENING — the letter
   ========================================================================== */
.bismillah {
  font-family: var(--script);
  font-size: clamp(1.8rem, 7vw, 2.3rem);
  color: var(--gold);
  margin: 0 0 26px;
  line-height: 1.2;
}

.address-block {
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 14px 20px;
  margin: 0 auto 26px;
  max-width: 320px;
  background: rgba(184, 145, 77, .06);
}
.address-block__to {
  margin: 0;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.address-block__name {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.address-block__place {
  margin: 2px 0 0;
  font-size: .84rem;
  font-style: italic;
  color: var(--ink-soft);
}

.letter {
  margin: 0 0 18px;
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
}

.letter-names { margin: 26px 0; }
.letter-names__name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.letter-names__meta {
  margin: 2px 0 0;
  font-size: .92rem;
  font-style: italic;
  color: var(--ink-soft);
}
.letter-names__amp {
  display: block;
  font-family: var(--script);
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION HEADS
   ========================================================================== */
.section-head { margin-bottom: 28px; }
.section-head__kicker {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.55rem, 5.6vw, 2.1rem);
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}
/* Gold flourish under every section title — dash · diamond · dash */
.section-head__title::after {
  content: "";
  display: block;
  width: min(180px, 60%);
  height: 9px;
  margin: 13px auto 0;
  background:
    linear-gradient(var(--gold), var(--gold)) left center / 42% 1px,
    linear-gradient(var(--gold), var(--gold)) right center / 42% 1px,
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) center / 7px 7px,
    linear-gradient(45deg, var(--gold) 50%, transparent 50%) center / 7px 7px;
  background-repeat: no-repeat;
  opacity: .9;
}

/* ==========================================================================
   STORY CHAPTERS
   ========================================================================== */
.story-list { display: grid; gap: 30px; text-align: center; }

.story-year {
  margin: 0 0 2px;
  font-family: var(--script);
  font-size: 2rem;
  color: var(--rose);
  line-height: 1.1;
}
.story-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
}
.story-text {
  margin: 10px auto 0;
  max-width: 400px;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.8;
}

.story-photo {
  position: relative;
  margin: 16px auto 0;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: 0 16px 32px -22px rgba(59, 47, 39, .6);
  background: linear-gradient(135deg, var(--card-edge), var(--card));
  cursor: zoom-in;
}
.story-photo img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.story-photo:hover img { transform: scale(1.04); }
.story-photo:active img { transform: scale(.99); }
.story-photo.is-fallback {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}
.story-photo.is-fallback::after { content: "Kisah kami"; letter-spacing: .2em; font-size: .9rem; text-transform: uppercase; }

/* ==========================================================================
   FREE PAGE — optional free-text page (repeatable blocks)
   ========================================================================== */
.free-page__intro {
  margin: 10px auto 0;
  max-width: 380px;
  color: var(--ink-soft);
  font-size: .92rem;
}

.free-blocks { display: grid; gap: 28px; text-align: center; margin-top: 4px; }
.free-block__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
}
.free-block__content {
  margin: 10px auto 0;
  max-width: 400px;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.8;
}
.free-block__media {
  position: relative;
  margin: 16px auto 0;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: 0 16px 32px -22px rgba(59, 47, 39, .6);
  background: linear-gradient(135deg, var(--card-edge), var(--card));
  cursor: zoom-in;
}
.free-block__media img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.free-block__media:hover img { transform: scale(1.04); }
.free-block__media:active img { transform: scale(.99); }
/* A block without a photo collapses cleanly (the engine removes the empty
   <img>; this hides the leftover empty frame). */
.free-block__media:empty { display: none; }
.free-block__media.is-fallback {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}
.free-block__media.is-fallback::after { content: "Foto halaman bebas"; letter-spacing: .2em; font-size: .9rem; text-transform: uppercase; }

/* ==========================================================================
   GALLERY — optional photo grid (delete the section in index.html to disable)
   ========================================================================== */
.gallery-note {
  margin: 10px auto 0;
  max-width: 380px;
  color: var(--ink-soft);
  font-size: .92rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gallery-item { margin: 0; }
.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card-edge), var(--card));
  box-shadow: 0 14px 26px -22px rgba(59, 47, 39, .55);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.gallery-thumb img {
  width: 100%; height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb::after {            /* gold ring on hover */
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 12px;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.gallery-thumb:hover::after { opacity: .55; }
.gallery-item__caption {
  margin-top: 7px;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   VIDEO — optional section (delete the #film section in index.html to hide)
   ========================================================================== */
.video-note {
  margin: 10px auto 0;
  max-width: 380px;
  color: var(--ink-soft);
  font-size: .92rem;
}

.video {
  margin-top: 26px;
  width: 100%;
}
.video__play {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-deep));
  border: 1px solid var(--line-light);
  box-shadow: 0 16px 32px -22px rgba(59, 47, 39, .6);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.video__play[hidden] { display: none; }
.video__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.video__play:hover img { transform: scale(1.04); }

.video__play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}
.video__play-icon::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(22, 36, 31, .5);
  border: 1px solid rgba(253, 249, 238, .45);
  backdrop-filter: blur(5px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .55);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.video__play-icon svg {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
}
.video__play:hover .video__play-icon::before { transform: scale(1.08); background: rgba(194, 112, 95, .85); }

.video__hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(22, 36, 31, .55);
  border: 1px solid rgba(253, 249, 238, .35);
  color: var(--card);
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.video__note {
  margin: 16px auto 0;
  max-width: 400px;
  font-size: .86rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .55);
  border: 1px dashed var(--line-light);
  border-radius: 10px;
  padding: 12px 16px;
}
.video__note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  color: var(--rose);
}
.video__external { margin-top: 16px; }

/* ==========================================================================
   EVENTS
   ========================================================================== */
.event-list { display: grid; gap: 22px; }

.event-item {
  position: relative;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 14px 30px -24px rgba(59, 47, 39, .5);
}
.event-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 2px;
  background: var(--gold);
}

/* Optional venue photo on each ceremony card (delete the figure to remove) */
.event-photo {
  margin: 0 auto 16px;
  max-width: 380px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: 0 12px 24px -20px rgba(59, 47, 39, .5);
  cursor: zoom-in;
}
.event-photo img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.event-photo:hover img { transform: scale(1.04); }
.event-photo:active img { transform: scale(.99); }

.event-label {
  margin: 0 0 12px;
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.event-date {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  margin: 0;
}
.event-time {
  margin: 2px 0 12px;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.event-venue {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.event-address {
  margin: 4px 0 0;
  font-size: .9rem;
  color: var(--ink-soft);
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.event-actions .btn { padding: 9px 18px; font-size: .8rem; }

/* Countdown band */
.countdown-band {
  margin-top: 22px;
  border: 1px solid rgba(184, 145, 77, .5);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(184, 145, 77, .16), rgba(184, 145, 77, .04));
  border-radius: 14px;
  padding: 22px 20px;
}
.countdown-band__label {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.countdown-band__number {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 3rem);
  line-height: 1.1;
}
.countdown-band__number small {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-left: 8px;
}
.countdown-band__past { display: none; margin: 0; font-weight: 600; font-size: 1.02rem; color: var(--gold); }
.countdown-band.is-past .countdown-band__number { display: none; }
.countdown-band.is-past .countdown-band__past { display: block; }

.dress-note {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px dashed var(--line-light);
  border-radius: 10px;
  font-size: .92rem;
  background: rgba(255, 255, 255, .4);
}

/* Map */
.map { margin-top: 22px; }
.map__frame {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  filter: saturate(.85);
}
.map__cta { margin-top: 12px; }

.faq {
  margin-top: 18px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  text-align: left;
  background: rgba(255, 255, 255, .4);
}
.faq summary {
  padding: 13px 16px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .86rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.05rem; transition: transform .25s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 16px 13px; font-size: .88rem; color: var(--ink-soft); }

/* ==========================================================================
   RSVP — the reply card (wrapped in .rsvp-wrap)
   ========================================================================== */
.rsvp-wrap { width: 100%; }
.rsvp-description { margin: 10px 0 0; color: var(--ink-soft); font-size: .94rem; }

.rsvp-countdown { margin: 24px 0 2px; }
.rsvp-countdown__label {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.rsvp-countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 340px;
  margin: 0 auto;
}
.rsvp-count {
  background: rgba(184, 145, 77, .08);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 10px 4px;
}
.rsvp-count span {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rsvp-count small {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* The RSVP form: styled like a tear-off reply card */
.rsvp-form {
  margin-top: 24px;
  border: 1.5px dashed rgba(184, 145, 77, .65);
  border-radius: 16px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, .45);
  text-align: left;
}
.rsvp-form::before {
  content: "REPLY CARD";
  display: block;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .34em;
  color: var(--gold);
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.form-group { margin-top: 14px; }
.form-group--full { margin-top: 14px; }
.form-row .form-group:first-child { margin-top: 14px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}
.label-opt { opacity: .6; font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(59, 47, 39, .35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 145, 77, .18);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8914d' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}
.form-group textarea { resize: vertical; min-height: 56px; }

.error {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: .76rem;
  color: var(--err);
}

.rsvp-hint { margin: 9px 2px 0; font-family: var(--sans); font-size: .76rem; color: var(--ink-soft); }
.rsvp-attend-note {
  margin: 13px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--gold);
}

.rsvp-form #submit-button { margin-top: 20px; }

.loading {
  text-align: center;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: .84rem;
  color: var(--gold);
}

.is-hidden { display: none !important; }

/* Injected thank-you / RSVP-closed state */
.thank-you-message { text-align: center; padding: 8px 0; }
.thank-you-message h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: var(--gold);
}
.thank-you-message p { margin: 3px 0; font-size: .95rem; color: var(--ink-soft); }
.thank-you-message small { color: var(--ink-soft); opacity: .8; }

/* ==========================================================================
   GUESTBOOK (platform injects the form + list into .guestbook-body)
   ========================================================================== */
.guestbook-section { width: 100%; }
.guestbook-description { margin: 10px 0 0; color: var(--ink-soft); font-size: .94rem; }
.guestbook-body { margin-top: 20px; }
.guestbook-body .guestbook-form { text-align: left; }

.guestbook-body .form-group label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
}
.guestbook-body .form-control {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.guestbook-body .form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 145, 77, .18);
}
.guestbook-body .error {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: .76rem;
  color: var(--err);
}
.guestbook-body .guestbook-chapta { margin-top: 10px; }

/* The injected submit button carries Bootstrap classes; style it on-brand */
.guestbook-body .btn {
  width: 100%;
  margin-top: 16px;
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
}
.guestbook-body .btn:hover { filter: brightness(1.05); }

.loading-guestbook {
  text-align: center;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: .84rem;
  color: var(--gold);
}

/* Message list (injected #comments-container.guestbook-wrap) */
.guestbook-body .guestbook-wrap {
  max-height: none !important;
  overflow: visible !important;
  border-top: 1px solid var(--line-light) !important;
  margin-top: 24px;
  padding-top: 20px;
  display: grid;
  gap: 10px;
}

.guestbook-entry {
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  background: rgba(255, 255, 255, .5);
}
.guestbook-entry h5 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
}
.guestbook-entry p { margin: 5px 0 0; font-size: .94rem; color: var(--ink); overflow-wrap: anywhere; }
.guestbook-entry small { display: block; margin-top: 7px; font-family: var(--sans); font-size: .7rem; color: var(--ink-soft); }

.more-guestbook-wrap { text-align: center; margin-top: 16px; }
.more-guestbook-wrap #load-more {
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 24px;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
}
.more-guestbook-wrap #load-more:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   AMPLOP
   ========================================================================== */
.amplop-note {
  margin: 10px auto 0;
  max-width: 380px;
  color: var(--ink-soft);
  font-size: .92rem;
}

.gift-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}
.gift-item {
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: rgba(255, 255, 255, .5);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 14px 30px -24px rgba(59, 47, 39, .5);
}
.gift-name {
  margin: 0;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.gift-account {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.gift-holder { margin: 3px 0 0; font-size: .9rem; font-style: italic; color: var(--ink-soft); }
.gift-copy { margin-top: 14px; }

.qris { margin-top: 30px; text-align: center; }
.qris__note { font-size: .88rem; font-style: italic; color: var(--ink-soft); margin: 0 0 14px; }
.qris__frame {
  position: relative;
  display: inline-block;
  width: 210px;
  height: 210px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  box-shadow: 0 18px 36px -24px rgba(59, 47, 39, .6);
}
.qris__frame img { width: 100%; height: 100%; object-fit: contain; }
.qris__placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: .24em;
  color: var(--ink-soft);
}
.qris__frame.is-placeholder .qris__placeholder { display: flex; }

/* ==========================================================================
   BACK COVER
   ========================================================================== */
.back__watermark {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 4.2rem;
  letter-spacing: .08em;
  color: rgba(184, 145, 77, .13);
  line-height: 1;
  pointer-events: none;
}

.back__script {
  font-family: var(--script);
  font-size: clamp(2.6rem, 10vw, 3.4rem);
  color: var(--rose);
  margin: 0;
  line-height: 1.1;
}
.back__body {
  margin: 18px auto 0;
  max-width: 360px;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.85;
}
.back__names {
  margin: 30px 0 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.25rem, 4.8vw, 1.6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.back__amp {
  font-family: var(--script);
  color: var(--gold);
  font-size: 1.4em;
}
.back__farewell {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
}
.back__year {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.back__parents {
  margin: 30px 0 0;
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* Brand placeholder footer — the platform binds/swaps this */
.footer-brand {
  margin: 40px 0 0;
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .85;
}
.footer-brand-name { color: var(--gold); }

/* ==========================================================================
   APP BAR — fixed header that gains a glass backdrop once the page scrolls,
   with a thin gold progress bar along its bottom edge
   ========================================================================== */
.app-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-t)) clamp(16px, 4vw, 28px) 12px;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.app-bar.is-scrolled {
  padding-top: calc(9px + var(--safe-t));
  padding-bottom: 9px;
  background: rgba(22, 36, 31, .84);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .65);
}

.app-bar__brand {
  margin: 0;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--card);
  opacity: .9;
}
.app-bar__brand em {
  font-style: normal;
  font-family: var(--script);
  font-size: 1.3rem;
  letter-spacing: .04em;
  color: var(--gold-soft);
  text-transform: none;
}

/* Scroll progress — a whisper-thin gold line filling as guests read */
.app-bar__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold-soft) 60%, var(--rose));
  opacity: .95;
  pointer-events: none;
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: rgba(22, 36, 31, .5);
  border: 1px solid rgba(253, 249, 238, .22);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  transition: border-color .25s var(--ease);
}
.menu-btn:hover { border-color: var(--gold); }
.menu-btn__bar {
  height: 2px;
  border-radius: 2px;
  background: var(--card);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   DOCK — floating glass pill with icon shortcuts; built by JS from the
   sections that exist, so deleted sections simply lose their entry.
   ========================================================================== */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: stretch;
  gap: 2px;
  max-width: calc(100vw - 24px);
  padding: 7px 9px;
  background: rgba(22, 36, 31, .78);
  border: 1px solid rgba(253, 249, 238, .16);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 26px 52px -22px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(253, 249, 238, .08);
}
.dock button {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 54px;
  height: 50px;
  padding: 6px 9px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(253, 249, 238, .62);
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.dock button svg { width: 20px; height: 20px; flex: none; }
.dock button:hover { color: var(--card); background: rgba(253, 249, 238, .09); }
.dock button:active { transform: scale(.95); }
.dock button.is-current {
  color: var(--gold-soft);
  background: rgba(211, 176, 113, .16);
}
.dock button.is-current::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.dock__label {
  font-family: var(--sans);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   POWERED BY — closes the invitation in normal flow
   ========================================================================== */
.powered-by {
  position: relative;
  width: 100%;
  padding: 22px 14px calc(26px + var(--safe-b));
  text-align: center;
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(253, 249, 238, .55);
  background: var(--bg-deep);
}
.powered-by .link-footer { color: var(--gold-soft); }

/* Panel menu overlay */
.panel-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}
.panel-menu[hidden] { display: none; }
.panel-menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 14, .55);
  backdrop-filter: blur(3px);
  animation: fade .3s var(--ease);
}
.panel-menu__sheet {
  position: relative;
  width: min(340px, 88vw);
  height: 100%;
  background: var(--card);
  color: var(--ink);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .4);
  padding: calc(20px + var(--safe-t)) 22px calc(24px + var(--safe-b));
  overflow-y: auto;
  animation: slide-in .38s var(--ease);
}
.panel-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-menu__head p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
}
.panel-menu__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.panel-menu__close:hover { border-color: var(--rose); color: var(--rose); }

.panel-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.panel-menu__list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  text-align: left;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.panel-menu__list button:hover { background: rgba(194, 112, 95, .08); border-color: var(--line-light); }
.panel-menu__list button.is-current { background: var(--rose); color: #fff; }
.panel-menu__list button .menu-num { font-size: .72rem; letter-spacing: .14em; opacity: .7; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes zoom-in { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   LIGHTBOX — full-screen photo viewer (story, venue, and gallery photos)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + var(--safe-t)) 20px calc(20px + var(--safe-b));
}
.lightbox[hidden] { display: none; }
body.lightbox-open { overflow: hidden; } /* lock page scroll while viewing */

.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 14, .86);
  backdrop-filter: blur(6px);
  animation: fade .25s var(--ease);
}
.lightbox__stage {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: zoom-in .3s var(--ease);
}
.lightbox__figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  border-radius: 14px;
  border: 1px solid rgba(253, 249, 238, .25);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .85);
  background: #000;
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: transform .2s var(--ease);
}
.lightbox__frame.is-zoomed .lightbox__img { cursor: grab; }
.lightbox__frame.is-zoomed .lightbox__img:active { cursor: grabbing; }
.lightbox__frame.is-panning .lightbox__img { transition: none; }
.lightbox__caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--card);
  text-align: center;
  overflow-wrap: anywhere;
}
.lightbox__counter {
  margin: 0;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .26em;
  color: rgba(253, 249, 238, .55);
}
.lightbox__close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(253, 249, 238, .35);
  background: rgba(22, 36, 31, .65);
  color: var(--card);
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(253, 249, 238, .3);
  background: rgba(22, 36, 31, .6);
  color: var(--card);
  font-size: 1.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox__nav--prev { left: 2px; }
.lightbox__nav--next { right: 2px; }
.lightbox__nav:hover { border-color: var(--gold); color: var(--gold); }

/* Embedded video (the optional film) */
.lightbox__video {
  width: min(880px, 92vw);
  aspect-ratio: 16 / 9;
  max-height: 78vh;
}
.lightbox__video iframe,
.lightbox__video video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .85);
}

/* Zoom tools (images) + "open original" link */
.lightbox__tools {
  position: absolute;
  left: calc(14px + var(--safe-l));
  bottom: calc(14px + var(--safe-b));
  z-index: 3;
  display: flex;
  gap: 8px;
}
.lightbox__tool {
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(253, 249, 238, .35);
  background: rgba(22, 36, 31, .6);
  color: var(--card);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.lightbox__tool:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__tool:disabled { opacity: .3; cursor: default; }
.lightbox__tool--readout {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.lightbox__original {
  position: absolute;
  right: calc(14px + var(--safe-r));
  bottom: calc(14px + var(--safe-b));
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(253, 249, 238, .35);
  background: rgba(22, 36, 31, .6);
  color: var(--card);
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.lightbox__original:hover { border-color: var(--gold); color: var(--gold); }

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

/* ==========================================================================
   REVEAL-ON-SCROLL
   ========================================================================== */
body.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
body.js .reveal.is-in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  body.js .reveal { opacity: 1; transform: none; }
  .seal:hover { transform: none; }
  .seal::before { animation: none; opacity: 0; }
  .cover__scrollcue span { animation: none; }
  .lightbox__stage { animation: none; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  body.js .app { background: var(--card); }
  .app-bar, .dock, .panel-menu, .powered-by, .skip-link { display: none !important; }
  .stage { min-height: 0; padding: 12px; display: block; }
  .page {
    max-width: 100%;
    min-height: 0;
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  .seal { -webkit-mask: none; mask: none; }
  .seal::before { display: none; }
  .lightbox { display: none !important; }
  body.js .reveal { opacity: 1; transform: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ==========================================================================
   RESPONSIVE NICETIES
   ========================================================================== */
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-group:first-child { margin-top: 14px; }
  .form-row .form-group + .form-group { margin-top: 14px; }
  .page { padding: 38px 24px; }
  .story-text, .letter { text-align: left; }
  .lightbox__nav { width: 38px; height: 38px; font-size: 1.3rem; }
  .lightbox__close { width: 38px; height: 38px; }
  .lightbox__tool { min-width: 38px; height: 38px; font-size: 1rem; }
  .lightbox__tool--readout { padding: 0 12px; font-size: .68rem; }
  .cover-photo__zoom { left: 12px; bottom: 12px; }
  .gallery-grid { gap: 10px; }
  .dock { bottom: calc(10px + var(--safe-b)); padding: 6px 7px; gap: 1px; }
  .dock button { min-width: 48px; height: 48px; padding: 6px 7px; border-radius: 12px; }
}

/* Without JS the dock and menu button would do nothing — hide them and
   let the invitation read as a plain (still beautiful) scrolling page. */
body.no-js .dock,
body.no-js .menu-btn,
body.no-js .app-bar__progress { display: none; }
