:root {
  --bg: #f6f5f1;
  --paper: #ffffff;
  --ink: #23292f;
  --muted: #565d64;
  --accent: #2f5f83;
  --accent-ink: #ffffff;
  --stone: #cbbfae;
  --line: #ddd8ce;
  --r: 2px;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 7rem;
  --col: 40rem;
  --wide: 68rem;
  --sans: "Sora", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--serif);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .brand, .kicker, .btn, .nav, .lang, dt, .dock, summary, label span, .cal, .dist, .small {
  font-family: var(--sans);
}
h1, h2, h3 { font-weight: 300; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 var(--s3); overflow-wrap: normal; word-break: keep-all; hyphens: none; }
h1 { font-size: clamp(3.2rem, 17vw, 7.5rem); font-weight: 300; letter-spacing: -.04em; margin: var(--s2) 0 var(--s3); }
h2 { font-size: clamp(1.6rem, 6.5vw, 2.4rem); }
h3 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: var(--s2); }
p { margin: 0 0 var(--s2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.col { width: min(100% - 2.5rem, var(--col)); margin-inline: auto; }
.wide { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.block { padding-block: var(--s5); }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s2);
  padding: .5rem 1.25rem; background: rgba(246,245,241,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 600; text-decoration: none; letter-spacing: .02em; font-size: 1.05rem; }
.nav { display: none; gap: var(--s3); margin-left: auto; font-size: .85rem; }
.nav a { text-decoration: none; color: var(--muted); padding: .75rem 0; }
.nav a:hover { color: var(--accent); }
.lang { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: var(--r); }
.lang button {
  font: 600 .75rem var(--sans); letter-spacing: .08em; background: none; border: 0; color: var(--muted);
  min-width: 44px; min-height: 44px; cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }

/* progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 40; }

/* hero */
.hero { padding-top: var(--s4); }
.kicker { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.lead { font-size: 1.2rem; color: var(--ink); max-width: 34rem; }
.hero-photo { position: relative; margin-top: var(--s4); margin-bottom: var(--s5); }
.unveil { margin: 0; overflow: hidden; border-radius: var(--r); }
.unveil img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; }
.inset {
  position: absolute; width: 42%; max-width: 17rem; right: -.25rem; bottom: -2.5rem;
  border: 6px solid var(--bg); border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover;
  box-shadow: 0 10px 30px rgba(35,41,47,.12);
}
.stamp {
  position: absolute; left: .75rem; top: .75rem; width: 6.5rem; height: 6.5rem;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(246,245,241,.9); color: var(--ink); text-decoration: none;
}
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.stamp text { font: 600 9.5px var(--sans); letter-spacing: .2em; fill: var(--ink); }
.stamp-arrow { font: 400 1.4rem var(--sans); color: var(--accent); }
.hero-cta { padding-bottom: var(--s3); }
.direct { font-style: italic; color: var(--muted); font-size: .98rem; }

/* buttons */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: var(--r);
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  font: 600 .9rem var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  max-width: 100%; text-align: center;
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }

/* ribbon */
.ribbon-wrap { overflow-x: clip; padding-block: var(--s3); }
.ribbon { background: var(--accent); color: var(--accent-ink); transform: rotate(-2deg); width: 110%; margin-left: -5%; }
.ribbon-track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.ribbon-track span { font: 400 .95rem var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .8rem 0; white-space: nowrap; }
.ribbon-track span::after { content: "·"; padding-inline: 1.25rem; opacity: .7; }

/* essentials */
.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); margin: 0 0 var(--s4); }
.numbers div { display: flex; flex-direction: column-reverse; border-top: 1px solid var(--line); padding-top: var(--s2); }
.numbers dd { margin: 0; font: 300 clamp(2.6rem, 12vw, 3.6rem)/1 var(--sans); letter-spacing: -.04em; color: var(--ink); }
.numbers small { font-size: .35em; letter-spacing: 0; margin-left: .2em; color: var(--muted); }
.numbers dt { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.note { color: var(--muted); }

/* divider */
.divider { color: var(--stone); }
.divider svg { width: 100%; height: 40px; display: block; }

/* photos */
.photo { margin: var(--s4) 0 0; }
.photo img { border-radius: var(--r); width: 100%; }
.tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.words .w { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .6s ease, transform .6s ease; }
.words.in .w { opacity: 1; transform: none; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: var(--s3); }
.tile { padding: 0; border: 0; background: var(--line); border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; min-width: 0; }
.tile.span2 { grid-column: span 2; aspect-ratio: 16 / 9; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.03); }
.jelly { animation: jelly .45s ease; }

/* amenities */
.amen { display: grid; gap: var(--s4); }
.amen ul { list-style: none; margin: 0; padding: 0; }
.amen li { display: flex; gap: .9rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.amen svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-top: .2rem; }
.ph { color: #7a5b2e; background: #f1e9da; padding: 0 .25em; border-radius: var(--r); }

/* slideshow */
.slideshow { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); margin-top: var(--s4); background: var(--line); }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.slideshow img.on { opacity: 1; }

