/* High Point option 1: "Two floors". Cool ivory-green ground, one emerald accent, Young Serif with Lexend.
   Signature: a staircase. The glance row climbs in steps, the arch photo rises, and the footer steps back in three bands.
   Nav: split masthead, links either side of a centred emblem; shrinks on scroll; a dropdown panel on phones. Motion: GSAP in assets/js/motion.js, off under reduced motion. */
@font-face { font-family: "Young Serif"; font-weight: 400; font-display: swap; src: url("assets/fonts/young-serif.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 100 900; font-display: swap; src: url("assets/fonts/lexend.woff2") format("woff2"); }
@view-transition { navigation: auto; }
:root {
  color-scheme: light;
  --bg: #eef3ef; --surface: #ffffff; --surface-2: #dde8e1;
  --ink: #10201a; --muted: #4f625a; --line: rgba(16, 32, 26, .14); --line-strong: rgba(16, 32, 26, .42);
  --accent: #0d6a50; --accent-ink: #f3fbf7; --danger: #b3261e;
  --display: "Young Serif", Georgia, serif; --body: "Lexend", system-ui, sans-serif;
  --r: 18px; --max: 1220px; --gutter: clamp(18px, 4vw, 48px); --nav-h: 92px;
  --spring: cubic-bezier(.32, .72, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 1.05rem/1.7 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--accent); overflow-x: clip; }
::selection { background: var(--accent); color: var(--accent-ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 400; letter-spacing: -.015em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); } h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
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(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; border-radius: 999px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
section { padding-block: clamp(60px, 8vw, 116px); }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.link { font-weight: 500; 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: 7px 15px; background: var(--surface-2); border-radius: 999px; font: 500 .74rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 500 1rem var(--body); text-decoration: none; cursor: pointer; transition: background .5s var(--spring), color .5s var(--spring), transform .4s var(--spring), border-color .4s var(--spring); }
.btn:has(.btn__i) { padding: 5px 5px 5px 26px; }
.btn:active { transform: scale(.98); }
.btn__i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .2); 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: #0a553f; }
.btn--light { background: var(--bg); color: var(--ink); } .btn--light .btn__i { background: var(--accent); color: var(--accent-ink); } .btn--light:hover { background: #fff; }
.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--lg { min-height: 60px; font-size: 1.05rem; } .btn--lg .btn__i { width: 50px; height: 50px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }

/* Split masthead: links either side of the emblem; shrinks once the page is scrolled */
.top { position: fixed; z-index: 60; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--gutter); background: rgba(238, 243, 239, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: padding .6s var(--spring), background .5s var(--spring); }
.logo { grid-column: 2; grid-row: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); transition: gap .6s var(--spring); }
.logo img { width: 54px; height: auto; transition: width .6s var(--spring); }
.logo__words { display: grid; text-align: center; line-height: 1.1; } .logo__words b { font: 400 1.25rem var(--display); letter-spacing: -.01em; } .logo__words small { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); max-height: 1.2em; overflow: hidden; transition: max-height .5s var(--spring), opacity .4s; }
.top.is-scrolled { padding-block: 8px; } .top.is-scrolled .logo img { width: 38px; } .top.is-scrolled .logo__words small { max-height: 0; opacity: 0; }
.nav { display: contents; }
.nav__l, .nav__r { grid-row: 1; display: flex; gap: 6px; align-items: center; }
.nav__l { grid-column: 1; justify-content: flex-end; padding-right: clamp(20px, 5vw, 80px); } .nav__r { grid-column: 3; justify-content: flex-start; padding-left: clamp(20px, 5vw, 80px); }
.nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 400; transition: background .4s var(--spring), color .4s var(--spring); }
.nav a:hover { background: var(--surface-2); } .nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav .nav__cta { background: var(--accent); color: var(--accent-ink); } .nav .nav__cta:hover { background: #0a553f; }
.nav__foot { display: none; }
.menu-btn { display: none; }

/* Hero: text left, arch photo right with a round crop overlapping it */
.hero { padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 64px)); padding-bottom: clamp(60px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero__sub { font-size: 1.18rem; color: var(--muted); margin: 22px 0 30px; max-width: 30em; }
.hero__art { position: relative; padding-bottom: 40px; }
.hero__arch { margin: 0; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--surface-2); }
.hero__arch img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.hero__dot { position: absolute; left: -9%; bottom: 0; margin: 0; width: clamp(110px, 18vw, 210px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--bg); background: var(--surface-2); }
.hero__dot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }

