:root {
  --cream: #eee8dd;
  --cream-2: #e7dfd1;
  --ivory: #f7f3eb;
  --paper: #fbf8f2;
  --ink: #3d342d;
  --muted: #665b51;
  --champ: #b7a48d;
  --champ-d: #8a735d;
  --champ-l: #dcc9ad;
  --brown: #6f5846;
  --brown-d: #5d4a3b;
  --espresso: #47382c;
  --line: rgba(138, 115, 93, .32);
  --line-l: rgba(247, 243, 235, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Italiana", Georgia, serif;
  --script: "Mrs Saint Delafield", cursive;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --r-shell: 14px;
  --r-core: 9px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .24  0 0 0 0 .2  0 0 0 0 .16  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--cream); color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--brown); color: var(--ivory); }

/* Grano de papel fijo sobre toda la página (no repinta al hacer scroll) */
body::after { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; background-image: var(--grain); background-size: 240px; opacity: .07; mix-blend-mode: multiply; }

.wrap { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.center { text-align: center; }
.script { font-family: var(--script); font-weight: 400; line-height: 1; }
.eyebrow { font-weight: 600; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--champ-d); }
.eyebrow--light { color: var(--champ-l); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1.04; margin: 16px 0 18px; }
.h2--left { text-align: left; }
.h2, .lede, p, .step__title { text-wrap: pretty; }
.lede { color: var(--muted); font-style: italic; font-size: 21px; }
.sec-head { width: min(860px, 100% - 2 * var(--gutter)); margin: 0 auto 64px; }

/* ---------- PILLS (botón con ícono anidado) ---------- */
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: .24em; text-transform: uppercase; padding: 19px 36px; border-radius: 999px; transition: transform .6s var(--ease), background .5s var(--ease), color .5s var(--ease), box-shadow .6s var(--ease); }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: scale(.98); }
.pill--dark { background: var(--ink); color: var(--ivory); box-shadow: 0 14px 30px -14px rgba(61, 52, 45, .55); }
.pill--dark:hover { background: #2f2823; }
.pill--cream { background: var(--ivory); color: var(--ink); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .35); }
.pill--ghost { border: 1px solid var(--champ-d); padding: 18px 30px; }
.pill--line { border: 1px solid rgba(247, 243, 235, .45); color: var(--ivory); padding: 18px 30px; }
.pill--line:hover { background: rgba(247, 243, 235, .08); }
.pill--icon { padding: 7px 7px 7px 30px; gap: 20px; }
.pill__ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(247, 243, 235, .14); transition: transform .6s var(--ease); }
.pill--cream .pill__ico { background: rgba(61, 52, 45, .08); }
.pill__ico svg, .textlink svg { width: 16px; height: 16px; }
.pill--icon:hover .pill__ico { transform: translate(3px, -2px) scale(1.06); }
.textlink { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid var(--champ-d); padding-bottom: 6px; }
.textlink svg { transition: transform .6s var(--ease); }
.textlink:hover svg { transform: translate(3px, -2px); }

