/* =========================================================
   James & Louise — 17 October 2026 — Malta
   "Two landscapes, one love"
   ========================================================= */

:root {
  /* Palette */
  --ivory:      #F4EEE2;   /* warm Maltese limestone */
  --ivory-2:    #EBE3D2;
  --ivory-3:    #E2D8C3;
  --ink:        #1E2A23;   /* deep forest pine — Banff */
  --ink-soft:   #34433B;
  --ink-faint:  #5C6A60;
  --gold:       #A67C52;   /* antique brass */
  --gold-deep:  #8A6440;
  --gold-pale:  #CDB089;
  --teal:       #6E9C99;   /* glacial Lake Louise whisper */
  --paper-line: rgba(30, 42, 35, 0.14);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

/* ----------------- reset ----------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ----------------- atmosphere & grain ----------------- */
.atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(205,176,137,0.30), transparent 55%),
    radial-gradient(90% 70% at 85% 20%, rgba(110,156,153,0.12), transparent 60%),
    radial-gradient(120% 100% at 10% 100%, rgba(30,42,35,0.10), transparent 55%),
    var(--ivory);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ----------------- shared type ----------------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.62rem, 1.4vw, 0.74rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: "✦"; margin-right: 0.9em; color: var(--gold); font-size: 0.8em; opacity: 0.8; }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
}
.section-title.centered { text-align: center; }
.accent-italic { font-style: italic; font-weight: 400; color: var(--gold-deep); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

p { font-size: clamp(1rem, 1.4vw, 1.12rem); }

/* ----------------- buttons & links ----------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1.05em 2.4em;
  cursor: pointer;
  transition: all 0.45s var(--ease);
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  position: relative;
}
.btn--ghost { margin-top: 2.4rem; }
.btn--ghost:hover { background: var(--gold); color: var(--ivory); letter-spacing: 0.32em; }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); letter-spacing: 0.32em; }

.link-underline { position: relative; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); padding-bottom: 3px; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }

.editable { color: var(--teal); font-style: italic; opacity: 0.85; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--ivory);
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { display: grid; place-items: center; gap: 1.4rem; }
.crest { width: 116px; height: 116px; }
.crest__ring, .crest__sprig { fill: none; stroke: var(--gold); stroke-width: 1; }
.crest__ring { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.5s var(--ease) forwards; }
.crest__sprig { stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.2s var(--ease) 0.5s forwards; }
.crest__amp { font-family: var(--serif); font-weight: 300; font-size: 26px; fill: var(--ink); opacity: 0; animation: fadeIn 0.8s ease 0.7s forwards; }
.preloader__line { width: 0; height: 1px; background: var(--gold); animation: line 1.1s var(--ease) 0.6s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes line { to { width: 160px; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--pad);
  transform: translateY(-110%);
  transition: transform 0.6s var(--ease), background 0.4s ease, padding 0.4s ease;
}
.nav.is-visible { transform: translateY(0); }
.nav.is-solid {
  background: rgba(244,238,226,0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  padding-block: 1rem;
  border-bottom: 1px solid var(--paper-line);
}
.nav__brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: 0.05em; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); }
.nav__links a { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; position: relative; padding-bottom: 2px; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta { border: 1px solid var(--gold); padding: 0.6em 1.4em; color: var(--gold-deep); transition: all 0.4s var(--ease); }
.nav__cta:hover { background: var(--gold); color: var(--ivory); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem var(--pad) 5rem;
  overflow: hidden;
}
/* arch silhouette behind names */
.hero__arch {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%);
  width: min(560px, 78vw); height: min(680px, 86vh);
  border: 1px solid var(--gold);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  opacity: 0;
  animation: archIn 2s var(--ease) 0.6s forwards;
}
.hero__arch::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold-pale);
  border-bottom: none; border-radius: 50% 50% 0 0 / 38% 38% 0 0; opacity: 0.5;
}
@keyframes archIn { to { opacity: 0.32; } }

.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { opacity: 0; animation: rise 1s var(--ease) 0.7s forwards; }

.hero__names {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  line-height: 0.92; letter-spacing: 0.01em;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.hero__amp { font-style: italic; color: var(--gold); font-size: 0.62em; margin: 0.04em 0; }
.hero__name { display: block; }

/* clip reveal for the names */
/* padding gives descenders (e.g. the J in James) room inside the clip;
   the equal negative margin keeps the tight line stacking unchanged */
.reveal-clip { overflow: hidden; display: block; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.reveal-clip > span { display: block; transform: translateY(110%); }
.hero__name:nth-child(1) > span { animation: clipUp 1.1s var(--ease) 0.85s forwards; }
.hero__amp > span { animation: clipUp 1.1s var(--ease) 1.0s forwards; }
.hero__name:nth-child(3) > span { animation: clipUp 1.1s var(--ease) 1.15s forwards; }
@keyframes clipUp { to { transform: translateY(0); } }

.hero__meta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: clamp(0.8rem, 2.5vw, 1.8rem);
  margin-top: 2rem;
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(0.8rem, 1.8vw, 1rem); letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0; animation: rise 1s var(--ease) 1.4s forwards;
}
.hero__dot { color: var(--gold); font-size: 0.7em; }
.hero__invite {
  margin-top: 2.4rem; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--ink-soft); line-height: 1.6;
  opacity: 0; animation: rise 1s var(--ease) 1.6s forwards;
}

