/* ============================================================
   Ann & Chris · We Eloped — design system
   Palette/type derived from the printed announcement suite.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper: #F4F1EA;
  --paper-warm: #EDE7DC;
  --card: #F8F6F1;
  --sand: #D8CFC0;
  --taupe: #A99F8F;
  --brown: #6B5D4D;
  --ink: #1C1B18;
  --emerald: #2F4A3C;
  --jade: #5F7A6A;
  --navy: #26324B;
  --gold: #B08D57;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --w-content: 1200px;
  --w-text: 40rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --sp-section: clamp(4.5rem, 11vw, 9rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Fonts (self-hosted, latin subsets, static weights) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-italic-400.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-italic-400.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Pinyon Script";
  src: url("../assets/fonts/pinyon-script-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Parisienne";
  src: url("../assets/fonts/parisienne-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--emerald); text-decoration-color: color-mix(in srgb, var(--emerald) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--jade); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--emerald) 18%, transparent); }

.container { max-width: var(--w-content); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--w-text); margin-inline: auto; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--card); color: var(--ink); padding: 0.75rem 1.25rem;
  font-family: var(--sans); font-size: 0.9rem; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Type ---------- */
.label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brown);
  text-indent: 0.34em; /* visually balance tracking */
}
.label--green { color: var(--emerald); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}
h2.display { font-size: clamp(1.9rem, 1.3rem + 3vw, 3.4rem); }

.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* Diamond ornament divider ─◈─ */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 0.9rem; margin-block: 1.6rem;
  color: var(--taupe);
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: min(72px, 18vw);
  background: linear-gradient(to var(--dir, right), transparent, var(--sand));
}
.ornament::before { --dir: right; }
.ornament::after { --dir: left; }
.ornament .diamond {
  width: 7px; height: 7px; background: var(--taupe);
  transform: rotate(45deg); flex: none;
}
.ornament--onphoto { color: rgba(255,255,255,0.85); }
.ornament--onphoto::before, .ornament--onphoto::after { background: linear-gradient(to var(--dir, right), transparent, rgba(255,255,255,0.6)); }
.ornament--onphoto .diamond { background: rgba(255,255,255,0.85); }

/* ---------- Reveal on scroll (hidden state only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.is-visible { opacity: 1 !important; transform: none !important; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.no-observer .reveal { opacity: 1; transform: none; } /* old browsers: no IO support */

/* No JS at all: scenes collapse to a single static frame */
html:not(.js) .scene, html:not(.js) .scene--capitol { height: auto; }
html:not(.js) .scene__sticky { position: relative; height: 92vh; height: 92svh; }
html:not(.js) .scene__frame { display: none; }
html:not(.js) .scene__frame--first { display: block; opacity: 1; }

/* ---------- Hero scene (scroll-scrubbed sequence) ---------- */
.scene {
  position: relative;
  height: 340vh;
}
.scene--capitol { height: 240vh; }
/* Shorter scroll distance on phones so the intro doesn't drag on */
@media (max-width: 640px) {
  .scene { height: 200vh; }
  .scene--capitol { height: 170vh; }
}
.scene__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.scene__frame {
  position: absolute; inset: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.scene__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Street-crossing frame: the couple walks in the left third — center them. */
.scene--hero .scene__frame:nth-of-type(1) img { object-position: 34% center; }
/* Film gallery-wall frame: the couple stands to the right — center them
   in view when portrait viewports crop the landscape scan. */
.scene--hero .scene__frame:nth-of-type(3) img { object-position: 71% center; }
/* Vow-silhouette frame: subjects sit low in a tall portrait — drop the crop
   so they land in the center instead of showing empty marble up top. */
.scene--hero .scene__frame:nth-of-type(4) img { object-position: center 64%; }
.scene__frame--first { opacity: 1; }
.scene__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28,27,24,0.30), rgba(28,27,24,0.12) 40%, rgba(28,27,24,0.42));
  pointer-events: none;
}
.scene__grain {
  position: absolute; inset: 0;
  background: url("../assets/img/grain.png") repeat;
  background-size: 160px;
  opacity: 0.5;
  pointer-events: none;
}