/* Steps: the four facts climb */
.steps { padding-block: 0; }
.steps__row { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 0; border-bottom: 3px solid var(--ink); }
.step { margin: 0; padding: 22px 22px 26px; display: grid; align-content: end; gap: 6px; background: var(--surface-2); border-left: 1px solid var(--line-strong); transform-origin: bottom; }
.step--1 { min-height: 150px; background: #e6eee9; } .step--2 { min-height: 200px; background: #d9e6de; } .step--3 { min-height: 250px; background: #cbddd2; } .step--4 { min-height: 300px; background: var(--accent); color: var(--accent-ink); border-left-color: var(--accent); }
.step b { font: 400 clamp(2.6rem, 5vw, 4.2rem)/1 var(--display); } .step span { font-size: .96rem; max-width: 16em; opacity: .85; }

.upper__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.upper__ph { margin: 0; border-radius: var(--r); overflow: hidden; } .upper__ph img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.upper__txt { display: grid; justify-items: start; } .upper__txt h2 { margin-bottom: 18px; } .upper__txt p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 6px; } .ticks li { display: flex; gap: 10px; align-items: center; } .ticks .i { color: var(--accent); width: 1.3em; height: 1.3em; }

.trio { padding-top: 0; }
.trio__row { display: grid; grid-template-columns: .7fr .7fr 1.4fr; gap: clamp(14px, 2.4vw, 28px); align-items: end; }
.trio figure { margin: 0; border-radius: var(--r); overflow: hidden; } .trio img { width: 100%; height: 100%; object-fit: cover; }
.trio__a, .trio__b { aspect-ratio: 9 / 16; } .trio__a { transform: translateY(0); } .trio__b { transform: translateY(-28px); }
.trio__c { position: relative; aspect-ratio: 4 / 3; } .trio__c figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; color: #fff; background: linear-gradient(transparent, rgba(8, 24, 18, .8)); font-size: .98rem; }

/* Reviews climb too */
.said { background: var(--surface); border-block: 1px solid var(--line); }
.said h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.said__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: end; }
.q { margin: 0; padding: 26px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.q--1 { margin-bottom: 0; } .q--2 { margin-bottom: 36px; } .q--3 { margin-bottom: 72px; }
.said blockquote p { font: 400 1.15rem/1.55 var(--display); margin-bottom: 14px; } .said footer { color: var(--muted); font-size: .9rem; }
.said__note { margin: 32px 0 0; color: var(--muted); font-size: .95rem; max-width: 70ch; } .said__note a { color: var(--accent); }
.band { background: var(--accent); color: var(--accent-ink); }
.band__inner { display: grid; justify-items: start; gap: 14px; } .band h2 { font-size: clamp(2.8rem, 8vw, 6.4rem); } .band p { margin: 0 0 14px; opacity: .85; max-width: 34em; }

/* Inner pages */
main > section:first-child:not(.hero) { padding-top: calc(var(--nav-h) + 40px); }
.phead { padding-bottom: clamp(24px, 4vw, 48px); } .phead__lede { color: var(--muted); font-size: 1.15rem; max-width: 40em; margin: 18px 0 0; }
.vhead { padding-bottom: clamp(24px, 4vw, 56px); }
.vhead__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.vhead__lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 22px 0 28px; }
.vhead__photo { margin: 0; border-radius: 999px 999px 24px 24px; overflow: hidden; } .vhead__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.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: 0 0 clamp(40px, 5vw, 72px); } .vmain h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.rows { margin: 0 0 14px; display: grid; border-top: 2px solid var(--ink); }
.rows div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 500; } .rows dd { margin: 0; color: var(--accent); text-align: right; font-weight: 400; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; } .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: 500; }
.quotes { display: grid; border-top: 2px solid var(--ink); }
.quotes blockquote { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); } .quotes p { font: 400 1.12rem/1.55 var(--display); margin-bottom: 6px; } .quotes footer { color: var(--muted); font-size: .9rem; }
address { font-style: normal; margin-bottom: 14px; font-size: 1.1rem; }
.map { background: var(--surface-2); border-radius: var(--r); min-height: 380px; overflow: hidden; } .map iframe { width: 100%; height: 420px; border: 0; display: block; }
.glance, .rsvp__card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.glance { position: sticky; top: 118px; padding: 26px; display: grid; gap: 18px; } .glance h2 { font-size: 1.5rem; margin: 0; }
.glance dl { margin: 0; display: grid; gap: 14px; } .glance dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); } .glance dd { margin: 2px 0 0; }
.glance a:not(.btn) { color: var(--accent); font-weight: 500; }
.rsvp__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 88px); align-items: start; } .rsvp__card { padding: clamp(22px, 4vw, 44px); }
.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: 500; color: var(--accent); }

