/* ==========================================================================
   Alexander & Simone — "The Club at Dusk"
   Racing green, bone paper, candlelight. Bodoni Moda + Geist.
   ========================================================================== */

:root {
  /* palette */
  --bone: #EEE8DC;
  --bone-2: #E5DDCC;
  --ink: #0E120F;
  --racing: #16261D;
  --racing-2: #1E3327;
  --moss: #4A5A4F;          /* secondary text on bone — 6.4:1 */
  --mist: #B8B6A9;          /* secondary text on dark — 8:1 on racing */
  --candle: #D3A15A;        /* the only warm accent, used sparingly on dark */
  --claret: #7A2630;        /* map routes / paper accents */
  --rule-dark: rgba(22, 38, 29, .18);
  --rule-light: rgba(238, 232, 220, .18);

  /* type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;

  /* rhythm */
  --g: clamp(16px, 4.2vw, 64px);
  --sec: clamp(96px, 14vw, 200px);
  --max: 1440px;
  --mast-h: 76px;

  /* motion — strong custom curves (Emil) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bone);
  color: var(--racing);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { list-style: none; }
i, em { font-style: italic; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

::selection { background: var(--racing); color: var(--bone); }
.dark ::selection, .hero ::selection { background: var(--candle); color: var(--ink); }
html { scrollbar-color: var(--racing) var(--bone); scrollbar-width: thin; }
input, textarea { caret-color: var(--candle); }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  background: var(--bone); color: var(--racing); padding: .7rem 1rem;
  transform: translateY(-160%); transition: transform .25s var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- surfaces ---------- */
.paper { background: var(--bone); color: var(--racing); }
.dark  { background: var(--racing); color: var(--bone); }

/* ---------- shared type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8.4vw, 7.5rem);
  line-height: .92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 104px);
}
.sec-head .display { grid-column: 1 / 8; }
.sec-head__note {
  grid-column: 9 / 13;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.45;
  max-width: 34ch;
  text-wrap: pretty;
}
.dark .sec-head__note { color: var(--mist); }
.paper .sec-head__note { color: var(--moss); }

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: var(--h);
  padding: 0 1.45rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s var(--ease-out), background-color .25s ease, color .25s ease, border-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--racing); color: var(--bone); }
.btn--ghost { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 32%, transparent); }
.btn--light { background: var(--bone); color: var(--racing); }
.btn--lg { --h: 60px; padding: 0 1.9rem; font-size: .82rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--racing-2); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px currentColor; }
  .btn--light:hover { background: #fff; }
  .btn:hover svg { transform: translate(2px, -2px); }
  .btn:hover svg:has(use[href="#i-save"]), .btn:hover svg:has(use[href="#i-down"]) { transform: translateY(2px); }
}
.btn[disabled] { opacity: .55; cursor: progress; }

/* ==========================================================================
   MASTHEAD
   ========================================================================== */
.mast {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--mast-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--g);
  color: var(--bone);
  mix-blend-mode: difference;
  pointer-events: none;
}
.mast > * { pointer-events: auto; }
.mast__mark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.mast__mark i { font-size: .9em; margin: 0 .08em; }
.mast__nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.mast__index {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  min-height: 44px;
}
.mast__index-lines { display: grid; gap: 5px; width: 20px; }
.mast__index-lines span { height: 1px; background: currentColor; transition: transform .3s var(--ease-out); transform-origin: left; }
.mast__index-lines span:last-child { width: 70%; }
@media (hover: hover) and (pointer: fine) {
  .mast__index:hover .mast__index-lines span:last-child { transform: scaleX(1.43); }
}
.mast__rsvp { --h: 42px; padding: 0 1.2rem; }
.mast.is-hidden { opacity: 0; pointer-events: none; }
.mast { transition: opacity .3s ease; }

/* ==========================================================================
   INDEX OVERLAY
   ========================================================================== */