.hero__scroll {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem; z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint);
  opacity: 0; animation: rise 1s var(--ease) 1.9s forwards;
}
.hero__scroll-line { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--ink); animation: scrollDot 2s var(--ease-soft) infinite; }
@keyframes scrollDot { 0% { top: -50%; } 60%,100% { top: 100%; } }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---- hero with photo background ---- */
.hero--photo .hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; z-index: 0;
  opacity: 0; animation: heroPhotoIn 2.6s var(--ease) 0.15s forwards;
}
@keyframes heroPhotoIn { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: scale(1); } }
.hero--photo .hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,28,23,0.52) 0%, rgba(20,28,23,0.16) 30%, rgba(20,28,23,0.28) 58%, rgba(20,28,23,0.70) 100%),
    radial-gradient(125% 85% at 50% 44%, transparent 42%, rgba(20,28,23,0.38) 100%);
}
.hero--photo .hero__inner { position: relative; z-index: 3; }
.hero--photo .hero__scroll { z-index: 3; color: rgba(244,238,226,0.85); }
.hero--photo .hero__arch { z-index: 2; border-color: rgba(244,238,226,0.5); }
.hero--photo .hero__arch::before { border-color: rgba(244,238,226,0.3); }
.hero--photo .hero__eyebrow { color: #E7D4B3; text-shadow: 0 1px 20px rgba(0,0,0,0.6); }
.hero--photo .hero__names { color: var(--ivory); text-shadow: 0 2px 44px rgba(0,0,0,0.5); }
.hero--photo .hero__amp { color: var(--gold-pale); }
.hero--photo .hero__meta { color: var(--ivory); text-shadow: 0 1px 24px rgba(0,0,0,0.55); }
.hero--photo .hero__dot { color: var(--gold-pale); }
.hero--photo .hero__invite { color: rgba(244,238,226,0.92); text-shadow: 0 1px 26px rgba(0,0,0,0.55); }
.hero--photo .hero__scroll-line { background: linear-gradient(rgba(244,238,226,0.9), transparent); }
.hero--photo .hero__scroll-line::after { background: var(--gold-pale); }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown { text-align: center; padding: clamp(5rem, 12vw, 9rem) 0; }
.countdown .eyebrow { display: block; }
.countdown__grid {
  display: flex; align-items: flex-start; justify-content: center; gap: clamp(0.5rem, 2.5vw, 2rem);
  margin: 1.5rem 0 0;
}
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(60px, 14vw, 120px); }
.countdown__num {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 6rem); line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.countdown__label { font-size: clamp(0.55rem, 1.4vw, 0.72rem); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); margin-top: 0.9rem; }
.countdown__sep { font-family: var(--serif); font-size: clamp(2rem, 6vw, 4rem); color: var(--gold-pale); line-height: 1.2; }

/* ============================================================
   STORY
   ============================================================ */
.story { padding: clamp(4rem, 10vw, 8rem) 0; }
.story__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.story__art { max-width: 440px; justify-self: center; width: 100%; }
.story__text { max-width: 520px; }
.story__text p { margin-top: 1.3rem; color: var(--ink-soft); }
.story__text p:first-of-type { margin-top: 1.8rem; }
.story__text em { font-family: var(--serif); font-style: italic; font-size: 1.15em; color: var(--gold-deep); }
.signoff { margin-top: 2.2rem !important; font-size: 1.5rem; line-height: 1.4; }

/* line art */
.lineart { width: 100%; height: auto; }
.lineart__frame { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.6; }
.lineart__ink { fill: none; stroke: var(--ink-soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.lineart__cap { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; fill: var(--gold-deep); }
.lineart--sm .lineart__ink { stroke: var(--gold-deep); stroke-width: 1.6; }

/* ============================================================
   THE DAY / TIMELINE
   ============================================================ */
.day { padding: clamp(4rem, 11vw, 9rem) 0; position: relative; }
.day__head { text-align: center; max-width: 640px; margin: 0 auto clamp(3rem, 7vw, 5rem); }
.day__sub { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); }

.timeline { list-style: none; position: relative; max-width: 760px; margin: 0 auto; }
/* central drawing line */
.timeline::before {
  content: ""; position: absolute; left: clamp(58px, 12vw, 130px); top: 8px; bottom: 8px; width: 1px;
  background: var(--gold-pale);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.6s var(--ease-soft);
}
.timeline.is-drawn::before { transform: scaleY(1); }

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(58px, 12vw, 130px) 1fr;
  column-gap: clamp(1.4rem, 4vw, 3rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.4rem);
}
.timeline__item--last { padding-bottom: 0; }