/* Footer: three bands, each stepped in a little further, like the stairs */
.foot { padding: 0 0 clamp(96px, 10vw, 120px); background: var(--bg); }
.foot a { color: inherit; }
.foot__step { border-top: 3px solid var(--ink); } .foot__step--2 { margin-left: clamp(0px, 5vw, 80px); background: var(--surface-2); } .foot__step--3 { margin-left: clamp(0px, 10vw, 160px); background: var(--ink); color: var(--bg); }
.foot__step--1 { background: var(--bg); }
.foot__row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 5vw, 64px); }
.foot__word { margin: 0; font: 400 clamp(3rem, 9vw, 8rem)/1 var(--display); letter-spacing: -.02em; color: var(--accent); max-width: none; }
.foot__ask { display: grid; justify-items: start; gap: 6px; } .foot__ask p { font-size: 1.2rem; max-width: 22em; }
.foot__row--cols { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
.foot h2 { font: 500 .76rem var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.foot__row--cols p { margin: 0 0 8px; }
.foot__nav { display: grid; } .foot__nav a, .foot__legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; } .foot__nav a:hover, .foot__legal a:hover, .foot__row--cols a:hover { text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 28px; padding-block: 16px; font-size: .92rem; }
.foot__base p { margin: 0; } .foot__legal { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.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(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; transition: transform .4s var(--spring); box-shadow: 0 14px 30px rgba(13, 106, 80, .3); }
.wa:active { transform: scale(.98); }
.grain { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .04; background: url("assets/img/grain.png"); mix-blend-mode: multiply; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
@media (max-width: 900px) {
  .top { display: flex; justify-content: space-between; padding-block: 10px; }
  .logo { flex-direction: row; gap: 10px; } .logo img { width: 40px; } .logo__words small { display: none; } .logo__words { text-align: left; }
  .menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; order: 2; }
  .burger { position: relative; width: 20px; height: 14px; } .burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--spring), opacity .3s; }
  .burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); } .menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; } .menu-btn[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav { display: grid; position: fixed; z-index: 55; left: 0; right: 0; top: 0; padding: 92px var(--gutter) 30px; background: var(--bg); border-bottom: 1px solid var(--line-strong); transform: translateY(-101%); visibility: hidden; transition: transform .7s var(--spring), visibility 0s .7s; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .7s var(--spring), visibility 0s; }
  .nav__l, .nav__r { display: grid; padding: 0; gap: 0; } .nav a { font: 400 1.7rem var(--display); border-radius: 12px; padding: 0 12px; min-height: 52px; }
  .nav__foot { display: block; margin: 14px 12px 0; color: var(--muted); } .nav__foot a { color: var(--ink); }
  .hero__grid, .upper__grid, .vhead__grid, .rsvp__grid, .vlayout, .said__list, .foot__row, .foot__row--cols { grid-template-columns: 1fr; }
  .steps__row { grid-template-columns: 1fr 1fr; } .step { min-height: 0 !important; } .step--3 { order: 3; } .step--4 { order: 4; }
  .hero__art { max-width: 520px; } .hero__dot { left: -2%; }
  .trio__row { grid-template-columns: 1fr 1fr; } .trio__c { grid-column: 1 / -1; } .trio__b { transform: none; }
  .q--2, .q--3 { margin-bottom: 0; }
  .glance { position: static; } .mosaic { grid-template-columns: repeat(2, 1fr); }
  .foot__step--2, .foot__step--3 { margin-left: 0; }
}
@media (max-width: 480px) { h1 { font-size: clamp(2.4rem, 11vw, 3.1rem); } }

/* 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; }
}