.index {
  position: fixed; inset: 0; z-index: 60;
  background: var(--racing);
  color: var(--bone);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io);
}
.index.is-open { clip-path: inset(0 0 0 0); }
.index { visibility: hidden; }
.index.is-open, .index.is-closing { visibility: visible; }
.index__inner {
  min-height: 100%;
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--mast-h) + 12px) var(--g) 32px;
  max-width: var(--max); margin: 0 auto;
}
.index__close {
  position: fixed; top: 16px; right: var(--g);
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule-light);
  transition: transform .16s var(--ease-out), box-shadow .2s ease;
}
.index__close svg { width: 20px; height: 20px; }
.index__close:active { transform: scale(.94); }
.index__list { align-self: center; counter-reset: idx; }
.index__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: clamp(6px, 1vh, 12px) 0;
  border-bottom: 1px solid var(--rule-light);
  text-decoration: none;
}
.index__list span {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5.2vh, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: transform .45s var(--ease-out), color .25s ease;
}
.index__list em { font-style: normal; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); text-align: right; }
@media (hover: hover) and (pointer: fine) {
  .index__list a:hover span { transform: translateX(14px); font-style: italic; }
}
.index__list li { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .7s var(--ease-out); }
.index.is-open .index__list li { opacity: 1; transform: none; }
.index.is-open .index__list li:nth-child(n) { transition-delay: calc(var(--i, 0) * 40ms + 180ms); }
.index__foot { margin-top: 32px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--mist); }
@media (max-width: 640px) { .index__list em { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  color: var(--bone);
  background: var(--ink);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--mast-h) + 8px) var(--g) clamp(24px, 4vh, 44px);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%; height: 115%;
  object-fit: cover; object-position: 50% 60%;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.04);
  will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 12, 10, .55) 0%, rgba(8, 12, 10, 0) 26%),
    linear-gradient(0deg, rgba(8, 12, 10, .82) 0%, rgba(8, 12, 10, .2) 45%, rgba(8, 12, 10, 0) 70%);
}
.hero__top { display: flex; justify-content: space-between; gap: 24px; }
.hero__meta {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.7;
  color: rgba(238, 232, 220, .82);
}
.hero__meta--right { text-align: right; }
.hero__names {
  align-self: end;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 13.2vw, 13.5rem);
  line-height: .84;
  letter-spacing: -0.04em;
  margin-bottom: clamp(20px, 3vh, 36px);
}
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; }
.line--indent { padding-left: clamp(0px, 14vw, 260px); }
.amp { font-weight: 400; margin-right: .06em; color: var(--candle); }
.hero__foot {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  border-top: 1px solid var(--rule-light);
  padding-top: 18px;
}
.hero__line { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.45rem); }
.hero__cue {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  min-height: 44px;
}
.hero__cue svg { width: 18px; height: 18px; animation: nudge 2.6s var(--ease-io) infinite 3s; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(5px); } }

/* opening choreography — the one authored moment */
html.js .hero__media { clip-path: inset(41% 0 41% 0); transition: clip-path 1.7s var(--ease-io); }
html.js .hero__media img { scale: 1.22; transition: scale 2.4s var(--ease-out); }
html.js [data-hero-line] { transform: translateY(108%); transition: transform 1.3s var(--ease-out); }
html.js [data-hero-meta] { opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform 1.1s var(--ease-out); }
html.js .hero__veil { opacity: 0; transition: opacity 1.6s ease .4s; }
.hero.is-on .hero__media { clip-path: inset(0 0 0 0); }
.hero.is-on .hero__media img { scale: 1; }
.hero.is-on [data-hero-line] { transform: none; }
.hero.is-on .line:nth-child(1) [data-hero-line] { transition-delay: .75s; }
.hero.is-on .line:nth-child(2) [data-hero-line] { transition-delay: .86s; }
.hero.is-on [data-hero-meta] { opacity: 1; transform: none; transition-delay: 1.35s; }
.hero.is-on .hero__veil { opacity: 1; }

/* ==========================================================================
   INVITATION
   ========================================================================== */
.invite { padding: var(--sec) var(--g); }
.invite__card { max-width: 920px; margin: 0 auto; text-align: center; }
.invite__lede, .invite__request {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--moss);
  line-height: 1.5;
}
.invite__names {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: clamp(20px, 3vw, 36px) 0;
}
.invite__names i { font-size: .8em; }
.ledger { margin: clamp(56px, 8vw, 96px) auto 0; text-align: left; border-bottom: 1px solid var(--rule-dark); }
.ledger__row {
  display: grid; grid-template-columns: minmax(110px, 200px) 1fr; gap: 24px;
  align-items: baseline;
  padding: clamp(16px, 2vw, 24px) 0;
  border-top: 1px solid var(--rule-dark);
}
.ledger dt { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--moss); }
.ledger dd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.ledger__big { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; }
.ledger__note { font-size: .92rem; color: var(--moss); }
.invite__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.invite__count { margin-top: 28px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }

/* ==========================================================================
   THE DAY — scroll moves the light from afternoon into night
   ========================================================================== */