/* location */
.dist { list-style: none; padding: 0; margin: var(--s3) 0; }
.dist li { display: flex; justify-content: space-between; gap: var(--s2); padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.dist b { font-weight: 600; text-align: right; }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }
.link { color: var(--accent); text-underline-offset: 3px; display: inline-block; padding-block: .6rem; }

/* calendar */
.cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2); }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-month { margin: 0; font-weight: 600; text-transform: capitalize; }
.cal-nav { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: none; border-radius: var(--r); cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: var(--s2); }
.cal-grid .dow { font-size: .7rem; text-align: center; color: var(--muted); padding: .3rem 0; }
.cal-grid button { min-height: 40px; min-width: 0; border: 0; background: none; border-radius: var(--r); font: 400 .9rem var(--sans); color: var(--ink); cursor: pointer; }
.cal-grid button:hover:not(:disabled) { background: var(--bg); }
.cal-grid button:disabled { color: #b8b3aa; text-decoration: line-through; cursor: default; }
.cal-grid button.past { text-decoration: none; }
.cal-grid button.sel { background: var(--accent); color: var(--accent-ink); }
.cal-grid button.range { background: #dce6ee; }
.cal-legend { font-size: .75rem; color: var(--muted); margin: var(--s2) 0 0; display: flex; align-items: center; gap: .4rem; }
.sw { display: inline-block; width: .8rem; height: .8rem; border-radius: var(--r); border: 1px solid var(--line); }
.sw-busy { background: #e6e2da; margin-left: .8rem; }

/* form */
.form { display: grid; gap: var(--s2); margin-top: var(--s3); }
.form label { display: grid; gap: .3rem; min-width: 0; }
.form label span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 1rem var(--serif); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); padding: .75rem .8rem; min-height: 48px;
  min-width: 0; max-width: 100%; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-note { color: var(--accent); font-size: .9rem; min-height: 1em; margin: 0; }
.small { font-size: .82rem; color: var(--muted); }

/* rules & faq */
.rules { margin: 0; }
.rules div { display: flex; justify-content: space-between; gap: var(--s2); padding: .7rem 0; border-bottom: 1px solid var(--line); }
.rules dt { font-size: .9rem; }
.rules dd { margin: 0; text-align: right; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 0; font-size: .95rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; }
summary::after { content: "+"; color: var(--accent); font-weight: 300; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

/* footer */
.foot { padding: var(--s5) 0 calc(var(--s6) + 1rem); border-top: 1px solid var(--line); text-align: center; }
.foot-horizon { width: 100%; height: 40px; color: var(--stone); margin-bottom: var(--s3); }
.foot .brand { font-size: 1.4rem; font-weight: 300; }

/* dock */
.dock {
  position: fixed; left: 50%; bottom: .75rem; z-index: 30;
  display: flex; gap: .25rem; padding: .3rem; border-radius: var(--r);
  background: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transform: translate(-50%, 150%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
  max-width: calc(100% - 1.5rem);
}
.dock.show { transform: translate(-50%, 0); }
.dock-btn { position: relative; overflow: hidden; display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .85rem; color: #fff; text-decoration: none; font-size: .8rem; font-weight: 600; border-radius: var(--r); }
.dock-btn:first-child { background: var(--accent); }
.dock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(20,24,28,.94); touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb-img { position: absolute; border-radius: var(--r); object-fit: contain; max-width: none; will-change: transform; }
.lb button { position: absolute; z-index: 2; min-width: 48px; min-height: 48px; border: 0; background: rgba(255,255,255,.1); color: #fff; font: 300 1.8rem/1 var(--sans); border-radius: var(--r); cursor: pointer; }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes unveil { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes drop { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes jelly { 0% { transform: scale(1, 1); } 30% { transform: scale(1.06, .94); } 55% { transform: scale(.97, 1.03); } 80% { transform: scale(1.01, .99); } 100% { transform: scale(1, 1); } }

.unveil img { animation: unveil 1.3s cubic-bezier(.7,0,.2,1) both; }
.inset { animation: drop .9s 1s cubic-bezier(.2,.8,.2,1) both, float 6s 1.9s ease-in-out infinite; }
.rise { animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }

@media (min-width: 640px) {
  .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stamp { width: 8rem; height: 8rem; left: 1.5rem; top: 1.5rem; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .tile.span2 { grid-column: span 2; }
}
@media (min-width: 900px) {
  :root { --s5: 6rem; }
  .nav { display: flex; }
  .lang { margin-left: var(--s3); }
  .unveil img { aspect-ratio: 2000 / 677; }
  .inset { width: 30%; right: -1.5rem; bottom: -3.5rem; }
  .numbers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wide-sm { width: calc(100% + 8rem); margin-left: -4rem; }
}
@media (pointer: fine) {
  .tile { transition: transform .35s ease; transform-style: preserve-3d; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .words .w { opacity: 1; transform: none; }
  .ribbon-track { transform: none; }
}