/* ---------- DOBLE BISEL ---------- */
.shell { padding: 7px; border-radius: var(--r-shell); background: rgba(61, 52, 45, .045); box-shadow: inset 0 0 0 1px rgba(61, 52, 45, .07); }
.core { border-radius: var(--r-core); background: var(--paper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 40px 80px -48px rgba(61, 52, 45, .45); overflow: hidden; }

/* ---------- MOVIMIENTO ---------- */
.reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split .wi { display: inline-block; transform: translateY(112%); transition: transform 1.25s var(--ease); transition-delay: calc(var(--i, 0) * 65ms); }
.split.is-in .wi { transform: none; }
.intro { opacity: 0; transform: translateY(16px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.is-loaded .intro { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .intro, .split .wi { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- FONDOS (prueba A / B) ---------- */
.tex { position: relative; isolation: isolate; }
.tex::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* A · Paper: luz cálida difusa y bordes que se oscurecen apenas */
[data-bg="paper"] .invite::before { background: radial-gradient(60% 55% at 50% 0%, rgba(255, 252, 245, .85), transparent 70%), radial-gradient(45% 40% at 0% 100%, rgba(183, 164, 141, .18), transparent 70%), radial-gradient(45% 40% at 100% 100%, rgba(183, 164, 141, .16), transparent 70%); }
[data-bg="paper"] .attire::before { background: radial-gradient(50% 45% at 85% 20%, rgba(255, 252, 245, .8), transparent 70%), radial-gradient(55% 50% at 10% 90%, rgba(183, 164, 141, .2), transparent 70%); }
[data-bg="paper"] .details::before { background: radial-gradient(55% 40% at 50% 0%, rgba(255, 253, 248, .9), transparent 70%), linear-gradient(180deg, transparent 60%, rgba(183, 164, 141, .14)); }
[data-bg="paper"] .stay::before { background: radial-gradient(50% 50% at 15% 30%, rgba(255, 252, 245, .75), transparent 70%), radial-gradient(50% 50% at 90% 80%, rgba(183, 164, 141, .18), transparent 70%); }
[data-bg="paper"] .rsvp::before { background: radial-gradient(60% 50% at 50% 10%, rgba(255, 252, 245, .8), transparent 70%), radial-gradient(40% 35% at 100% 100%, rgba(183, 164, 141, .18), transparent 70%); }
/* B · Lace: el encaje de la invitación, casi invisible, con los mismos degradados */
[data-bg="lace"] .tex::before { background: radial-gradient(70% 60% at 50% 40%, rgba(238, 232, 221, .55), rgba(238, 232, 221, .92) 75%), url(assets/img/lacetex.jpg) center / 1100px auto repeat; opacity: .55; }
[data-bg="lace"] .details::before, [data-bg="lace"] .stay::before { background: radial-gradient(70% 60% at 50% 40%, rgba(247, 243, 235, .6), rgba(247, 243, 235, .93) 75%), url(assets/img/lacetex.jpg) center / 1100px auto repeat; }

.bgtest { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; background: rgba(61, 52, 45, .9); color: var(--ivory); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px); }
.bgtest[hidden] { display: none; }
.bgtest button { padding: 9px 12px; border-radius: 999px; opacity: .65; letter-spacing: .14em; }
.bgtest button.is-on { background: var(--ivory); color: var(--ink); opacity: 1; }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 22px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; opacity: 0; transform: translateY(-16px); transition: opacity 1s var(--ease) 1.4s, transform 1s var(--ease) 1.4s; }
.is-loaded .nav { opacity: 1; transform: none; }
.nav__pill { pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; background: rgba(247, 243, 235, .92); border-radius: 999px; box-shadow: 0 12px 34px -12px rgba(61, 52, 45, .28), inset 0 0 0 1px rgba(255, 255, 255, .6); backdrop-filter: blur(10px); }
.nav__pill a { font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .22em; text-transform: uppercase; padding: 12px 13px; border-radius: 999px; transition: color .4s var(--ease); }
.nav__pill a:hover { color: var(--champ-d); }
.nav__pill a.nav__rsvp { background: var(--ink); color: var(--ivory); padding: 12px 24px; margin-left: 4px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: max(100svh, 700px); margin: 16px 16px 0; border-radius: 6px; overflow: hidden; display: grid; place-items: center; color: var(--ivory); text-align: center; }
.hero__photo { position: absolute; inset: -6% 0; background: url(assets/img/hero.jpg) center 22% / cover no-repeat; transform: scale(1.12); transition: transform 2.8s var(--ease); will-change: transform; }
.is-loaded .hero__photo { transform: translate3d(0, var(--py, 0px), 0) scale(1.02); }
.hero__veil { position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 45%, rgba(38, 28, 20, .3), rgba(38, 28, 20, .6)), linear-gradient(180deg, rgba(38, 28, 20, .25), rgba(38, 28, 20, .45)); }
.hero__frame { position: absolute; inset: 22px; border: 1px solid rgba(247, 243, 235, .35); pointer-events: none; clip-path: inset(0 50% 100% 50%); transition: clip-path 2s var(--ease) .6s; }
.is-loaded .hero__frame { clip-path: inset(0 0 0 0); }
.hero__seal { position: absolute; top: 46px; left: 52px; width: 54px; transition-delay: 1.6s; }
.hero__bsd { position: absolute; top: 50px; right: 56px; font-family: "Frank Ruhl Libre", serif; font-size: 16px; transition-delay: 1.6s; }
.hero__content { position: relative; padding: 140px 24px 120px; display: flex; flex-direction: column; align-items: center; }
.hero__script { font-size: clamp(54px, 7.4vw, 104px); clip-path: inset(-20% 100% -30% 0); transition: clip-path 2.2s var(--ease) .5s; }
.is-loaded .hero__script { clip-path: inset(-20% -5% -30% 0); }
.hero__names { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(42px, 6vw, 84px); letter-spacing: .14em; line-height: 1.05; margin-top: 4px; }
.hero__names .amp { font-family: var(--script); text-transform: none; letter-spacing: 0; margin: 0 .12em; }
.hero__names .wi { transition-delay: calc(.9s + var(--i, 0) * 110ms); }
.hero__rule { width: 120px; height: 1px; background: rgba(247, 243, 235, .6); margin: 30px 0 22px; transform: scaleX(0); transition: transform 1.6s var(--ease) 1.4s; }
.is-loaded .hero__rule { transform: none; }
.hero__date { font-weight: 600; font-size: 14px; letter-spacing: .4em; text-transform: uppercase; transition-delay: 1.55s; }
.hero__venue { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; margin: 10px 0 34px; line-height: 1.8; transition-delay: 1.7s; }
.is-loaded .hero__venue { opacity: .88; }
.hero .pill { transition: opacity 1.2s var(--ease) 1.85s, transform 1.2s var(--ease) 1.85s; }
.hero__cue { position: absolute; bottom: 44px; left: 50%; width: 1px; height: 54px; background: rgba(247, 243, 235, .35); overflow: hidden; }
.hero__cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ivory); animation: cue 2.4s var(--ease-soft) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- INVITE + COUNTDOWN ---------- */
.invite { padding: 150px 0 130px; text-align: center; }
.invite__dear { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.1; letter-spacing: -.005em; margin: 20px 0 28px; text-wrap: balance; }
.invite__dear-word { font-weight: 300; color: var(--champ-d); }
.invite__intro { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.45; color: var(--ink); }
.countdown { width: min(820px, 100% - 2 * var(--gutter)); margin: 90px auto 0; }
.countdown__title { font-weight: 600; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); margin-bottom: 26px; }
.countdown__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.countdown__row > div { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 4px 0; }
.countdown__row > div + div { border-left: 1px solid var(--line); }
.countdown__num { font-family: var(--display); font-size: clamp(48px, 5.4vw, 76px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__unit { font-weight: 600; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

/* ---------- THE DAY (negativo) ---------- */
.day { position: relative; color: var(--ivory); background: radial-gradient(90% 70% at 50% 0%, #7d6553 0%, #604c3d 45%, var(--espresso) 100%); }
.day::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 30% at 15% 85%, rgba(220, 201, 173, .1), transparent 70%), radial-gradient(35% 30% at 90% 30%, rgba(220, 201, 173, .08), transparent 70%); }
.journey { position: relative; height: 300vh; }
.journey__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3.2vh, 34px); padding: 76px 0 12px; overflow: hidden; }
.journey__head { width: min(900px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.journey__head .h2 { font-size: clamp(36px, min(4.6vw, 6.4vh), 64px); margin: 12px 0 10px; }
.day .lede { color: rgba(247, 243, 235, .78); }
.journey__viewport { width: min(1140px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.journey__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; transition: transform .9s var(--ease); }
.moment { background: rgba(247, 243, 235, .05); border: 1px solid var(--line-l); border-radius: 8px; padding: 12px 12px 26px; cursor: pointer; transition: background .8s var(--ease), border-color .8s var(--ease), color .8s var(--ease), transform .9s var(--ease), box-shadow .9s var(--ease); }
.moment__art { aspect-ratio: 16 / 9; border-radius: 4px; background: radial-gradient(ellipse at 50% 55%, rgba(247, 243, 235, .92) 0%, rgba(247, 243, 235, .55) 55%, rgba(247, 243, 235, .15) 100%), url(assets/img/lacetex.jpg) center / cover; display: grid; place-items: center; overflow: hidden; }
.moment__art img { width: 44%; height: auto; filter: drop-shadow(0 10px 16px rgba(93, 74, 59, .18)); transition: transform 1.2s var(--ease); }
.moment.is-active .moment__art img { transform: scale(1.06); }
.moment__time { margin: 22px 10px 8px; font-weight: 700; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--champ-l); transition: color .8s var(--ease); }
.moment__title { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.4vw, 34px); line-height: 1.1; margin: 0 10px 10px; }
.moment__desc { color: rgba(247, 243, 235, .8); font-size: 18px; line-height: 1.5; margin: 0 10px; transition: color .8s var(--ease); }
.moment.is-active { background: var(--paper); border-color: var(--paper); color: var(--ink); transform: translateY(-8px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .55); }
.moment.is-active .moment__time { color: var(--champ-d); }
.moment.is-active .moment__desc { color: var(--muted); }
.rail { position: relative; width: min(1140px, 100% - 2 * var(--gutter)); margin: 0 auto; height: 84px; flex: none; }
.rail::before, .rail__fill { content: ""; position: absolute; top: 30px; left: 0; height: 1px; }
.rail::before { right: 0; background: var(--line-l); }
.rail__fill { width: 0; background: var(--ivory); transition: width .3s var(--ease-soft); }
.rail__stop { position: absolute; top: 30px; width: 60px; height: 60px; transform: translate(-50%, -50%); display: grid; place-items: center; }
.rail__stop::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(247, 243, 235, .55); transition: all .7s var(--ease); }
.rail__stop::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid var(--ivory); transform: scale(.3); opacity: 0; transition: all .8s var(--ease); }
.rail__stop.is-active::before { width: 13px; height: 13px; background: var(--ivory); }
.rail__stop.is-active::after { transform: none; opacity: 1; }
.rail__stop span { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: rgba(247, 243, 235, .6); transition: color .7s var(--ease); }
.rail__stop.is-active span { color: var(--ivory); }
@media (max-height: 820px) and (min-width: 1001px) {
  .journey__pin { padding-top: 72px; gap: 16px; }
  .moment { padding: 10px 10px 18px; }
  .moment__art { aspect-ratio: 16 / 7; }
  .moment__time { margin-top: 16px; }
  .moment__desc { font-size: 17px; }
  .rail { height: 72px; }
}

