/* ==========================================================================
   Story page
   ========================================================================== */

section { position: relative; }
.on-light { color: var(--ink-dark); }
.wrap--narrow { max-width: 820px; }
.btn-row--center { justify-content: center; }

/* Section backgrounds (made transparent when JS tweens the body colour) */
.hero, .closing, .timing { background: var(--emerald-900); color: var(--ink-light); }
.first { background: var(--emerald-700); color: var(--ink-light); }
.began, .love, .covenant, .gallery { background: var(--champagne-100); }
.proposal, .celebrate { background: var(--wine-700); color: var(--ink-light); }

/* ---------- Golden thread ---------- */
.thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--champagne-500); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0.85; }

/* ---------- 00 · Intro ---------- */
.intro { display: none; }
html.show-intro { overflow: hidden; }
html.show-intro .intro {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem;
  position: fixed; inset: 0; z-index: 200; padding: var(--gutter); text-align: center;
  background: var(--emerald-900); color: var(--ink-light);
  transition: transform 0.9s var(--ease-out);
}
html.show-intro .intro.is-leaving { transform: translateY(-100%); }
.intro__names { font-family: var(--sans); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--champagne-300); margin: 0; }
.intro__enter { margin-top: 0.75rem; }
.intro__hint { font-size: 0.8rem; color: var(--ink-light-muted); margin: 0; }
.intro__names, .intro__enter, .intro__hint { opacity: 0; animation: fade-up 0.8s var(--ease-out) forwards; }
.intro__names { animation-delay: 1.1s; }
.intro__enter { animation-delay: 1.4s; }
.intro__hint { animation-delay: 1.6s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.intro__mono { width: min(70vw, 420px); }
.intro__mono text, .signoff__mono text {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 112px;
  fill: transparent; stroke: var(--champagne-500); stroke-width: 1.2;
  stroke-dasharray: 900; stroke-dashoffset: 900;
}
.intro__mono text { animation: draw 1.4s ease-in-out forwards, fill-gold 0.5s ease 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-gold { to { fill: var(--champagne-500); } }
@media (prefers-reduced-motion: reduce) {
  .intro__mono text { fill: var(--champagne-500); stroke-dashoffset: 0; }
  .intro__names, .intro__enter, .intro__hint { opacity: 1; }
}

/* ---------- 01 · Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 45fr 55fr; align-items: center;
  overflow: hidden;
}
.hero__text { grid-column: 1; grid-row: 1; padding: calc(var(--nav-h) + var(--space-block)) var(--gutter) var(--space-section) var(--edge); position: relative; z-index: 2; }
.hero__media { grid-column: 2; grid-row: 1; align-self: stretch; padding: var(--nav-h) var(--edge) var(--space-block) 0; }
.hero__frame {
  height: 100%; position: relative; overflow: hidden;
  border-radius: 999px 999px 0 0; outline: 1px solid rgba(201, 168, 106, 0.55); outline-offset: 12px;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; background: var(--emerald-700); }
.hero__title { font-size: var(--fs-hero); font-weight: 500; margin-bottom: 1.5rem; }
@media (min-width: 900px) { .hero__title { font-size: clamp(4rem, 7.2vw, 8rem); } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .word { display: inline-block; }
.hero__title .amp { font-style: italic; color: var(--champagne-500); }
.hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.35; max-width: 30ch; color: var(--ink-light); }
.hero__date { margin: 1.75rem 0 1.5rem; font-size: 0.85rem; }
.hero__count { margin: 1.75rem 0 0; color: var(--ink-light-muted); }
.hero__cue {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 2;
  margin: 0; text-decoration: none; color: var(--ink-light-muted); animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; align-items: end; }
  .hero__media { grid-column: 1; position: absolute; inset: 0; padding: 0; }
  .hero__frame { border-radius: 0; outline: 0; }
  .hero__video { object-position: 50% 30%; }
  .hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11, 46, 35, 0.96) 0%, rgba(11, 46, 35, 0.75) 38%, rgba(11, 46, 35, 0.1) 70%, rgba(11, 46, 35, 0.35) 100%);
  }
  .hero__text { grid-column: 1; padding: 50svh var(--gutter) var(--space-block); }
  .hero__cue { display: none; }
}

/* ---------- 02 · Where it began ---------- */
.began { padding: var(--space-section) 0; overflow: hidden; }
.prologue { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.35; color: var(--ink-dark); }
.prologue .word { transition: none; }
.began__ours { font-size: var(--fs-h2); color: var(--wine-700); margin: var(--space-block) 0 0; }
.chapter { margin-top: var(--space-section); }
.chapter__title { font-size: var(--fs-h2); margin-bottom: 2rem; color: var(--emerald-700); }
/* 2021 photo: a tilted print under the chapter copy */
.chapter__photo {
  margin: var(--space-block) auto 0; width: min(100%, 340px);
  background: var(--surface); padding: 12px 12px 46px; border-radius: 4px; position: relative;
  box-shadow: 0 20px 44px rgba(28, 26, 23, 0.16); transform: rotate(-2deg);
}
.chapter__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: 2px; }
.chapter__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-dark-muted);
}
.chapter__title em { color: var(--wine-700); }
.first .chapter__title, .first .chapter__title em { color: var(--ink-light); }
.first .chapter__title em { color: var(--champagne-500); }
.thread--twin { left: var(--gutter); right: var(--gutter); width: auto; }
@media (max-width: 640px) { .thread--twin, .thread--band { display: none; } }