.hero__overlay {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  text-align: center;
  color: #fff;
  padding: var(--gutter);
  will-change: transform, opacity;
}
.hero__eyebrow { color: rgba(255,255,255,0.92); }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.1rem + 7.4vw, 8.2rem);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-indent: 0.14em;
  margin: 1.4rem 0 0.6rem;
  text-shadow: 0 2px 24px rgba(28,27,24,0.35);
}
.hero__names {
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.6rem);
  color: rgba(255,255,255,0.96);
  text-shadow: 0 2px 18px rgba(28,27,24,0.4);
  margin: 0;
}
.hero__meta { margin-top: 1.8rem; }
.hero__scrollcue {
  position: absolute; left: 50%; bottom: max(1.6rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: rgba(255,255,255,0.85);
}
.hero__scrollcue .line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.85), transparent);
  animation: cue 2.4s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* Pull-quote overlay for the capitol scene */
.scene__quote {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  text-align: center; color: #fff;
  padding: var(--gutter);
  will-change: transform, opacity;
}
.scene__quote .quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 1rem + 2.8vw, 2.9rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  max-width: 22ch;
  margin: 1.2rem auto 0;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(28,27,24,0.45);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--sp-section); }
.section--warm { background: var(--paper-warm); }
.section__head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__head .label { display: block; margin-bottom: 1.1rem; }

/* ---------- Announcement: full-bleed photo + single line ---------- */
.announce-section {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
}
.announce-bg { position: absolute; inset: 0; }
.announce-bg picture { display: block; width: 100%; height: 100%; }
.announce-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.announce-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    url("../assets/img/grain.png") repeat,
    linear-gradient(to bottom, rgba(28,27,24,0.34), rgba(28,27,24,0.16) 42%, rgba(28,27,24,0.40));
  background-size: 160px, 100% 100%;
}
.announce-quote {
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(0.82rem, 0.72rem + 0.85vw, 1.3rem);
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
  max-width: min(64ch, 94vw);
  margin: 0;
  padding: clamp(1.6rem, 5vw, 3.5rem);
  text-wrap: normal;
  text-shadow: 0 2px 26px rgba(28,27,24,0.55), 0 1px 3px rgba(28,27,24,0.4);
  background: radial-gradient(ellipse 100% 100% at center, rgba(28,27,24,0.32), transparent 72%);
}
.announce-quote p { margin: 0; }
.announce-quote p + p { margin-top: 1.5em; }
/* Phones: show the whole reaching photo (both faces) with the vow text laid
   over it. A portrait cover-crop would cut the faces on the sides. */
@media (max-width: 640px) {
  .announce-section { min-height: auto; display: block; position: relative; overflow: hidden; padding: 0; }
  .announce-bg { position: relative; }
  .announce-bg picture { height: auto; }
  .announce-bg img { height: auto; transform: none !important; }
  .announce-quote {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    max-width: none;
  }
}

/* Emblem (photographed embossed print blends onto paper) */
.emblem {
  mix-blend-mode: multiply;
  filter: contrast(1.05) brightness(1.14);
  width: min(300px, 62vw);
  -webkit-mask-image: radial-gradient(130% 130% at 50% 46%, #000 58%, transparent 92%);
  mask-image: radial-gradient(130% 130% at 50% 46%, #000 58%, transparent 92%);
}
.emblem--lg { width: min(420px, 78vw); }

/* ---------- Capitol: full-bleed staircase collage with header on top ---------- */
.capitol-place { padding: 0; text-align: center; }
.place-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.place-head .label { display: block; margin-bottom: 0.9rem; }
/* Header floated over the collage */
.place-head--onphoto {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0; padding: var(--gutter);
  color: #fff; pointer-events: none;
  text-shadow: 0 2px 24px rgba(20,18,15,0.62), 0 1px 4px rgba(20,18,15,0.5);
}
.place-head--onphoto .label { color: rgba(255,255,255,0.85); }
.place-head--onphoto .place-lead { color: #fff; max-width: 26ch; }
.place-lead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
  max-width: 44ch;
  margin: 0 auto;
  text-wrap: balance;
}
/* Two photos edge to edge, filling the screen — no gap */
.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
/* Scrim so the overlaid header stays legible */
.collage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 74% 58% at center, rgba(20,18,15,0.52), rgba(20,18,15,0.18) 68%, transparent);
}
.collage figure { margin: 0; }
.collage picture { display: block; height: 100%; }
.collage figure { overflow: hidden; }
.collage img {
  width: 100%;
  height: 100svh;
  object-fit: cover;
  display: block;
  background: var(--paper-warm);
  will-change: transform;
}