.timeline__time {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1;
  text-align: right; color: var(--ink); white-space: nowrap;
}
.timeline__time span { font-family: var(--sans); font-size: 0.42em; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-left: 0.25em; }

.timeline__dot {
  position: absolute; left: clamp(58px, 12vw, 130px); top: 6px; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold);
}
.timeline__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform 0.5s var(--ease) 0.3s; }
.timeline__item.in-view .timeline__dot::after { transform: scale(1); }

.timeline__body { padding-left: clamp(1.2rem, 3vw, 2.2rem); }
.timeline__body h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; }
.timeline__where { font-family: var(--sans); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); margin-top: 0.5rem; }
.timeline__body p:last-child { margin-top: 0.7rem; color: var(--ink-soft); }

/* ============================================================
   TRAVEL / MALTA
   ============================================================ */
.travel { padding: clamp(4rem, 11vw, 9rem) 0; }
.travel__head { text-align: center; margin-bottom: clamp(3rem, 7vw, 5rem); }
.travel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }

.venue {
  text-align: center; padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--paper-line); background: rgba(255,255,255,0.18);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}
.venue:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(30,42,35,0.5); border-color: var(--gold-pale); }
.venue__art { width: clamp(120px, 30%, 160px); margin: 0 auto 1.4rem; }
.venue__photo { margin: 0 0 1.6rem; }
.venue__photo img {
  width: 100%; display: block; aspect-ratio: 3 / 2; object-fit: cover;
  border: 1px solid var(--gold);
  border-radius: 40% 40% 6px 6px / 12% 12% 2% 2%;
  box-shadow: 0 22px 46px -34px rgba(30, 42, 35, 0.5);
}
.venue h3 { font-family: var(--sans); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); }
.venue__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 0.5rem; line-height: 1.05; }
.venue__addr { margin-top: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.venue__time { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-deep); margin-top: 1rem; }
.venue .link-underline { margin-top: 1.4rem; display: inline-block; }

.goodtoknow { margin-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--paper-line); padding-top: clamp(2.5rem, 5vw, 4rem); }
.goodtoknow__title { text-align: center; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 2.5rem; }
.goodtoknow__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); }
.goodtoknow__label { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.7rem; }
.goodtoknow__item p:not(.goodtoknow__label) { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================
   RSVP
   ============================================================ */
.rsvp { position: relative; padding: clamp(4rem, 11vw, 9rem) 0 clamp(5rem, 12vw, 10rem); background: var(--ink); color: var(--ivory); overflow: hidden; }
.rsvp__arch {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(640px, 90vw); height: 120px;
  border: 1px solid rgba(205,176,137,0.4); border-top: none;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.rsvp__inner { position: relative; z-index: 2; max-width: 640px; text-align: center; }
.rsvp .eyebrow { color: var(--gold-pale); }
.section-title.light { color: var(--ivory); }
.rsvp__deadline { margin-top: 1.4rem; color: var(--ivory-3); font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.rsvp__deadline strong { font-weight: 500; color: var(--gold-pale); font-style: normal; }
.rsvp .editable { color: var(--teal); }

.rsvp-form { margin-top: 3rem; text-align: left; }
.field { margin-bottom: 1.8rem; border: none; }
.field__label { display: block; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-pale); margin-bottom: 0.8rem; }
.field__hint { text-transform: none; letter-spacing: 0.04em; color: var(--ink-faint); font-size: 0.78rem; }
.rsvp .field__hint { color: rgba(244,238,226,0.5); }
.field__hint--block { display: block; margin-top: -0.4rem; margin-bottom: 0.9rem; }

input[type="text"], input[type="email"], select, textarea {
  width: 100%; font-family: var(--sans); font-weight: 300; font-size: 1rem; color: var(--ivory);
  background: transparent; border: none; border-bottom: 1px solid rgba(205,176,137,0.35);
  padding: 0.7rem 0.2rem; transition: border-color 0.4s var(--ease);
}
textarea { resize: vertical; border: 1px solid rgba(205,176,137,0.35); padding: 0.8rem; }
input::placeholder, textarea::placeholder { color: rgba(244,238,226,0.35); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-pale); }
select { cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CDB089' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.4rem center; padding-right: 1.6rem;
}
select option { background: var(--ink); color: var(--ivory); }

/* attendance toggle */
.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label {
  text-align: center; padding: 1rem; cursor: pointer; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid rgba(205,176,137,0.35); color: var(--ivory-3); transition: all 0.4s var(--ease);
}
.toggle label:hover { border-color: var(--gold-pale); color: var(--ivory); }
#att-yes:checked ~ label[for="att-yes"],
#att-no:checked ~ label[for="att-no"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* per-guest meal rows */
.guest-meals { display: flex; flex-direction: column; gap: 1rem; }
.guest-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1.2rem; align-items: end; padding: 1rem; border: 1px solid rgba(205,176,137,0.2); background: rgba(255,255,255,0.02); }
.guest-row__num { grid-column: 1 / -1; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-pale); opacity: 0.7; }
.guest-row .field__label { margin-bottom: 0.5rem; }