/* ---------- 03 · First conversation ---------- */
.first { overflow: hidden; }
.first__stage { min-height: 100svh; display: flex; align-items: center; padding: var(--space-section) 0; position: relative; }
/* Pinned on desktop: the whole scene fits one screen, even on 720px-tall laptops */
@media (min-width: 900px) {
  .first__stage { height: 100vh; min-height: 0; padding: calc(var(--nav-h) + 0.5rem) 0 var(--gutter); }
  .first__year { font-size: min(clamp(5rem, 16vw, 13rem), 17vh); }
  .first__beats { font-size: min(clamp(1.4rem, 2.6vw, 2rem), 4vh); margin-bottom: min(2rem, 3vh); }
}
/* Short laptop screens: drop the decorative outlined year so the scene still fits */
@media (min-width: 900px) and (max-height: 820px) { .first__year { display: none; } }
.first__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; position: relative; z-index: 1; }
.first__year {
  font-family: var(--serif); font-size: clamp(5rem, 16vw, 13rem); line-height: 0.8; margin: 0 0 0.35em; /* room for the 3's descender */
  color: transparent; -webkit-text-stroke: 1px var(--champagne-500);
}
.first__beats { list-style: none; padding: 0; margin: 0 0 2rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; }
.first__beats em { color: var(--champagne-500); }
.first__copy { color: var(--ink-light-muted); max-width: 52ch; }
.first__end { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--ink-light); }
/* Four polaroids in a tidy 2×2 grid: slight tilts, no overlap */
.first__photos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.75rem);
  width: min(100%, 54vh); margin-left: auto;
}
.polaroid {
  position: relative; margin: 0; background: var(--champagne-100); padding: 10px 10px 40px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); border-radius: 4px;
}
.polaroid:nth-child(1) { transform: rotate(-2.5deg); }
.polaroid:nth-child(2) { transform: rotate(2deg) translateY(10px); }
.polaroid:nth-child(3) { transform: rotate(1.5deg); }
.polaroid:nth-child(4) { transform: rotate(-2deg) translateY(10px); }
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 9px; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-dark-muted);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
/* The two threads run down the outer margins and meet below the content, never through the text */
.thread--meet path { opacity: 0.6; }
@media (max-width: 640px) { .thread--meet { display: none; } }
@media (max-width: 899px) {
  .first__grid { grid-template-columns: 1fr; }
  .first__photos { width: min(100%, 460px); margin: 0 auto; padding-bottom: 1rem; }
}

