/* Dulguunmurun & Zolzaya — after Fresco's layout, type scale and motion (measured 2026-11-20/21).
   Palette and type are Fresco's: ivory paper, olive ink, a Didone serif, a script for numbers.
   Mongolian text falls back glyph by glyph to Cormorant Garamond (Antic Didone has no Cyrillic). */

:root {
  --bg: #fbf7ef;
  --ivory: #fcf9f3;
  --cream: #f6eedf;
  --card: #f6f1e6;
  --ink: #585b2f;
  --ink-rgb: 88, 91, 47;
  --olive: #42472a;
  --line: #f4ead4;
  --serif: "Antic Didone", "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --hand: "Reenie Beanie", "Caveat", cursive;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* framer-motion's named easings, which Fresco's motion uses: a tween with a duration and no ease is easeInOut */
  --ease-in-out: cubic-bezier(.42, 0, .58, 1);
  --ease-out: cubic-bezier(0, 0, .58, 1);
  --ease-in: cubic-bezier(.42, 0, 1, 1);
  --rose: #dc7a8c; /* the heartbeat's flush, Fresco's --rose-beat */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --felt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .92 0 0 0 0 .8 0 0 0 .16 -.03'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --overlap: clamp(70px, 9vw, 150px);
  --overlap-b: clamp(120px, 17vw, 300px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked, body.is-locked { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-weight: 400; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
main:focus { outline: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- shared pieces ---------- */
.section-head { text-align: center; max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; position: relative; }
.section-head h2, .gift h2, .story-title {
  font-size: clamp(34px, 2.2vw + 14px, 46px); line-height: 1.05; color: var(--ink);
}
.section-head.light h2 { color: var(--ivory); }
.kicker {
  margin-top: 10px; font-size: clamp(12px, .4vw + 9px, 14px); line-height: 20px;
  letter-spacing: .25em; text-transform: uppercase; color: rgba(var(--ink-rgb), .55);
}
.kicker.solid { color: var(--ink); }
.section-head.light .kicker { color: rgba(251, 247, 239, .7); }
.lede { margin: 14px auto 0; max-width: 300px; font-style: italic; font-size: 16px; line-height: 24px; letter-spacing: .025em; color: rgba(var(--ink-rgb), .6); }
.script { font-family: var(--script); font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: 0 36px; border: 1px solid rgba(var(--ink-rgb), .6);
  background: var(--ivory); color: var(--ink); text-decoration: none;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.2; text-align: center;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-light { background: transparent; color: var(--ivory); border-color: rgba(251, 247, 239, .7); }
.btn-light:hover { background: var(--ivory); color: var(--olive); border-color: var(--ivory); }

.olive {
  background-color: var(--olive);
  background-image: var(--felt);
  color: var(--ivory);
}

/* Scroll reveals, as Fresco's framer-motion whileInView (once): fade in and rise --y over --t after --d, with
   --e (easeInOut unless said). Each element carries its own numbers in a style attribute; .fade only fades,
   .pop scales up from nothing. js/app.js adds .in when any of it enters the viewport (data-margin shrinks that). */
.reveal {
  --y: 20px; --t: .6s; --d: 0s; --e: var(--ease-in-out);
  opacity: 0; transform: translateY(var(--y));
  transition: opacity var(--t) var(--e) var(--d), transform var(--t) var(--e) var(--d);
}
.reveal.fade { transform: none; }
.reveal.pop { transform: scale(0); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- language pill ---------- */
.lang {
  position: fixed; top: 16px; right: 16px; z-index: 90; display: flex; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(251, 247, 239, .9); border: 1px solid rgba(var(--ink-rgb), .12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lang button {
  border: 0; background: transparent; border-radius: 999px; padding: 4px 12px; min-width: 40px; min-height: 24px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--ink-rgb), .6);
  transition: background-color .3s, color .3s;
}
.lang button:hover { color: var(--ink); background: rgba(var(--ink-rgb), .08); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }

/* ---------- music button ----------
   Fresco's: a 48 px round button 24 px from the bottom right, on a frosted cream (its --secondary at 90 %),
   growing in from .8 a second and a half after the music starts; it grows 10 % on hover. Under the envelope
   (z-index 40 to its 80), so it shows as the envelope fades. */
.music {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink); cursor: pointer;
  background: hsl(40 50% 92% / .9); border: 1px solid hsl(40 45% 89% / .3);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  transition: background-color .3s, scale .3s;
  animation: music-in .5s var(--ease-in-out) 1.5s backwards;
}
.music[hidden] { display: none; }
.music:hover { background: hsl(40 50% 92%); scale: 1.1; }
.music:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.music svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.music .i-on, .music.on .i-off { display: none; }
.music.on .i-on { display: block; }
@keyframes music-in { from { opacity: 0; scale: .8; } }

/* ---------- envelope ----------
   The opening is the licensed 8.04 s envelope film (assets/video/envelope.mp4), full screen, covering the
   viewport as on Fresco: a click plays it (the ribbon unties, the flap opens onto the card). At 6.84 s the hero's
   text shows, the page unlocks and the envelope fades out over 1.5 s (js/app.js). */
.envelope { position: fixed; inset: 0; z-index: 80; overflow: hidden; cursor: pointer; outline: none; background: #ece8e0; }
.env-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.env-hint {
  position: absolute; left: 50%; bottom: 34px; translate: -50% 0; z-index: 3; white-space: nowrap;
  padding: 8px 18px; border-radius: 999px; background: rgba(251, 247, 239, .9); box-shadow: 0 2px 10px rgba(60, 42, 18, .15);
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
  animation: hint 2.4s ease-in-out infinite; transition: opacity .4s;
}
@keyframes hint { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.envelope.play { cursor: default; }
.envelope.play .env-hint { opacity: 0; animation: none; }
.envelope.fade { opacity: 0; transition: opacity 1.5s var(--ease-in-out); pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.hero-scene { position: absolute; inset: 0; overflow: hidden; container-type: size; }
/* The living painting. The stage is the painting's 1600 x 1000 frame, sized to cover the hero (as object-fit:
   cover, at 50% 60%); each layer is placed in those units and turns about its pivot (--ox, --oy). Fresco's hero is
   a 3.04 s film played at half speed, so every loop here is 6.08 s. */
.hero-stage { position: absolute; left: 50%; top: 60%; width: max(100cqw, 160cqh); aspect-ratio: 1.6; translate: -50% -60%; }
.hl {
  --lx: 0; --ly: 0; --lw: 1600; --lh: 1000; --ox: 800; --oy: 500;
  position: absolute; max-width: none;
  left: calc(var(--lx) / 16 * 1%); top: calc(var(--ly) / 10 * 1%); width: calc(var(--lw) / 16 * 1%); height: calc(var(--lh) / 10 * 1%);
  transform-origin: calc((var(--ox) - var(--lx)) / var(--lw) * 100%) calc((var(--oy) - var(--ly)) / var(--lh) * 100%);
}
.hl.sway { animation: sway 6.08s var(--ease-in-out) var(--sd, 0s) infinite; will-change: transform; }
.hl.drift { transform-origin: 50% 50%; animation: drift 6.08s var(--ease-in-out) infinite; will-change: transform; }
.hl.bob { animation: bob 3.04s var(--ease-in-out) -.7s infinite; will-change: transform; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(var(--a)); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(5px, -2px) scale(1.012); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(3px) rotate(.7deg); } }
.gull {
  position: absolute; left: calc(var(--gx) / 16 * 1%); top: calc(var(--gy) / 10 * 1%); width: calc(var(--gs) / 16 * 1%); height: auto; overflow: visible;
  fill: none; stroke: #5f6d7c; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  animation: glide 6.08s var(--ease-in-out) var(--gd) infinite;
}
.gull path { transform-box: fill-box; transform-origin: 50% 70%; animation: flap-wings .76s var(--ease-in-out) var(--gd) infinite; }
@keyframes glide { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(26px, -9px); } }
@keyframes flap-wings { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.4); } }
.hero-paper { position: absolute; top: -2%; bottom: -2%; left: 50%; width: min(47vw, 720px); transform: translateX(-50%); background: url("../assets/art/paper.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 0 1px rgba(70, 55, 30, .3)) drop-shadow(0 10px 30px rgba(60, 45, 20, .2)); }
.hero-content {
  position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 140px; opacity: 0; transition: opacity 1.8s ease-out;
}
.hero.in .hero-content { opacity: 1; }
.hero-names { display: flex; flex-direction: column; align-items: center; font-size: clamp(34px, 1vw + 26px, 40px); line-height: 1.1; margin-bottom: 20px; }
.hero-names .amp { font-style: italic; font-size: .5em; line-height: 1.4; margin: 2px 0; }
.hero-invite { font-size: clamp(10px, .3vw + 8px, 12px); letter-spacing: .2em; text-transform: uppercase; line-height: 1.6; max-width: 300px; }
.hero-date { position: relative; display: flex; flex-direction: column; align-items: center; margin: 24px 0 12px; }
.hd-month, .hd-year { font-size: clamp(10px, .3vw + 8px, 12px); letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; opacity: .85; }
.hd-day { font-size: clamp(34px, 1vw + 26px, 40px); line-height: 1.1; margin-top: 4px; }
.hd-weekday { font-size: clamp(9px, .2vw + 8px, 10px); letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; opacity: .8; line-height: 28px; }
.hero-sprig { position: absolute; top: 50%; width: clamp(42px, 4vw, 60px); pointer-events: none; }
.hero-sprig img { width: 100%; height: auto; }
.hero-sprig.left { right: calc(100% + 18px); transform: translateY(-50%) rotate(-100deg); }
.hero-sprig.right { left: calc(100% + 18px); transform: translateY(-50%) scaleX(-1) rotate(-100deg); }
.hero-held { margin-top: 12px; font-size: clamp(10px, .3vw + 8px, 12px); letter-spacing: .25em; text-transform: uppercase; }
.hero-place { margin-top: 8px; font-size: clamp(20px, .5vw + 17px, 25px); line-height: 1.44; }
.scroll-down {
  position: absolute; left: 50%; bottom: 40px; z-index: 3; translate: -50% 0; border: 0; background: none; padding: 0;
  opacity: 0; transition: opacity 1.5s var(--ease-out) 1s;
}
.hero.in .scroll-down { opacity: 1; }
.scroll-down span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(251, 247, 239, .85); border: 1px solid rgba(var(--ink-rgb), .1); color: rgba(var(--ink-rgb), .8);
  transition: color .3s, background-color .3s;
}
.scroll-down svg { animation: nudge 1.5s var(--ease-in-out) infinite; }
.scroll-down:hover span { color: var(--ink); background: var(--ivory); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- countdown ---------- */
.countdown { position: relative; padding: 100px 0 24px; overflow: hidden; }
.cd-until { margin-top: 6px; font-size: clamp(15px, .3vw + 12px, 17px); }
.cd-frame { position: relative; width: min(478px, 86vw); aspect-ratio: 1038 / 1515; margin: 34px auto 0; }
.cd-art, .cd-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cd-days, .cd-rest > div { display: flex; flex-direction: column; align-items: center; }
.cd-days { position: absolute; left: 0; right: 0; top: 15.2%; }
.cd-days .script { font-size: clamp(88px, 6vw + 40px, 128px); line-height: 1; }
.cd-rest { position: absolute; left: 0; right: 0; top: 40.2%; display: flex; flex-direction: column; gap: clamp(10px, 1.6vw, 22px); }
.cd-rest .script { font-size: clamp(42px, 1.6vw + 30px, 56px); line-height: 1; }
.cd-label { font-size: clamp(16px, .3vw + 14px, 20px); line-height: 28px; }
.cd-rest .cd-label { font-size: clamp(15px, .3vw + 13px, 18px); }
.cd-today { position: absolute; left: 12%; right: 12%; top: 42%; text-align: center; font-family: var(--script); font-size: 48px; line-height: 1.1; }

/* ---------- our story ---------- */
.story { position: relative; isolation: isolate; padding: clamp(80px, 7.7vw, 116px) 0 140px; text-align: center; --lift: clamp(93px, 14.2vw, 215px); }
.clouds { position: absolute; left: 2.5%; right: 2.5%; top: 32px; z-index: -1; pointer-events: none; }
/* Fresco's cloud loop: x 0,18,-12,0 px, y 0,-6,4,0 px, scale 1,1.015,1.005,1 over 24 s, easeInOut each leg */
.clouds img { width: 100%; height: auto; animation: cloud-loop 24s var(--ease-in-out) infinite; will-change: transform; }
@keyframes cloud-loop {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33.333% { transform: translate(18px, -6px) scale(1.015); }
  66.667% { transform: translate(-12px, 4px) scale(1.005); }
}
.story-title { position: relative; top: clamp(35px, 6.2vw, 94px); margin-bottom: clamp(66px, 5.2vw, 79px); line-height: 1; }
.story-text { position: relative; top: var(--lift); max-width: 42rem; margin: 0 auto; padding: 0 24px; display: grid; gap: clamp(36px, 2.8vw, 42px); }
.story-text p { font-size: clamp(15px, 1.1vw + 9px, 25px); line-height: 1.375; max-width: 436px; margin: 0 auto; }
.signature { margin-top: calc(var(--lift) + 40px); font-family: var(--hand); font-size: 27px; line-height: 1; word-spacing: .4em; }

/* ---------- garden painting into the olive ---------- */
.bridge { position: relative; z-index: 2; margin-bottom: calc(-1 * var(--overlap)); pointer-events: none; }
.bridge img { width: 100%; height: auto; }

/* ---------- celebration ---------- */
.celebration { position: relative; padding: calc(var(--overlap) + 70px) 24px calc(var(--overlap-b) + 120px); text-align: center; }
.frame { position: absolute; left: clamp(14px, 7vw, 110px); right: clamp(14px, 7vw, 110px); top: calc(var(--overlap) - 30px); bottom: calc(var(--overlap-b) + 30px); pointer-events: none; --vw: 84px; --fh: calc(var(--vw) * 90 / 84); }
/* the sides: a double rule with leafy sprigs (vine.webp tiles 64x200 at 1x); the bottom: corner curls into a double rule and the centre ornament */
.frame-side { position: absolute; top: 0; bottom: var(--fh); width: var(--vw); background: url("../assets/art/vine.webp") repeat-y center top / var(--vw) calc(var(--vw) * 200 / 64); }
.frame-side.l { left: 0; }
.frame-side.r { right: 0; transform: scaleX(-1); }
.frame::before, .frame::after {
  content: ""; position: absolute; bottom: calc(var(--fh) - var(--vw) * 52 / 84); width: var(--vw); height: calc(var(--vw) * 52 / 84); background: var(--line);
  filter: drop-shadow(1px 1.5px 1px rgba(20, 22, 8, .55));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 52'%3E%3Cpath d='M38 0V14Q38 50 70 50H84M46 0V14Q46 44 72 44H84' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 52'%3E%3Cpath d='M38 0V14Q38 50 70 50H84M46 0V14Q46 44 72 44H84' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.frame::before { left: 0; }
.frame::after { right: 0; transform: scaleX(-1); }
.frame-bottom {
  position: absolute; left: var(--vw); right: var(--vw); bottom: 0; height: var(--fh); overflow: hidden; filter: drop-shadow(1px 1.5px 1px rgba(20, 22, 8, .55));
  background: linear-gradient(var(--line), var(--line)) 0 calc(var(--vw) * 43 / 84) / 100% 2px no-repeat, linear-gradient(var(--line), var(--line)) 0 calc(var(--vw) * 49 / 84) / 100% 2px no-repeat;
}
.frame-bottom img { position: absolute; left: 50%; top: 0; width: calc(var(--fh) * 880 / 90); max-width: none; height: var(--fh); translate: -50% 0; }
.celebration .venue { max-width: 30rem; margin: clamp(80px, 12vw, 150px) auto 0; position: relative; }
.venue h3 { font-size: clamp(38px, 1.2vw + 30px, 48px); line-height: 1.25; }
.venue-sub { margin-top: 8px; font-size: clamp(13px, .6vw + 9px, 20px); letter-spacing: 5px; text-transform: uppercase; color: rgba(251, 247, 239, .8); }
.venue-text { margin: 28px auto 0; max-width: 400px; font-size: clamp(17px, .8vw + 11px, 25px); line-height: 1.375; color: rgba(251, 247, 239, .72); }
.venue-date { margin-top: 44px; font-style: italic; font-size: 16px; letter-spacing: .025em; color: rgba(251, 247, 239, .72); }
.venue-time { margin-top: 2px; font-size: 26px; }
.venue-address { margin-top: 10px; font-size: 13px; letter-spacing: .04em; color: rgba(251, 247, 239, .6); }
.btn-row { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- panorama ---------- */
.panorama { position: relative; z-index: 1; margin-top: calc(-1 * var(--overlap-b)); pointer-events: none; }
.panorama img { width: 100%; height: auto; }

/* ---------- the day ---------- */
.program { position: relative; padding: 72px 24px 48px; }
.program .section-head { max-width: 340px; padding: 0; }
.days { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 40px auto 0; }
.days button {
  position: relative; width: 36px; height: 44px; border: 0; background: none; padding: 0;
  font-size: 20px; line-height: 32px; color: rgba(var(--ink-rgb), .7); transition: color .3s; isolation: isolate;
}
.days button:disabled { cursor: default; color: rgba(var(--ink-rgb), .45); }
.days button.has-event:not([aria-pressed="true"])::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.days button:not(:disabled):hover { color: var(--ink); }
.days button[aria-pressed="true"] { width: 54px; color: #fcf9f3; }
/* hearts beat (scale 1.35 and flush rose, 750 ms) as they cross the middle of the screen: js/app.js */
.heart-beat { display: block; color: var(--ink); transform-origin: center; }
.heart-beat svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.day-heart { position: absolute; left: 50%; top: 50%; width: 50px; height: 46px; translate: -50% -48%; z-index: -1; }
.days button span:not(.heart-beat) { position: relative; z-index: 1; }
.timeline { list-style: none; margin: 32px auto 0; padding: 0; max-width: 340px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1px; background: rgba(var(--ink-rgb), .3); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 90px; }
.tl-heart { position: absolute; left: 50%; top: 18px; width: 12px; height: 12px; margin-left: -6px; }
.tl-heart .heart-beat { width: 100%; height: 100%; }
.tl-text { padding: 12px 22px 12px 0; text-align: right; }
.tl-time { display: block; font-size: 12px; line-height: 16px; letter-spacing: .2em; color: rgba(var(--ink-rgb), .55); }
.tl-title { display: block; margin-top: 4px; font-size: 16px; line-height: 24px; }
.tl-icon { display: grid; place-items: center; padding: 0 0 0 22px; }
.tl-icon > div { width: 96px; }
.tl-item:nth-child(even) .tl-text { order: 2; text-align: left; padding: 12px 0 12px 22px; }
.tl-item:nth-child(even) .tl-icon { order: 1; padding: 0 22px 0 0; }

/* ---------- band ---------- */
.band-wrap { position: relative; width: min(760px, calc(100% - 48px)); margin: 24px auto 0; aspect-ratio: 760 / 275; }
.band-art, .band-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.leaf-breathe { animation: leaf-breathe 11s cubic-bezier(.45, 0, .55, 1) infinite; will-change: opacity; }
@keyframes leaf-breathe { 0%, 40% { opacity: 1; filter: blur(0); } 52%, 62% { opacity: 0; filter: blur(1.6px); } 74%, 100% { opacity: 1; filter: blur(0); } }

/* ---------- dress code ---------- */
.dress { padding: 112px 24px 120px; text-align: center; }
.dress-art { width: min(440px, 90vw); margin: 24px auto 0; }
.dress-art img { width: 100%; height: auto; }
.dress-text { margin: 24px auto 0; max-width: 280px; font-size: 16px; line-height: 26px; }

/* ---------- welcome dinner ---------- */
.welcome { padding: 0 24px 40px; }
.welcome-card { position: relative; width: min(470px, 100%); margin: 0 auto; }
.garland { position: relative; z-index: 2; width: 112%; margin-left: -6%; }
.garland.top { margin-bottom: -58px; }
.garland.bottom { margin-top: -58px; }
.garland img { width: 100%; height: auto; }
.welcome-body {
  position: relative; overflow: hidden; text-align: center; padding: 176px 96px 150px;
  background: url("../assets/art/welcome-olive.webp") center / 100% 100% no-repeat, var(--olive);
  --notch: 30px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
}
.welcome-body > *:not(.petals) { position: relative; }
.wd-date { font-size: clamp(15px, .5vw + 12px, 20px); letter-spacing: 5px; text-transform: uppercase; color: rgba(251, 247, 239, .8); }
.wd-title { margin-top: 10px; font-size: clamp(36px, 1vw + 30px, 46px); line-height: 1; }
.wd-venue { margin-top: 24px; font-size: clamp(38px, 1.2vw + 30px, 48px); line-height: 1; }
.wd-sub { margin-top: 10px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: rgba(251, 247, 239, .8); }
.wd-text { margin-top: 20px; font-size: clamp(19px, .6vw + 15px, 25px); line-height: 1.25; color: rgba(251, 247, 239, .7); }
.wd-when { margin: 18px 0 22px; font-style: italic; font-size: 16px; color: rgba(251, 247, 239, .8); }
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* Fresco's seven petals: each falls (linear) and sways (ease-in-out) on its own clock, set in js/app.js */
.petal-fall { position: absolute; top: 0; animation: petal-fall linear infinite backwards; will-change: top, opacity; }
.petal-sway { display: block; max-width: none; height: auto; animation: petal-sway ease-in-out infinite; will-change: transform; }
@keyframes petal-fall { 0% { top: -8%; opacity: 0; } 10% { opacity: .95; } 78% { opacity: .95; } 100% { top: 100%; opacity: 0; } }
@keyframes petal-sway { 0%, 100% { transform: translate(-14px) rotate(-16deg); } 50% { transform: translate(14px) rotate(18deg); } }

/* ---------- where to stay ---------- */
.stay { padding: 48px 24px 56px; overflow: hidden; }
.stay .section-head { max-width: 42rem; }
.stay-petal { position: absolute; left: 4%; top: -12px; width: 64px; transform: rotate(-20deg); }
.stay-petal img { width: 100%; height: auto; }
.stay .lede { max-width: 420px; }
.hotel { position: relative; max-width: 42rem; margin: 48px auto 0; padding: 48px clamp(20px, 5vw, 30px) 42px; border: 1px solid rgba(var(--ink-rgb), .35); background: var(--card); text-align: center; }
.hotel .badge { position: absolute; left: 50%; top: 0; translate: -50% -50%; white-space: nowrap; padding: 8px 14px; border: 1px solid rgba(var(--ink-rgb), .45); background: var(--bg); font-size: 11px; line-height: 20px; letter-spacing: .26em; text-transform: uppercase; }
.hotel-name { font-size: clamp(18px, .7vw + 13px, 23px); line-height: 1.375; letter-spacing: .16em; text-transform: uppercase; max-width: 22ch; margin: 0 auto; }
.hotel-name.small { font-size: 18px; max-width: none; }
.hotel-script { margin-top: 22px; font-family: var(--script); font-size: clamp(48px, 2vw + 36px, 64px); line-height: 1.1; }
.hotel-line { margin-top: 10px; font-size: 14px; letter-spacing: .06em; color: rgba(var(--ink-rgb), .85); }
.hotel hr { width: 46px; margin: 22px auto; border: 0; border-top: 1px solid rgba(var(--ink-rgb), .4); }
.hotel-text { font-size: 14px; line-height: 20px; color: rgba(var(--ink-rgb), .85); max-width: 460px; margin: 14px auto 0; }
.hotel-rows { margin: 22px 0 28px; text-align: left; }
.hotel-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(var(--ink-rgb), .2); }
.hotel-rows dt { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(var(--ink-rgb), .55); }
.hotel-rows dd { margin: 0; font-size: 13px; line-height: 1.4; text-align: right; color: rgba(var(--ink-rgb), .85); }
.corner { position: absolute; width: 150px; pointer-events: none; }
.corner img { width: 100%; height: auto; }
.corner.tl { left: -64px; top: -60px; }
.corner.br { right: -64px; bottom: -60px; transform: rotate(180deg); }
.hotel-grid { list-style: none; max-width: 42rem; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hotel-card { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px 22px; border: 1px solid rgba(var(--ink-rgb), .3); background: var(--card); text-align: center; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.hotel-card:hover { border-color: rgba(var(--ink-rgb), .6); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60, 60, 30, .08); }
.hotel-card h3 { font-size: 15px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.hotel-card p { font-size: 13px; line-height: 1.45; color: rgba(var(--ink-rgb), .75); flex: 1; }
.hotel-card a { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(var(--ink-rgb), .4); padding: 6px 0 4px; transition: border-color .3s; }
.hotel-card a:hover { border-color: var(--ink); }
.hotel.flight { margin-top: 56px; padding-top: 44px; }

/* ---------- faq ---------- */
.faq { padding: 72px 24px 40px; }
.faq-list { max-width: 42rem; margin: 40px auto 0; border-top: 1px solid rgba(var(--ink-rgb), .25); }
.faq-item { border-bottom: 1px solid rgba(var(--ink-rgb), .25); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px; border: 0; background: none; text-align: left; font-size: 17px; line-height: 1.35; transition: color .3s; }
.faq-q:hover { color: rgba(var(--ink-rgb), .75); }
.faq-q .plus { position: relative; flex: none; width: 14px; height: 14px; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.2px; background: currentColor; transition: transform .4s var(--ease); }
.faq-q .plus::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .plus::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 4px 22px; font-size: 15px; line-height: 1.6; color: rgba(var(--ink-rgb), .78); max-width: 36rem; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- gift ---------- */
.gift { padding: 52px 16px 24px; text-align: center; overflow: hidden; }
.gift h2 { font-size: clamp(34px, 2.2vw + 14px, 46px); }
.gift .lede { color: rgba(var(--ink-rgb), .8); }
.wreath { position: relative; width: min(400px, 88vw); aspect-ratio: 1; margin: 20px auto 0; }
.wreath-art { position: absolute; inset: 0; }
/* the wreath is an animated WebP (6.2 s loop), so nothing moves it here */
.wl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wreath-text { position: absolute; inset: 27% 30%; display: grid; place-items: center; font-size: 14px; line-height: 1.55; color: rgba(var(--ink-rgb), .68); }

/* ---------- footer ---------- */
.footer { padding: 40px 0 80px; text-align: center; }
.footer-art { position: relative; width: min(560px, 100vw); margin: 0 auto; }
.footer-scene img { width: 100%; height: auto; }
.footer-names { position: absolute; left: 16%; right: 16%; top: 35%; }
.fn { font-size: clamp(32px, 2vw + 20px, 43px); line-height: 1; }
.fn-amp { font-style: italic; font-size: 21px; line-height: 1.4; color: rgba(var(--ink-rgb), .5); }
.fn-date { margin-top: 18px; font-size: 16px; line-height: 28px; letter-spacing: .025em; color: rgba(var(--ink-rgb), .7); }
.made { margin-top: 32px; font-size: 14px; color: rgba(var(--ink-rgb), .4); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .hero-paper { width: 84vw; }
  .hero-content { padding: 110px 24px 140px; }
  .hero-sprig { width: 38px; }
  .hero-sprig.left { right: calc(100% + 10px); }
  .hero-sprig.right { left: calc(100% + 10px); }
  .story { padding-bottom: 110px; }
  .clouds { left: -30%; right: -30%; }
  .celebration { padding-left: 40px; padding-right: 40px; }
  .frame { left: 6px; right: 6px; --vw: 58px; }
  .welcome-body { padding: 150px 60px 130px; }
  .corner { width: 110px; }
  .corner.tl { left: -36px; top: -50px; }
  .corner.br { right: -36px; bottom: -50px; }
  .hotel-rows > div { flex-direction: column; gap: 4px; }
  .hotel-rows dd { text-align: left; }
  .tl-title { font-size: 15px; }
  .tl-icon > div { width: 70px; }
  .footer-names { top: 28%; }
  .fn { font-size: clamp(26px, 7vw, 34px); }
  .fn-amp { font-size: 16px; }
  .fn-date { margin-top: 8px; font-size: 14px; line-height: 20px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .petals { display: none; } /* Fresco hides its petals too */
  .envelope.fade { transition: opacity .3s !important; }
}