.day {
  --bg: #EEE8DC; --fg: #16261D;
  position: relative;
  background: var(--bg);
  color: var(--fg);
  transition: color .5s ease;
}
@media (max-width: 899px) { .day { transition: background-color .9s ease, color .6s ease; } }
.day__sticky { position: relative; }
.day__head { padding: var(--sec) var(--g) 0; max-width: var(--max); }
.day__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8.4vw, 7.5rem); line-height: .92; letter-spacing: -0.03em; }
.day__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.4vw, 1.3rem); margin-top: 14px; max-width: 36ch; opacity: .78; }
.day__sky { display: none; }
.day__track { padding: 56px var(--g) var(--sec); display: grid; gap: 64px; }
.moment { max-width: 520px; }
.moment__img { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 20px; width: min(62%, 280px); }
.moment__img img { width: 100%; height: 100%; object-fit: cover; }
.moment__time {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.6vw, 6rem);
  line-height: .9;
  letter-spacing: -0.04em;
}
.moment__time small { font-size: max(.75rem, .24em); letter-spacing: .08em; margin-left: .35em; text-transform: uppercase; font-family: var(--sans); vertical-align: .9em; }
.moment h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.85rem); margin: 14px 0 8px; letter-spacing: -0.01em; }
.moment p:last-child { max-width: 34ch; opacity: .82; }

