:root {
  --plaster: var(--paper); --mortar: #cdbb9b; --cobalt: var(--accent); --night: #0d1b5e; --emerald: #0b4f43; --teal: #2d9d84; --ochre: var(--accent2); --ink: #17204f; --paper: #f3ecdd; --accent: #142a8c; --accent2: #e6a62c; --font-display: Caprasimo, Georgia, serif; --font-body: Spectral, Georgia, serif; --cream: #fbf5e6;
  --display: var(--font-display); --text: var(--font-body);
  --gut: clamp(22px, 6vw, 96px);
  --crack: cubic-bezier(.16, .92, .18, 1);
  --seam: clamp(110px, 13vw, 190px);
}
html { background: var(--plaster); overflow-x: clip; }
body { font: 400 clamp(17px, 1.3vw, 20px)/1.5 var(--text); color: var(--ink); overflow-x: clip; }
main { overflow-x: clip; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.label { font: 700 clamp(12px, .95vw, 14px)/1.2 var(--text); letter-spacing: .18em; text-transform: uppercase; }
.big { font: 400 clamp(52px, 10.5vw, 176px)/.94 var(--display); letter-spacing: -.012em; }
.mid { font: 400 clamp(32px, 4.4vw, 68px)/1.02 var(--display); }

/* A block is cut out of the wall along a jagged line, never faded in. */
.cut { clip-path: polygon(0 0, 0 0, 0 22%, 0 48%, 0 71%, 0 100%, 0 100%); transition: clip-path 1.05s var(--crack) var(--at, 0ms); }
.is-in.cut, .is-in .cut { clip-path: polygon(0 0, 106% 0, 101% 22%, 108% 48%, 102% 71%, 106% 100%, 0 100%); }

/* ─ hero ─ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: clip; background: var(--plaster); }
.hero::before { content: ''; position: absolute; inset: 0; background: url(trencadis-tile.webp) center/cover; }
.hero.is-ready::before { display: none; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; text-align: center; font: 400 clamp(72px, 16vw, 240px)/.95 var(--display); color: var(--cobalt); z-index: 1; }
.no-art .hero__h { inset: 0; width: auto; height: auto; overflow: visible; clip-path: none; display: grid; place-content: center; }
.no-art .hero::before { display: none; }
.hero__top, .hero__bot { position: absolute; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; align-items: baseline; gap: 20px; z-index: 2; pointer-events: none; }
.hero__top { top: clamp(20px, 3.4vh, 38px); }
.hero__bot { bottom: clamp(74px, 10vh, 96px); align-items: flex-end; }
.hero__date { font: 400 clamp(22px, 2.9vw, 44px)/1.05 var(--display); color: var(--cobalt); max-width: 62vw; }
.hero__top > *, .hero__bot > * { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--crack); }
.is-settled .hero__top > *, .is-settled .hero__bot > * { clip-path: inset(-6px -6px -6px -6px); }
.hero__liz { height: auto; position: absolute; right: clamp(-44px, -2vw, -14px); bottom: clamp(60px, 9vh, 92px); width: clamp(130px, 21vw, 330px); z-index: 2; pointer-events: none; transform: translate(70%, 60%) rotate(-14deg); will-change: transform; }
.is-settled .hero__liz { animation: scuttle 1.9s cubic-bezier(.2, .7, .15, 1) forwards; }
@keyframes scuttle {
  0% { transform: translate(70%, 60%) rotate(-14deg); }
  18% { transform: translate(52%, 46%) rotate(-5deg); }
  36% { transform: translate(36%, 33%) rotate(-19deg); }
  54% { transform: translate(20%, 20%) rotate(-7deg); }
  72% { transform: translate(8%, 9%) rotate(-16deg); }
  100% { transform: translate(0, 0) rotate(-10deg); }
}

/* ─ seams: serpentine bench between sections ─ */
.seam { position: relative; height: var(--seam); background: var(--a); z-index: 3; pointer-events: none; }
.seam svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.seam canvas { position: absolute; left: 0; top: -70px; width: 100%; height: calc(100% + 140px); max-width: none; }

/* ─ countdown ─ */
.count { background: var(--cobalt); color: var(--cream); padding: clamp(40px, 6vw, 90px) var(--gut) clamp(56px, 7vw, 110px); }
.count__h { color: var(--ochre); }
.count__grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: clamp(8px, 1.1vw, 18px); margin-top: clamp(22px, 3vw, 40px); align-items: stretch; }
.shard { position: relative; display: grid; align-content: space-between; min-height: clamp(150px, 21vw, 340px); padding: clamp(14px, 2vw, 32px); background: var(--c) ; color: var(--on); isolation: isolate; }
.shard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url(trencadis-tile.webp) var(--p, center)/340%; mix-blend-mode: luminosity; opacity: .34; }
.shard b { font: 400 clamp(46px, 9.4vw, 158px)/.9 var(--display); font-variant-numeric: tabular-nums; }
.shard:first-child b { font-size: clamp(76px, 15vw, 256px); }
.shard:nth-child(1) { clip-path: polygon(0 3%, 97% 0, 100% 62%, 94% 100%, 4% 97%); --c: var(--ochre); --on: var(--night); --p: 20% 30%; }
.shard:nth-child(2) { clip-path: polygon(5% 0, 100% 5%, 95% 100%, 0 92%); --c: #2d9d84; --on: var(--cream); --p: 70% 10%; }
.shard:nth-child(3) { clip-path: polygon(0 6%, 92% 0, 100% 94%, 8% 100%); --c: var(--cream); --on: var(--cobalt); --p: 40% 80%; }
.shard:nth-child(4) { clip-path: polygon(8% 0, 100% 8%, 92% 96%, 0 100%); --c: #3b63ca; --on: var(--cream); --p: 90% 60%; }
.shard.is-tick b { animation: tick .34s var(--crack); }
@keyframes tick { 0% { transform: translateY(-.05em) rotate(-2deg); } 100% { transform: none; } }

/* ─ venue ─ */
.venue { background: var(--ochre); color: var(--night); padding: clamp(40px, 6vw, 90px) var(--gut) clamp(60px, 7vw, 120px); display: grid; grid-template-columns: 1fr minmax(240px, 34vw); gap: clamp(24px, 4vw, 70px); align-items: center; }
.venue h2 { margin-top: 16px; }
.venue address { font-style: normal; font-size: clamp(19px, 1.8vw, 28px); line-height: 1.3; margin: clamp(18px, 2.4vw, 36px) 0; max-width: 24em; }
.blob { aspect-ratio: 1; background: var(--plaster); padding: clamp(8px, 1vw, 14px); border-radius: 62% 38% 55% 45% / 44% 60% 40% 56%; will-change: transform; }
.blob i { display: block; height: 100%; border-radius: inherit; background: url(trencadis-tile.webp) center/150%; }
.tile-btn { display: inline-flex; align-items: center; min-height: 54px; padding: 12px 34px 12px 26px; background: var(--cobalt); color: var(--cream); text-decoration: none; font: 400 clamp(18px, 1.5vw, 23px)/1 var(--display); clip-path: polygon(2% 8%, 97% 0, 100% 86%, 90% 100%, 0 92%); transition: transform .4s var(--crack), background-color .3s; }
.tile-btn:hover { transform: rotate(-1.6deg) scale(1.03); background: var(--night); }

/* ─ bench timeline ─ */
.prog { background: var(--plaster); padding: clamp(40px, 5vw, 80px) 0 clamp(60px, 7vw, 120px); }
.prog__h { padding: 0 var(--gut); color: var(--cobalt); }
.bench { position: relative; margin-top: clamp(14px, 2vw, 30px); }
.bench svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; }
.bench__liz { height: auto; position: absolute; left: 0; top: 0; width: clamp(92px, 11vw, 170px); margin: calc(clamp(92px, 11vw, 170px) / -2) 0 0 calc(clamp(92px, 11vw, 170px) / -2); pointer-events: none; will-change: transform; z-index: 2; }
.hour { position: relative; z-index: 1; min-height: clamp(210px, 25vw, 340px); padding: 0 var(--gut); display: flex; flex-direction: column; justify-content: center; }
.hour:nth-child(even) { align-items: flex-end; text-align: right; }
.hour time { font: 400 clamp(58px, 11vw, 176px)/.9 var(--display); color: var(--c, var(--cobalt)); font-variant-numeric: tabular-nums; }
.hour p { font: italic 400 clamp(23px, 2.8vw, 42px)/1.1 var(--text); margin-top: 6px; }
.hour > * { clip-path: inset(-5% 100% -5% 0); transition: clip-path .9s var(--crack); }
.hour:nth-child(even) > * { clip-path: inset(-5% 0 -5% 100%); }
.hour.is-on > * { clip-path: inset(-10% -6% -10% -6%); }
.hour:nth-child(5n+2) { --c: #0b6e5a; } .hour:nth-child(5n+3) { --c: #b97706; }

/* ─ rsvp ─ */
.reply { background: var(--emerald); color: var(--cream); padding: clamp(40px, 6vw, 90px) var(--gut) clamp(60px, 7vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 90px); align-items: start; }
.reply h2 { color: var(--ochre); }
.rsvp { gap: 20px; font-size: clamp(17px, 1.3vw, 19px); }
.rsvp__choice legend { font: 400 clamp(22px, 2vw, 30px)/1.1 var(--display); margin-bottom: 14px; }
.rsvp__choice { gap: 10px; }
.rsvp__choice label span { display: grid; place-items: center; min-height: 58px; padding: 10px 28px; background: var(--cream); color: var(--night); font-weight: 700; clip-path: polygon(3% 6%, 98% 0, 100% 90%, 92% 100%, 0 94%); transition: background-color .25s, color .25s, transform .45s var(--crack); }
.rsvp__choice label:nth-of-type(2) span { clip-path: polygon(0 0, 94% 7%, 100% 100%, 6% 94%); }
.rsvp__choice label:hover span { transform: rotate(-1.4deg) scale(1.03); }
.rsvp__choice input:checked + span { background: var(--ochre); transform: rotate(-1.4deg) scale(1.04); }
.rsvp__choice input:focus-visible + span { outline: 2px solid var(--ochre); outline-offset: -6px; }
.rsvp__field { font-weight: 500; }
.rsvp__field input { background: rgba(251, 245, 230, .08); border: 0; border-bottom: 2px solid rgba(251, 245, 230, .6); border-radius: 14px 26px 0 0; padding: 10px 14px; min-height: 50px; transition: background-color .25s, border-color .25s; }
.rsvp__field input:focus { outline: 0; background: rgba(251, 245, 230, .16); border-color: var(--ochre); }
.rsvp__submit { background: var(--ochre); color: var(--night); border: 0; min-height: 62px; font: 400 clamp(20px, 1.8vw, 26px)/1 var(--display); clip-path: polygon(1% 10%, 99% 0, 100% 88%, 96% 100%, 0 94%); transition: transform .45s var(--crack), background-color .25s; }
.rsvp__submit:hover { transform: scale(1.015) rotate(-.4deg); background: #f4bd4d; }
.rsvp__note { min-height: 1.5em; }

/* ─ FAQ + details ─ */
.info { background: var(--cream); padding: clamp(40px, 6vw, 90px) var(--gut) clamp(60px, 7vw, 120px); }
.info__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 5vw, 80px) clamp(20px, 3vw, 48px); }
.faq { grid-column: 1 / -1; }
.qa { border-top: 2px solid var(--mortar); }
.qa:last-child { border-bottom: 2px solid var(--mortar); }
.qa button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; min-height: 72px; padding: 14px 0; font: 400 clamp(21px, 2.5vw, 38px)/1.1 var(--display); }
.qa button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.qa i { flex: none; width: 26px; height: 26px; background: var(--ochre); clip-path: polygon(50% 0, 100% 38%, 82% 100%, 16% 92%, 0 34%); transition: transform .6s var(--crack), background-color .3s; }
[aria-expanded=true] i { transform: rotate(144deg); background: var(--cobalt); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--crack); }
[aria-expanded=true] + .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding-bottom: 22px; max-width: 42em; }
.dress { grid-column: 1 / span 5; }
.dress p { font-size: clamp(21px, 2.2vw, 32px); line-height: 1.28; margin-top: 16px; font-style: italic; }
.trans { grid-column: 1 / span 5; }
.menu { grid-column: 7 / -1; grid-row: 2 / span 2; }
.label--tag { display: inline-block; padding: 7px 14px 7px 12px; color: var(--cream); background: var(--cobalt); clip-path: polygon(0 8%, 96% 0, 100% 90%, 4% 100%); }
.menu li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 2px solid var(--mortar); }
.menu h3 { font: 400 clamp(24px, 2.4vw, 36px)/1.1 var(--display); color: var(--emerald); }
.trans li { margin-top: 18px; }
.trans h3 { font: 400 clamp(21px, 1.9vw, 28px)/1.15 var(--display); color: var(--emerald); }

