/* =========================================================
   Jamie & Chelsea — Tuscany 2027
   Palette drawn from the pre-wedding photos: cream paper,
   apricot sky, olive meadow, terracotta roofs.
   ========================================================= */
:root {
  color-scheme: light;

  /* v3 palette (03 Colour palette): Cocoa, Wine, Rose, Blush, Olive, Pistachio, Butter, Paper, Pool.
     Cocoa replaces black; Paper is the ground; washes (Blush/Pistachio/Butter/Pool) are never used for text. */
  --c-cocoa: #4A3028; --c-wine: #7E2A42; --c-rose: #CF7F8B; --c-blush: #E6AEAE; --c-olive: #616B2A;
  --c-pistachio: #C2C47A; --c-butter: #F6E6A8; --c-paper: #FAF6EE; --c-pool: #BFD8D3;
  --paper: var(--c-paper);
  --paper-2: #F5EEDD;          /* paper with a breath of butter */
  --card: #FFFCF6;             /* lightest paper, for cards on paper */
  --ink: var(--c-cocoa);
  --ink-soft: #6B524A;         /* cocoa, thinned with paper (still 6:1 on paper) */
  --accent: var(--c-wine);
  --accent-deep: #66223A;
  --olive: var(--c-olive);
  --olive-soft: var(--c-pistachio);
  --blush: var(--c-blush);
  --rose: #F7E4E2;             /* blush wash for section grounds */
  --sage: var(--c-olive);
  --sage-light: #EEEED6;       /* pistachio wash */
  --moss: var(--c-wine);       /* the "dark" sections are now wine */
  --hero-sky: linear-gradient(180deg, #FAF6EE 0%, #F8F0DC 55%, #F6E6A8 140%);
  --line: rgba(74,48,40, .16);
  --shadow: 0 1px 2px rgba(74,48,40,.06), 0 12px 32px -12px rgba(74,48,40,.24);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --serif: var(--display);
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --type: "Courier Prime", "Courier New", monospace;
  --script: "Mrs Saint Delafield", "Snell Roundhand", cursive;

  --gutter: clamp(16px, 5vw, 48px);
  --maxw: 1160px;
  --section-y: clamp(80px, 12vw, 160px);
  --nav-h: 60px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 700ms;

  --z-nav: 40;
  --z-intro: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 350; line-height: 1.1; margin: 0; text-wrap: balance; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
h1 em, h2 em, h3 em, h4 em { font-style: italic; font-weight: 300; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.icon { width: 1.5em; height: 1.5em; fill: currentColor; flex: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.eyebrow {
  font: 500 .75rem/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .9rem;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 300; }
.lede { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.5; color: var(--ink-soft); margin-top: 1.1rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid var(--ink);
  font: 500 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; transition: background var(--dur-1), color var(--dur-1), transform var(--dur-1);
}
.btn .icon { width: 1.35em; height: 1.35em; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #FAF6EE; }
.btn:active { transform: scale(.97); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   1. ENVELOPE INTRO
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 50% 0%, #F9F5ED 0%, transparent 60%),
    radial-gradient(90% 70% at 50% 110%, #DFD7CF 0%, transparent 70%),
    var(--paper-2);
  transition: opacity 900ms var(--ease-in-out), visibility 0s linear 900ms;
  overflow: hidden;
}
.intro::before { /* paper grain */
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .3  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.intro[hidden] { display: none; }
.intro-inner { display: grid; justify-items: center; gap: 28px; padding-top: 8vh; perspective: 1600px; }

.envelope {
  --w: min(86vw, 540px);
  position: relative; width: var(--w); aspect-ratio: 1.5;
  perspective: 1400px;
  transition: transform 1100ms var(--ease-in-out);
  filter: drop-shadow(0 24px 30px rgba(78,53,45, .22));
}
.env-back, .env-front, .env-flap { position: absolute; inset: 0; border-radius: 6px; }
.env-back { background: #CBC1B9; z-index: 0; }
.env-front {
  z-index: 3;
  background: linear-gradient(180deg, #E1DAD2, #D6CDC5);
  clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
}
.env-front::after { /* soft fold shading */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, rgba(74,48,40,.05), transparent 50%), linear-gradient(to top left, rgba(74,48,40,.05), transparent 50%);
}
.env-address {
  position: absolute; left: 0; right: 0; bottom: 7%;
  display: grid; justify-items: center; gap: 2px; text-align: center;
}
.env-address .eyebrow { margin: 0; font-size: .68rem; color: #77635B; }
.env-to { font-family: var(--script); font-size: clamp(1.4rem, 5.4vw, 2.1rem); line-height: 1.2; color: var(--ink); padding-inline: 12%; }

.env-flap {
  z-index: 4;
  background: linear-gradient(180deg, #DAD2CA 0%, #CDC4BC 100%);
  clip-path: polygon(0 0, 100% 0, 50% 52%);
  transform-origin: 50% 0;
  transition: transform 900ms var(--ease-in-out);
  backface-visibility: visible;
}
.env-flap.is-behind { z-index: 1; }

.env-letter {
  position: absolute; z-index: 2; left: 5%; right: 5%; top: 5%; height: 90%;
  background: var(--card);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(74,48,40,.12);
  display: grid; align-content: center; justify-items: center; text-align: center;
  padding: 6% 8%;
  transition: transform 1200ms var(--ease-in-out);
}
.env-letter::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: 2px; pointer-events: none; }
.env-letter .eyebrow { font-size: .6rem; margin-bottom: .4rem; }
.letter-names { font-family: var(--script); font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1.1; margin: 0; }
.letter-names span { color: var(--accent); }
.letter-rule { width: 40px; height: 1px; background: var(--accent); margin: .7rem 0; }
.letter-date { font: 500 .72rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 .2rem; }
.letter-place { font: italic 400 1rem/1.3 var(--serif); color: var(--ink-soft); margin: 0; }

.seal {
  position: absolute; z-index: 5; left: 50%; top: 50%;
  width: clamp(68px, 17vw, 88px); aspect-ratio: 1; padding: 0; border: 0;
  transform: translate(-50%, -50%);
  border-radius: 47% 53% 49% 51% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 35% 30%, #C57984 0%, #975E62 55%, #624B43 100%);
  box-shadow: inset 0 -3px 6px rgba(74,48,40,.25), inset 0 3px 5px rgba(243,221,216,.35), 0 4px 10px rgba(74,48,40,.35);
  display: grid; place-items: center;
  transition: transform 500ms var(--ease-out), opacity 400ms;
}
.seal::before { /* pulse invite */
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(151,94,98,.5);
  animation: pulse 2.4s var(--ease-out) infinite;
}
.seal-ring { position: absolute; inset: 14%; border-radius: 50%; border: 1.5px solid rgba(236,230,222,.45); box-shadow: inset 0 1px 2px rgba(74,48,40,.25); }
.seal-mono { position: relative; font-family: var(--script); font-size: clamp(1.4rem, 4.6vw, 1.9rem); color: #ECE6DE; text-shadow: 0 -1px 0 rgba(74,48,40,.3); line-height: 1; }
.seal-mono i { font-style: normal; font-size: .7em; }
.seal:hover { transform: translate(-50%, -50%) scale(1.06); }
.seal:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 50%; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

.intro-hint { font: 500 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin: 0; transition: opacity 300ms; }
.intro-skip {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px;
  min-height: 44px; padding: 10px 16px; border: 0; background: transparent;
  font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.intro-skip:hover { color: var(--ink); }

/* opening sequence */
.intro.is-opening .seal { transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; }
.intro.is-opening .seal::before { animation: none; opacity: 0; }
.intro.is-opening .intro-hint { opacity: 0; }
.intro.is-opening .env-flap { transform: rotateX(180deg); }
.intro.letter-out .env-letter { transform: translateY(-58%); }
.intro.letter-out .envelope { transform: translateY(14%); }
.intro.is-revealed { opacity: 0; visibility: hidden; }
.intro.is-revealed .envelope { transform: translateY(14%) scale(1.15); }

/* as the card rises, the envelope drops away in the same motion, so the card clears the pocket */
.intro.card-free .env-back,
.intro.card-free .env-front { transform: translateY(62%); transition: transform 1200ms var(--ease-in-out); }
.intro.card-free .env-flap { transform: translateY(62%) rotateX(180deg); transition: transform 1200ms var(--ease-in-out); }

/* flip: the card turns edge-on, then its back (the page) turns into view and grows */
.intro.is-flipping .env-letter {
  transform: translateY(-58%) rotateY(90deg);
  transition: transform 460ms cubic-bezier(.55, 0, .85, .35);
}
.intro.is-flipping .intro-skip { opacity: 0; pointer-events: none; transition: opacity 200ms; }
.env-reverse {
  display: none; position: fixed; z-index: 2; overflow: hidden; isolation: isolate;
  background: var(--hero-sky);
  border-radius: 4px;
  box-shadow: 0 18px 36px -10px rgba(78,53,45, .35);
  transform: perspective(1400px) rotateY(-90deg);
}
.env-reverse.is-shown { display: block; }
.env-reverse.turn-in {
  transform: perspective(1400px) rotateY(0deg);
  transition: transform 520ms cubic-bezier(.15, .65, .3, 1);
}
.env-reverse.is-expanding {
  box-shadow: none;
  transition: left 950ms var(--ease-in-out), top 950ms var(--ease-in-out), width 950ms var(--ease-in-out), height 950ms var(--ease-in-out), border-radius 950ms var(--ease-in-out), box-shadow 400ms;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: var(--gutter);
  background: rgba(244,239,231, .88);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform var(--dur-2) var(--ease-out);
}
.nav.is-visible, .nav:focus-within { transform: none; }
.nav-mono { font-family: var(--script); font-size: 1.7rem; text-decoration: none; color: var(--ink); line-height: 1; padding: 8px 0; }
.nav-mono i { font-style: normal; color: var(--accent); font-size: .8em; }
.nav-links { list-style: none; display: flex; gap: clamp(12px, 2.2vw, 30px); margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; position: relative;
}
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform var(--dur-2) var(--ease-out); }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { transform: none; }
.nav-toggle { display: none; min-height: 44px; padding: 8px 4px; border: 0; background: none; font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav nav { position: absolute; top: var(--nav-h); left: 0; right: 0; }
  .nav-links {
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { width: 100%; min-height: 52px; font-size: .82rem; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a::after { display: none; }
}

/* =========================================================
   2. HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; overflow: hidden;
  background: var(--hero-sky);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%;
  transform: scale(1.08); transition: transform 2600ms var(--ease-out);
}
.hero.is-in .hero-media img { transform: scale(1); }
.hero-content {
  align-self: start; text-align: center; position: relative;
  padding: clamp(64px, 10vh, 130px) var(--gutter) 0;
}
.hero-title {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(4rem, 11.5vw, 10rem); line-height: .92; letter-spacing: -.01em;
  color: var(--ink); margin: .2rem 0 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .22em;
}
.hero-title:focus { outline: none; }
.hero-amp { font-family: var(--script); font-style: normal; font-size: .72em; color: var(--accent); }
.hero-eyebrow { color: var(--ink); opacity: .85; }
.hero-meta { font: 500 .82rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.hero-content > * { opacity: 0; transform: translateY(18px); transition: opacity 1200ms var(--ease-out), transform 1200ms var(--ease-out); }
.hero.is-in .hero-content > * { opacity: 1; transform: none; }

.scroll-cue {
  justify-self: center; margin-bottom: 28px;
  display: grid; justify-items: center; gap: 10px; padding: 8px 12px;
  font: 500 .68rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: #F9F4EC; text-decoration: none; text-shadow: 0 1px 8px rgba(74,48,40,.35);
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(#F9F4EC, transparent); animation: drip 2.2s var(--ease-in-out) infinite; transform-origin: top; }
.scroll-cue:hover { color: #FAF6EE; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (min-width: 701px) {
  .hero { grid-template-rows: 1fr auto auto; }
  .hero-content { grid-row: 2; align-self: end; padding: 0 var(--gutter) clamp(8px, 2vh, 24px); }
  .hero-title { font-size: clamp(4rem, 9vw, 9rem); margin-bottom: 1rem; }
  .hero-title, .hero-eyebrow, .hero-meta { color: #FAF6EE; text-shadow: 0 1px 2px rgba(77,57,40, .35), 0 2px 18px rgba(77,57,40, .3); }
  .hero-eyebrow { opacity: 1; }
  .hero-amp { color: #EABCBA; }
  .scroll-cue { grid-row: 3; margin-bottom: 20px; }
}
@media (max-width: 700px) {
  .hero-title { flex-direction: column; align-items: center; row-gap: .02em; font-size: clamp(4rem, 21vw, 6.5rem); }
  .hero-amp { font-size: .6em; margin: -.05em 0 -.1em; }
  .hero-media { top: auto; height: 64%; }
  .hero-media::before { content: ""; position: absolute; inset: 0 0 auto; height: 28%; z-index: 1; background: linear-gradient(#DCD5CD, rgba(220,213,205,0)); }
  .hero-media img { object-position: 50% 80%; transform-origin: 50% 0; } /* zoom downward so the photo never pokes above the sky fade */
  .hero-content { padding-top: 92px; }
}

/* =========================================================
   3. NOTE
   ========================================================= */
.note { background: var(--paper); }
.note-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.polaroid {
  margin: 0; background: #FAF6EE; padding: 14px 14px 18px; box-shadow: var(--shadow);
  transform: rotate(-3deg); position: relative; max-width: 440px; justify-self: end;
}
.polaroid.in { transform: rotate(-3deg); }
.polaroid::before { /* washi tape */
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(3deg);
  background: rgba(230,175,175, .55); box-shadow: 0 1px 2px rgba(74,48,40,.06);
}
.polaroid img { aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto; }
.polaroid figcaption { font-family: var(--script); font-size: 1.5rem; text-align: center; padding-top: 10px; color: var(--ink-soft); }
.script-title { font-family: var(--script); font-size: clamp(3rem, 7vw, 4.4rem); line-height: 1; color: var(--accent-deep); margin-bottom: 1.6rem; }
.letter { font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.35rem); line-height: 1.65; max-width: 60ch; }
.letter strong { font-weight: 600; }
.signoff { margin-top: 2rem; font-style: italic; }
.signoff span { display: block; font-family: var(--script); font-style: normal; font-size: 2.4rem; color: var(--ink); margin-top: .3rem; }

.included { list-style: none; margin-top: clamp(64px, 9vw, 110px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.included li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; }
.included .icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 14px; }
.included h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.included p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

@media (max-width: 860px) {
  .note-grid { grid-template-columns: 1fr; }
  .polaroid { justify-self: center; max-width: 320px; }
  .included { grid-template-columns: 1fr; }
}

/* =========================================================
   4. DATE
   ========================================================= */
.date { background: var(--paper-2); }
.cal { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line); }
.cal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.cal-month { font: 400 clamp(1.9rem, 4vw, 2.6rem)/1 var(--serif); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--ink-soft); }
.cal-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-wed { background: var(--accent); }
.dot-ph { background: var(--olive); }

.cal-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day { position: relative; padding: 16px 12px 18px; min-height: 210px; display: flex; flex-direction: column; gap: 6px; border-radius: 16px; }
.cal-dow { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.cal-num { font: 300 clamp(2.4rem, 4.2vw, 3.4rem)/1 var(--serif); }
.cal-note { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: .9rem; line-height: 1.35; }
.tag { font: 500 .64rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 6px 8px; border-radius: 999px; background: rgba(250,246,238,.7); color: var(--accent-deep); }
.tag-ph { background: var(--olive); color: #FAF6EE; margin-top: 4px; }
.cal-hol { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; color: var(--olive); }
.flags { font: 500 .7rem/1 var(--sans); letter-spacing: .14em; color: var(--ink-soft); }
.cal-evt { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; }
.cal-heart { width: 22px; height: 22px; color: var(--accent); }
.is-wknd .cal-num, .is-wknd .cal-dow { color: #CD7E89; }

.cal-day.is-wed { background: #E6DFD7; border-radius: 0; }
.cal-day.is-wed .cal-num { color: var(--accent-deep); }
.cal-day.is-first { border-radius: 16px 0 0 16px; }
.cal-day.is-last { border-radius: 0 16px 16px 0; }
.cal-day.is-main { background: var(--accent); color: #FAF6EE; }
.cal-day.is-main .cal-num, .cal-day.is-main .cal-dow { color: #FAF6EE; }
.cal-day.is-main .cal-heart { color: #FAF6EE; }
.cal-day.is-main .tag { background: rgba(250,246,238,.2); color: #FAF6EE; }
.cal-day.is-ph:not(.is-wed) { box-shadow: inset 0 0 0 1.5px var(--olive-soft); }
.is-wed .cal-hol { color: var(--olive); }

.date-extras { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-top: 20px; align-items: start; }
.leave-card { grid-row: span 2; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 34px); }
.leave-card h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .7rem; }
.leave-card p { color: var(--ink-soft); }
.leave-strip { list-style: none; padding: 0; margin: 1.4rem 0 .8rem; display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; }
.leave-strip li { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 10px; font-size: .78rem; background: #E8E2DA; color: var(--ink-soft); position: relative; }
.leave-strip b { font-weight: 500; font-size: .66rem; letter-spacing: .1em; }
.leave-strip span { font: 500 1.05rem/1 var(--serif); }
.leave-strip .lv-ph { background: var(--olive); color: #FAF6EE; }
.leave-strip .lv-l { background: var(--blush); color: var(--ink); }
.leave-strip .lv-wed::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -8px; height: 3px; border-radius: 3px; background: var(--accent); }
.leave-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; margin: 18px 0 0; }
.leave-key span { display: inline-flex; align-items: center; gap: 6px; }
.k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.k-w { background: #E8E2DA; border: 1px solid var(--line); }
.k-ph { background: var(--olive); }
.k-l { background: var(--blush); }
.weather { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 24px; border: 1px dashed rgba(74,48,40,.28); }
.weather .icon { width: 34px; height: 34px; color: #CA7C87; margin-top: 2px; }
.weather p:last-child { margin: 0; font-size: .98rem; color: var(--ink-soft); }
.weather .eyebrow { margin-bottom: .4rem; }
#add-cal { justify-self: start; }

@media (max-width: 860px) {
  .cal-week { grid-template-columns: 1fr; gap: 0; }
  .cal-day { min-height: 0; display: grid; grid-template-columns: 48px 58px 1fr; align-items: center; column-gap: 8px; padding: 12px 14px; border-radius: 12px; }
  .cal-day.is-first { border-radius: 14px 14px 0 0; }
  .cal-day.is-last { border-radius: 0 0 14px 14px; }
  .cal-num { font-size: 2.2rem; }
  .cal-note { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .tag-ph { margin-top: 0; }
  .cal-day.is-ph:not(.is-wed) { margin-bottom: 6px; }
  .date-extras { grid-template-columns: 1fr; }
  .leave-card { grid-row: auto; }
}

/* =========================================================
   5. DESTINATION — parallax
   ========================================================= */
.destination { background: var(--paper); padding-bottom: var(--section-y); }
.dest-intro { padding-bottom: clamp(40px, 6vw, 70px); }
.nearby { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nearby li { display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .95rem; }
.nearby b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.nearby span { color: var(--ink-soft); font-size: .85rem; }

.plx { position: relative; margin: 0; height: min(88vh, 860px); min-height: 460px; overflow: hidden; }
.plx + .plx { margin-top: 12px; }
.plx-media { position: absolute; inset: -12% 0; will-change: transform; }
.plx-media img { width: 100%; height: 100%; object-fit: cover; }
.plx-card {
  position: absolute; left: var(--gutter); bottom: clamp(24px, 6vw, 64px);
  max-width: 380px; background: rgba(250,246,238, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 22px 26px; border-radius: 18px; box-shadow: var(--shadow);
  font-size: 1rem; color: var(--ink-soft);
}
.plx-card b { display: block; font: 400 1.9rem/1.1 var(--serif); color: var(--ink); margin-bottom: .4rem; }
.plx-card .eyebrow { display: block; margin-bottom: .5rem; color: var(--accent-deep); }
.plx-right { left: auto; right: var(--gutter); }
@media (max-width: 700px) {
  .plx { height: 78vh; }
  .plx-card, .plx-right { left: 16px; right: 16px; max-width: none; }
}

/* =========================================================
   6. STAY
   ========================================================= */
.stay { background: var(--paper-2); }
.assign {
  display: flex; gap: 16px; align-items: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px);
  padding: 18px 24px; border-radius: 18px; background: var(--olive); color: #FAF6EE;
}
.assign .icon { width: 34px; height: 34px; color: #E6DFD7; }
.assign p { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.assign strong { color: #FAF6EE; }
.homes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 28px; text-align: center; }
.home-art { border-radius: 16px; background: linear-gradient(180deg, #EEE9E1, #E5DFD7); margin-bottom: 22px; overflow: hidden; }
.home-art svg { display: block; width: 100%; height: auto; }
.home .eyebrow { margin-bottom: .3rem; color: var(--accent-deep); }
.home h3 { font-size: 2rem; margin-bottom: .6rem; }
.home p:last-child { color: var(--ink-soft); font-size: 1rem; margin: 0 auto; max-width: 30ch; }
@media (max-width: 860px) { .homes { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* illustration strokes (shared by all three) */
.a-hill { fill: #DDCB95; }
.a-sun { fill: #EBBFBD; }
.a-wall { fill: #F4EFE7; stroke: var(--ink); stroke-width: 1.4; }
.a-roof { fill: #BF767F; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.a-win rect { fill: #9D6166; }
.a-door { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.a-cy { fill: #626C2C; stroke: var(--ink); stroke-width: 1.2; }
.a-ground { stroke: var(--ink); stroke-width: 1.4; }
.a-olive circle { fill: #AC9871; stroke: var(--ink); stroke-width: 1.2; }
.a-trunk { stroke: var(--ink); stroke-width: 2; fill: none; }
.a-rows path { fill: none; stroke: #6B7437; stroke-width: 1.6; stroke-dasharray: 3 5; }
.a-grapes circle { fill: #8E4458; }

/* =========================================================
   7. TIMELINE — sky scroll
   ========================================================= */
.timeline { background: var(--paper); padding-bottom: calc(var(--section-y) * .8); }
.tl-grid { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.tl-stage { position: sticky; top: calc(var(--nav-h) + 28px); }
.sky {
  --top: #A8B7B2; --bot: #E6E0D8; --night: 0; --hill: 1;
  position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--nav-h) - 170px); width: 100%;
  border-radius: 999px 999px 24px 24px; overflow: hidden;
  background: linear-gradient(180deg, var(--top) 0%, var(--bot) 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(74,48,40,.08);
  margin-inline: auto;
}
.stars {
  position: absolute; inset: 0; opacity: var(--night); transition: opacity 300ms;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #FAF6EE 99%, transparent), radial-gradient(1px 1px at 28% 32%, #FAF6EE 99%, transparent),
    radial-gradient(1.4px 1.4px at 44% 12%, #FAF6EE 99%, transparent), radial-gradient(1px 1px at 58% 26%, #FAF6EE 99%, transparent),
    radial-gradient(1.2px 1.2px at 72% 16%, #FAF6EE 99%, transparent), radial-gradient(1px 1px at 86% 30%, #FAF6EE 99%, transparent),
    radial-gradient(1px 1px at 20% 44%, #FAF6EE 99%, transparent), radial-gradient(1.3px 1.3px at 64% 40%, #FAF6EE 99%, transparent),
    radial-gradient(1px 1px at 36% 52%, #FAF6EE 99%, transparent), radial-gradient(1px 1px at 80% 50%, #FAF6EE 99%, transparent),
    radial-gradient(1.1px 1.1px at 8% 34%, #FAF6EE 99%, transparent), radial-gradient(1px 1px at 92% 10%, #FAF6EE 99%, transparent);
}
.sun, .moon {
  position: absolute; left: 0; top: 0; width: 15%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); will-change: left, top;
}
.sun { background: radial-gradient(circle, #F9F5ED 0%, #EFDFA3 55%, #E5ADAD 100%); box-shadow: 0 0 40px 14px rgba(237,220,161, .55); }
.moon { width: 11%; background: #F2EDE5; box-shadow: 0 0 26px 6px rgba(242,237,229, .35), inset -6px -3px 0 0 #D7CEC6; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; filter: brightness(var(--hill)); transition: filter 300ms; }
.hills .h1 { fill: #C3B082; }
.hills .h2 { fill: #AC9871; }
.hills .h3 { fill: #6F773B; }
.hills .cy path { fill: #595729; }
.stage-medal {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  width: 32%; aspect-ratio: 1; border-radius: 50%;
  background: var(--card); box-shadow: 0 10px 24px -8px rgba(74,48,40,.35), inset 0 0 0 6px rgba(230,175,175,.35);
  display: grid; place-items: center;
}
.stage-medal .icon { width: 56%; height: 56%; color: var(--accent); transition: opacity 250ms, transform 250ms var(--ease-out); }
.stage-medal .icon.swap { opacity: 0; transform: scale(.8); }
.stage-caption { display: grid; justify-items: center; text-align: center; gap: 4px; padding-top: 18px; }
.stage-day { font: 500 .72rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.stage-title { font: 400 2rem/1.1 var(--serif); }
.stage-tod { font: italic 400 1.1rem/1.2 var(--serif); color: var(--accent-deep); }

.tl-list { padding-top: 10vh; padding-bottom: 30vh; }
.tl-day { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 300; margin: 0 0 8px; padding-top: 48px; }
.tl-day:first-child { padding-top: 0; }
.tl-day span { display: block; font: 500 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.tl-list ol { list-style: none; margin: 0 0 12px; padding: 0 0 0 26px; border-left: 1px solid var(--line); }
.evt { position: relative; padding: 34px 0 34px 8px; opacity: .45; transition: opacity 450ms var(--ease-out); }
.evt::before { content: ""; position: absolute; left: -32px; top: 44px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--olive-soft); transition: background 300ms, border-color 300ms, transform 300ms; }
.evt.is-active { opacity: 1; }
.evt.is-active::before { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }
.evt-tod { font: 500 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.evt h4 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: 10px 0 8px; }
.evt h4 .icon { width: 30px; height: 30px; color: var(--accent); }
.evt p { color: var(--ink-soft); max-width: 46ch; margin: 0; }

@media (max-width: 860px) {
  .tl-grid { grid-template-columns: 1fr; gap: 0; }
  .tl-stage {
    top: var(--nav-h); z-index: 5; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter);
    background: linear-gradient(var(--paper) 85%, rgba(244,239,231,0));
    display: grid; grid-template-columns: 38% 1fr; align-items: center; gap: 16px;
  }
  .sky { aspect-ratio: 4/5; max-height: 30vh; border-radius: 999px 999px 16px 16px; }
  .stage-caption { justify-items: start; text-align: left; padding: 0; }
  .stage-title { font-size: 1.7rem; }
  .tl-list { padding-top: 24px; padding-bottom: 40vh; }
  .evt h4 .icon { display: none; }
}

/* =========================================================
   8. TRAVEL
   ========================================================= */
.travel { background: var(--paper-2); }
.origins { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.origins button {
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font: 500 .88rem/1 var(--sans); letter-spacing: .04em; color: var(--ink);
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1), transform var(--dur-1);
}
.origins button:hover { border-color: var(--ink); }
.origins button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.origins button:active { transform: scale(.97); }

.travel-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.route-panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3.4vw, 40px); min-height: 420px; }
.route-panel:focus-visible { outline-offset: 4px; border-radius: 24px; }
.route-panel .fade { animation: fadeUp 450ms var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rp-head h3 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: .6rem; }
.rp-head p { color: var(--ink-soft); }
.route { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.route-label { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.route-label .pill { font: 500 .64rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: #ECE6DE; color: var(--ink-soft); }
.route-label .pill.rec { background: var(--accent); color: #FAF6EE; }
.route-label b { font: 500 1.25rem/1.2 var(--serif); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
.step-node { display: grid; justify-items: center; }
.step-node i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); margin-top: 6px; }
.step.is-end .step-node i { background: var(--accent); border-color: var(--accent); width: 14px; height: 14px; }
.step-place { font: 500 1.2rem/1.35 var(--serif); padding-bottom: 4px; }
.step-place small { display: block; font: 400 .85rem/1.4 var(--sans); color: var(--ink-soft); }
.leg { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
.leg-line { display: grid; justify-items: center; align-items: center; position: relative; }
.leg-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed var(--olive-soft); }
.leg-line .icon { position: relative; width: 26px; height: 26px; color: var(--olive); background: var(--card); padding: 3px 0; }
.leg-text { padding: 12px 0 16px; font-size: .96rem; color: var(--ink-soft); }
.leg-text b { color: var(--ink); font-weight: 500; }
.rp-tip { margin-top: 24px; padding: 14px 18px; border-radius: 14px; background: #EEE8E0; font-size: .95rem; }
.rp-tip b { font-weight: 500; }

.map-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: grid; gap: 14px; justify-items: center; position: sticky; top: calc(var(--nav-h) + 20px); }
.map { width: 100%; max-width: 340px; height: auto; font-family: var(--sans); }
.map .coast { fill: none; stroke: #D9D1C9; stroke-width: 10; stroke-linecap: round; opacity: .7; }
.map .legs path { fill: none; stroke: #CEC4BC; stroke-width: 2; stroke-dasharray: 4 5; transition: stroke 300ms, stroke-width 300ms; }
.map .legs path.on { stroke: var(--accent); stroke-width: 3; stroke-dasharray: none; }
.map .lbl-legs text { font-size: 11px; fill: var(--ink-soft); }
.map .node circle { fill: var(--card); stroke: var(--ink); stroke-width: 2; transition: fill 300ms; }
.map .node.on circle { fill: var(--accent); stroke: var(--accent); }
.map .node text { font-size: 13px; font-weight: 500; fill: var(--ink); }
.map .node text.sub { font-size: 10px; font-weight: 400; fill: var(--ink-soft); letter-spacing: .04em; }
.map .venue circle { fill: var(--accent); stroke: #FAF6EE; stroke-width: 2; }
.map .venue path { fill: #FAF6EE; }
.map .venue text { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.map-note { margin: 0; font-size: .82rem; color: var(--ink-soft); }

.last-mile { margin-top: clamp(56px, 8vw, 90px); }
.last-mile > h3 { text-align: center; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 300; margin-bottom: 28px; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tips li { padding: 24px 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); }
.tips .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.tips h4 { font-size: 1.4rem; margin-bottom: .5rem; }
.tips p { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 1000px) {
  .travel-grid { grid-template-columns: 1fr; }
  .map-card { position: static; }
  .tips { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .origins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .origins button { padding: 10px 6px; font-size: .82rem; letter-spacing: 0; line-height: 1.2; }
  .tips { grid-template-columns: 1fr; }
}

/* =========================================================
   9. FAQ
   ========================================================= */
.faq { background: var(--paper); }
.faq-wrap { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 52px 24px 0; min-height: 44px;
  font: 400 clamp(1.4rem, 2.6vw, 1.7rem)/1.3 var(--serif);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform var(--dur-2) var(--ease-out);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list summary:hover { color: var(--accent-deep); }
.faq-list details > div { padding: 0 0 24px; color: var(--ink-soft); max-width: 68ch; }
.faq-list details[open] > div { animation: fadeUp 350ms var(--ease-out); }
.faq-list p:last-child { margin-bottom: 0; }
.tbc { font-style: italic; }

/* =========================================================
   FINALE
   ========================================================= */
.finale { position: relative; min-height: 80vh; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; padding: 0 var(--gutter); }
.finale-media { position: absolute; inset: 0; z-index: -1; }
.finale-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.finale-content { align-self: end; padding-bottom: clamp(48px, 10vh, 110px); }
.finale-script { font-family: var(--script); font-size: clamp(3.2rem, 9vw, 6.5rem); line-height: 1.1; margin: 0 0 .6rem; color: #FAF6EE; }
.finale-script, .finale .eyebrow { text-shadow: 0 1px 2px rgba(77,57,40, .35), 0 2px 18px rgba(77,57,40, .3); }
.finale .eyebrow { color: #FAF6EE; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal, .hero-content > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media img { transform: none !important; transition: none !important; }
  .polaroid { transform: rotate(-3deg) !important; }
  .plx-media { inset: 0; transform: none !important; }
  .env-flap, .env-letter, .envelope, .seal { transition: none !important; }
  .evt { transition: none; }
}

/* =========================================================
   FAIRYTALE THEME — parchment, moss, dusty plum
   ========================================================= */
body { background: var(--paper); }
body::after { /* fine paper grain over everything */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .16  0 0 0 0 .1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.torn { clip-path: polygon(0.0% 1.9px, 3.8% 0.9px, 7.7% 3.9px, 11.5% 0.4px, 15.4% 3.2px, 19.2% 2.2px, 23.1% 0.3px, 26.9% 3.0px, 30.8% 0.2px, 34.6% 2.6px, 38.5% 0.4px, 42.3% 0.5px, 46.2% 2.5px, 50.0% 5.0px, 53.8% 0.7px, 57.7% 1.3px, 61.5% 3.8px, 65.4% 5.7px, 69.2% 3.5px, 73.1% 2.4px, 76.9% 5.9px, 80.8% 0.3px, 84.6% 5.2px, 88.5% 1.7px, 92.3% 0.9px, 96.2% 0.7px, 100.0% 1.9px, calc(100% - 2.4px) 12.5%, calc(100% - 0.5px) 25.0%, calc(100% - 1.7px) 37.5%, calc(100% - 1.9px) 50.0%, calc(100% - 1.1px) 62.5%, calc(100% - 1.6px) 75.0%, calc(100% - 0.2px) 87.5%, 100.0% calc(100% - 0.4px), 96.2% calc(100% - 1.4px), 92.3% calc(100% - 4.8px), 88.5% calc(100% - 3.0px), 84.6% calc(100% - 2.2px), 80.8% calc(100% - 4.1px), 76.9% calc(100% - 3.2px), 73.1% calc(100% - 2.1px), 69.2% calc(100% - 5.6px), 65.4% calc(100% - 4.9px), 61.5% calc(100% - 1.7px), 57.7% calc(100% - 4.0px), 53.8% calc(100% - 3.7px), 50.0% calc(100% - 6.1px), 46.2% calc(100% - 5.1px), 42.3% calc(100% - 2.0px), 38.5% calc(100% - 6.9px), 34.6% calc(100% - 0.8px), 30.8% calc(100% - 2.9px), 26.9% calc(100% - 5.3px), 23.1% calc(100% - 1.1px), 19.2% calc(100% - 3.4px), 15.4% calc(100% - 0.3px), 11.5% calc(100% - 4.7px), 7.7% calc(100% - 5.4px), 3.8% calc(100% - 4.0px), 0.0% calc(100% - 6.1px), 0.9px 87.5%, 2.1px 75.0%, 1.8px 62.5%, 1.7px 50.0%, 1.4px 37.5%, 2.5px 25.0%, 2.8px 12.5%); border-radius: 0 !important; }

.section-head h2, .last-mile > h3 { font-weight: 300; letter-spacing: -.01em; }
.section-head h2 em, .last-mile > h3 em, .letter-title em { color: var(--accent); }
.section-head::after { /* hand-drawn squiggle */
  content: ""; display: block; width: 64px; height: 16px; margin: 22px auto 0; opacity: .8;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16'><path d='M2 9c5-7 9-7 12 0s7 7 12 0 9-7 12 0 7 7 12 0 8-6 12-1' fill='none' stroke='%23944E60' stroke-width='1.4' stroke-linecap='round'/></svg>") center / contain no-repeat;
}
.lede { font-family: var(--display); font-style: italic; font-weight: 300; }
.eyebrow { font-weight: 400; letter-spacing: .26em; }

/* faint handwritten words drifting behind a section */
[data-whisper] { position: relative; overflow: clip; }
[data-whisper]::before {
  content: attr(data-whisper); position: absolute; top: clamp(24px, 5vw, 64px); right: -2vw; z-index: 0;
  font: 400 clamp(5rem, 14vw, 12rem)/1 var(--script); color: var(--ink); opacity: .07;
  transform: rotate(-6deg); white-space: nowrap; pointer-events: none;
}
[data-whisper] > * { position: relative; z-index: 1; }

/* dark & olive sections re-map the ink tokens */
.theme-dark, .theme-olive {
  --ink: #FAF6EE; --ink-soft: #F2E6DA; --line: rgba(250,246,238,.24);
  --accent: #F6E6A8; --accent-deep: #F6E6A8; --olive-soft: #C2C47A;
  color: var(--ink);
}
.theme-dark { background: var(--c-wine) !important; }
.theme-olive { background: var(--c-olive) !important; }
.theme-dark .section-head::after, .theme-olive .section-head::after { filter: brightness(2.2) saturate(.6); }
/* paper pieces inside dark sections go back to dark ink */
.letter, .included li, .plx-card, .polaroid {
  --ink: #4A3028; --ink-soft: #6B524A; --accent: #7E2A42; --accent-deep: #66223A; --line: rgba(74,48,40,.16);
  color: var(--ink);
}

/* ---------- envelope ---------- */
.intro {
  background:
    radial-gradient(90% 60% at 50% 18%, #F5F0E8 0%, transparent 65%),
    radial-gradient(120% 80% at 50% 115%, #E8B5B4 0%, transparent 60%),
    #E6E0D8;
}
.env-to { font-size: clamp(1.9rem, 7vw, 2.8rem); }
.env-letter { background: var(--card); }
.letter-names { font: italic 300 clamp(1.7rem, 6vw, 2.6rem)/1.1 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.letter-names span { font-family: var(--script); font-style: normal; color: var(--accent); }
.letter-rule { background: var(--accent); }
.letter-date { font: 400 .78rem/1.4 var(--type); letter-spacing: .12em; }
.letter-place { font: italic 300 1rem/1.3 var(--display); }
.seal { background: radial-gradient(circle at 35% 30%, #B06D74 0%, #8D4357 55%, #682D37 100%); box-shadow: inset 0 -3px 6px rgba(74,48,40,.28), inset 0 3px 5px rgba(242,218,213,.3), 0 4px 10px rgba(82,47,44,.35); }
.seal::before { border-color: rgba(141,67,87,.5); }
.seal-mono { font-size: clamp(1.8rem, 5.6vw, 2.4rem); color: #F5E6DF; }

/* ---------- nav ---------- */
.nav { background: rgba(234,228,220, .9); }
.nav-mono { font-size: 2.1rem; }

/* ---------- hero ---------- */
.hero-title { font-family: var(--display); font-weight: 300; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; letter-spacing: -.02em; }
.hero-amp { font-size: .9em; }
.hero-meta, .hero-eyebrow { font-weight: 400; }
@media (min-width: 701px) { .hero-amp { color: #EFD0CC; } }

/* gentle, endless drift through the scene once the page is revealed */
.hero.is-in .hero-media { animation: heroDrift 38s ease-in-out 4.5s infinite alternate; }
@keyframes heroDrift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.07) translate(-1.2%, -1%); } }
@media (max-width: 700px) { .hero-media { transform-origin: 50% 100%; } }

.atmos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.mist {
  position: absolute; left: 0; width: 200%;
  background-repeat: repeat-x; background-size: 50% 100%;
  animation: mistDrift 90s linear infinite;
}
.mist-1 { top: 26%; height: 24%; opacity: .55; }
.mist-1 { background-image:
  radial-gradient(ellipse 16% 42% at 18% 55%, rgba(250,246,238,.75), rgba(250,246,238,0)),
  radial-gradient(ellipse 22% 36% at 52% 48%, rgba(250,246,238,.6), rgba(250,246,238,0)),
  radial-gradient(ellipse 13% 40% at 84% 58%, rgba(250,246,238,.7), rgba(250,246,238,0)); }
.mist-2 {
  top: 40%; height: 16%; opacity: .35; animation-duration: 64s; animation-direction: reverse;
  background-image:
    radial-gradient(ellipse 20% 40% at 25% 50%, rgba(250,246,238,.7), rgba(250,246,238,0)),
    radial-gradient(ellipse 18% 36% at 72% 52%, rgba(250,246,238,.6), rgba(250,246,238,0));
}
@keyframes mistDrift { to { transform: translateX(-50%); } }

/* ---------- note ---------- */
.letter {
  background: var(--card); padding: clamp(30px, 5vw, 60px) clamp(24px, 4.5vw, 56px);
  font: 400 1.02rem/1.85 var(--type); max-width: 62ch;
}
.letter strong { font-weight: 700; }
.letter-title { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 300; margin-bottom: 1.6rem; color: var(--ink); }
.signoff { font-style: italic; }
.signoff span { font-size: 3.2rem; line-height: 1.2; }
.polaroid { background: #FAF6EE; }
.polaroid::before { background: rgba(235,191,189, .8); }
.polaroid figcaption { font-size: 2rem; line-height: 1.1; }
.included li { background: var(--card); border: 0; padding: 32px 28px; border-radius: 0; clip-path: polygon(0.0% 1.9px, 3.8% 0.9px, 7.7% 3.9px, 11.5% 0.4px, 15.4% 3.2px, 19.2% 2.2px, 23.1% 0.3px, 26.9% 3.0px, 30.8% 0.2px, 34.6% 2.6px, 38.5% 0.4px, 42.3% 0.5px, 46.2% 2.5px, 50.0% 5.0px, 53.8% 0.7px, 57.7% 1.3px, 61.5% 3.8px, 65.4% 5.7px, 69.2% 3.5px, 73.1% 2.4px, 76.9% 5.9px, 80.8% 0.3px, 84.6% 5.2px, 88.5% 1.7px, 92.3% 0.9px, 96.2% 0.7px, 100.0% 1.9px, calc(100% - 2.4px) 12.5%, calc(100% - 0.5px) 25.0%, calc(100% - 1.7px) 37.5%, calc(100% - 1.9px) 50.0%, calc(100% - 1.1px) 62.5%, calc(100% - 1.6px) 75.0%, calc(100% - 0.2px) 87.5%, 100.0% calc(100% - 0.4px), 96.2% calc(100% - 1.4px), 92.3% calc(100% - 4.8px), 88.5% calc(100% - 3.0px), 84.6% calc(100% - 2.2px), 80.8% calc(100% - 4.1px), 76.9% calc(100% - 3.2px), 73.1% calc(100% - 2.1px), 69.2% calc(100% - 5.6px), 65.4% calc(100% - 4.9px), 61.5% calc(100% - 1.7px), 57.7% calc(100% - 4.0px), 53.8% calc(100% - 3.7px), 50.0% calc(100% - 6.1px), 46.2% calc(100% - 5.1px), 42.3% calc(100% - 2.0px), 38.5% calc(100% - 6.9px), 34.6% calc(100% - 0.8px), 30.8% calc(100% - 2.9px), 26.9% calc(100% - 5.3px), 23.1% calc(100% - 1.1px), 19.2% calc(100% - 3.4px), 15.4% calc(100% - 0.3px), 11.5% calc(100% - 4.7px), 7.7% calc(100% - 5.4px), 3.8% calc(100% - 4.0px), 0.0% calc(100% - 6.1px), 0.9px 87.5%, 2.1px 75.0%, 1.8px 62.5%, 1.7px 50.0%, 1.4px 37.5%, 2.5px 25.0%, 2.8px 12.5%); }
.included .icon { color: var(--accent); }
.included h3 { font-weight: 350; }

/* ---------- date ---------- */
.cal, .leave-card, .route-panel, .map-card, .home { border-radius: 6px; }
.cal-day.is-wed { background: #F1D6D2; }
.cal-day.is-main { background: var(--accent); }
.tag-ph, .leave-strip .lv-ph, .k-ph, .dot-ph { background: var(--olive); }
.leave-strip .lv-l, .k-l { background: var(--blush); }
.weather .icon { color: #C27781; }
.cal-num, .cal-month { font-weight: 300; }

/* ---------- destination (moss) ---------- */
.nearby li { background: transparent; border-color: var(--line); }
.plx-card { background: var(--card); border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.plx-card b { font-family: var(--display); font-weight: 350; }

/* ---------- stay ---------- */
.stay { background: var(--rose); }
.assign { background: var(--olive); border-radius: 6px; }
.home-art { background: linear-gradient(180deg, #EDE8E0, #E5DFD7); border-radius: 4px; }
.a-roof { fill: #C67A84; }
.a-sun { fill: #ECC2C0; }
.a-hill { fill: #D7C591; }
.a-cy { fill: #5E642A; }
.a-grapes circle { fill: #8E4458; }

/* ---------- timeline ---------- */
.stage-medal { box-shadow: 0 10px 24px -8px rgba(74,48,40,.35), inset 0 0 0 6px rgba(235,191,189,.55); }
.stage-title { font-family: var(--display); font-weight: 350; }
.stage-tod { font-family: var(--display); font-weight: 300; }
.evt h4 { font-weight: 350; }

/* ---------- travel ---------- */
.travel { background: var(--sage-light); }
.origins button { border-radius: 999px; }
.rp-tip { background: #EBE5DD; border-radius: 4px; font-family: var(--type); font-size: .9rem; }
.tips li { background: var(--card); border-radius: 6px; border-color: transparent; }

/* ---------- faq (moss) ---------- */
.faq-list summary { font-family: var(--display); font-weight: 300; }
.faq-list summary:hover { color: var(--accent); }

/* ---------- finale ---------- */
.finale-script { font-size: clamp(4rem, 12vw, 8.5rem); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero.is-in .hero-media, .mist, .petal, .petal i, .bird, .bird-bob, .wing, .frame svg { animation: none !important; }
  .bird { opacity: 1; }
  .frame { transform: none !important; opacity: 1 !important; transition: none !important; }
  .hero .ch, .hero-title > *, .hero-meta, .scroll-cue { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  .hero-media img { transform: none !important; }
}

/* =========================================================
   HERO STORYBOOK SEQUENCE
   (pull-back, framing layers, swallows, drifting leaves, lettering)
   ========================================================= */
/* 1. camera starts close and pulls back */
.hero-media img { transform: scale(1.3); transform-origin: 50% 45%; transition: transform 4200ms cubic-bezier(.16, .8, .3, 1); }
.hero.is-in .hero-media img { transform: scale(1); }
@media (max-width: 700px) { .hero-media img { transform-origin: 50% 0; } }

/* 2. foreground frame: branches and blossoms slide in from the edges, soft-focus for depth */
.hero-frame { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.frame { position: absolute; opacity: 0; transition: transform 3600ms cubic-bezier(.16, .8, .3, 1), opacity 1400ms ease-out; }
.frame svg { display: block; width: 100%; height: auto; filter: blur(1.2px); }
.frame-tl { top: 0; left: 0; width: min(30vw, 440px); transform: translate(-45%, -45%) scale(1.25); transform-origin: 0 0; }
.frame-tr { top: 0; right: 0; width: min(30vw, 440px); transform: translate(45%, -45%) scale(1.25); transform-origin: 100% 0; }
.frame-tr svg { transform: scaleX(-1); transform-origin: 50% 0; }
.frame-bl { bottom: 0; left: 0; width: min(21vw, 320px); transform: translate(-30%, 55%) scale(1.2); transform-origin: 0 100%; }
.frame-br { bottom: 0; right: 0; width: min(21vw, 320px); transform: translate(30%, 55%) scale(1.2); transform-origin: 100% 100%; }
.frame-br svg { transform: scaleX(-1); }
.hero.is-in .frame { opacity: 1; transform: none; }
.hero.is-in .frame-tl { transition-delay: 150ms; }
.hero.is-in .frame-tr { transition-delay: 300ms; }
.hero.is-in .frame-bl { transition-delay: 450ms; }
.hero.is-in .frame-br { transition-delay: 600ms; }
/* then the branches sway gently in the breeze */
.hero.is-in .frame-tl > svg { animation: swayL 7s ease-in-out 3.8s infinite alternate; transform-origin: 0 0; }
.hero.is-in .frame-tr > svg { animation: swayR 8s ease-in-out 3.8s infinite alternate; transform-origin: 50% 0; }
@keyframes swayL { to { transform: rotate(2.2deg); } }
@keyframes swayR { from { transform: scaleX(-1); } to { transform: scaleX(-1) rotate(2.4deg); } }
@media (max-width: 700px) {
  .frame-tl, .frame-tr { width: 32vw; }
  .frame-bl, .frame-br { width: 36vw; }
  .hero-content { padding-top: 118px; }
}

/* 3. swallows fly in, then hover */
.bird {
  position: absolute; left: var(--bx); top: var(--by); width: clamp(42px, 4.4vw, 68px);
  opacity: 0; color: #4A3028;
}
.hero.is-in .bird { animation: birdIn 3.4s cubic-bezier(.2, .7, .3, 1) var(--bdelay) forwards; }
@keyframes birdIn {
  from { opacity: 0; transform: translate(var(--fromx), var(--fromy)) scale(.75); }
  12% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
.bird-bob { transform: rotate(var(--rot)); animation: birdBob 6.5s ease-in-out infinite alternate; }
@keyframes birdBob {
  0% { transform: translate(0, 0) rotate(var(--rot)); }
  50% { transform: translate(16px, -12px) rotate(calc(var(--rot) + 6deg)); }
  100% { transform: translate(-10px, 6px) rotate(calc(var(--rot) - 4deg)); }
}
.bird svg { display: block; width: 100%; height: auto; fill: currentColor; overflow: visible; }
.wing { transform-box: view-box; animation: flap var(--flap) ease-in-out infinite alternate; }
.wing-l { transform-origin: 29px 19px; }
.wing-r { transform-origin: 31px 19px; }
@keyframes flap { from { transform: scale(1, 1); } to { transform: scale(.3, 1.35); } }

/* 4. leaves and petals drift down */
.petals { position: absolute; inset: 0; overflow: hidden; }
.petal {
  position: absolute; left: var(--x); top: -4%;
  width: var(--w); height: calc(var(--w) * .5);
  animation: petalFall var(--d) linear var(--delay) infinite;
}
.petal i {
  display: block; width: 100%; height: 100%; background: var(--c); opacity: .9;
  border-radius: 90% 0 90% 0;
  animation: petalSway var(--sd) ease-in-out infinite alternate;
}
@keyframes petalFall { to { transform: translate3d(var(--drift), var(--fall), 0); } }
@keyframes petalSway {
  from { transform: translateX(-16px) rotate(-40deg) rotateX(0deg); }
  to { transform: translateX(16px) rotate(35deg) rotateX(65deg); }
}

/* 5. lettering sharpens in: eyebrow letter by letter, then Jamie, &, Chelsea, then the details */
.hero-content > * { opacity: 1; transform: none; transition: none; }
.hero .ch { display: inline-block; opacity: 0; filter: blur(8px); transition: opacity 900ms ease-out, filter 900ms ease-out; transition-delay: calc(900ms + var(--i) * 40ms); }
.hero.is-in .ch { opacity: 1; filter: blur(0); }
.hero-title > * { opacity: 0; filter: blur(14px); transform: translateY(10px); transition: opacity 1400ms ease-out, filter 1400ms ease-out, transform 1400ms cubic-bezier(.16, .8, .3, 1); }
.hero.is-in .hero-title > * { opacity: 1; filter: blur(0); transform: none; }
.hero.is-in .hero-title > :nth-child(1) { transition-delay: 2000ms; }
.hero.is-in .hero-title > :nth-child(2) { transition-delay: 2500ms; }
.hero.is-in .hero-title > :nth-child(3) { transition-delay: 2800ms; }
.hero-meta, .scroll-cue { opacity: 0; filter: blur(8px); transition: opacity 1200ms ease-out, filter 1200ms ease-out; }
.hero.is-in .hero-meta { opacity: 1; filter: blur(0); transition-delay: 3500ms; }
.hero.is-in .scroll-cue { opacity: 1; filter: blur(0); transition-delay: 4200ms; }

/* =========================================================
   V2 — MAGICAL INVITATION THEME
   hand-drawn ink, red double happiness, batik, gold
   ========================================================= */
:root {
  --red: #7E2A42;          /* wine */
  --red-deep: #66223A;
  --red-bright: #CF7F8B;   /* rose */
  --gold: #B8923F;         /* gold foil: tiny accents only */
  --gold-soft: #F6E6A8;    /* butter */
  --jade: #616B2A;         /* olive */
  --accent: var(--red);
  --accent-deep: var(--red-deep);
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --xi: "Ma Shan Zheng", "STKaiti", "KaiTi", "Kaiti SC", "PingFang SC", "Noto Serif SC", serif;
  --kawung: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><rect width='40' height='40' fill='%23893C51'/><g fill='%23F5E5A7'><ellipse cx='10' cy='10' rx='8.4' ry='4.4' transform='rotate(45 10 10)'/><ellipse cx='30' cy='10' rx='8.4' ry='4.4' transform='rotate(-45 30 10)'/><ellipse cx='10' cy='30' rx='8.4' ry='4.4' transform='rotate(-45 10 30)'/><ellipse cx='30' cy='30' rx='8.4' ry='4.4' transform='rotate(45 30 30)'/></g><g fill='%23893C51'><circle cx='10' cy='10' r='1.5'/><circle cx='30' cy='10' r='1.5'/><circle cx='10' cy='30' r='1.5'/><circle cx='30' cy='30' r='1.5'/></g><g fill='%23D899A0'><circle cx='20' cy='20' r='2.6'/><circle cx='0' cy='0' r='2.6'/><circle cx='40' cy='0' r='2.6'/><circle cx='0' cy='40' r='2.6'/><circle cx='40' cy='40' r='2.6'/></g></svg>");
  --kawung-faint: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 40 40'><g fill='none' stroke='%23893C51' stroke-width='.7'><ellipse cx='10' cy='10' rx='8' ry='4.2' transform='rotate(45 10 10)'/><ellipse cx='30' cy='10' rx='8' ry='4.2' transform='rotate(-45 30 10)'/><ellipse cx='10' cy='30' rx='8' ry='4.2' transform='rotate(-45 10 30)'/><ellipse cx='30' cy='30' rx='8' ry='4.2' transform='rotate(45 30 30)'/></g><g fill='%23D18691'><circle cx='20' cy='20' r='1.4'/><circle cx='0' cy='0' r='1.4'/><circle cx='40' cy='0' r='1.4'/><circle cx='0' cy='40' r='1.4'/><circle cx='40' cy='40' r='1.4'/></g></svg>");
  --ink-box: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><g fill='none' stroke='%234A3028' stroke-linecap='round' vector-effect='non-scaling-stroke'><path vector-effect='non-scaling-stroke' stroke-width='1.6' d='M1.2 1.8 C22 .9 48 1.6 70 1.1 C82 .9 92 1.4 98.7 1.2 C99.1 22 98.6 50 99 74 C99.2 86 98.8 94 98.9 98.6 C76 99.2 50 98.7 26 99.1 C14 99.3 6 98.8 1.1 98.9 C.8 76 1.3 50 .9 26 C.8 14 1.2 6 1.2 1.8'/><path vector-effect='non-scaling-stroke' stroke-width='.9' opacity='.55' d='M2.6 .8 C30 1.9 62 .6 99.2 2.4 M98.2 .6 C99.6 34 97.8 66 99.4 99.3 M99.1 98 C66 99.6 34 98 .7 99.4 M1.8 99.2 C.5 66 2.2 34 .4 .9'/></g></svg>");
}

/* dark & olive sections: warm gold accents instead of pink */
.theme-dark, .theme-olive { --accent: var(--c-butter); --accent-deep: var(--c-butter); }
.letter, .included li, .plx-card, .polaroid { --accent: var(--red); --accent-deep: var(--red-deep); }

.xi { font-family: var(--xi); font-weight: 400; color: var(--red); line-height: 1; }
.hand { font-family: var(--hand); font-weight: 600; color: var(--red); font-size: 1.3em; line-height: 1.1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hand-drawn ink frame on cards */
.inked, .weather, .route-panel, .map-card, .tips li, .assign, .leave-note {
  border-color: transparent !important;
  background-image: var(--ink-box);
  background-size: 100% 100%; background-repeat: no-repeat;
}
.assign { background-color: var(--olive); }
.theme-dark .inked, .theme-olive .inked { filter: invert(1) sepia(.3) brightness(1.4); }

/* section ornament: little sprigs either side of a red knot */
.section-head::after {
  width: 120px; height: 22px; opacity: 1;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'><g fill='none' stroke='%2360682A' stroke-width='1.3' stroke-linecap='round'><path d='M6 12 C22 9 34 9 48 11'/><path d='M114 12 C98 9 86 9 72 11'/></g><g fill='%237B824B'><ellipse cx='16' cy='8' rx='5' ry='2' transform='rotate(-20 16 8)'/><ellipse cx='26' cy='14' rx='5' ry='2' transform='rotate(20 26 14)'/><ellipse cx='36' cy='8' rx='5' ry='2' transform='rotate(-20 36 8)'/><ellipse cx='104' cy='8' rx='5' ry='2' transform='rotate(20 104 8)'/><ellipse cx='94' cy='14' rx='5' ry='2' transform='rotate(-20 94 14)'/><ellipse cx='84' cy='8' rx='5' ry='2' transform='rotate(20 84 8)'/></g><g fill='%23893C51'><path d='M60 4 L67 11 L60 18 L53 11Z'/></g><path d='M60 7 L64 11 L60 15 L56 11Z' fill='none' stroke='%23E0CF98' stroke-width='1'/></svg>") center / contain no-repeat;
}
.theme-dark .section-head::after, .theme-olive .section-head::after { filter: brightness(1.9) saturate(.7); }

/* batik divider between sections */
.batik-band {
  height: 26px; position: relative; z-index: 2;
  background: var(--kawung) center / 26px 26px repeat-x;
  box-shadow: inset 0 3px 0 var(--gold), inset 0 -3px 0 var(--gold), inset 0 5px 0 var(--red-deep), inset 0 -5px 0 var(--red-deep);
}

/* ---------- envelope: decorative backdrop ---------- */
.intro { background: radial-gradient(70% 55% at 50% 45%, #F8F4EC 0%, transparent 70%), #ECE6DE; }
.intro-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.intro-deco::before { content: ""; position: absolute; inset: 0; background: var(--kawung-faint) center / 56px 56px; opacity: .14; }
.batik-frame {
  position: absolute; inset: 10px; padding: 16px;
  background: var(--kawung) center / 22px 22px;
  -webkit-mask: linear-gradient(#4A3028 0 0) content-box, linear-gradient(#4A3028 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#4A3028 0 0) content-box exclude, linear-gradient(#4A3028 0 0);
}
.intro-deco::after { content: ""; position: absolute; inset: 34px; border: 1.5px solid var(--gold); outline: 1px solid rgba(209,134,145,.5); outline-offset: 4px; }
@media (max-width: 600px) { .batik-frame { inset: 6px; padding: 10px; background-size: 16px 16px; } .intro-deco::after { inset: 22px; } }

.intro-lanterns { position: absolute; inset: 0; }
.lantern { position: absolute; top: 0; width: clamp(46px, 6vw, 76px); transform-origin: 50% 0; animation: lanternSway var(--ls, 5s) ease-in-out var(--ld, 0s) infinite alternate; }
.lantern svg { display: block; width: 100%; height: auto; overflow: visible; }
.lantern .glow { animation: glowPulse 3.4s ease-in-out infinite alternate; }
@keyframes lanternSway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes glowPulse { from { opacity: .45; } to { opacity: .8; } }

.intro-branch { position: absolute; width: min(38vw, 420px); }
.intro-branch svg { display: block; width: 100%; height: auto; }
.intro-branch-tl { left: 26px; top: 26px; }
.intro-branch-br { right: 26px; bottom: 26px; transform: rotate(180deg); }
@media (max-width: 600px) { .intro-branch { width: 58vw; } .intro-branch-tl { left: 14px; top: 14px; } .intro-branch-br { right: 14px; bottom: 14px; } }

.intro-sparkles span {
  position: absolute; width: var(--s); height: var(--s); left: var(--x); top: var(--y);
  background: var(--gold); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle var(--t) ease-in-out var(--dl) infinite alternate; opacity: .2;
}
@keyframes twinkle { to { opacity: .95; transform: scale(1.25) rotate(20deg); } }

.intro-inner { position: relative; z-index: 1; }
.intro-hint { font-family: var(--hand); font-size: 1.5rem; letter-spacing: 0; text-transform: none; color: var(--red-deep); }
.intro-skip { z-index: 3; top: max(40px, env(safe-area-inset-top)); right: 40px; }
@media (max-width: 600px) { .intro-skip { top: 26px; right: 24px; } }

/* red wax seal with gold double happiness */
.seal { background: radial-gradient(circle at 35% 30%, #AD6B72 0%, #85354B 55%, #522F2C 100%); box-shadow: inset 0 -3px 6px rgba(74,48,40,.3), inset 0 3px 5px rgba(238,204,201,.35), 0 4px 10px rgba(82,47,44,.35); }
.seal::before { border-color: rgba(137,60,81,.55); }
.seal-ring { border-color: rgba(232,216,158,.6); }
.seal-mono.xi { font-family: var(--xi); font-size: clamp(2rem, 6.4vw, 2.7rem); color: #E8D89E; text-shadow: 0 -1px 0 rgba(74,48,40,.35); }

/* silk tassel hanging from the seal */
.tassel {
  position: absolute; left: 50%; top: 86%; width: 40%; margin-left: -20%; z-index: -1;
  transform-origin: 50% 0; animation: tasselSwing 2.8s ease-in-out infinite alternate;
  pointer-events: none;
}
.tassel svg { display: block; width: 100%; height: auto; overflow: visible; }
.ts-cord { fill: none; stroke: #85354B; stroke-width: 3; stroke-linecap: round; }
.ts-knot path { fill: none; stroke: #8B4055; stroke-width: 3.2; stroke-linejoin: round; }
.ts-knot circle { fill: var(--gold); }
.ts-cap { fill: var(--gold); stroke: #77625A; stroke-width: 1; }
.ts-band { fill: #E0CF98; stroke: #77625A; stroke-width: 1; }
.ts-fringe path { fill: none; stroke: #8B4055; stroke-width: 2.4; stroke-linecap: round; }
@keyframes tasselSwing { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }

.letter-xi { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0 0 .3rem; }
.env-letter::before { border-color: rgba(137,60,81,.35); }
.env-letter::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(209,134,145,.45); pointer-events: none; }

/* ---------- hero: stage curtains ---------- */
.curtains { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-content, .scroll-cue { position: relative; z-index: 4; }
.curtain { position: absolute; top: 0; bottom: 0; width: clamp(64px, 15vw, 250px); transition: transform 3000ms cubic-bezier(.3, .7, .2, 1) 200ms; }
.curtain svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: drop-shadow(6px 0 10px rgba(82,47,44, .35)); }
.curtain-l { left: 0; transform-origin: 0 50%; transform: scaleX(1.9); }
.curtain-r { right: 0; transform-origin: 100% 50%; transform: scaleX(-1.9); }
.curtain-r svg { transform: none; }
.hero.is-in .curtain-l { transform: scaleX(1); }
.hero.is-in .curtain-r { transform: scaleX(-1); }
.curtain-r { right: auto; left: 100%; transform-origin: 0 50%; }
.tieback {
  position: absolute; left: 22%; top: 60.5%; width: 26%; aspect-ratio: 1 / 2.2; z-index: 2;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 88'><path d='M2 10 C14 4 26 4 38 10 C26 16 14 16 2 10Z' fill='%23C5B384' stroke='%2369534B' stroke-width='1.2'/><path d='M6 9 C16 7 24 7 34 9' stroke='%23EDDDA2' stroke-width='1.2' fill='none'/><path d='M20 14 V30' stroke='%23D18691' stroke-width='2.4'/><circle cx='20' cy='32' r='5' fill='%23C5B384' stroke='%2369534B'/><path d='M14 38 h12 l2 6 h-16z' fill='%23C5B384' stroke='%2369534B'/><g stroke='%23D18691' stroke-width='1.6' stroke-linecap='round'><path d='M13 45 C12 60 11 72 10 84'/><path d='M16 45 C16 60 15 72 15 86'/><path d='M20 45 V87'/><path d='M24 45 C24 60 25 72 25 86'/><path d='M27 45 C28 60 29 72 30 84'/></g></svg>") center / contain no-repeat;
}
.valance {
  position: absolute; left: -2%; right: -2%; top: 0; height: clamp(54px, 8vw, 110px);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><path d='M0 0 H200 V20 C168 84 32 84 0 20Z' fill='%23802C44'/><path d='M0 0 H200 V12 H0Z' fill='%23522F2C'/><path d='M10 24 C44 66 156 66 190 24' stroke='%23522F2C' stroke-width='6' opacity='.45' fill='none'/><path d='M18 18 C50 50 150 50 182 18' stroke='%239C6165' stroke-width='4' opacity='.55' fill='none'/><path d='M28 15 C60 36 140 36 172 15' stroke='%23522F2C' stroke-width='3' opacity='.35' fill='none'/><path d='M0 20 C32 84 168 84 200 20' stroke='%23C5B384' stroke-width='5' stroke-dasharray='1.2 2.6' fill='none'/><path d='M0 20 C32 80 168 80 200 20' stroke='%23522F2C' stroke-width='1.2' fill='none'/><path d='M0 12 H200' stroke='%23C5B384' stroke-width='2'/><circle cx='0' cy='18' r='9' fill='%23C5B384' stroke='%2369534B' stroke-width='1.2'/><circle cx='200' cy='18' r='9' fill='%23C5B384' stroke='%2369534B' stroke-width='1.2'/><circle cx='0' cy='18' r='4' fill='%23893C51'/><circle cx='200' cy='18' r='4' fill='%23893C51'/></svg>") left top / auto 100% repeat-x;
  filter: drop-shadow(0 6px 8px rgba(82,47,44, .3));
  transform: translateY(-105%); transition: transform 1600ms cubic-bezier(.3, .7, .2, 1);
}
.hero.is-in .valance { transform: none; }
@media (max-width: 700px) {
  .curtain { width: 13vw; }
  .valance { height: 46px; }
}
/* the blossom clusters sit in front of the curtains */
.hero-frame { z-index: 3; }
.frame-bl, .frame-br { width: min(18vw, 280px); }

/* ---------- date: hand-drawn wall calendar ---------- */
.wallcal {
  position: relative; max-width: 760px; margin: 28px auto 0;
  background: var(--card) var(--ink-box) center / 100% 100% no-repeat;
  padding: clamp(34px, 5vw, 54px) clamp(14px, 4vw, 44px) clamp(20px, 3vw, 32px);
  box-shadow: 0 18px 30px -18px rgba(74,48,40,.45);
  transform: rotate(-.6deg);
}
.wallcal.in { transform: rotate(-.6deg); }
.wc-rings { position: absolute; top: -14px; left: 12%; right: 12%; display: flex; justify-content: space-between; }
.wc-rings i { width: 14px; height: 30px; border-radius: 8px; border: 2.5px solid #705B53; background: linear-gradient(90deg, #F5F0E8, #D5CDC5); box-shadow: 0 2px 0 rgba(74,48,40,.08); }
.wc-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: clamp(14px, 2.4vw, 24px); }
.wc-xi { font-size: clamp(2rem, 5vw, 2.8rem); }
.wc-month { font: 300 clamp(2.2rem, 6vw, 3.4rem)/1 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; text-transform: lowercase; }
.wc-month em { font-style: italic; color: var(--red); }
.wc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.wc-grid li { position: relative; display: grid; justify-items: center; align-content: start; min-height: clamp(52px, 9vw, 78px); padding-top: 8px; border-top: 1px dashed rgba(74,48,40,.2); }
.wc-grid li.wc-dow { min-height: 0; padding: 0 0 8px; border: 0; font: 500 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.wc-grid b { font: 400 clamp(1.15rem, 2.6vw, 1.6rem)/1 var(--display); display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; position: relative; z-index: 1; }
.wc-grid .wknd b, .wc-dow.wknd { color: #C67A85; }
.wc-lbl { font: 600 clamp(.86rem, 1.8vw, 1.1rem)/1.05 var(--hand); color: var(--red-deep); text-align: center; margin-top: 2px; padding-inline: 2px; }
/* 9 days off: a soft gold band */
.wc-grid li.off::before { content: ""; position: absolute; inset: 4px 0 4px; background: rgba(224,207,152, .38); z-index: 0; }
.wc-grid li.off-start::before { left: 10%; border-radius: 22px 0 0 22px; }
.wc-grid li.off-end-row::before { right: 10%; border-radius: 0 22px 22px 0; }
.wc-grid li.off-row-start::before { left: 10%; border-radius: 22px 0 0 22px; }
.wc-grid li.off-end::before { right: 10%; border-radius: 0 22px 22px 0; }
/* public holidays: jade */
.wc-grid .ph b { color: var(--jade); box-shadow: inset 0 0 0 2px var(--jade); }
.wc-grid .ph .wc-lbl { color: var(--jade); }
/* wedding days: red */
.wc-grid .wed b { background: var(--red); color: #F7F2EA; box-shadow: none; }
.wc-grid .wed.ph b { box-shadow: 0 0 0 2.5px var(--card), 0 0 0 4.5px var(--jade); }
.wc-grid .main b { background: var(--red-deep); transform: scale(1.12); }
.wc-grid .main b::after { content: "囍"; font-family: var(--xi); position: absolute; top: -.75em; right: -.55em; font-size: .7em; color: var(--red); }
.wc-grid .wed .wc-lbl { color: var(--red); }
.wc-grid .wed.ph .wc-lbl { color: var(--ink-soft); }
.wc-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: clamp(14px, 2.4vw, 22px) 0 0; font-size: .86rem; color: var(--ink-soft); }
.wc-key span { display: inline-flex; align-items: center; gap: 8px; }
.wc-key .k { width: 14px; height: 14px; border-radius: 50%; }
.k-wed { background: var(--red); }
.k-ph { background: transparent; box-shadow: inset 0 0 0 2px var(--jade); }
.k-off { background: rgba(224,207,152, .75); border-radius: 4px !important; width: 22px !important; }
@media (max-width: 600px) {
  .wc-grid li { min-height: 58px; padding-top: 5px; }
  .wc-grid b { width: 1.95em; height: 1.95em; font-size: 1.05rem; }
  .wc-lbl { font-size: .78rem; }
  .wc-grid li.wc-dow { font-size: .58rem; letter-spacing: .06em; }
  .wc-key { font-size: .8rem; gap: 6px 14px; }
}

.date-extras { max-width: 760px; margin: 30px auto 0; grid-template-columns: 1fr; display: grid; gap: 18px; justify-items: stretch; }
.leave-note { margin: 0; padding: 18px 22px; background-color: var(--card); color: var(--ink-soft); font-size: 1rem; }
.leave-note .hand { display: block; margin-bottom: 4px; }
.leave-note strong { color: var(--ink); }
.weather { border-style: none; background-color: transparent; }
#add-cal { justify-self: center; }

/* ---------- stay: house-shaped frames ---------- */
.homes { gap: clamp(20px, 3vw, 40px); }
.home { background: transparent; border: 0; padding: 0; border-radius: 0; }
.house { margin: 0 auto 18px; max-width: 320px; }
.house svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 16px rgba(82,47,44, .18)); }
.house .ink { fill: none; stroke: #4A3028; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.house .stone { fill: #DFD7CF; }
.house .ochre { fill: #DEA7A7; }
.house .roof { fill: #BD757E; }
.house .win rect { fill: #5D622A; }
.house .cy { fill: #5D622A; }
.house .hedge { stroke: #5F652A; stroke-width: 6; }
.house .water { fill: #B5C9C4; }
.house .pot path { fill: #BF767F; }
.house .gera circle { fill: var(--red-bright); stroke: none; }
.house .door { fill: #756058; }
.house .brick { stroke: #924B5E; stroke-width: 3.2; }
.house .olive { fill: #A8936E; }
.house .trunk { stroke: #5E463E; stroke-width: 2.4; }
.house .path { stroke: #D28791; stroke-dasharray: 3 4; }
.house .awning { fill: #F1ECE4; }
.house .vine { stroke: #667031; stroke-width: 2.4; stroke-dasharray: 2 5; }
.house .wood { stroke: #705A52; stroke-width: 4; }
.house .lights { stroke: #4A3028; stroke-width: 1; }
.house .bulb circle { fill: #E8D79D; stroke: none; }
.house-line { fill: none; stroke: #4A3028; stroke-width: 2.6; stroke-linejoin: round; }
.house-line.thin { stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 1 0; opacity: .8; }
.home .eyebrow { color: var(--red-deep); }
.home h3 { font-size: clamp(1.7rem, 3vw, 2.1rem); }

/* ---------- timeline: a walk down the road ---------- */
.timeline { padding-bottom: 0; background: var(--paper); }
.tl-intro { padding-bottom: clamp(30px, 5vw, 60px); }
.road { position: relative; height: 900vh; }
.road-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.rs-scene, .rs-sky, .rs-land, .rs-sprites, .rs-night, .rs-flies { position: absolute; inset: 0; }
.rs-sky { --top: #A8B7B2; --bot: #E6E0D8; --night: 0; background: linear-gradient(180deg, var(--top) 0%, var(--bot) 46%); }
.rs-sky .sun { width: clamp(56px, 7vw, 96px); }
.rs-sky .moon { width: clamp(40px, 5vw, 70px); }
.rs-sky .stars { background-size: 100% 46%; background-repeat: no-repeat; }
.rs-land { width: 100%; height: 100%; display: block; }
.rs-land .ink { fill: none; stroke: #4A3028; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rs-sprites { pointer-events: none; }
.sprite { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; will-change: transform; }
.sprite svg { display: block; width: 100%; height: auto; overflow: visible; }
.sprite .glow { opacity: var(--night, 0); }
.sign-board { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); width: 92%; aspect-ratio: 1.15; display: grid; place-items: center; }
.sign-board .icon { width: 52%; height: 52%; color: var(--red); }
.rs-night { background: #5C4942; mix-blend-mode: multiply; opacity: 0; pointer-events: none; }
.rs-flies span { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: #F7EAB8; box-shadow: 0 0 8px 3px rgba(239,222,163, .55); opacity: 0; animation: fly var(--t) ease-in-out var(--dl) infinite alternate; }
@keyframes fly { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }

.road-day { position: absolute; left: 50%; top: clamp(16px, 4vh, 40px); transform: translateX(-50%); margin: 0; z-index: 3;
  padding: 8px 20px 10px; white-space: nowrap; font: 500 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  background: var(--card) var(--ink-box) center / 100% 100% no-repeat; }
.road-day .hand { font-size: 1.6rem; letter-spacing: 0; text-transform: none; margin-right: 6px; vertical-align: -3px; }

.road-stops { list-style: none; margin: 0; padding: 0; }
.road-stops .evt {
  position: absolute; z-index: 3; left: clamp(20px, 6vw, 90px); top: 50%; width: min(400px, 36vw);
  padding: 26px 28px 28px; background: var(--card); color: var(--ink);
  opacity: 0; transform: translateY(-40%) rotate(-1.5deg); pointer-events: none;
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out);
  box-shadow: 0 20px 34px -18px rgba(74,48,40,.45);
}
.road-stops .evt::before { display: none; }
.road-stops .evt.is-active { opacity: 1; transform: translateY(-50%) rotate(-1.5deg); pointer-events: auto; }
.road-stops .evt::after { /* washi tape */ content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(137,60,81, .72); }
.evt-day { display: block; font: 600 1.25rem/1.1 var(--hand); color: var(--red); margin-bottom: 6px; }
.road-stops .evt-tod { font: 500 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.road-stops h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 350; margin: 10px 0 8px; }
.road-stops h3 .icon { width: 30px; height: 30px; color: var(--red); }
.road-stops p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

.road-trail { position: absolute; z-index: 3; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 12px 8px; display: grid; gap: 10px; }
.road-trail li { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(250,246,238,.9); background: rgba(74,48,40,.35); transition: background 300ms, transform 300ms; }
.road-trail li.gap { margin-top: 10px; }
.road-trail li.on { background: var(--red); border-color: #FAF6EE; transform: scale(1.35); }

@media (max-width: 760px) {
  .road-stops .evt { left: 16px; right: 16px; width: auto; top: auto; bottom: max(18px, env(safe-area-inset-bottom)); padding: 20px 20px 22px; transform: translateY(20px) rotate(-1deg); }
  .road-stops .evt.is-active { transform: rotate(-1deg); }
  .road-stops h3 { font-size: 1.7rem; }
  .road-stops p { font-size: .94rem; }
  .road-trail { right: 8px; top: 38%; gap: 7px; }
  .road-trail li { width: 8px; height: 8px; }
  .road-day { font-size: .66rem; letter-spacing: .12em; padding: 6px 14px 8px; }
  .road-day .hand { font-size: 1.3rem; }
}

/* no motion: a simple illustrated list instead of the walk */
@media (prefers-reduced-motion: reduce) {
  .road { height: auto; }
  .road-stage { position: relative; height: auto; overflow: visible; }
  .rs-scene { position: relative; height: 60vh; }
  .road-day, .road-trail { display: none; }
  .road-stops { max-width: 640px; margin: 0 auto; padding: 32px var(--gutter) 80px; display: grid; gap: 24px; }
  .road-stops .evt { position: relative; left: auto; top: auto; width: auto; opacity: 1; transform: none !important; }
  .tassel, .lantern, .intro-sparkles span, .rs-flies span { animation: none !important; }
  .curtain, .valance { transition: none !important; }
  .curtain-l { transform: scaleX(1) !important; } .curtain-r { transform: scaleX(-1) !important; } .valance { transform: none !important; }
}
.rs-layer { position: absolute; top: 0; height: 100%; will-change: transform; }
.rs-layer svg { display: block; width: 100%; height: 100%; }
.rs-land { z-index: 1; }
.rs-layer { z-index: 0; }
.rs-sprites { z-index: 2; }
.rs-night { z-index: 3; }
.lglow { z-index: 4; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(236,219,160, .9) 0%, rgba(233,183,182, .35) 30%, rgba(233,183,182, 0) 68%); opacity: var(--night, 0); mix-blend-mode: screen; transform-origin: 0 0; }
.rs-flies { z-index: 5; }
.sprite { transform-origin: 0 0; }
.intro-branch-tl { top: auto; bottom: 26px; transform: scaleY(-1); }
.intro-branch-br { top: 26px; bottom: auto; transform: scaleX(-1); }
@media (max-width: 600px) { .intro-branch-tl { bottom: 14px; top: auto; } .intro-branch-br { top: 14px; bottom: auto; } }
.env-address { left: 7%; right: auto; bottom: 8%; justify-items: start; text-align: left; }
.env-to { padding-inline: 0; max-width: 36%; font-size: clamp(1.4rem, 4.6vw, 2.2rem); line-height: 1.05; }
.tassel { width: 34%; margin-left: -17%; }
.env-front::before { /* a little red postage stamp */
  content: "囍"; position: absolute; right: 6%; bottom: 10%; width: clamp(40px, 9%, 54px); aspect-ratio: .82;
  display: grid; place-items: center; font: 400 clamp(1.3rem, 3.6vw, 1.8rem)/1 var(--xi); color: #E8D89E;
  background: var(--red); outline: 2px dashed #ECE6DE; outline-offset: -4px; transform: rotate(4deg);
  box-shadow: 0 1px 2px rgba(74,48,40,.2);
}
.intro-branch-br { top: auto; bottom: 26px; transform: scale(-1, -1); }
@media (max-width: 600px) { .intro-branch-br { top: auto; bottom: 14px; } }
.env-to { max-width: 52%; }
.sign-board { top: 9px; width: 88px; height: 68px; aspect-ratio: auto; }
.sign-board .icon { width: 44px; height: 44px; }
.road-day { top: calc(var(--nav-h) + 14px); }

/* ---------- timeline: walking the painted map ---------- */
.road-stage { --paper-tint: #FAF6EE; background: var(--paper-tint); }
.rs-scene { position: absolute; inset: 0; overflow: hidden; }
.rs-stars { z-index: 0; opacity: 0; transition: none; background-size: 100% 60%; background-repeat: repeat; }
.rs-map { position: absolute; left: 0; top: 0; z-index: 1; will-change: transform; mix-blend-mode: multiply; }
.rs-walk { z-index: 2; mix-blend-mode: normal; }
.rs-map img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none;
  /* feather the paper edges into the page so there's no seam */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #4A3028 7%, #4A3028 93%, transparent 100%), linear-gradient(180deg, transparent 0, #4A3028 4%, #4A3028 96%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #4A3028 7%, #4A3028 93%, transparent 100%), linear-gradient(180deg, transparent 0, #4A3028 4%, #4A3028 96%, transparent 100%); mask-composite: intersect; }
.couple .ink { stroke: #6F2C3A; stroke-width: .95; }
.rs-path { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: none; pointer-events: none; }
.rs-flies { z-index: 3; pointer-events: none; }

/* the bride & groom: positioned at their feet, flipped to face the way they walk */
.couple { position: absolute; left: 0; top: 0; z-index: 2; width: 70px; will-change: transform; }
.couple-in { position: relative; transform: translate(-50%, -94%); }
.couple-flip { transform: scaleX(var(--face, 1)); transition: transform 260ms var(--ease-out); }
.couple-bob { transform: translateY(var(--bob, 0)); }
.couple svg { display: block; width: 100%; height: auto; overflow: visible; }
.couple .ink { stroke-linejoin: round; }
.couple .leg { transform-box: view-box; transition: transform 200ms var(--ease-out); }
.couple .gl1 { transform-origin: 40px 98px; } .couple .gl2 { transform-origin: 43px 98px; }
.couple .bl1 { transform-origin: 78px 104px; } .couple .bl2 { transform-origin: 82px 104px; }
.couple .gown { transform-box: view-box; transform-origin: 80px 62px; transition: transform 200ms var(--ease-out); }
.couple.walking .leg { transition: none; }
.couple.walking .gl1, .couple.walking .bl2 { transform: rotate(var(--sw)); }
.couple.walking .gl2, .couple.walking .bl1 { transform: rotate(calc(var(--sw) * -1)); }
.couple.walking .gown { transition: none; transform: skewX(calc(var(--sw) * .12)); }

/* a puff of sparkles when they change outfits */
.poof-fx { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; }
.poof-fx i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; opacity: 0;
  background: #DCA2A8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.couple.poof .poof-fx i { animation: poof 900ms var(--ease-out) forwards; }
.poof-fx i:nth-child(1) { --tx: -42px; --ty: -38px; } .poof-fx i:nth-child(2) { --tx: 44px; --ty: -34px; animation-delay: 60ms !important; }
.poof-fx i:nth-child(3) { --tx: -50px; --ty: 6px; animation-delay: 120ms !important; } .poof-fx i:nth-child(4) { --tx: 52px; --ty: 10px; animation-delay: 40ms !important; }
.poof-fx i:nth-child(5) { --tx: -8px; --ty: -58px; animation-delay: 90ms !important; } .poof-fx i:nth-child(6) { --tx: 14px; --ty: 40px; animation-delay: 150ms !important; background: #9A6064; }
@keyframes poof { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1) rotate(90deg); } }

/* desktop: card on the left, day label above it */
@media (min-width: 761px) {
  .road-stops .evt { left: clamp(20px, 5vw, 80px); width: min(400px, 34vw); }
  .road-day { left: clamp(20px, 5vw, 80px); transform: none; }
}
@media (max-width: 760px) {
  .road-day { top: calc(var(--nav-h) + 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .rs-scene { position: relative; height: auto; }
  .rs-map { position: relative; width: min(100%, 720px) !important; height: auto !important; margin: 0 auto; transform: none !important; }
  .rs-map.rs-walk { position: absolute; left: 50%; top: 0; translate: -50% 0; aspect-ratio: 1400 / 1875; }
  .rs-map img { height: auto; }
  .couple-flip, .couple .leg { transition: none; }
}