@media (min-width: 900px) {
  .day { height: calc(100svh + var(--travel, 2400px)); }
  .day__sticky {
    position: sticky; top: 0;
    height: 100svh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
  }
  .day__head {
    padding-top: calc(var(--mast-h) + 3vh);
    display: flex; align-items: end; justify-content: space-between; gap: 40px;
    max-width: none;
  }
  .day__title { font-size: clamp(3rem, 6.2vw, 6rem); }
  .day__sub { text-align: right; margin: 0 0 .6em; }
  .day__sky {
    display: block;
    position: absolute; left: var(--g); right: var(--g);
    top: calc(var(--mast-h) + 3vh + clamp(3rem, 6.2vw, 6rem) + 36px);
    height: 80px;
    pointer-events: none;
  }
  .day__horizon { width: 100%; height: 100%; display: block; overflow: visible; }
  .day__horizon line { stroke: currentColor; stroke-opacity: .28; stroke-width: 1; vector-effect: non-scaling-stroke; }
  .day__sun {
    position: absolute; left: 0; top: 0;
    width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: currentColor;
    transform: translate3d(var(--sx, 0px), var(--sy, 20px), 0);
    transition: background-color .4s ease, box-shadow .4s ease;
    clip-path: inset(-20px -20px calc(100% - var(--clip, 100%)) -20px);
  }
  .day__sun.is-moon { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
  .day__clock {
    position: absolute; left: 0; top: 70px;
    transform: translate3d(calc(var(--sx, 0px) - 50%), 0, 0);
    font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  }
  .day__sunset {
    position: absolute; top: 34px; height: 26px;
    left: var(--sunset-x, 70%);
    font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6;
    border-left: 1px solid currentColor; padding-left: 8px; line-height: 1;
    white-space: nowrap;
  }
  .day__track {
    display: flex; gap: clamp(48px, 6vw, 110px);
    align-items: end;
    padding: 0 var(--g) clamp(40px, 7vh, 80px) 38vw;
    width: max-content;
    transform: translate3d(var(--tx, 0px), 0, 0);
    will-change: transform;
  }
  .moment { width: clamp(260px, 23vw, 360px); flex: none; }
  .moment__img { width: 72%; }
  .moment:nth-child(even) .moment__img { width: 58%; margin-left: 20%; }
}

/* ==========================================================================
   ALBUM
   ========================================================================== */
.album { padding: var(--sec) var(--g); background: var(--ink); color: var(--bone); }
.album__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vw, 104px); max-width: var(--max); margin-inline: auto; }
.album__note { font-family: var(--serif); font-style: italic; color: var(--mist); font-size: 1.15rem; max-width: 30ch; }
.album__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.2vw, 32px);
  max-width: var(--max); margin: 0 auto;
  align-items: start;
}
.ph button { display: block; width: 100%; overflow: hidden; cursor: zoom-in; position: relative; background: #1a1f1b; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .6s ease; }
@media (hover: hover) and (pointer: fine) {
  .ph button:hover img { transform: scale(1.035); }
}
.ph figcaption { margin-top: 14px; font-family: var(--serif); font-style: italic; color: var(--mist); font-size: 1.05rem; max-width: 40ch; }
.ph--a { grid-column: 1 / 6; } .ph--a button { aspect-ratio: 4 / 5; }
.ph--b { grid-column: 7 / 13; margin-top: 18vh; } .ph--b button { aspect-ratio: 3 / 2; }
.ph--c { grid-column: 8 / 11; margin-top: -4vh; } .ph--c button { aspect-ratio: 4 / 5; }
.ph--d { grid-column: 2 / 9; margin-top: 6vh; } .ph--d button { aspect-ratio: 16 / 10; }
.ph--e { grid-column: 9 / 13; margin-top: 22vh; } .ph--e button { aspect-ratio: 3 / 4; }
.ph--f { grid-column: 1 / 5; margin-top: 4vh; } .ph--f button { aspect-ratio: 3 / 4; }
.ph--g { grid-column: 6 / 13; margin-top: 14vh; } .ph--g button { aspect-ratio: 3 / 2; }
.ph--h { grid-column: 3 / 8; margin-top: 4vh; } .ph--h button { aspect-ratio: 4 / 5; }
.ph--i { grid-column: 9 / 12; margin-top: 20vh; } .ph--i button { aspect-ratio: 4 / 5; }
.ph--j { grid-column: 1 / 13; margin-top: 8vh; } .ph--j button { aspect-ratio: 21 / 9; }
@media (max-width: 760px) {
  .album__grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .ph { margin-top: 0 !important; }
  .ph--a, .ph--d, .ph--g, .ph--h, .ph--j { grid-column: 1 / -1; }
  .ph--b { grid-column: 1 / -1; }
  .ph--c, .ph--f { grid-column: 1 / 4; }
  .ph--e, .ph--i { grid-column: 4 / 7; margin-top: 40px !important; }
  .ph--j button { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   DRESS CODE
   ========================================================================== */
.dress { padding: var(--sec) var(--g); }
.dress__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px;
  max-width: var(--max); margin: 0 auto;
}
.dress__word { grid-column: 1 / 8; align-self: center; }
.dress__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(5rem, 17vw, 16rem);
  line-height: .8;
  letter-spacing: -0.05em;
}
.dress__title .line:nth-child(2) { padding-left: .9em; }
.dress__title i { color: var(--candle); }
.dress__lede { margin-top: 36px; font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.4; max-width: 26ch; }
.dress__img { grid-column: 9 / 13; aspect-ratio: 3 / 4; overflow: hidden; }
.dress__img img { width: 100%; height: 100%; object-fit: cover; }
.dress__cols {
  grid-column: 1 / 13;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: clamp(64px, 8vw, 120px);
}
.dress__cols > div { border-top: 1px solid var(--rule-light); padding-top: 18px; }
.dress__cols h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.6rem; margin-bottom: 10px; }
.dress__cols p { color: var(--mist); font-size: 1rem; }
.swatches { grid-column: 1 / 13; display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; }
.swatches li { display: flex; align-items: center; gap: 12px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.swatches li::before { content: ""; width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px var(--rule-light); }
@media (max-width: 900px) {
  .dress__word { grid-column: 1 / -1; }
  .dress__img { grid-column: 3 / -1; margin-top: 48px; }
  .dress__cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
@media (max-width: 560px) {
  .dress__img { grid-column: 1 / -1; }
  .dress__cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TRAVEL
   ========================================================================== */
.travel { padding: var(--sec) var(--g); }
.travel > * { max-width: var(--max); margin-inline: auto; }
.travel__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.map { grid-column: 1 / 7; color: var(--racing); }
.map svg { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.map figcaption { font-size: .8rem; color: var(--moss); margin-top: 12px; }
.map__m25 { fill: none; stroke: currentColor; stroke-width: 10; stroke-opacity: .07; }
.map__road { font-size: 11px; letter-spacing: .2em; fill: var(--moss); }
.map__river { fill: none; stroke: #7C8E86; stroke-width: 2; stroke-opacity: .5; stroke-linecap: round; }
.map__river-label { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--moss); }
.map__route {
  fill: none; stroke: var(--claret); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease-io);
}
.map.is-in .map__route { stroke-dashoffset: 0; }
.map.is-in .map__route:nth-of-type(2) { transition-delay: .2s; }
.map.is-in .map__route:nth-of-type(3) { transition-delay: .4s; }
.map__place circle { fill: var(--racing); }
.map__place text { font-family: var(--serif); font-size: 19px; fill: var(--racing); }
.map__place .map__t { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; fill: var(--moss); }
.map__place--small text { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; fill: var(--moss); }
.map__place--small circle { fill: none; stroke: var(--racing); stroke-width: 1.2; }
.map__venue circle { fill: var(--claret); }
.map__venue text { font-family: var(--serif); font-style: italic; font-size: 22px; fill: var(--claret); }
.map__pulse { fill: none !important; stroke: var(--claret); stroke-width: 1; transform-origin: 259px 402px; animation: pulse 3.2s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.map__north line, .map__north path { stroke: var(--racing); stroke-width: 1.2; fill: none; }
.map__north text { font-size: 11px; letter-spacing: .2em; text-anchor: middle; fill: var(--racing); }
.routes { grid-column: 8 / 13; display: grid; gap: 0; }
.route { border-top: 1px solid var(--rule-dark); padding: 22px 0 26px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.route:last-child { border-bottom: 1px solid var(--rule-dark); }
.route h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; letter-spacing: -0.01em; }
.route__time { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--claret); align-self: center; }
.route p:last-child { grid-column: 1 / -1; color: var(--moss); max-width: 52ch; }
.route strong { color: var(--racing); font-weight: 500; }
@media (max-width: 900px) {
  .map, .routes { grid-column: 1 / -1; }
  .routes { margin-top: 32px; }
}

/* ==========================================================================
   WHERE TO STAY
   ========================================================================== */
.stay { padding: var(--sec) var(--g); background: var(--bone-2); color: var(--racing); }
.stay > * { max-width: var(--max); margin-inline: auto; }
.stay .sec-head__note { color: var(--moss); }
.hotels { position: relative; }
.hotels__legend, .hotel > a {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 110px 90px;
  gap: 24px; align-items: baseline;
}
.hotels__legend { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--moss); padding-bottom: 14px; }
.hotel { border-top: 1px solid var(--rule-dark); position: relative; }
.hotel:last-child { border-bottom: 1px solid var(--rule-dark); }
.hotel > a { padding: clamp(22px, 2.6vw, 34px) 0 6px; text-decoration: none; }
.hotel__name {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1; letter-spacing: -0.025em;
  transition: transform .5s var(--ease-out);
}
.hotel__meta { display: flex; flex-direction: column; gap: 2px; font-size: .98rem; }
.hotel__area { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.hotel__meta .tnum { color: var(--moss); }
.hotel__price { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .06em; }
.hotel__price span { opacity: .22; }
.hotel__go { display: inline-flex; align-items: center; gap: .5rem; justify-self: end; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.hotel__go svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.hotel__note { padding: 0 0 clamp(22px, 2.6vw, 30px); color: var(--moss); max-width: 56ch; }
@media (hover: hover) and (pointer: fine) {
  .hotel > a:hover .hotel__name { transform: translateX(10px); font-style: italic; }
  .hotel > a:hover .hotel__go svg { transform: translate(2px, -2px); }
}
.hotels__foot { margin-top: 24px; font-size: .92rem; color: var(--moss); }
.hotels__float {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: clamp(200px, 20vw, 300px); aspect-ratio: 4 / 5;
  pointer-events: none; overflow: hidden;
  opacity: 0; scale: .92;
  transition: opacity .3s ease, scale .45s var(--ease-out);
  box-shadow: 0 30px 60px -20px rgba(14, 18, 15, .45);
}
.hotels__float.is-on { opacity: 1; scale: 1; }
.hotels__float img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (pointer: coarse) { .hotels__float { display: none; } }
@media (max-width: 760px) {
  .hotels__legend { display: none; }
  .hotel > a { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .hotel__name { grid-column: 1 / -1; }
  .hotel__meta { flex-direction: row; gap: 12px; align-items: baseline; flex-wrap: wrap; }
  .hotel__go { grid-column: 2; grid-row: 2; }
  .hotel__price { grid-column: 1; }
}

/* ==========================================================================
   WEDDING PARTY
   ========================================================================== */
.party { padding: var(--sec) var(--g); background: var(--ink); }
.party > * { max-width: var(--max); margin-inline: auto; }
.party__leads { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.person--lead { grid-column: 1 / 6; }
.person--lead.person--offset { grid-column: 7 / 12; margin-top: 22vh; }
.person__img { aspect-ratio: 4 / 5; overflow: hidden; background: #1a1f1b; }
.person__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease-out); }
.person__text { margin-top: 24px; max-width: 42ch; }
.person__role { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--candle); margin-top: 16px; }
.person__text .person__role { margin-top: 0; }
.person__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -0.025em; line-height: 1.05; margin: 8px 0 14px; }
.person__text p:last-child { color: var(--mist); }
.party__rest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(80px, 12vw, 160px); }
.party__rest .person:nth-child(even) { margin-top: 10vh; }
.party__rest .person__name { font-size: clamp(1.35rem, 2vw, 1.8rem); margin: 4px 0 0; }
.party__parents { display: flex; flex-wrap: wrap; gap: 24px 64px; margin-top: clamp(72px, 10vw, 130px); border-top: 1px solid var(--rule-light); padding-top: 28px; }
.party__parents p { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.75rem); }
.party__parents span { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); margin-bottom: 6px; }
@media (hover: hover) and (pointer: fine) {
  .person:hover .person__img img { transform: scale(1.03); }
}
@media (max-width: 760px) {
  .person--lead, .person--lead.person--offset { grid-column: 1 / -1; margin-top: 0; }
  .person--lead.person--offset { margin-top: 64px; }
  .party__rest { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .party__rest .person:nth-child(even) { margin-top: 40px; }
}

/* ==========================================================================
   A FEW WORDS
   ========================================================================== */
.words { padding: var(--sec) var(--g); }
.words__inner { max-width: 1100px; margin: 0 auto; }
.words__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7.6vw, 6.6rem); line-height: .95; letter-spacing: -0.035em; }
.words__title i { color: var(--claret); }
.words__lede { margin-top: 36px; font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.5; max-width: 44ch; color: var(--moss); text-wrap: pretty; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: clamp(56px, 7vw, 96px); }
.contact { border-top: 1px solid var(--racing); padding-top: 22px; }
.contact__role { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--moss); }
.contact__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.02em; margin: 6px 0 18px; }
.contact__links { display: grid; gap: 2px; }
.contact__links a, .contact__links button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  text-decoration: none; font-size: 1rem;
  transition: color .2s ease;
  overflow-wrap: anywhere;
}
.contact__links svg { width: 18px; height: 18px; flex: none; color: var(--moss); transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .contact__links a:hover, .contact__links button:hover { color: var(--claret); }
  .contact__links a:hover svg, .contact__links button:hover svg { transform: translateX(3px); color: var(--claret); }
}
.contact__links button:active { transform: scale(.98); }
@media (max-width: 700px) { .contacts { grid-template-columns: 1fr; gap: 40px; } }