/* ─ gift & signature ─ */
.gift { background: var(--cobalt); color: var(--cream); padding: clamp(40px, 6vw, 90px) var(--gut) clamp(60px, 7vw, 120px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(22px, 5vw, 90px); align-items: end; }
.gift h2 { color: var(--ochre); }
.iban { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; width: 100%; min-height: 64px; margin-top: 24px; padding: 18px 24px; background: var(--cream); color: var(--night); font: 700 clamp(15px, 1.35vw, 19px)/1.25 var(--text); clip-path: polygon(1% 6%, 99% 0, 100% 92%, 97% 100%, 0 95%); transition: transform .45s var(--crack); }
.iban:hover { transform: rotate(-.5deg) scale(1.01); }
.iban:focus-visible { outline: 2px solid var(--ochre); outline-offset: -6px; }
.iban em { font: 700 .75em/1.6 var(--text); letter-spacing: .16em; text-transform: uppercase; font-style: normal; color: var(--cobalt); }
.sign { position: relative; background: var(--plaster); height: clamp(420px, 46vw, 680px); overflow: clip; }
.sign canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.sign p.label { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(20px, 3vw, 40px); display: flex; justify-content: space-between; gap: 18px; pointer-events: none; color: var(--cobalt); }
.sign__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); text-align: center; font: 400 clamp(52px, 12vw, 170px)/1 var(--display); color: var(--cobalt); }
.no-art .sign__h { inset: 0; width: auto; height: auto; overflow: visible; clip-path: none; display: grid; place-content: center; }