/* ---------- 04 · Love / Queen ---------- */
.love { padding: var(--space-section) 0; overflow: hidden; }
.values { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.values__intro { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; color: var(--ink-dark-muted); }
.values__list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.values__list li {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.15; color: var(--emerald-700);
  padding: 0.35rem 0; border-bottom: 1px solid rgba(201, 168, 106, 0.55);
}
.values__list li:nth-child(even) { font-style: italic; color: var(--wine-700); }
.values__end { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; color: var(--wine-700); }
.values__photo { margin: 0; }
.values__photo img { border-radius: var(--radius-media); transform: rotate(2deg); box-shadow: 0 18px 40px rgba(28, 26, 23, 0.18); }

.queen { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-top: var(--space-section); }
.queen__photo { margin: 0; position: relative; }
.queen__photo img { border-radius: 999px 999px 24px 24px; width: 100%; }
.queen__photo::after { content: ""; position: absolute; inset: -12px; border: 1px solid rgba(201, 168, 106, 0.7); border-radius: 999px 999px 32px 32px; pointer-events: none; }
.queen__combo { font-size: clamp(2rem, 4.6vw, 3.5rem); color: var(--emerald-700); margin: 2rem 0; }
.rotator { display: inline-grid; vertical-align: bottom; color: var(--wine-700); font-style: italic; }
.rotator__word { grid-area: 1 / 1; opacity: 0; transform: translateY(0.3em); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.rotator__word.is-on { opacity: 1; transform: none; }
.queen__quote {
  margin: 0; padding-left: 1.25rem; border-left: 2px solid var(--champagne-500);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.3; color: var(--wine-700);
}
@media (max-width: 899px) {
  .values, .queen { grid-template-columns: 1fr; }
  .values__photo { max-width: 320px; }
  .queen__photo { max-width: 420px; margin: 0 auto; width: 88%; }
}

/* ---------- 05 · Proposal ---------- */
.proposal { overflow: hidden; }
.proposal__stage { min-height: 100svh; display: flex; align-items: center; justify-content: center; position: relative; padding: var(--space-section) 0; }
.proposal__inner { text-align: center; max-width: 900px; position: relative; z-index: 2; }
.proposal__lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; }
.proposal__ask, .proposal__answer { color: var(--ink-light-muted); max-width: 46ch; margin-left: auto; margin-right: auto; }
.proposal__question {
  font-size: clamp(2.8rem, 7vw, 5.75rem); font-style: italic; font-weight: 500; line-height: 1.05;
  color: var(--champagne-100); margin: 0.25rem 0 0; min-height: 1.05em;
}
.proposal__q { color: var(--champagne-500); }
.proposal__rule { display: block; width: 56px; height: 1px; margin: 2rem auto; background: var(--champagne-500); transform-origin: center; }

/* The "YES!" moment: the word set inside an engagement-ring outline */
.proposal__yes-wrap {
  position: relative; display: grid; place-items: center; margin: 0 auto;
  width: min(34rem, 82vw, 60vh); aspect-ratio: 200 / 208; container-type: inline-size;
}
.proposal__yes-wrap::before {
  content: ""; position: absolute; inset: 14% 10% 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.2), rgba(201, 168, 106, 0) 68%);
}
.proposal__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.proposal__band { fill: none; stroke: var(--champagne-500); vector-effect: non-scaling-stroke; }
.proposal__band--outer { stroke-width: 1.5; }
.proposal__band--inner { stroke-width: 1; opacity: 0.55; }
.proposal__gem { fill: var(--champagne-300); stroke: var(--champagne-500); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.proposal__yes {
  position: relative; margin: 8% 0 0; /* optical centre inside the ring */
  font-family: var(--serif); font-weight: 600; font-size: 27cqw; line-height: 1; letter-spacing: 0.01em;
  color: var(--champagne-500);
  background: linear-gradient(180deg, #F6E7C6 0%, #D8B97B 45%, #C9A86A 60%, #A8843F 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 18px rgba(61, 15, 28, 0.45));
}
.proposal__caption { margin: 1.75rem 0 0; color: var(--champagne-300); }
.proposal__photo { margin: 2.5rem auto 0; max-width: 900px; padding: 0 var(--gutter); }
.proposal__photo img { border-radius: var(--radius-card); border: 1px solid rgba(201, 168, 106, 0.5); }
.proposal__stage { flex-direction: column; }
/* Pinned layout (set by JS): text groups share one cell, photo covers the stage */
.proposal.is-pinned .proposal__stage { height: 100vh; min-height: 0; padding: var(--nav-h) 0 var(--gutter); }
.proposal.is-pinned .proposal__inner { display: grid; align-items: center; }
.proposal.is-pinned .pgroup { grid-area: 1 / 1; }
.proposal.is-pinned .proposal__photo {
  position: absolute; inset: 0; margin: 0; max-width: none; padding: 0; z-index: 3;
}
.proposal.is-pinned .proposal__photo picture { height: 100%; }
.proposal.is-pinned .proposal__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; border-radius: 0; border: 0; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.confetti i { position: absolute; left: 50%; top: 50%; width: 8px; height: 12px; border-radius: 2px; background: var(--champagne-500); }

.proposal__after { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-top: var(--space-section); padding-bottom: var(--space-section); }
.proposal__media { position: relative; }
.proposal__friends { margin: 0; }
.proposal__friends img { border-radius: var(--radius-card); }
.proposal__copy h3 { font-size: var(--fs-h3); color: var(--champagne-500); margin: 0.5rem 0 1.5rem; }
.proposal__copy p { color: var(--ink-light-muted); }
.ring-detail {
  display: block; width: clamp(120px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--champagne-500); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: absolute; right: -1.5rem; bottom: -2.5rem; margin: 0;
}
.ring-detail img { width: 100%; height: 100%; object-fit: cover; }

.watch { text-align: center; padding-bottom: var(--space-section); }
.watch__title { font-size: var(--fs-h2); margin-bottom: 2.5rem; }
.watch__title em { color: var(--champagne-500); }
.video-card {
  position: relative; display: block; margin: 0 auto; padding: 0;
  width: min(100%, 380px, calc(75svh * 9 / 16)); /* portrait, like the video */
  aspect-ratio: 9 / 16; border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid rgba(201, 168, 106, 0.6); background: var(--wine-900);
}
.video-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(61, 15, 28, 0.55), rgba(61, 15, 28, 0.05)); transition: opacity 0.4s;
}
.video-card.is-playing::after { opacity: 0; }
.video-card__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: clamp(72px, 10vw, 104px); aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--champagne-500);
  box-shadow: 0 0 0 0 rgba(201, 168, 106, 0.6); animation: pulse 2.4s infinite;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.video-card__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-card.is-playing .video-card__play { opacity: 0; pointer-events: none; }
