/* WaterFalls option 1: "Travertine". Mineral stone ground, deep petrol ink, one copper accent (the warm uplights in the courtyard), teal only for the water.
   Bricolage Grotesque for display, Albert Sans for text, both self-hosted. Light theme. Corners: 10px fields, 6px photos, step-cut photographs
   (the cut follows the stone steps beside the fountains). Nav: an editorial masthead, the wordmark centred above a ruled link row that sticks.
   Motion (GSAP, assets/js/motion.js): a petrol curtain lifts off each photograph, headings rise from a blur, the streams drift; CSS: falling dashes. Reduced motion respected. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-display: swap; src: url("assets/fonts/bricolage.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("assets/fonts/albert.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 100 900; font-style: italic; font-display: swap; src: url("assets/fonts/albert-italic.woff2") format("woff2"); }

@view-transition { navigation: auto; }

:root {
  color-scheme: light;
  --bg: #ebeae4; --surface: #f6f5f0; --surface-2: #dedfd7;
  --ink: #0b2f36; --muted: #4a6166; --line: rgba(11, 47, 54, .18); --line-strong: rgba(11, 47, 54, .5);
  --accent: #b5532a; --accent-ink: #ffffff; --water: #0f8aa0; --petrol: #0b2f36; --danger: #b3261e;
  --display: "Bricolage Grotesque", system-ui, sans-serif; --body: "Albert Sans", system-ui, sans-serif;
  --r: 10px; --max: 1220px; --gutter: clamp(18px, 4vw, 44px); --nav-h: 54px;
  --spring: cubic-bezier(.32, .72, 0, 1);
  --steps: polygon(0 0, 100% 0, 100% 80%, 90% 80%, 90% 90%, 76% 90%, 76% 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--accent); overflow-x: clip; }
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8.4vw, 7.6rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0 0 1rem; max-width: 62ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--petrol); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--r); font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
section { padding-block: clamp(64px, 9vw, 130px); }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); }
.link .i { transition: transform .5s var(--spring); }
.link:hover .i { transform: translateX(5px); }
.tag { display: inline-flex; margin: 0 0 18px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 .75rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: background .5s var(--spring), color .5s var(--spring), transform .4s var(--spring); }
.btn:has(.btn__i) { padding: 6px 6px 6px 26px; }
.btn:active { transform: scale(.98); }
.btn__i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, currentColor 18%, transparent); transition: transform .5s var(--spring); }
.btn:hover .btn__i { transform: translate(2px, -1px) scale(1.06); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #983f19; }
.btn--line { border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--quiet { color: var(--ink); text-decoration: underline; padding: 0 10px; }
.btn--light { background: #fff; color: var(--petrol); }
.btn--light:hover { background: var(--surface-2); }
.btn--lg { min-height: 58px; font-size: 1.06rem; }
.btn--lg:has(.btn__i) { padding: 7px 7px 7px 30px; }
.btn--lg .btn__i { width: 44px; height: 44px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* Masthead: wordmark centred, a ruled link row that sticks */
.top { display: contents; }
.top__mast { display: flex; justify-content: center; padding-block: 28px 20px; }
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo .mark { width: 48px; height: 48px; color: var(--petrol); }
.mark .w { stroke: var(--water); }
.logo__words { display: grid; line-height: 1; }
.logo__words b { font: 800 clamp(2rem, 4vw, 2.9rem) var(--display); letter-spacing: -0.04em; }
.logo__words small { font: 600 .74rem var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { position: sticky; top: 0; z-index: 60; background: rgba(235, 234, 228, .94); border-block: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav__in { display: flex; justify-content: center; gap: clamp(20px, 5vw, 64px); min-height: var(--nav-h); align-items: center; }
.nav a { text-decoration: none; font: 600 .86rem var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 10px 2px; border-bottom: 2px solid transparent; transition: border-color .4s var(--spring), color .4s var(--spring); }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .nav__cta { color: var(--accent); }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 80px) clamp(64px, 8vw, 110px); isolation: isolate; }
.hero__streams { position: absolute; inset: 0; z-index: -1; color: var(--water); opacity: .2; }
.streams { width: 100%; height: 100%; display: block; }
.st { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 16 26; animation: flow 7s linear infinite; }
.s0 { animation-delay: -1s; } .s1 { animation-delay: -2.2s; animation-duration: 9s; } .s2 { animation-delay: -3.4s; animation-duration: 6s; } .s3 { animation-delay: -.4s; animation-duration: 11s; }
.s4 { animation-delay: -4.6s; } .s5 { animation-delay: -5.8s; animation-duration: 8s; } .s6 { animation-delay: -2.8s; animation-duration: 10s; } .s7 { animation-delay: -6.4s; animation-duration: 5.5s; }
@keyframes flow { to { stroke-dashoffset: -168; } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.hero__copy { display: grid; justify-items: start; padding-bottom: 8px; }
.hero h1 .hw { display: inline-block; white-space: pre; }
.hero__sub { font-size: 1.2rem; color: var(--muted); margin: 28px 0 32px; max-width: 34em; }
.hero__rating { margin: 26px 0 0; color: var(--muted); font-size: .98rem; }
.hero__photo, .kitchen__photo, .vhead__photo { position: relative; margin: 0; overflow: hidden; clip-path: var(--steps); background: var(--surface-2); }
.hero__photo img, .kitchen__photo img, .vhead__photo img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.curtain { position: absolute; inset: 0; background: var(--petrol); transform-origin: top; transform: scaleY(0); pointer-events: none; }

/* Spaces: a spec sheet */
.spaces__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.spaces__head p { margin: 0; color: var(--muted); }
.sheet { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-strong); }
.sheet li { display: grid; grid-template-columns: clamp(150px, 20vw, 290px) minmax(0, 1fr) auto; gap: 8px clamp(20px, 4vw, 56px); align-items: center; padding-block: 26px; border-top: 1px solid var(--line-strong); }
.sheet__n { font: 800 clamp(3.6rem, 8vw, 7rem)/.9 var(--display); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color .6s var(--spring), -webkit-text-stroke-color .6s var(--spring); }
.sheet li:hover .sheet__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.sheet h3 { margin-bottom: 6px; }
.sheet p { margin: 0; color: var(--muted); }