/* ---------- ATTIRE ---------- */
.looks { position: relative; height: 300vh; }
.looks__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 84px 0 36px; overflow: hidden; }
.attire__grid { width: min(1200px, 100% - 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto .8fr; gap: 72px; align-items: center; }
.attire__copy .h2 { margin-bottom: 26px; }
.attire__label { font-weight: 700; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--champ-d); margin-bottom: 8px; }
.attire__text { color: var(--muted); max-width: 340px; margin-bottom: 34px; font-size: 21px; }
.look { position: relative; }
.look__count { text-align: right; font-size: 16px; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.look__frame { position: relative; margin: 0; height: min(62vh, 580px); aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--cream-2); box-shadow: 0 50px 90px -50px rgba(61, 52, 45, .6); }
.look__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease), transform 2s var(--ease); }
.look__img.is-active { opacity: 1; transform: none; }
.look__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 28px 26px; background: linear-gradient(180deg, rgba(30, 22, 16, 0), rgba(30, 22, 16, .66)); color: var(--ivory); display: flex; flex-direction: column; gap: 8px; }
.look__kicker { font-weight: 700; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; opacity: .9; }
.look__line { font-family: var(--display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; }
.look__polaroid { position: absolute; left: -70px; top: 96px; width: 150px; padding: 10px 10px 12px; background: #fffdf9; border-radius: 6px; box-shadow: 0 24px 50px -18px rgba(61, 52, 45, .35); transform: rotate(-6deg); }
.look__thumb { position: relative; aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: var(--cream-2); }
.look__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease); }
.look__thumb img.is-active { opacity: 1; }
.look__polaroid span { display: block; text-align: center; margin-top: 9px; font-weight: 700; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.badge { position: absolute; right: -54px; top: 58%; width: 112px; height: 112px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 20px 40px -14px rgba(61, 52, 45, .55); }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge text { font-family: var(--serif); font-weight: 600; font-size: 8.6px; letter-spacing: .22em; fill: var(--ivory); }
.badge img { width: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }
.attire__list { list-style: none; }
.attire__list li { border-bottom: 1px solid var(--line); transition: border-color .6s var(--ease); }
.attire__list li.is-active { border-bottom-color: var(--champ-d); }
.attire__list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 20px 0; text-align: left; font-weight: 700; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); transition: color .6s var(--ease); }
.attire__list li.is-active button { color: var(--ink); }
.attire__list i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1px solid var(--line); transition: transform .6s var(--ease); }
.attire__list li.is-active i { transform: scale(1.35); }
.attire__list p { max-height: 0; overflow: hidden; opacity: 0; padding-left: 28px; color: var(--muted); font-size: 18px; line-height: 1.5; transition: max-height .8s var(--ease), opacity .8s var(--ease), padding .8s var(--ease); }
.attire__list li.is-active p { max-height: 120px; opacity: 1; padding-bottom: 20px; }
.looks__bar { width: min(1060px, 100% - 2 * var(--gutter)); margin: 40px auto 0; height: 1px; background: var(--line); }
.looks__bar i { display: block; height: 1px; width: 0; background: var(--ink); transition: width .3s var(--ease-soft); }

