/* Claire & Adrien — wedding website */

@font-face { font-family: 'Courier Prime'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/courier-prime.woff2) format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/courier-prime-italic.woff2) format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/courier-prime-bold.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 300 500; font-style: normal; font-display: swap; src: url(../fonts/jost.woff2) format('woff2'); }
@font-face { font-family: 'Mrs Saint Delafield'; font-weight: 400; font-display: swap; src: url(../fonts/mrs-saint-delafield.woff2) format('woff2'); }

:root {
  --paper: #f3f0ec;
  --card: #fbfaf7;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --accent: #a8262b;
  --accent-deep: #861d21;
  --mono: 'Courier Prime', ui-monospace, monospace;
  --sans: 'Jost', system-ui, sans-serif;
  --script: 'Mrs Saint Delafield', cursive;
  /* --u: 1px on a 390px phone, grows with the viewport for the collage compositions */
  --u: clamp(0.82px, calc(100vw / 390), 1.75px);
  /* --t: text scale, gentler than --u */
  --t: clamp(1px, calc(0.82px + 0.05vw), 1.32px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: calc(13 * var(--t));
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* paper grain */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #111; }
p, h1, h2, h3, figure, ol { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: min(100% - 80px, 640px); margin-inline: auto; }
.b { font-weight: 700; }
.i { font-style: italic; }
.center { text-align: center; }
.note { font-size: .78em; color: var(--muted); }

.caps {
  font-family: var(--sans); font-weight: 400; text-transform: uppercase;
  font-size: calc(14.5 * var(--t)); letter-spacing: .08em; line-height: 1.35;
}
.script-title {
  font-family: var(--script); font-weight: 400; color: var(--accent);
  font-size: clamp(44px, 9vw, 92px); line-height: 1.2; text-align: center;
  padding: 0 .15em;
}
.script-line { font-family: var(--script); color: var(--accent); text-align: center; font-size: clamp(32px, 6vw, 60px); line-height: 1.2; }

/* ---------- photo bloom: B/W → colour ---------- */
.bloom { width: 100%; height: 100%; overflow: hidden; }
.bloom img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(var(--g, 1)) contrast(1.05); will-change: filter, transform; }

.polaroid { position: absolute; background: #fff; box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(0,0,0,.18); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 150; background: var(--paper); display: grid; place-items: center; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.loader__mono { font-family: var(--sans); font-weight: 300; font-size: clamp(36px, 8vw, 64px); letter-spacing: .25em; padding-left: .25em; }
.loader__mono i { font-family: var(--script); font-style: normal; color: var(--accent); letter-spacing: 0; font-size: 1.3em; }
.loader__date { font-size: 12px; letter-spacing: .3em; color: var(--muted); }
html:not(.js) .loader, .no-motion .loader { display: none; }

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.nav { position: fixed; inset: 0 0 auto; z-index: 110; display: flex; justify-content: space-between; align-items: center; padding: 10px clamp(16px, 4vw, 40px) 18px; pointer-events: none; background: linear-gradient(var(--paper) 55%, rgba(243,240,236,0)); transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-110%); }
.menu-open .nav { transform: none; background: none; }
.nav > * { pointer-events: auto; }
.nav__mono { font-family: var(--sans); font-size: 13px; letter-spacing: .3em; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.nav__toggle { background: none; border: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-family: var(--sans); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; padding: 0; }
.nav__bars { width: 26px; display: grid; gap: 5px; }
.nav__bars i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-open .nav__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .nav__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 105; background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(28px, 8vw, 120px) 40px; clip-path: circle(0% at calc(100% - 40px) 36px); }
.menu[hidden] { display: none; }
.menu__list { list-style: none; padding: 0; display: grid; gap: clamp(2px, 1vh, 10px); }
.menu__list a { display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; font-family: var(--script); color: var(--accent); font-size: clamp(38px, 7.5vh, 76px); line-height: 1.15; transition: transform .5s var(--ease); }
.menu__list a:hover { transform: translateX(10px); color: var(--accent-deep); }
.menu__list small { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.menu__foot { margin-top: 28px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }

.rsvp-pill {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 100;
  min-width: 64px; min-height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; text-decoration: none; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; padding-left: .2em;
  box-shadow: 0 8px 22px rgba(168,38,43,.35); transform: scale(0);
}
.rsvp-pill:hover { color: #fff; background: var(--accent-deep); }
html:not(.js) .rsvp-pill, .no-motion .rsvp-pill { transform: none; }

/* ---------- script marquee rows ---------- */
.script-rows { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; font-family: var(--script); color: var(--accent); white-space: nowrap; pointer-events: none; }
.script-row { display: flex; width: max-content; will-change: transform; }
.script-row span { flex: none; }

/* ---------- 01 hero ---------- */
.hero { --pt: max(calc(70 * var(--u)), calc((100svh - 600 * var(--u)) / 2)); position: relative; min-height: max(100svh, calc(600 * var(--u))); padding-top: var(--pt); display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.hero__kicker { font-family: var(--sans); font-weight: 300; text-transform: uppercase; font-size: calc(22 * var(--u)); letter-spacing: .05em; position: relative; z-index: 2; }
.hero__rows { top: calc(var(--pt) + 48 * var(--u)); gap: calc(6 * var(--u)); font-size: calc(52 * var(--u)); line-height: calc(64 * var(--u)); }
.hero__rows .script-row:nth-child(2) { margin-left: -14%; }
.hero__rows .script-row:nth-child(3) { margin-left: -4%; }
.hero__rows .script-row:nth-child(4) { margin-left: -20%; }
.hero__float { position: relative; z-index: 2; }
.hero__photo { position: relative; margin-top: calc(26 * var(--u)); width: calc(220 * var(--u)); height: calc(270 * var(--u)); padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(10 * var(--u)); transform: rotate(-3deg); z-index: 2; }
.hero__photo img { object-position: 50% 30%; }
.hero__title { position: relative; z-index: 2; text-align: center; padding: calc(40 * var(--u)) 24px 0; display: flex; flex-direction: column; gap: calc(9 * var(--u)); }
.hero h1 { font-family: var(--sans); font-weight: 300; font-size: calc(26 * var(--u)); letter-spacing: .16em; padding-left: .16em; white-space: nowrap; }
.hero h1 .amp { font-family: var(--script); color: var(--accent); letter-spacing: 0; font-size: 1.35em; line-height: 0; display: inline-block; transform: translateY(.06em); margin: 0 .05em 0 -.05em; }
.hero__tag { font-size: calc(12.5 * var(--u)); line-height: 1.45; }
.hero__meta { font-family: var(--sans); font-size: calc(11 * var(--u)); letter-spacing: .2em; }
.scroll-cue { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 22px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .3em; color: var(--muted); }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 02 envelope ---------- */
.invite { position: relative; --u: min(clamp(0.82px, calc(100vw / 390), 1.75px), calc(100svh / 600)); }
.invite__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 70px 0 40px; overflow: hidden; }
.invite__kicker { align-self: flex-end; margin-right: max(32px, 50vw - 260 * var(--u)); font-family: var(--sans); font-weight: 300; font-size: calc(20 * var(--u)); text-transform: uppercase; letter-spacing: .05em; }
.envelope { position: relative; width: calc(300 * var(--u)); height: calc(260 * var(--u)); margin-top: calc(60 * var(--u)); transform: rotate(-6deg); perspective: calc(900 * var(--u)); }
.envelope__back { position: absolute; left: 0; top: calc(70 * var(--u)); width: 100%; height: calc(190 * var(--u)); background: var(--accent); box-shadow: 0 calc(8 * var(--u)) calc(18 * var(--u)) rgba(0,0,0,.2); }
.envelope__flap { position: absolute; left: 0; top: calc(-38 * var(--u)); width: 100%; height: calc(110 * var(--u)); transform-origin: 50% 100%; z-index: 1; transform-style: preserve-3d; }
.envelope__flap svg { width: 100%; height: 100%; display: block; fill: var(--accent); filter: brightness(.92); }
.seal { position: absolute; left: 50%; top: calc(12 * var(--u)); width: calc(40 * var(--u)); height: calc(40 * var(--u)); margin-left: calc(-20 * var(--u)); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c4474b, #7a161a 70%); color: #f6dcdc; display: grid; place-items: center; font-family: var(--script); font-size: calc(17 * var(--u)); box-shadow: 0 2px 4px rgba(0,0,0,.3), inset 0 0 0 calc(3 * var(--u)) rgba(0,0,0,.12); transform: rotateX(180deg) rotate(6deg); opacity: 0; backface-visibility: hidden; }
.envelope__letter { position: absolute; left: calc(26 * var(--u)); top: calc(-6 * var(--u)); width: calc(248 * var(--u)); height: calc(196 * var(--u)); background: var(--card); padding: calc(16 * var(--u)) calc(18 * var(--u)); transform: rotate(8deg); box-shadow: 0 3px 10px rgba(0,0,0,.15); display: flex; flex-direction: column; justify-content: center; gap: calc(6 * var(--u)); font-size: calc(9 * var(--u)); line-height: 1.35; text-align: center; z-index: 2; }
.envelope__letter b { margin-top: calc(2 * var(--u)); }
.envelope__pocket { position: absolute; left: 0; top: calc(70 * var(--u)); width: 100%; height: calc(190 * var(--u)); z-index: 3; }
.no-motion .envelope__letter { z-index: 6; }
.envelope__pocket polygon { fill: var(--accent); }
.envelope__pocket polyline { fill: none; stroke: rgba(0,0,0,.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.envelope__name { position: absolute; left: 0; right: 0; top: calc(212 * var(--u)); text-align: center; font-family: var(--script); font-size: calc(28 * var(--u)); color: #fff; z-index: 4; }
.invite__hint { margin-top: calc(60 * var(--u)); font-size: 11px; letter-spacing: .2em; color: var(--muted); opacity: 0; }

/* ---------- 03 story ---------- */
.story { padding-top: calc(40 * var(--t)); display: flex; flex-direction: column; gap: 12px; }
.chapter { display: flex; flex-direction: column; gap: 12px; }
.chapter h3 { margin-top: 8px; }
.big-line { font-family: var(--script); color: var(--accent); font-size: clamp(34px, 6vw, 54px); line-height: 1.2; margin: 6px 0; }
.rituals > span { background-image: linear-gradient(rgba(168,38,43,.18), rgba(168,38,43,.18)); background-repeat: no-repeat; background-size: 0% 40%; background-position: 0 85%; transition: background-size 1s var(--ease); }
.rituals.is-on > span { background-size: 100% 40%; }
.rituals.is-on > span:nth-child(2) { transition-delay: .35s; }
.rituals.is-on > span:nth-child(3) { transition-delay: .7s; }
.receipt { align-self: center; width: min(240px, 80%); background: #fff; padding: 14px 16px 22px; font-size: 11px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.1); transform: rotate(3deg); position: relative; margin: 10px 0;
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) bottom/12px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) bottom/12px 8px repeat-x; }
.receipt__head { text-align: center; letter-spacing: .15em; border-bottom: 1px dashed #999; padding-bottom: 8px; }
.receipt__row { display: flex; justify-content: space-between; }
.receipt__hand { font-family: var(--script); color: #23336b; font-size: 26px; line-height: 1.05; transform: rotate(-4deg); margin-top: 6px; }
.wave { display: block; width: min(310px, 100%); height: auto; align-self: center; margin: 10px 0; overflow: visible; }
.wave path { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.story .script-line { margin-top: 16px; }

/* ---------- 04 date ---------- */
.date { padding-top: calc(90 * var(--t)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.cal { position: relative; width: 100%; max-width: 1100px; }
.cal__rule { height: 1px; background: var(--ink); transform-origin: 0 50%; }
.cal__days, .cal__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.cal__days span { font-family: var(--sans); text-transform: uppercase; font-size: calc(13 * var(--t)); letter-spacing: .06em; padding: 5px 0; }
.cal__nums > div { position: relative; padding-top: 6px; }
.cal__nums small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.cal__nums b { display: block; overflow: hidden; font-family: var(--sans); font-weight: 300; font-size: clamp(72px, 15vw, 170px); line-height: 1.25; }
.cal__nums b span { display: inline-block; }
.cal__vline { position: absolute; top: calc(-1px - 1.9em); bottom: 0; width: 1px; background: var(--ink); transform-origin: top; font-size: calc(13 * var(--t)); }
.cal__vline--1 { left: 33.333%; }
.cal__vline--2 { left: 66.666%; }
.cal__ring { position: absolute; left: 50%; top: 50%; width: clamp(150px, 31vw, 350px); aspect-ratio: 1; transform: translate(-50%, -46%); overflow: visible; }
.cal__ring ellipse { fill: none; stroke: var(--accent); stroke-linecap: round; }
.date__script { font-family: var(--script); font-size: clamp(34px, 6vw, 64px); margin-top: calc(40 * var(--t)); }
.countdown { display: flex; gap: clamp(14px, 4vw, 48px); margin-top: 22px; font-family: var(--sans); }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.countdown b { font-weight: 300; font-size: clamp(28px, 5vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.btn-ghost { margin-top: 26px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--ink); text-decoration: none; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; position: relative; overflow: hidden; z-index: 0; transition: color .4s var(--ease), border-color .4s; }
.btn-ghost::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.btn-ghost:hover { color: #fff; border-color: var(--accent); }
.btn-ghost:hover::before { transform: none; }

/* ---------- 05 venue ---------- */
.venue { padding-top: calc(90 * var(--t)); text-align: center; display: flex; flex-direction: column; gap: 12px; }
.venue__name { font-family: var(--script); font-weight: 400; color: var(--accent); font-size: clamp(40px, 7vw, 72px); line-height: 1.2; margin-top: 18px; }
.venue__media { position: relative; margin-top: 10px; display: flex; flex-direction: column; align-items: center; }
.wave--wide { width: 100vw; max-width: none; position: relative; z-index: 2; }
.venue__photo { width: calc(230 * var(--u)); height: calc(370 * var(--u)); margin-top: calc(-28 * var(--u)); background: #c9c9c9; }
.venue__photo img { object-position: 50% 40%; }
.wave--under { margin-top: calc(-40 * var(--u)); }

/* ---------- 06 timeline ---------- */
.day { padding: calc(80 * var(--t)) 0 0; }
.day .script-title { margin-bottom: 28px; }
.tl { position: relative; width: min(100% - 72px, 900px); margin-inline: auto; }
.tl__track { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(168,38,43,.2); }
.tl__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.tl__heart { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); color: var(--accent); font-size: 14px; line-height: 1; background: var(--paper); padding: 3px 0; }
.tl__list { list-style: none; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 22px; font-size: calc(12 * var(--t)); line-height: 1.5; }
.tl__list li { display: flex; flex-direction: column; gap: 3px; position: relative; }
.tl__list li::before { content: ''; position: absolute; left: -26px; top: .45em; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--accent); background: var(--paper); transition: background .4s; }
.tl__list li.is-on::before { background: var(--accent); }
.tl__time { font-family: var(--sans); color: var(--accent); font-size: calc(13.5 * var(--t)); letter-spacing: .06em; }
.tl__name { font-family: var(--sans); text-transform: uppercase; font-size: calc(13.5 * var(--t)); letter-spacing: .06em; margin-top: -3px; }
@media (min-width: 900px) {
  .tl__track { left: 50%; }
  .tl__list { padding: 0; gap: 10px; }
  .tl__list li { width: 50%; padding-right: 48px; text-align: right; }
  .tl__list li:nth-child(even) { align-self: flex-end; padding: 0 0 0 48px; text-align: left; }
  .tl__list li::before { left: auto; right: -5px; }
  .tl__list li:nth-child(even)::before { right: auto; left: -4px; }
  .tl__time { font-size: 20px; }
}

/* ---------- 07 vows ---------- */
.vows { padding-top: calc(90 * var(--t)); text-align: center; display: flex; flex-direction: column; gap: 14px; }
.vows__promise { font-style: italic; font-size: 1.25em; line-height: 1.5; margin: 8px 0; }
.vows__promise .word { opacity: .14; }

/* ---------- 08 menu ---------- */
.menu-sec { padding: calc(90 * var(--t)) 36px 0; perspective: 1400px; }
.menu-card { width: min(100%, 560px); margin-inline: auto; background: var(--card); padding: 28px 24px 30px; box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: rotate(-1deg); text-align: center; display: flex; flex-direction: column; gap: 14px; font-size: calc(12 * var(--t)); line-height: 1.5; position: relative; }
.menu-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(168,38,43,.25); pointer-events: none; }
.menu-card .script-title { font-size: clamp(42px, 7vw, 66px); }
.menu-card__sub { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin: -8px 0 4px; }
.course h3 { font-size: 1em; font-weight: 700; text-transform: uppercase; margin-bottom: 3px; letter-spacing: .04em; }
.course + .course::before { content: '· · ·'; display: block; color: var(--accent); letter-spacing: .4em; margin: -4px 0 10px; }

/* ---------- 09 wishes ---------- */
.wishes { padding: calc(90 * var(--t)) 22px 0; }
.wishes .script-title { margin-bottom: 26px; }
.bubbles { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 30px; width: min(100%, 760px); margin-inline: auto; }
.bubble { position: relative; border: 1.5px solid var(--accent); padding: 40px 38px 36px; font-size: calc(11 * var(--t)); line-height: 1.45; width: min(330px, 94%); }
.bubble__n { position: absolute; font-family: var(--sans); font-size: 24px; color: var(--accent); line-height: 1; }
.bubble--1 { align-self: flex-start; border-radius: 46% 54% 50% 50% / 60% 55% 45% 40%; text-align: center; transform: rotate(-2deg); }
.bubble--1 .bubble__n { left: 14px; top: -14px; }
.bubble--2 { align-self: flex-end; border-radius: 54% 46% 44% 56% / 50% 60% 40% 50%; text-align: right; transform: rotate(2deg); }
.bubble--2 .bubble__n { right: 18px; top: -16px; }
.bubble--3 { align-self: flex-start; border-radius: 50% 50% 46% 54% / 44% 56% 44% 56%; transform: rotate(-1deg); width: min(310px, 90%); }
.bubble--3 .bubble__n { left: 8px; top: -18px; }
.bubble--4 { align-self: flex-end; border-radius: 44% 56% 54% 46% / 56% 44% 56% 44%; text-align: center; transform: rotate(1.5deg); width: min(300px, 88%); }
.bubble--4 .bubble__n { left: 24px; top: -18px; }
.swatches { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
@media (min-width: 900px) {
  .bubbles { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 40px; }
  .bubble { width: auto; padding: 44px 44px 36px; }
  .bubble--2, .bubble--4 { margin-top: 60px; }
}

/* ---------- 10 travel ---------- */
.travel { padding-top: calc(90 * var(--t)); display: flex; flex-direction: column; gap: 12px; font-size: calc(12 * var(--t)); line-height: 1.5; }
.travel__cols { display: grid; gap: 24px; margin-top: 8px; }
.travel__col { display: flex; flex-direction: column; gap: 10px; }
.rule-title { font-family: var(--sans); font-weight: 400; font-size: calc(13.5 * var(--t)); letter-spacing: .06em; text-transform: uppercase; padding-bottom: 5px; position: relative; }
.rule-title::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--rule, 1)); }
@media (min-width: 1000px) {
  .travel.wrap { width: min(100% - 80px, 1100px); }
  .travel__cols { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ---------- 11 faq ---------- */
.faq { padding-top: calc(90 * var(--t)); }
.faq .script-title { margin-bottom: 12px; }
.faq__list { border-top: 1px solid rgba(43,43,43,.35); }
.faq details { border-bottom: 1px solid rgba(43,43,43,.35); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 10px 0; font-weight: 700; font-size: calc(12.5 * var(--t)); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-weight: 300; font-size: 24px; color: var(--accent); transition: transform .5s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 0 16px; font-size: calc(12 * var(--t)); }

/* ---------- 12 contacts ---------- */
.contacts { padding: calc(90 * var(--t)) 36px 0; }
.contact-card { position: relative; width: min(100%, 440px); margin-inline: auto; background: var(--card); padding: 30px 20px 22px; box-shadow: 0 4px 16px rgba(0,0,0,.12); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: calc(11.5 * var(--t)); }
.clip { position: absolute; left: 18px; top: -18px; width: 18px; height: 44px; }
.clip path { fill: none; stroke: #8a8a8a; stroke-width: 1.6; }
.contact-card__title { font-family: var(--script); font-weight: 400; font-size: 40px; line-height: 1.2; color: var(--accent); }
.contact-card__links { display: flex; gap: 10px; }
.contact-card__links a { width: 48px; height: 48px; display: grid; place-items: center; transition: transform .4s var(--ease); }
.contact-card__links a:hover { transform: translateY(-3px) rotate(-6deg); }
.contact-card__links svg { width: 28px; height: 28px; }
.contact-card__links circle { fill: var(--accent); }

/* ---------- 13 cheers + share ---------- */
.cheers { position: relative; height: calc(400 * var(--u)); margin-top: calc(60 * var(--t)); overflow: hidden; }
.cheers__rows { top: calc(10 * var(--u)); gap: calc(4 * var(--u)); font-size: calc(54 * var(--u)); line-height: calc(70 * var(--u)); }
.cheers__rows .script-row:nth-child(1) { margin-left: -6%; }
.cheers__rows .script-row:nth-child(3) { margin-left: -18%; }
.cheers__photo { left: calc(50% - 45 * var(--u)); top: calc(50 * var(--u)); width: calc(190 * var(--u)); height: calc(250 * var(--u)); padding: calc(7 * var(--u)); transform: rotate(4deg); }
.cheers__photo img { object-position: 50% 40%; }
.share { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.hashtag { align-self: center; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; min-height: 44px; }
.hashtag span { font-weight: 700; color: var(--accent); font-size: 1.15em; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 1px; transition: background-size .5s var(--ease); }
.hashtag:hover span { background-size: 100% 1px; }
.hashtag small { font-size: 10px; letter-spacing: .15em; color: var(--muted); }

/* ---------- 14 rsvp ---------- */
.rsvp { position: relative; padding: calc(100 * var(--t)) 36px 0; }
.rsvp__form, .rsvp__thanks { width: min(100%, 520px); margin-inline: auto; }
.rsvp__form { display: flex; flex-direction: column; gap: 16px; font-size: calc(12 * var(--t)); }
.rsvp__by { text-align: center; margin-top: -6px; }
.field { display: flex; flex-direction: column; gap: 2px; position: relative; }
.field input, .field textarea { font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 8px 0; min-height: 44px; outline: 0; }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field--area textarea { border: 1px solid var(--ink); padding: 10px; resize: vertical; margin-top: 4px; }
.field--area::after { display: none; }
.field--area textarea:focus { border-color: var(--accent); }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.choice legend { padding: 0; margin-bottom: 6px; }
.choice label { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; }
.choice input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.choice input::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .35s cubic-bezier(.34,1.8,.64,1); }
.choice input:checked { border-color: var(--accent); }
.choice input:checked::before { transform: scale(1); }
.rsvp__more { display: grid; gap: 16px; }
.rsvp__more.is-hidden { display: none; }
.rsvp__note { text-align: center; }
.rsvp__error { color: var(--accent); text-align: center; min-height: 1em; font-size: .95em; }
.rsvp__error:empty { display: none; }
.rsvp__btn { font-family: var(--sans); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: var(--accent); border: 0; min-height: 52px; cursor: pointer; position: relative; overflow: hidden; transition: background .3s; }
.rsvp__btn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .8s var(--ease); }
.rsvp__btn:hover { background: var(--accent-deep); }
.rsvp__btn:hover::after { left: 120%; }
.rsvp__btn[disabled] { opacity: .7; cursor: progress; }
.rsvp__thanks { text-align: center; padding: 40px 0; outline: 0; }
.rsvp__thanks .script-title { font-size: clamp(64px, 14vw, 120px); }
.rsvp__thanks-text { font-size: 1.1em; margin-top: 4px; }
.petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 130; display: none; }

/* ---------- 15 closing ---------- */
.closing { padding-top: calc(110 * var(--t)); text-align: center; display: flex; flex-direction: column; gap: 14px; }
.closing__title { font-family: var(--sans); font-weight: 300; font-size: calc(21 * var(--t)); letter-spacing: .06em; line-height: 1.3; margin-bottom: 4px; }

/* ---------- 16 with love ---------- */
.love { padding: calc(60 * var(--t)) 0 calc(60 * var(--t)); }
.love__stage { position: relative; width: calc(300 * var(--u)); height: calc(380 * var(--u)); margin-inline: auto; }
.love__photo { position: absolute; left: 0; top: 0; width: calc(200 * var(--u)); height: calc(360 * var(--u)); background: #c9c9c9; }
.love__photo img { object-position: 50% 35%; }
.love__sign { position: absolute; right: calc(-14 * var(--u)); top: calc(236 * var(--u)); text-align: left; }
.love__with { display: block; font-family: var(--sans); font-size: calc(34 * var(--u)); letter-spacing: .06em; line-height: 1; }
.love__love { display: block; font-family: var(--script); font-size: calc(48 * var(--u)); line-height: 1; color: var(--accent); margin: calc(-2 * var(--u)) 0 0 calc(20 * var(--u)); padding: 0 .2em .2em 0; }
.love__foot { text-align: center; display: flex; flex-direction: column; gap: 4px; margin-top: calc(26 * var(--u)); font-size: calc(11 * var(--t)); }
.love__names { font-family: var(--sans); font-size: calc(14 * var(--t)); letter-spacing: .2em; }
.to-top { margin-top: 26px; font-size: 11px; letter-spacing: .15em; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; align-self: center; }

/* ---------- split helpers ---------- */
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue i { animation: none; }
  .bloom img { --g: 0; }
}