.video-card__play::before {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--wine-900);
}
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(201, 168, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 168, 106, 0); } }
@media (max-width: 899px) {
  .proposal__after { grid-template-columns: 1fr; }
  .ring-detail { right: 0.75rem; bottom: -2rem; }
}


/* ---------- 06 · Covenant ---------- */
.covenant { padding: var(--space-section) 0; overflow: hidden; }
.covenant__grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; position: relative; z-index: 1; }
.covenant__text > p, .covenant__text > div p { color: var(--ink-dark-muted); }
.covenant .label { margin-top: var(--space-block); }
.became { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.became__row { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.25; padding: 1.25rem 0; border-top: 1px solid rgba(201, 168, 106, 0.55); }
.became__from { color: var(--ink-dark); }
.became__to { display: block; font-style: italic; color: var(--emerald-700); font-weight: 600; }
.covenant__photo { margin: 0; position: relative; }
/* Introduction + registry films, side by side */
.films { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.75rem, 2vw, 1.5rem); align-self: center; }
.film { margin: 0; }
.film figcaption { text-align: center; margin-top: 0.9rem; }
.film .label { margin: 0; color: var(--wine-700); }
.video-card--film { width: 100%; }
.video-card--film .video-card__play { width: clamp(52px, 7vw, 72px); }
.video-card--film .video-card__play::before { border-width: 10px 0 10px 16px; }
.covenant__photo > picture img { border-radius: var(--radius-card); border: 1px solid var(--champagne-500); width: 100%; }
.ring-detail--overlap { left: -2rem; right: auto; bottom: -2rem; }
.thread--band { left: var(--gutter); width: auto; right: auto; }
@media (max-width: 899px) {
  .covenant__grid { grid-template-columns: 1fr; }
  .covenant__photo { max-width: 460px; margin: 1rem auto 0; }
  .ring-detail--overlap { left: -0.5rem; }
}