/* ==========================================================================
   RSVP
   ========================================================================== */
.rsvp {
  padding: var(--sec) var(--g);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  max-width: none;
}
.rsvp__intro { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--mast-h) + 24px); }
.rsvp__intro > p { margin-top: 22px; color: var(--mist); max-width: 30ch; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.rsvp__img { margin-top: 48px; width: 62%; aspect-ratio: 3 / 4; overflow: hidden; }
.rsvp__img img { width: 100%; height: 100%; object-fit: cover; }
.rsvp__card { grid-column: 6 / 13; }
.rsvp__form { display: grid; gap: 0; }
.field { border: 0; margin: 0; padding: 0 0 36px; min-width: 0; }
.field__q {
  display: block; padding: 0; margin-bottom: 14px;
  font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em;
}
.field--choice .field__q { font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -0.025em; margin-bottom: 24px; }
.opt { font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); margin-left: 10px; vertical-align: .3em; }
.field__error { color: #E7A08F; font-size: .92rem; min-height: 0; margin-top: 8px; }
.field__error:empty { display: none; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__face {
  display: grid; gap: 6px;
  padding: 26px 24px 24px;
  min-height: 132px; align-content: end;
  box-shadow: inset 0 0 0 1px var(--rule-light);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), box-shadow .25s ease, transform .16s var(--ease-out);
}
.choice__big { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.05; letter-spacing: -0.015em; }
.choice__small { font-size: .9rem; color: var(--mist); transition: color .35s ease; }
.choice__opt input:checked + .choice__face { background: var(--bone); color: var(--racing); box-shadow: inset 0 0 0 1px var(--bone); }
.choice__opt input:checked + .choice__face .choice__big { font-style: italic; }
.choice__opt input:checked + .choice__face .choice__small { color: var(--moss); }
.choice__opt input:focus-visible + .choice__face { outline: 1.5px solid var(--bone); outline-offset: 4px; }
.choice__opt:active .choice__face { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .choice__opt:hover input:not(:checked) + .choice__face { box-shadow: inset 0 0 0 1px rgba(238, 232, 220, .55); }
}

.rsvp__more { padding-top: 12px; }
.rsvp__more.is-entering { animation: enter .7s var(--ease-out) both; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-light);
  border-radius: 0;
  padding: 10px 0 12px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--bone);
  transition: border-color .25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: rgba(184, 182, 169, .72); font-style: italic; }