/* Kitchen */
.kitchen { background: var(--petrol); color: #eaf1ef; }
.kitchen__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
.kitchen .tag { color: #eaf1ef; border-color: rgba(234, 241, 239, .45); }
.kitchen__txt { display: grid; justify-items: start; }
.kitchen__txt h2 { margin-bottom: 20px; }
.kitchen__txt p { color: #c4d4d2; }
.kitchen .link { color: #f0a97f; }
.kitchen .curtain { background: var(--bg); }

/* What we host, as one sentence */
.runs__line { margin: 0; max-width: none; font: 700 clamp(2.4rem, 6.2vw, 5.8rem)/1.04 var(--display); letter-spacing: -0.04em; }
.runs__line a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 .08em no-repeat; transition: background-size .7s var(--spring), color .5s var(--spring); }
.runs__line a:hover { background-size: 100% .08em; color: var(--accent); }
.runs__line i { font-style: normal; color: var(--line-strong); margin-right: .25em; }

/* Guests' words */
.words__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.words blockquote { margin: 0; padding-top: 22px; border-top: 3px solid var(--accent); }
.words blockquote p { font: 600 1.32rem/1.34 var(--display); letter-spacing: -0.015em; margin-bottom: 14px; }
.words footer { color: var(--muted); font-size: .94rem; }
.words__note { margin: 40px 0 0; color: var(--muted); font-size: .95rem; max-width: 70ch; }
.words__note a { color: var(--accent); font-weight: 600; }

/* Around the grounds */
.look__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 32px; }
.look__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 300px 300px; gap: 14px; }
.look__grid figure { margin: 0; overflow: hidden; border-radius: 6px; background: var(--surface-2); }
.look__grid img { width: 100%; height: 100%; object-fit: cover; }
.l1 { grid-column: 1 / span 4; grid-row: 1 / span 2; } .l2 { grid-column: 5 / span 8; grid-row: 1; } .l3 { grid-column: 5 / span 4; grid-row: 2; } .l4 { grid-column: 9 / span 4; grid-row: 2; }

/* Band */
.band { background: var(--petrol); color: #eaf1ef; text-align: center; }
.band__inner { display: grid; justify-items: center; gap: 12px; }
.band h2 { font-size: clamp(3rem, 8vw, 7rem); }
.band p { color: #c4d4d2; margin: 0 0 18px; }

/* Venue, gallery, RSVP */
.phead { padding-block: clamp(32px, 5vw, 64px); }
.phead__lede { color: var(--muted); font-size: 1.2rem; max-width: 40em; margin: 18px 0 0; }
.vhead { padding-block: clamp(32px, 5vw, 64px); }
.vhead__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 6vw, 88px); align-items: end; }
.vhead__lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 22px 0 28px; }
.vlayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(48px, 7vw, 100px); }
.vmain > section { padding-block: 0 clamp(40px, 5vw, 72px); }
.vmain h2 { margin-bottom: 22px; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.rooms__list { margin: 0 0 14px; display: grid; border-top: 1px solid var(--line-strong); }
.rooms__list div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.rooms__list dt { font: 700 1.35rem var(--display); letter-spacing: -0.02em; }
.rooms__list dd { margin: 0; font: 800 1.35rem var(--display); color: var(--accent); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--surface-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.note { color: var(--muted); font-size: .95rem; max-width: 62ch; }
.note a { color: var(--accent); font-weight: 600; }
.quotes { display: grid; border-top: 1px solid var(--line-strong); }
.quotes blockquote { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.quotes p { font: 600 1.35rem/1.34 var(--display); letter-spacing: -0.015em; margin-bottom: 6px; }
.quotes footer { color: var(--muted); font-size: .92rem; }
address { font-style: normal; margin-bottom: 14px; font-size: 1.12rem; }
.map { background: var(--surface); border: 1px solid var(--line); min-height: 380px; border-radius: 8px; overflow: hidden; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }
.glance { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--surface); border: 1px solid var(--line-strong); padding: 26px; display: grid; gap: 18px; border-radius: 8px; }
.glance h2 { font-size: 1.9rem; margin: 0; }
.glance dl { margin: 0; display: grid; gap: 14px; }
.glance dt { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.glance dd { margin: 2px 0 0; }
.glance a:not(.btn) { color: var(--accent); font-weight: 600; }
.rsvp__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.rsvp__card { background: var(--surface); border: 1px solid var(--line-strong); padding: clamp(22px, 4vw, 44px); border-radius: 8px; }
.contact { list-style: none; padding: 0; margin: 22px 0 0; display: grid; }
.contact li { display: flex; align-items: center; gap: 12px; }
.contact a { font-weight: 600; color: var(--accent); }

/* Footer */
.foot { background: #07242a; color: #cfdcda; padding-block: clamp(48px, 6vw, 80px) 24px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot h2 { font: 700 .76rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: #8aa5a3; margin-bottom: 12px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 5vw, 72px); }
.foot__col { display: grid; align-content: start; }
.foot__col p { margin: 0 0 8px; max-width: 28ch; }
.logo--foot { color: #f3f6f4; margin-bottom: 14px; }
.logo--foot .mark { color: #f3f6f4; }
.logo--foot small { color: #8aa5a3; }
.foot__brand p { color: #8aa5a3; max-width: 30ch; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: #8aa5a3; }
.foot__base p { margin: 0; }

.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--petrol); color: #fff; font-weight: 600; text-decoration: none; transition: transform .4s var(--spring); }
.wa:active { transform: scale(.98); }
.grain { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .05; background: url("assets/img/grain.png"); mix-blend-mode: multiply; }

@media (prefers-reduced-motion: reduce) {
  .st { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .top { display: block; }
  .top__mast { justify-content: space-between; align-items: center; padding-block: 16px; }
  .logo .mark { width: 38px; height: 38px; }
  .logo__words b { font-size: 1.7rem; }
  .logo__words small { display: none; }
  .menu-btn { display: inline-block; position: relative; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; z-index: 90; }
  .burger { position: absolute; inset: 0; }
  .burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .6s var(--spring); }
  .burger i:nth-child(1) { top: 18px; } .burger i:nth-child(2) { top: 25px; }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; z-index: 70; border: 0; background: rgba(235, 234, 228, .97); display: grid; align-content: center; opacity: 0; visibility: hidden; transition: opacity .6s var(--spring), visibility 0s .6s; }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--spring), visibility 0s; }
  .nav__in { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav a { font: 800 2.8rem var(--display); letter-spacing: -0.04em; text-transform: none; border: 0; padding: 6px 0; transform: translateY(40px); opacity: 0; transition: transform .8s var(--spring), opacity .8s var(--spring); }
  .nav.is-open a { transform: none; opacity: 1; }
  .nav.is-open a:nth-child(1) { transition-delay: .1s; } .nav.is-open a:nth-child(2) { transition-delay: .17s; } .nav.is-open a:nth-child(3) { transition-delay: .24s; } .nav.is-open a:nth-child(4) { transition-delay: .31s; }
  .hero__grid, .kitchen__grid, .vhead__grid, .rsvp__grid, .spaces__head { grid-template-columns: 1fr; }
  .hero__photo, .kitchen__photo, .vhead__photo { max-width: 420px; }
  .sheet li { grid-template-columns: 1fr; }
  .words__cols { grid-template-columns: 1fr; }
  .look__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .l1, .l2, .l3, .l4 { grid-column: auto; grid-row: auto; height: 260px; }
  .l2 { grid-column: 1 / -1; }
  .vlayout { grid-template-columns: 1fr; }
  .glance { position: static; }
  .foot__grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { h1 { font-size: clamp(2.7rem, 12.5vw, 3.6rem); } }

/* ===== footer variant ===== */
.foot { padding-bottom: clamp(104px, 11vw, 132px) !important; }
.foot a { color: inherit; text-decoration: none; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: .92rem; }
.ft-legal a, .ft-links a { display: inline-flex; align-items: center; min-height: 44px; }
.ft-legal a:hover, .ft-links a:hover { text-decoration: underline; }
.ft-links { display: flex; flex-wrap: wrap; gap: 2px 22px; }

.foot { background: var(--bg) !important; color: var(--ink); padding-top: clamp(32px, 5vw, 64px) !important; }
.foot::before { display: none !important; }
.dp { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.dp section { padding: clamp(24px, 3vw, 40px); border-radius: 14px; }
.dp__map { background: var(--petrol); color: #eaf1ef; display: grid; align-content: start; gap: 8px; }
.dp__links { border: 1px solid var(--line-strong); display: grid; align-content: start; gap: 10px; }
.dp__k { margin: 0; font: 700 .74rem var(--body); letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.dp__addr { margin: 0; font: 800 clamp(1.8rem, 3.6vw, 3rem)/1.05 var(--display); letter-spacing: -0.03em; max-width: 16em; }
.dp__note { margin: 0; color: #b9cdca; }
.dp__btn { justify-self: start; margin-top: 8px; display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: #fff !important; font-weight: 700; }
.dp__list { display: grid; }
.dp__list a { font: 700 1.3rem var(--display); letter-spacing: -0.02em; padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.dp__call, .dp__soc { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.dp__call a { font-weight: 700; color: var(--accent); }
.dp__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; padding-top: 18px; color: var(--muted); font-size: .9rem; }
.dp__base p { margin: 0; }
@media (max-width: 800px) { .dp { grid-template-columns: 1fr; } }

/* Shared components for both Havilah options: RSVP form, gallery grid, lightbox, reveal.
   Relies on tokens defined by each option: --bg --ink --muted --line --line-strong --accent --accent-ink --surface --surface-2 --r */

[hidden] { display: none !important; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* RSVP form */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 650; font-size: .95rem; padding: 0; }
.field .opt, .hint { color: var(--muted); font-weight: 400; font-size: .88rem; }
.hint { margin: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form input[type="number"], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 12px 14px; min-height: 48px;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.field.has-error input, .field.has-error select { border-color: var(--danger, #c0261c); }
.err { margin: 0; color: var(--danger, #c0261c); font-size: .9rem; font-weight: 600; }
.field--radios, .field--branch { gap: 8px; }
.field--radios, .field--branch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field--radios legend, .field--branch legend { width: 100%; margin-bottom: 2px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); font-weight: 600; font-size: .95rem; cursor: pointer; }
.radio input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.radio input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-strong); font-weight: 550; }
.status a { text-underline-offset: 3px; font-weight: 700; }
.form button:disabled { opacity: .6; cursor: progress; }
.done { display: grid; gap: 10px; }
.done h2 { font-size: 1.7rem; }
.done p { margin: 0; color: var(--muted); }
.done a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* Gallery grid */
.all__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 600; font-size: .92rem; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.masonry { columns: 3 260px; column-gap: 18px; }
.tile { break-inside: avoid; margin: 0 0 18px; }
.tile__open { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.tile__open img { width: 100%; height: auto; display: block; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.tile__open:hover img, .tile__open:focus-visible img { transform: scale(1.04); }
.tile__open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tile figcaption { padding-top: 8px; display: grid; gap: 1px; font-size: .95rem; }
.tile figcaption small { color: var(--muted); font-size: .8rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.note a { color: var(--ink); text-underline-offset: 3px; }

/* Lightbox */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; color: #fff; }
.lb::backdrop { background: rgba(8, 10, 12, .92); }
.lb[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb__fig { margin: 0; display: grid; gap: 10px; justify-items: center; max-height: 100dvh; padding: 24px 0; }
.lb__fig img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: var(--r); }
.lb__fig figcaption { color: #dfe5e8; font-size: .95rem; text-align: center; padding-inline: 12px; }
.lb__nav, .lb__x { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lb__nav:hover, .lb__x:hover { background: rgba(255, 255, 255, .24); }
.lb__nav:focus-visible, .lb__x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb__x { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lb .i { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
  .masonry { columns: 2 150px; column-gap: 12px; }
  .lb[open] { grid-template-columns: 1fr; }
  .lb__nav { position: absolute; bottom: 16px; }
  .lb__nav--prev { left: 16px; }
  .lb__nav--next { right: 16px; }
}

/* Picture wrappers must not break layouts that size the image from its parent */
picture { display: contents; }

/* Policy and 404 pages */
.legal { padding-top: clamp(32px, 5vw, 64px); }
.legal__wrap { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal__meta { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin: 30px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink); max-width: 68ch; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 0 0 1rem; }
.legal a { text-underline-offset: 3px; font-weight: 600; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.consent { margin: 0; font-size: .88rem; color: var(--muted); }
.consent a { color: var(--ink); text-underline-offset: 3px; font-weight: 600; }

/* Click-to-load map */
.map__ph { height: 100%; min-height: 380px; display: grid; align-content: center; justify-items: start; gap: 6px; padding: clamp(20px, 4vw, 40px); }
.map__ph p { max-width: 30em; color: var(--muted); margin: 0; }
.map__ph a:not(.btn) { color: var(--ink); text-underline-offset: 3px; font-weight: 600; }

/* Tap targets: links in lists and footers are at least 44px tall */
.foot__col a, .contact a, .foot a { display: inline-flex; align-items: center; min-height: 44px; }
.contact { gap: 0 !important; }
.foot__col { gap: 0 !important; }

/* Floating WhatsApp collapses to an icon on phones so it never covers content */
@media (max-width: 700px) {
  .wa { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wa .i { width: 26px; height: 26px; }
}