.rsvp-form__submit { width: 100%; margin-top: 1rem; background: var(--gold); border-color: var(--gold); color: var(--ink); }
.rsvp-form__submit:hover { background: var(--gold-pale); border-color: var(--gold-pale); }
.rsvp-form__error { margin-top: 1rem; color: #E2A4A4; font-size: 0.85rem; text-align: center; }

/* success */
.rsvp-success { text-align: center; margin-top: 2rem; animation: rise 0.8s var(--ease) forwards; }
.rsvp-success__mark { width: 80px; height: 80px; margin: 0 auto 1.5rem; }
.rsvp-success__mark circle { fill: none; stroke: var(--gold-pale); stroke-width: 1; stroke-dasharray: 226; stroke-dashoffset: 226; animation: draw 1s var(--ease) forwards; }
.rsvp-success__mark path { fill: none; stroke: var(--gold-pale); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.6s var(--ease) 0.6s forwards; }
.rsvp-success__title { font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--gold-pale); }
.rsvp-success p { margin-top: 0.8rem; color: var(--ivory-3); font-family: var(--serif); font-style: italic; font-size: 1.3rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { text-align: center; padding: clamp(3.5rem, 8vw, 6rem) var(--pad); }
.footer__sprig { width: 160px; margin: 0 auto 1.8rem; opacity: 0.8; }
.footer__sprig .lineart__ink { stroke: var(--gold); stroke-width: 1.2; }
.footer__names { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 6vw, 3.4rem); }
.footer__date { font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); margin-top: 1rem; }
.footer__tag { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-faint); }

/* ============================================================
   SCROLL REVEALS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.timeline__item.reveal { transition-delay: 0.05s; }

/* ============================================================
   STORY PHOTO (arched frame)
   ============================================================ */
.photo-arch { position: relative; margin: 0; width: 100%; }
.photo-arch img {
  width: 100%; display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid var(--gold);
  border-radius: 46% 46% 8px 8px / 17% 17% 2% 2%;
  box-shadow: 0 36px 70px -42px rgba(30, 42, 35, 0.6);
}
.photo-arch figcaption {
  text-align: center; margin-top: 1.15rem;
  font-family: var(--sans); font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep);
}

/* ============================================================
   INTERLUDE (cinematic photo band)
   ============================================================ */
.interlude {
  position: relative; min-height: 62vh;
  display: grid; place-items: center; text-align: center;
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  background: var(--ink) url("photos/banff-lake.jpg") center / cover no-repeat;
  background-attachment: fixed;
}
.interlude__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(30,42,35,0.60), rgba(30,42,35,0.40) 45%, rgba(30,42,35,0.66));
}
.interlude__quote {
  position: relative; z-index: 1; margin: 0; color: var(--ivory);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.28;
  display: flex; flex-direction: column; align-items: center; gap: 0.16em;
  text-shadow: 0 2px 34px rgba(0,0,0,0.4);
}
.interlude__to {
  font-family: var(--sans); font-style: normal;
  font-size: 0.26em; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--gold-pale); text-indent: 0.5em;
}
@media (max-width: 820px) {
  .interlude { background-attachment: scroll; min-height: 50vh; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__text { max-width: 560px; margin: 0 auto; text-align: center; }
  .story__text .eyebrow::before { display: none; }
  .travel__grid { grid-template-columns: 1fr; }
  .goodtoknow__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav__links { gap: 0.9rem; }
  .nav__links a:not(.nav__cta) { display: none; }
  .countdown__sep { display: none; }
  .countdown__grid { gap: 1.2rem 0.8rem; flex-wrap: wrap; }
  .countdown__unit { min-width: 64px; }
  .goodtoknow__grid { grid-template-columns: 1fr; }
  .guest-row { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 50px 1fr; column-gap: 1rem; }
  .timeline::before, .timeline__dot { left: 50px; }
  .hero__invite br { display: none; }
}