/* ---------- 07 · Timing ---------- */
.timing { padding: var(--space-section) 0; overflow: hidden; }
.timing__pin { display: flex; flex-direction: column; justify-content: center; gap: clamp(2rem, 5vw, 3.5rem); }
.timing__intro { color: var(--ink-light-muted); max-width: 60ch; }
.timing__title { font-size: var(--fs-h2); max-width: 18ch; }
.timing__title em { color: var(--champagne-500); }
.timing__viewport { position: relative; }
.timing__track {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; max-width: var(--max-w);
}
.tcard { background: var(--champagne-100); color: var(--ink-dark); border-radius: 24px; padding: 0.75rem 0.75rem 1.4rem; }
.tcard__visual { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; margin-bottom: 1.1rem; background: var(--wine-700); display: grid; place-items: center; }
/* photo always fills the whole frame */
.tcard__visual picture { position: absolute; inset: 0; }
.tcard__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tcard__visual span { font-family: var(--serif); font-size: clamp(3.5rem, 6vw, 5rem); color: var(--champagne-500); }
.tcard__mono { font-style: italic; }
.tcard .label, .tcard h3, .tcard p { padding: 0 0.6rem; }
.tcard .label { color: var(--wine-700); margin-bottom: 0.5rem; }
.tcard h3 { font-size: 1.7rem; margin-bottom: 0.4rem; color: var(--emerald-700); }
.tcard p { margin: 0; font-size: 0.95rem; color: var(--ink-dark-muted); }
.tcard--final { background: var(--wine-700); color: var(--ink-light); outline: 1px solid var(--champagne-500); outline-offset: -1px; }
.tcard--final .tcard__visual { background: var(--wine-900); }
.tcard--final h3 { color: var(--champagne-500); }
.tcard--final .label { color: var(--champagne-300); }
.tcard--final p { color: var(--ink-light-muted); }
.tcard__link { background: none; border: 0; padding: 0; color: var(--wine-700); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.tcard--final .tcard__link { color: var(--champagne-300); }
/* Horizontal mode (desktop + motion, set by JS).
   The pinned screen is exactly one viewport tall: heading on top, cards take
   whatever height is left (photo shrinks first), so nothing spills into the
   next section. */
.timing.is-horizontal { padding: 0; }
.timing.is-horizontal .timing__pin {
  height: 100vh; justify-content: flex-start; gap: clamp(1.25rem, 3.5vh, 2.5rem);
  padding: var(--space-section) 0 var(--space-block);
}
.timing.is-horizontal .timing__title { font-size: min(var(--fs-h2), 7.5vh); }
.timing.is-horizontal .timing__viewport { flex: 1; min-height: 0; }
.timing.is-horizontal .timing__track {
  display: flex; align-items: stretch; height: 100%; width: max-content; max-width: none; gap: 1.5rem;
  padding: 0 var(--edge);
}
.timing.is-horizontal .tcard { display: flex; flex-direction: column; flex: none; height: 100%; width: clamp(240px, 21vw, 310px); }
.timing.is-horizontal .tcard__visual { aspect-ratio: auto; flex: 1; min-height: 120px; }

/* ---------- Films feed (full screen, swipe between films) ---------- */
html.feed-open, html.feed-open body { overflow: hidden; }
.feed {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #0d0407; color: var(--ink-light); overflow: hidden;
}
.feed::backdrop { background: #0d0407; }
.feed[open] { display: block; animation: feed-in 0.3s var(--ease-out); }
@keyframes feed-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.feed__track {
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scrollbar-width: none;
}
.feed__track::-webkit-scrollbar { display: none; }
.feed__slide {
  position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding: 3.5rem 0.75rem;
}
/* The film's own shape and size: shrinks to fit the screen, never crops or stretches */
.feed__frame { position: relative; line-height: 0; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
.feed__poster, .feed__video { display: block; width: auto; height: auto; max-width: calc(100vw - 1.5rem); max-height: calc(100dvh - 7rem); }
.feed__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; background: #000; opacity: 0; transition: opacity 0.35s; }
.feed__video.is-ready { opacity: 1; }
.feed__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; line-height: 1.4; pointer-events: none;
  padding: 3.5rem 1.1rem 1.4rem; background: linear-gradient(to top, rgba(13, 4, 7, 0.85), rgba(13, 4, 7, 0));
}
.feed__date { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--champagne-500); margin: 0 0 0.35rem; }
.feed__title { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 0.2rem; }
.feed__caption { font-size: 0.9rem; color: var(--ink-light-muted); margin: 0; }
.feed__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(247, 240, 227, 0.18); }
.feed__progress span { display: block; height: 100%; background: var(--champagne-500); transform-origin: left; transform: scaleX(0); }
/* paused: a play mark in the middle */
.feed__state {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 76px; height: 76px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8); background: rgba(13, 4, 7, 0.45); opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none;
}
.feed__state::before { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink-light); }
.feed__slide.is-paused .feed__state { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Clap rail: beside the film on desktop, over it on phones */
.feed__rail { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; align-self: flex-end; margin-bottom: 4.5rem; z-index: 3; }
.clap {
  position: relative; width: 58px; height: 58px; border-radius: 50%; cursor: pointer; touch-action: manipulation;
  display: grid; place-items: center; color: var(--champagne-300);
  background: rgba(247, 240, 227, 0.08); border: 1px solid rgba(201, 168, 106, 0.55);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.clap:hover { border-color: var(--champagne-500); }
.clap__icon { display: block; width: 34px; height: 34px; }
.clap__icon img { width: 100%; height: 100%; display: block; pointer-events: none; }
.clap.is-clapped { background: var(--wine-700); border-color: var(--champagne-500); }
.clap.is-pop .clap__icon { animation: clap-pop 0.3s var(--ease-out); }
@keyframes clap-pop { 40% { transform: scale(1.25) rotate(-8deg); } 100% { transform: none; } }
.clap__bubble {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 8px) scale(0.6);
  min-width: 46px; padding: 0.35rem 0.6rem; border-radius: 999px; text-align: center;
  background: var(--wine-900); color: var(--champagne-300); border: 1px solid var(--champagne-500); font-weight: 600; font-size: 0.85rem; line-height: 1.2;
  opacity: 0; transition: opacity 0.2s, transform 0.25s var(--ease-out); pointer-events: none;
}
.clap.show-bubble .clap__bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }
.clap__count { font-size: 0.85rem; font-weight: 600; color: var(--ink-light); font-variant-numeric: tabular-nums; }
.clap-burst {
  position: fixed; z-index: 10; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: none;
  color: var(--champagne-500); animation: clap-burst 0.9s var(--ease-out) forwards;
}
.clap-burst img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45)); }
@keyframes clap-burst { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: translateY(-70px) scale(0.9); } }