/* Capitol feature photo (the gold dome) — embedded 3D window w/ parallax + tilt */
.capitol-photo {
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  max-width: min(1000px, 100%);
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  perspective: 1100px;
  box-shadow: 0 18px 46px rgba(107, 93, 77, 0.24);
}
/* Inner layer carries the 3D tilt */
.capitol-photo__tilt {
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.capitol-photo picture { display: block; }
.capitol-photo img {
  display: block; width: 100%;
  transform: scale(1.05);
}

/* ---------- Ceremony triptych (uniform, three-up) ---------- */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.6vw, 1.3rem);
  margin-block: clamp(2rem, 5vw, 4rem);
}
.triptych figure { margin: 0; }
.triptych img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
  cursor: zoom-in;
  box-shadow: 0 10px 34px rgba(107, 93, 77, 0.18);
  background: var(--paper-warm);
}
@media (max-width: 700px) {
  .triptych { gap: clamp(0.4rem, 2vw, 1.4rem); }
}

/* ---------- Editorial spreads ---------- */
.spread {
  display: grid;
  gap: var(--gutter);
  align-items: center;
  margin-block: clamp(3rem, 8vw, 6rem);
}
.spread figcaption, .wall figcaption { display: none; } /* alt text carries description */
.spread__text { max-width: 34rem; }
.spread__text .label { display: block; margin-bottom: 1rem; }
.spread__text h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  line-height: 1.2; letter-spacing: 0.04em;
  margin: 0 0 1rem;
}
.spread__text p { color: var(--brown); margin: 0; }
.spread img { border-radius: 3px; box-shadow: 0 10px 34px rgba(107,93,77,0.18); }

@media (min-width: 800px) {
  .spread--3 { grid-template-columns: 1.1fr 0.9fr 1fr; }
  .spread--3 > *:nth-child(2) { margin-top: 14%; }
  .spread--3 > *:nth-child(3) { margin-top: -8%; }
  .spread--text-right { grid-template-columns: 1.05fr 0.8fr; }
  .spread--text-left { grid-template-columns: 0.8fr 1.05fr; }
}

/* ---------- Masonry walls ---------- */
/* Uniform grid: every cell the same size, portrait or landscape alike. */
.wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 1.4vw, 1.2rem);
}
.wall > figure {
  margin: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}
.wall img {
  border-radius: 3px;
  box-shadow: 0 6px 22px rgba(107,93,77,0.14);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--paper-warm);
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.4s ease;
}
@media (hover: hover) {
  .wall img:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(107,93,77,0.24); }
}
.spread img { background: var(--paper-warm); }

/* Lead row (the reach trio) sits flush above the auto grid */
.reach-lead { margin-bottom: clamp(0.6rem, 1.6vw, 1.2rem); }