.input:focus { outline: none; border-bottom-color: var(--candle); }
.input[aria-invalid="true"] { border-bottom-color: #E7A08F; }
.input--area { resize: vertical; min-height: 96px; line-height: 1.45; }

.stepper { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.stepper__btn {
  width: 48px; height: 48px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule-light);
  font-size: 1.4rem; line-height: 1;
  transition: transform .14s var(--ease-out), box-shadow .2s ease, opacity .2s ease;
}
.stepper__btn:active { transform: scale(.92); }
.stepper__btn[disabled] { opacity: .3; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .stepper__btn:not([disabled]):hover { box-shadow: inset 0 0 0 1px var(--bone); } }
.stepper__val { font-family: var(--serif); font-size: 2.4rem; min-width: 1.2ch; text-align: center; line-height: 1; }
.stepper__hint { font-size: .9rem; color: var(--mist); flex-basis: 100%; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { position: relative; cursor: pointer; }
.tag input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tag span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-light);
  font-size: .95rem;
  transition: background-color .25s ease, color .25s ease, box-shadow .2s ease;
}
.tag input:checked + span { background: var(--bone); color: var(--racing); box-shadow: inset 0 0 0 1px var(--bone); }
.tag input:focus-visible + span { outline: 1.5px solid var(--bone); outline-offset: 3px; }