@media (max-width: 760px) {
  .count__grid { grid-template-columns: 1fr 1fr 1fr; }
  .shard { min-height: 120px; padding: 12px; }
  .shard:first-child { grid-column: 1 / -1; min-height: 200px; }
  .shard b { font-size: clamp(42px, 13vw, 60px); }
  .shard:first-child b { font-size: clamp(92px, 30vw, 130px); }
  .venue { grid-template-columns: 1fr; }
  .blob { width: 62vw; justify-self: end; margin-top: -8px; }
  .hour { min-height: 204px; }
  .reply, .gift { grid-template-columns: 1fr; }
  .dress, .trans, .menu { grid-column: 1 / -1; grid-row: auto; }
  .hero__date { max-width: 58vw; }
}
html.no-motion .cut, html.no-motion .hour > *, html.no-motion .hero__top > *, html.no-motion .hero__bot > * { clip-path: none !important; transition: none; }
html.no-motion .hero__liz { transform: none; }
/* Document blocks share the ceramic palette, with readable text on every surface. */
.scene { min-width: 0; }
.scene h2, .scene h3, .v-venue__name { overflow-wrap: anywhere; }
.hero__top { align-items: flex-start; }
.hero__top > :last-child { text-align: right; max-width: 40%; }
.hero__top > *, .hero__bot > * { clip-path: none; }
.hero__place { margin-top: 12px; font-size: clamp(17px, 1.5vw, 26px); }
.hero:focus-visible { outline: 4px solid var(--accent); outline-offset: -6px; }
.hero__h { width: auto; height: auto; inset: 20% 7% 26%; clip-path: none; overflow: visible; display: grid; place-content: center; overflow-wrap: anywhere; }
.hero::before { display: none; }
.hero.is-ready .hero__h { width: 1px; height: 1px; inset: auto; overflow: hidden; clip-path: inset(50%); }
.hero__liz { animation: none !important; transform: rotate(-10deg); }
.big, .v-h { font: 400 clamp(42px, 8vw, 138px)/1.08 var(--display); }
.venue__locality { font-size: clamp(20px, 2.5vw, 32px); margin-top: 18px; }
.hour { overflow: hidden; }
.hour .hour__text { font: 400 clamp(17px, 1.5vw, 23px)/1.5 var(--text); max-width: min(50ch, 60%); margin-top: 14px; }
.hour:nth-child(5n+3) { --c: #915800; }
.shard:nth-child(2) { --c: #0b6657; }
.shard::before { display: none; }
.story { background: var(--paper); padding: 64px var(--gut) 90px; }
.dress, .menu, .transport, .faq, .gallery, .extra { display: block; background: var(--cream); padding: 52px var(--gut) 78px; }
.v-prose { margin-top: 30px; max-width: 60ch; font-size: clamp(20px, 2vw, 30px); line-height: 1.55; }
.v-prose p + p { margin-top: 1em; }
.v-dl { max-width: 1000px; margin-top: 32px; }
.v-dl > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; padding: 24px 0; border-top: 2px solid var(--mortar); }
.v-dl dt { font: 400 clamp(25px, 3vw, 42px)/1.15 var(--display); color: var(--emerald); }
.v-dl dd { font-size: clamp(18px, 1.7vw, 25px); max-width: 50ch; }
.v-faq { margin-top: 32px; max-width: 1100px; }
.v-faq > div { border-top: 2px solid var(--mortar); padding: 26px 0; }
.v-faq dt { font: 400 clamp(23px, 3vw, 40px)/1.25 var(--display); }
.v-faq dd { margin-top: 16px; max-width: 65ch; }
.reply .v-h { color: var(--ochre); }
.reply .v-intro { grid-column: 1; }
.reply .v-rsvp { grid-column: 2; grid-row: 1 / span 3; min-width: 0; }
.gift .v-prose { font-size: clamp(20px, 2vw, 28px); }
.v-iban { grid-column: 2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.v-copy { grid-column: 2; background: var(--cream); color: var(--night); border: 0; min-height: 52px; padding: 12px 20px; cursor: pointer; }
.v-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 20px; margin-top: 30px; }
.v-gallery img { width: 100%; height: auto; }
.v-extra__img { max-height: 500px; object-fit: contain; margin-top: 24px; }
/* The generic RSVP form inherits the local dark green sheet. */
.reply { --paper: #0b4f43; --ink: #fbf5e6; --accent: #e6a62c; --on-accent: #0d1b5e; --line: #96b3a5; --ink-soft: #fbf5e6; --font-display: Caprasimo, Georgia, serif; }
.reply .v-h { font-family: var(--display); }
.reply input, .reply textarea, .reply select { background: #fbf5e6; color: #17204f; }
.reply button { min-height: 44px; }
.guide button { min-width: 44px; height: 44px; }
@media(max-width:760px) {
  .big, .v-h { font-size: clamp(38px, 10vw, 68px); }
  .v-dl > div { grid-template-columns: 1fr; gap: 12px; }
  .reply .v-intro, .reply .v-rsvp, .v-iban, .v-copy { grid-column: 1; grid-row: auto; }
  .hour .hour__text { max-width: 75%; }
  .hero__top { gap: 12px; }
  .hero__top .label { font-size: 10px; }
  .hero__date { font-size: clamp(22px, 6vw, 32px); max-width: 64vw; }
  .sign p.label { font-size: 10px; bottom: 80px; }
}
@media(prefers-reduced-motion:reduce) { .hero__liz { animation: none; } }

.reply input::placeholder, .reply textarea::placeholder { color: #465d48; opacity: 1; }
.reply .vf-btn--quiet { min-height: 44px; }