/* Paw-print polaroids: scattered white-framed prints, straighten on hover */
.paws-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(0.9rem, 2.4vw, 2rem);
}
.paws-grid > figure {
  flex: 0 1 clamp(150px, 30%, 260px);
  margin: 0; background: #fff;
  padding: 11px 11px 32px; border-radius: 2px;
  box-shadow: 0 10px 28px rgba(107,93,77,0.22);
  content-visibility: auto; contain-intrinsic-size: auto 300px;
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.4s ease;
}
.paws-grid > figure:nth-child(4n+1) { transform: rotate(-1.6deg); }
.paws-grid > figure:nth-child(4n+2) { transform: rotate(0.9deg); }
.paws-grid > figure:nth-child(4n+3) { transform: rotate(-0.5deg); }
.paws-grid > figure:nth-child(4n+4) { transform: rotate(1.4deg); }
.paws-grid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: 1px; box-shadow: none; background: var(--paper-warm);
  cursor: zoom-in;
}
@media (hover: hover) {
  .paws-grid > figure:hover {
    transform: rotate(0deg) translateY(-5px) scale(1.03);
    box-shadow: 0 18px 44px rgba(107,93,77,0.32);
    position: relative; z-index: 3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .paws-grid > figure { transition: none; }
}

/* Home grid: the driveway shots kept together, three to a row */
.homegrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.8vw, 1.3rem);
}
.homegrid > figure {
  margin: 0;
  background: #fff; padding: 9px 9px 26px; border-radius: 2px;
  box-shadow: 0 8px 24px rgba(107,93,77,0.2);
}
.homegrid img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  border-radius: 1px; background: var(--paper-warm); cursor: zoom-in;
}

/* Wall header */
.wall-head { text-align: center; margin: 0 0 clamp(1.8rem, 4vw, 3rem); }
.wall-head h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.2; letter-spacing: 0.03em; margin: 0;
  text-wrap: balance;
}
.wall-head__cue {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  color: var(--brown); margin: 0.7rem 0 0; letter-spacing: 0.02em;
}

/* Film wall: uniform polaroid grid (inherits .wall grid — no ragged gaps) */
.wall--film > figure {
  margin: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
  background: #fff;
  padding: 10px 10px 26px;
  border-radius: 2px;
  box-shadow: 0 8px 26px rgba(107,93,77,0.20);
}
.wall--film img { border-radius: 1px; box-shadow: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28, 24, 20, 0.92);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  box-sizing: border-box;
}
.lightbox__img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: var(--paper-warm);
  opacity: 0; transform: scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lightbox.is-open .lightbox__img { opacity: 1; transform: scale(1); }
.lightbox__caption {
  position: absolute; left: 0; right: 0; bottom: clamp(0.6rem, 2vw, 1.4rem);
  text-align: center; color: rgba(255,255,255,0.82);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(0.85rem, 0.8rem + 0.4vw, 1.05rem);
  padding: 0 1.5rem; margin: 0; pointer-events: none;
}
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: clamp(44px, 7vw, 60px); height: clamp(44px, 7vw, 60px);
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff;
  font-size: 1.6rem; line-height: 1;
  transition: background 0.2s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,0.24); }
.lightbox__btn--prev { left: clamp(0.5rem, 2vw, 2rem); }
.lightbox__btn--next { right: clamp(0.5rem, 2vw, 2rem); }
.lightbox__close {
  position: absolute; top: clamp(0.6rem, 2vw, 1.5rem); right: clamp(0.6rem, 2vw, 1.5rem);
  width: 46px; height: 46px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1.5rem; line-height: 1;
  transition: background 0.2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.24); }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__img { transition: none; }
}

/* ---------- Note / closing ---------- */
.note { text-align: center; }
.note .script-sig {
  font-size: clamp(2.6rem, 2rem + 3vw, 4rem);
  color: var(--emerald);
  margin: 1.6rem 0 0;
}
.note .heart { width: 16px; height: 16px; margin: 1.4rem auto 0; color: var(--taupe); }