.rsvp__submit { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 8px; }
.rsvp__status { color: var(--mist); font-size: .95rem; }
.btn__label { transition: filter .2s ease, opacity .2s ease; }
.btn.is-sending .btn__label { filter: blur(2px); opacity: .6; }

.rsvp__done { padding: 24px 0; animation: enter .9s var(--ease-out) both; }
.rsvp__done:focus { outline: none; }
.rsvp__done-big { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; }
.rsvp__done-big i { color: var(--candle); }
.rsvp__done-small { margin-top: 24px; color: var(--mist); font-family: var(--serif); font-size: 1.3rem; max-width: 36ch; line-height: 1.45; }
.link-btn { margin-top: 32px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .4em; text-decoration-color: var(--rule-light); min-height: 44px; }

@media (max-width: 900px) {
  .rsvp__intro { grid-column: 1 / -1; position: static; }
  .rsvp__img { display: none; }
  .rsvp__card { grid-column: 1 / -1; margin-top: 40px; }
}
@media (max-width: 520px) {
  .choice { grid-template-columns: 1fr; }
  .choice__face { min-height: 96px; }
}

/* ==========================================================================
   GIFTS
   ========================================================================== */
.gifts { padding: var(--sec) var(--g); }
.gifts__inner { max-width: 1100px; margin: 0 auto; }
.gifts__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7.6vw, 6.6rem); line-height: .95; letter-spacing: -0.035em; }
.gifts__title i { color: var(--claret); }
.gifts__lede { margin-top: 32px; font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.5rem); color: var(--moss); max-width: 46ch; line-height: 1.5; }
.gifts__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: clamp(56px, 7vw, 96px); }
.gift {
  display: grid; gap: 12px; align-content: start;
  border-top: 1px solid var(--racing);
  padding-top: 22px;
  text-decoration: none;
}
.gift__name { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.1; transition: transform .5s var(--ease-out); }
.gift__desc { color: var(--moss); max-width: 44ch; }
.gift__go { display: inline-flex; gap: .5rem; align-items: center; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 8px; min-height: 44px; }
.gift__go svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .gift:hover .gift__name { font-style: italic; transform: translateX(8px); }
  .gift:hover .gift__go svg { transform: translate(2px, -2px); }
}
.gifts__foot { margin-top: 56px; font-family: var(--serif); font-style: italic; color: var(--moss); font-size: 1.15rem; }
@media (max-width: 700px) { .gifts__opts { grid-template-columns: 1fr; gap: 40px; } }

/* ==========================================================================
   CLOSING
   ========================================================================== */