/* ---------- DETAILS ---------- */
.details { background: var(--ivory); padding: 150px 0 140px; }
.venue { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.venue__core { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 600px; }
.venue__map { position: relative; overflow: hidden; background: var(--cream-2); }
.venue__map iframe { position: absolute; inset: -180px; width: calc(100% + 360px); height: calc(100% + 360px); border: 0; pointer-events: none; filter: grayscale(1) sepia(.32) saturate(.85) contrast(.92) brightness(1.03); transform: scale(1.06); transition: transform 2.4s var(--ease); }
.venue.is-in .venue__map iframe { transform: scale(1); }
.venue__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 70% at 50% 50%, transparent 55%, rgba(61, 52, 45, .22)), linear-gradient(90deg, transparent 80%, rgba(71, 56, 44, .25)); }
.venue__map-link { position: absolute; inset: 0; z-index: 2; cursor: zoom-in; }
.venue__chip { position: absolute; z-index: 3; left: 22px; bottom: 22px; padding: 10px 16px; border-radius: 999px; background: rgba(247, 243, 235, .92); font-weight: 700; font-size: 11px; letter-spacing: .2em; color: var(--ink); box-shadow: 0 10px 24px -12px rgba(61, 52, 45, .4); pointer-events: none; }
.venue__info { position: relative; padding: 64px 60px 56px; color: var(--ivory); background: radial-gradient(90% 70% at 100% 0%, #7d6553, var(--brown-d) 55%, var(--espresso)); display: flex; flex-direction: column; }
.venue__name { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 3.6vw, 52px); line-height: 1.04; margin: 16px 0 14px; }
.venue__addr { font-style: normal; font-size: 22px; line-height: 1.45; color: var(--ivory); }
.venue__desc { margin-top: 18px; font-size: 19px; color: rgba(247, 243, 235, .82); }
.rows { margin-top: 26px; }
.rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.rows dt { font-style: italic; font-size: 18px; color: var(--champ-d); }
.rows dd { font-family: var(--display); font-size: 22px; text-align: right; }
.rows--light div { border-top-color: var(--line-l); }
.rows--light dt { color: var(--champ-l); }
.venue__note { margin-top: 14px; font-style: italic; font-size: 17px; color: rgba(247, 243, 235, .7); }
.venue__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 34px; }
.facts { width: min(1180px, 100% - 2 * var(--gutter)); margin: 22px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fact .core { height: 100%; padding: 38px 36px 40px; }
.fact__no { font-weight: 700; font-size: 13px; letter-spacing: .22em; color: var(--champ-d); }
.fact__title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.08; margin: 14px 0 12px; }
.fact p { font-size: 19px; line-height: 1.55; color: var(--muted); }
.facts .fact:nth-child(2) { transition-delay: .12s; }
.facts .fact:nth-child(3) { transition-delay: .24s; }