.feed__close {
  position: fixed; top: max(0.85rem, env(safe-area-inset-top)); right: 0.85rem; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.05rem;
  color: var(--ink-light); background: rgba(13, 4, 7, 0.5); border: 1px solid rgba(247, 240, 227, 0.5);
}
.feed__close:hover { border-color: var(--champagne-500); color: var(--champagne-300); }
/* Where am I / what's next: counter top-left, dots + arrows on the right,
   and a "Next: …" chip under each film. The feed also peeks the next film
   when it opens, so it is obvious there is more below. */
.feed__nav { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.feed__count {
  position: absolute; top: max(1rem, env(safe-area-inset-top)); left: 1rem; margin: 0; pointer-events: auto;
  padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.8rem; color: var(--ink-light-muted);
  background: rgba(13, 4, 7, 0.5); border: 1px solid rgba(201, 168, 106, 0.35);
}
.feed__count b { color: var(--champagne-300); font-weight: 600; }
.feed__dots { position: absolute; right: 1.35rem; top: 50%; transform: translateY(-50%); display: grid; gap: 0.6rem; pointer-events: auto; }
.feed__dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer; border: 1px solid var(--champagne-500); background: transparent; transition: background-color 0.2s, transform 0.2s; }
.feed__dot.is-active { background: var(--champagne-500); transform: scale(1.35); }
.feed__arrow {
  position: absolute; right: 0.85rem; pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  color: var(--ink-light); background: rgba(13, 4, 7, 0.5); border: 1px solid rgba(201, 168, 106, 0.5); font-size: 1.05rem;
  transition: opacity 0.2s, border-color 0.2s;
}
.feed__arrow:hover { border-color: var(--champagne-500); }
.feed__arrow:disabled { opacity: 0.25; cursor: default; }
.feed__arrow[data-feed-step="-1"] { top: calc(50% - 6.5rem); }
.feed__arrow[data-feed-step="1"] { top: calc(50% + 4rem); }
.feed__next {
  position: absolute; left: 50%; bottom: max(0.8rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; cursor: pointer;
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.82rem; color: var(--ink-light);
  background: rgba(13, 4, 7, 0.6); border: 1px solid rgba(201, 168, 106, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.feed__next-label { color: var(--champagne-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; }
.feed__chev { display: inline-block; color: var(--champagne-500); animation: chev 1.4s ease-in-out infinite; }
.feed__next--first .feed__chev { animation-name: chev-up; }
@keyframes chev { 50% { transform: translateY(3px); } }
@keyframes chev-up { 50% { transform: translateY(-3px); } }
.feed__slide.is-active .feed__next { animation: next-in 0.5s 0.6s var(--ease-out) both; }
@keyframes next-in { from { opacity: 0; transform: translate(-50%, 10px); } }
/* opening peek: the next film slides up a little, then back */
.feed__track.is-nudging > .feed__slide { animation: feed-peek 2.2s 0.7s cubic-bezier(0.45, 0, 0.25, 1) both; }
@keyframes feed-peek { 0%, 100% { transform: none; } 35%, 55% { transform: translateY(-14vh); } }
@media (max-width: 640px) {
  .feed__arrow { display: none; }
  .feed__dots { right: 0.45rem; top: 30%; gap: 0.5rem; }
  .feed__dot { width: 7px; height: 7px; }
}
@media (prefers-reduced-motion: reduce) { .feed__chev { animation: none; } }

@media (max-width: 640px) {
  .feed__slide { padding: 0 0 3.6rem; }
  .feed__frame { border-radius: 0; }
  .feed__poster { max-width: 100vw; max-height: calc(100dvh - 3.6rem); }
  .feed__rail { position: absolute; right: 0.6rem; bottom: 8.5rem; margin: 0; }
  .feed__info { padding-right: 5rem; }
  .clap { width: 52px; height: 52px; background: rgba(13, 4, 7, 0.45); }
  .clap.is-clapped { background: var(--wine-700); }
}

/* Hero: "watch with sound" opens the feed at the pre-wedding film */
.hero__play {
  position: absolute; left: 50%; bottom: 1.25rem; z-index: 2; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem 0.6rem 0.75rem;
  border-radius: 999px; border: 1px solid rgba(247, 240, 227, 0.55); cursor: pointer;
  background: rgba(11, 46, 35, 0.55); color: var(--ink-light); font-size: 0.85rem; font-weight: 500;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color 0.2s, background-color 0.2s;
}
.hero__play:hover { border-color: var(--champagne-500); background: rgba(11, 46, 35, 0.75); }
.hero__play-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--champagne-500); position: relative; }
.hero__play-icon::before { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--wine-900); }
@media (max-width: 899px) { .hero__play { display: none; } }

/* ---------- Portraits gallery ---------- */
.gallery { padding: var(--space-section) 0; }
.gallery__head { text-align: center; margin-bottom: var(--space-block); }
.gallery__head .label { color: var(--wine-700); }
.gallery__title { font-size: var(--fs-h2); color: var(--emerald-700); }
.gallery__title em { color: var(--wine-700); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 2vw, 1.5rem); }
.gallery__item { margin: 0; border-radius: var(--radius-media); overflow: hidden; background: var(--champagne-300); aspect-ratio: 4 / 5; }
.gallery__item picture { height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 0.8s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 08 · Celebrate ---------- */
.celebrate { overflow: hidden; text-align: center; padding: var(--space-section) 0; }
.celebrate__bg { position: absolute; inset: -10% 0; z-index: 0; }
.celebrate__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.celebrate__bg::after { content: ""; position: absolute; inset: 0; background: rgba(61, 15, 28, 0.78); }
.celebrate__inner { position: relative; z-index: 1; max-width: 860px; }
.celebrate__title { font-size: var(--fs-h2); margin-bottom: 1.75rem; }
.celebrate__title em { color: var(--champagne-500); }
.celebrate__text { color: var(--ink-light-muted); max-width: 56ch; margin: 0 auto 2.5rem; }
.countdown { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 2.5rem); margin: 0.5rem 0 2.5rem; }
.countdown div { min-width: clamp(4.5rem, 12vw, 7rem); }
@media (max-width: 520px) { .countdown { gap: 0.5rem; } .countdown div { min-width: 0; flex: 1; } }
.countdown span { display: block; font-family: var(--serif); font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; color: var(--champagne-500); font-variant-numeric: tabular-nums; }
.countdown small { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-light-muted); }
.gifts-band { margin-top: var(--space-block); padding-top: var(--space-block); border-top: 1px solid rgba(201, 168, 106, 0.4); }
.gifts-band__title { font-size: var(--fs-h3); font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 1rem; }
.gifts-band__title em { color: var(--champagne-500); }
.gifts-band p:not(.label) { color: var(--ink-light-muted); max-width: 50ch; margin: 0 auto 2rem; }
@media (max-width: 640px) {
  .celebrate__bg { position: relative; inset: auto; height: 70vw; margin: calc(-1 * var(--space-section)) 0 2.5rem; }
  .celebrate__bg::after { background: linear-gradient(to bottom, rgba(107, 31, 51, 0) 40%, var(--wine-700)); }
}