.fin {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  color: var(--bone); background: var(--ink);
  overflow: hidden; isolation: isolate;
}
.fin__media { position: absolute; inset: 0; z-index: -2; }
.fin__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--fs, 1.12)); will-change: transform; }
.fin__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 18, 15, .25), rgba(14, 18, 15, .55) 55%, rgba(14, 18, 15, .92)); }
.fin__text { align-self: center; text-align: center; padding: 120px var(--g) 40px; }
.fin__until { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.fin__names { font-family: var(--serif); font-size: clamp(3.4rem, 11vw, 10.5rem); line-height: .9; letter-spacing: -0.045em; margin: 18px 0 30px; }
.fin__names i { color: var(--candle); }
.fin__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 36px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(238, 232, 220, .8); }
.fin__meta span:empty { display: none; }
.fin__foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 24px var(--g) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-light);
  font-size: .9rem; color: rgba(238, 232, 220, .78);
}
.fin__foot a { text-underline-offset: .25em; text-decoration-color: var(--rule-light); }
.fin__top { display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; min-height: 44px; }
.fin__top svg { width: 16px; height: 16px; transform: rotate(180deg); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 13, 11, .97);
  color: var(--bone);
  opacity: 0;
  transition: opacity .3s var(--ease-out), overlay .3s allow-discrete, display .3s allow-discrete;
}
.lb[open] { opacity: 1; }
@starting-style { .lb[open] { opacity: 0; } }
.lb::backdrop { background: transparent; }
.lb__stage { position: absolute; inset: 64px 72px 56px; display: grid; place-items: center; }
.lb__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: opacity .35s var(--ease-out), filter .35s var(--ease-out), transform .5s var(--ease-out);
}
.lb[open] .lb__img { transform: none; }
@starting-style { .lb[open] .lb__img { transform: scale(.96); } }
.lb__img.is-swapping { opacity: 0; filter: blur(6px); }
.lb__count { position: absolute; left: 24px; top: 22px; font-size: .78rem; letter-spacing: .16em; }
.lb__btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule-light);
  transition: transform .14s var(--ease-out), box-shadow .2s ease;
}
.lb__btn svg { width: 20px; height: 20px; }
.lb__btn:active { transform: scale(.93); }
@media (hover: hover) and (pointer: fine) { .lb__btn:hover { box-shadow: inset 0 0 0 1px var(--bone); } }
.lb__close { right: 16px; top: 12px; }
.lb__prev { left: 12px; top: 50%; margin-top: -24px; }
.lb__next { right: 12px; top: 50%; margin-top: -24px; }
@media (max-width: 700px) {
  .lb__stage { inset: 64px 8px 88px; }
  .lb__prev, .lb__next { top: auto; bottom: 20px; margin: 0; }
  .lb__prev { left: calc(50% - 60px); }
  .lb__next { right: calc(50% - 60px); }
}

/* ==========================================================================
   GRAIN — fixed, non-interactive, never on a scroller
   ========================================================================== */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ==========================================================================
   SCROLL REVEALS — visible by default; hidden only when JS is running
   Varied per element type so sections don't share one identical entrance.
   ========================================================================== */
html.js .r-up:not(.is-in) { opacity: 0; transform: translateY(22px); filter: blur(4px); }
.r-up { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); }

html.js .r-img:not(.is-in) > img,
html.js .r-img:not(.is-in) > button { clip-path: inset(100% 0 0 0); }
.r-img > img, .r-img > button { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-io); }
html.js .r-img:not(.is-in) img { scale: 1.14; }
.r-img img { transition: clip-path 1.3s var(--ease-io), scale 1.8s var(--ease-out), transform 1.4s var(--ease-out); }

html.js .r-lines:not(.is-in) .line > span { transform: translateY(105%); }
.r-lines .line > span { transition: transform 1.2s var(--ease-out); }
.r-lines .line:nth-child(2) > span { transition-delay: .1s; }

html.js .r-stagger:not(.is-in) > * { opacity: 0; transform: translateY(16px); }
.r-stagger > * { transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  html.js .r-up:not(.is-in), html.js .r-stagger:not(.is-in) > * { transform: none; filter: none; }
  html.js .r-img:not(.is-in) > img, html.js .r-img:not(.is-in) > button { clip-path: none; }
  html.js .r-img:not(.is-in) img { scale: 1; }
  html.js .r-lines:not(.is-in) .line > span { transform: none; }
  html.js .hero__media { clip-path: none; }
  html.js .hero__media img { scale: 1; }
  html.js [data-hero-line] { transform: none; }
  .hero__cue svg, .map__pulse { animation: none; }
  .map__route { transition: none; stroke-dashoffset: 0; }
  .index, .index__list li { transition-duration: .01s; }
}

/* ---------- small screens: general ---------- */
@media (max-width: 900px) {
  .sec-head .display, .sec-head__note { grid-column: 1 / -1; }
  .sec-head__note { margin-top: 20px; }
}
@media (max-width: 560px) {
  :root { --mast-h: 64px; }
  .hero__meta { font-size: .7rem; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .line--indent { padding-left: 0; }
  .hero__names { font-size: 18.5vw; }
  .map__place text { font-size: 25px; }
  .map__place .map__t, .map__place--small text, .map__road { font-size: 15px; }
  .map__venue text { font-size: 28px; }
  .map__river-label { font-size: 18px; }
  .ledger__row { grid-template-columns: 1fr; gap: 6px; }
  .invite__actions .btn { width: 100%; }
  .mast__index > span:last-child { display: none; }
}