/* ---------- STAY ---------- */
.stay { padding: 40px 0 140px; }
.stay__card { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.stay__core { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; padding: 18px; }
.stay__text { display: flex; flex-direction: column; padding: 46px 48px 40px 40px; }
.stay__kicker { font-weight: 700; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--champ-d); }
.stay__name { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4vw, 58px); line-height: 1.02; margin: 16px 0 18px; }
.stay__desc { font-size: 20px; color: var(--muted); max-width: 420px; }
.stay__text .rows { margin: 30px 0 38px; }
.stay__text .rows div:last-child { border-bottom: 1px solid var(--line); }
.stay__text .pill { align-self: flex-start; margin-top: auto; }
.stay__img { margin: 0; position: relative; border-radius: 6px; overflow: hidden; min-height: 560px; background: var(--cream-2); }
.stay__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 2.6s var(--ease); }
.stay__card.is-in .stay__img img { transform: scale(1); }

/* ---------- RSVP ---------- */
.rsvp { padding: 140px 0; }
.rsvp__card { width: min(1140px, 100% - 2 * var(--gutter)); margin: 60px auto 0; display: grid; grid-template-columns: 1fr 1.15fr; background: var(--paper); border-radius: 12px; overflow: hidden; min-height: 640px; box-shadow: 0 50px 100px -60px rgba(61, 52, 45, .55); }
.rsvp__art { background: radial-gradient(90% 70% at 30% 20%, #7d6553, var(--brown-d) 60%, var(--espresso)); position: relative; display: grid; place-items: center; padding: 50px; }
.rsvp__art img { width: min(80%, 380px); filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .3)); }
.rsvp__art-names { position: absolute; left: 12%; right: 12%; top: 60%; text-align: center; font-style: italic; font-weight: 500; font-size: 34px; line-height: 1.15; color: var(--ink); opacity: .85; text-wrap: balance; }
.rsvp__form { padding: 56px 56px 48px; display: flex; flex-direction: column; }
.rsvp__head { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--champ-d); }
.rsvp__bar { height: 1px; background: var(--line); margin: 16px 0 44px; }
.rsvp__bar i { display: block; height: 1px; width: 33.3%; background: var(--ink); transition: width .8s var(--ease); }
.step { border: 0; display: none; flex-direction: column; flex: 1; }
.step.is-active { display: flex; animation: stepIn .8s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); filter: blur(4px); } }
.step__title { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.4vw, 46px); line-height: 1.08; }
.step__lede { color: var(--muted); margin: 12px 0 30px; }
.step__fine { font-style: italic; color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.step__nav { margin-top: auto; padding-top: 34px; display: flex; justify-content: space-between; gap: 12px; }
.step--done { align-items: flex-start; }
.people { display: grid; }
.person { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.person:last-child { border-bottom: 1px solid var(--line); }
.person__name { font-family: var(--display); font-size: 28px; }
.seg { display: flex; border: 1px solid var(--champ-d); border-radius: 999px; padding: 3px; }
.seg label { cursor: pointer; }
.seg input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: background .4s var(--ease), color .4s var(--ease); }
.seg input:checked + span { background: var(--ink); color: var(--ivory); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { cursor: pointer; }
.chips span { display: block; padding: 9px 18px; border: 1px solid var(--champ-d); border-radius: 999px; font-style: italic; transition: background .4s var(--ease), color .4s var(--ease); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.field { width: 100%; margin-top: 18px; font: inherit; font-style: italic; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; resize: vertical; transition: border-color .4s var(--ease); }
.field:focus { outline: none; border-color: var(--champ-d); }
.is-error { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- REGISTRY ---------- */
.registry { padding: 0 var(--gutter) 140px; }
.registry__panel { position: relative; max-width: 1200px; margin: 0 auto; background: radial-gradient(80% 90% at 50% 0%, #7d6553, var(--brown-d) 60%, var(--espresso)); color: var(--ivory); border-radius: 6px; text-align: center; padding: 90px 40px 96px; }
.registry__frame { position: absolute; inset: 16px; border: 1px solid rgba(247, 243, 235, .25); pointer-events: none; }
.registry__title { font-size: clamp(96px, 11vw, 150px); line-height: 1.15; margin: 34px 0 10px; }
.registry__panel p:not(.eyebrow) { max-width: 560px; margin: 0 auto 40px; opacity: .9; }
.registry__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.registry__btns .pill { min-width: 260px; }

/* ---------- FOOTER ---------- */
.foot { background: radial-gradient(70% 90% at 50% 0%, #4a3f36, var(--ink) 70%); color: var(--ivory); text-align: center; padding: 90px 24px 70px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.foot__seal { width: 60px; }
.foot__sign { font-size: clamp(52px, 6vw, 76px); }
.foot__line { font-style: italic; opacity: .85; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .nav__pill a:not(.nav__rsvp) { display: none; }
  .nav__pill { padding: 4px; }
  .nav__pill a.nav__rsvp { margin-left: 0; }
  .journey { height: 320vh; }
  .journey__viewport { overflow: visible; }
  .journey__track { display: flex; gap: 14px; }
  .moment { flex: 0 0 min(78vw, 420px); }
  .looks { height: 320vh; }
  .looks__pin { padding: 74px 0 18px; }
  .attire__grid { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .attire__copy { text-align: center; }
  .attire__copy .h2 { text-align: center; font-size: 34px; margin: 8px 0 10px; }
  .attire__text { margin: 0 auto; font-size: 17px; }
  .attire__copy .pill, .attire__list, .look__count { display: none; }
  .look__frame { height: min(52vh, 460px); }
  .look__polaroid { left: -26px; top: 26px; width: 92px; padding: 6px 6px 8px; }
  .look__polaroid span { font-size: 7px; letter-spacing: .14em; }
  .badge { right: -14px; top: 18px; width: 80px; height: 80px; }
  .looks__bar { margin-top: 22px; }
  .venue__core { grid-template-columns: 1fr; min-height: 0; }
  .venue__map { min-height: 340px; }
  .facts { grid-template-columns: 1fr; }
  .stay__core { grid-template-columns: 1fr; }
  .stay__img { order: -1; min-height: 300px; }
  .rsvp__card { grid-template-columns: 1fr; }
  .rsvp__art { min-height: 340px; }
  .rsvp__art img { width: min(58%, 300px); }
  .rsvp__art-names { font-size: 30px; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .nav { top: 14px; }
  .hero { margin: 10px 10px 0; }
  .hero__frame { inset: 12px; }
  .hero__seal { top: 30px; left: 30px; width: 40px; }
  .hero__bsd { top: 32px; right: 30px; font-size: 14px; }
  .hero__script { font-size: 46px; }
  .hero__names { letter-spacing: .1em; }
  .hero__names .amp { display: block; margin: 6px 0; }
  .hero__date { letter-spacing: .3em; }
  .invite__dear { font-size: 40px; }
  .invite, .details, .rsvp { padding: 96px 0; }
  .stay { padding: 20px 0 96px; }
  .sec-head { margin-bottom: 40px; }
  .lede { font-size: 19px; }
  .countdown__num { font-size: 42px; }
  .countdown__unit { font-size: 10px; letter-spacing: .16em; }
  .countdown__title { font-size: 11px; letter-spacing: .22em; }
  .journey__pin { gap: 22px; padding-top: 70px; }
  .moment { padding: 10px 10px 22px; }
  .moment__title { font-size: 27px; }
  .moment__desc { font-size: 17px; }
  .rail__stop span { font-size: 10px; letter-spacing: .14em; }
  .venue__info { padding: 40px 26px 34px; }
  .venue__addr { font-size: 20px; }
  .rows dd { font-size: 19px; }
  .fact .core { padding: 30px 26px 32px; }
  .stay__core { padding: 10px; }
  .stay__text { padding: 30px 18px 22px; }
  .stay__img { min-height: 240px; }
  .rsvp__art { min-height: 380px; padding: 30px; }
  .rsvp__art img { width: 78%; }
  .rsvp__art-names { font-size: 24px; top: 62%; }
  .rsvp__form { padding: 34px 22px 30px; }
  .person { flex-direction: column; align-items: flex-start; }
  .seg { width: 100%; } .seg label { flex: 1; text-align: center; }
  .seg span { padding: 12px 8px; font-size: 10px; letter-spacing: .14em; white-space: nowrap; }
  .step__nav .pill { padding: 17px 22px; }
  .registry { padding-bottom: 96px; }
  .registry__panel { padding: 70px 22px 76px; }
  .registry__btns .pill { min-width: 0; width: 100%; }
  .pill { padding: 17px 26px; letter-spacing: .2em; }
  .pill--icon { padding: 6px 6px 6px 24px; }
  .bgtest { left: 50%; transform: translateX(-50%); bottom: 12px; white-space: nowrap; }
  .bgtest span { display: none; }
  .rows div { flex-direction: column; align-items: flex-start; gap: 2px; }
  .rows dd { text-align: left; }
}