/* Note over a full-bleed photo */
.note--photo {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  color: #fff;
}
.note-bg { position: absolute; inset: 0; }
.note-bg picture { display: block; width: 100%; height: 100%; }
.note-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.note-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    url("../assets/img/grain.png") repeat,
    linear-gradient(to bottom, rgba(24,22,19,0.62), rgba(24,22,19,0.48) 45%, rgba(24,22,19,0.68));
  background-size: 160px, 100% 100%;
}
.note--photo .container { position: relative; }
.note--photo .label { color: rgba(255,255,255,0.82); }
.note--photo h2,
.note--photo p { color: #fff; }
.note--photo p:not(.script-sig):not(.cabrera-sig) { color: rgba(255,255,255,0.92); }
.note--photo .script-sig { color: #fff; }
.note--photo .ornament .diamond { background: rgba(255,255,255,0.75); }
.note--photo .heart { color: rgba(255,255,255,0.85); }
.cabrera-sig {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  letter-spacing: 0.06em; margin: 0.4rem 0 0;
}

/* ---------- Film-camera flash effect ---------- */
.camera-fx {
  position: fixed; inset: 0; z-index: 95;
  pointer-events: none; visibility: hidden;
}
.camera-fx.is-firing { visibility: visible; }
.camera-fx__flash {
  position: fixed; inset: 0; background: #fff; opacity: 0;
}
.camera-fx__cam {
  position: fixed; left: 50%; bottom: 14vh;
  width: min(300px, 62vw);
  transform: translate(-50%, 140%);
  opacity: 0;
  filter: drop-shadow(0 24px 40px rgba(20,18,15,0.45));
}
.camera-fx__cam svg { width: 100%; height: auto; display: block; }
.camera-fx__bulb { opacity: 0; }

.camera-fx.is-firing .camera-fx__cam {
  animation:
    cam-in 0.55s cubic-bezier(0.2,0.85,0.25,1) both,
    cam-out 0.6s ease-in 1.55s both;
}
.camera-fx.is-firing .camera-fx__flash { animation: cam-flash 0.75s ease-out 0.9s both; }
.camera-fx.is-firing .camera-fx__bulb  { animation: cam-glow 0.75s ease-out 0.9s both; }

@keyframes cam-in {
  from { transform: translate(-50%, 140%) scale(0.85) rotate(-3deg); opacity: 0; }
  to   { transform: translate(-50%, 0) scale(1) rotate(0); opacity: 1; }
}
@keyframes cam-out {
  from { transform: translate(-50%, 0) scale(1); opacity: 1; }
  to   { transform: translate(-50%, 140%) scale(0.9); opacity: 0; }
}
@keyframes cam-flash {
  0%   { opacity: 0; }
  12%  { opacity: 0.96; }
  100% { opacity: 0; }
}
@keyframes cam-glow {
  0%, 100% { opacity: 0; }
  12% { opacity: 1; }
  55% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .camera-fx { display: none; }
}

/* ---------- Photobooth marquee (two rows, opposite directions) ---------- */
.photobooth {
  padding: 0;
  background: var(--paper-warm);
  overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee + .marquee { margin-top: 0; }
.marquee img { vertical-align: top; }
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee--left .marquee__track { animation: marquee-left 70s linear infinite; }
.marquee--right .marquee__track { animation: marquee-right 70s linear infinite; }
@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
.marquee figure {
  margin: 0;
  flex: none;
}
.marquee img {
  height: clamp(150px, 24vw, 260px);
  width: auto; display: block;
  background: #fff;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--paper-warm);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) max(2.2rem, env(safe-area-inset-bottom));
  text-align: center;
}
.footer .emblem { width: min(190px, 44vw); margin-inline: auto; margin-bottom: 1.6rem; }
.footer p { color: var(--brown); font-size: 0.9rem; margin: 1.6rem 0 0; }

/* Handwritten vows in the footer */
.vows { max-width: 40rem; margin: 0 auto; display: grid; gap: clamp(0.8rem, 2.5vw, 1.4rem); }
.vows .vow {
  font-family: "Parisienne", cursive;
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(1.25rem, 0.95rem + 1.5vw, 2rem);
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}
.vow__by {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--brown);
  margin-top: 0.9rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene, .scene--capitol { height: auto; }
  .scene__sticky { position: relative; height: 92vh; height: 92svh; }
  .scene__frame { display: none; }
  .scene__frame--first { display: block; opacity: 1; }
  .hero__scrollcue .line { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .is-visible { transition: none; }
}