/* ---------- Closing: letter, toast, sign-off ---------- */
.closing { padding: var(--space-section) 0; color: var(--ink-light); }
.letter {
  position: relative; max-width: 640px; margin: 0 auto;
  background: var(--champagne-100); color: var(--ink-dark);
  border-radius: 6px; padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 6vw, 4rem);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  background-image: radial-gradient(rgba(28, 26, 23, 0.035) 1px, transparent 1px); background-size: 4px 4px;
}
.letter__stamp {
  position: absolute; top: -2.25rem; right: clamp(1rem, 5vw, 2.5rem);
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 3px solid var(--champagne-500);
  transform: rotate(6deg); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.letter__stamp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.letter__body p { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.55; }
.letter__to { color: var(--wine-700); font-size: 1.6rem !important; margin-bottom: 0.25rem; }
.letter__body h3 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--emerald-700); margin-top: 1rem; line-height: 1.15; }
.letter__body h3 em { color: var(--wine-700); }

.toast-lines { text-align: center; margin: var(--space-section) 0; }
.toast-line { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 5.5rem); line-height: 1.12; overflow: hidden; }
.toast-line > span { display: inline-block; }
.toast-line { color: var(--ink-light); }
.toast-line strong { font-weight: 600; color: var(--champagne-500); } /* white + gold only */
.toast-line--forever { font-size: clamp(2.6rem, 8.5vw, 6.75rem); }
.toast-heart { color: var(--champagne-500); font-size: 0.7em; vertical-align: 0.1em; }

.signoff { text-align: center; }
.signoff__mono { width: min(60vw, 320px); margin: 0 auto 1rem; }
.signoff__mono text { stroke-dashoffset: 0; fill: var(--champagne-500); }
html.motion .signoff__mono text { stroke-dashoffset: 900; fill: transparent; }
.signoff__with { font-family: var(--serif); font-size: 1.5rem; margin: 0; color: var(--ink-light-muted); }
.signoff__names { font-size: var(--fs-h2); margin: 0.25rem 0 1rem; }
.signoff .btn-row { margin-top: 2rem; }

/* Sections reached from links (e.g. /#watch from the gifts page) clear the fixed menu */
main section[id], .watch { scroll-margin-top: var(--nav-h); }
