/* The Bell option 1: "Going up". Cool blue-white with one cobalt accent and deep navy, Bellefair with Karla.
   Signature: lift doors that slide open on the hero photo, a floor sign ("5"), a lobby directory board, and a lift-panel menu of round numbered buttons.
   Nav: a round Menu button opens a navy panel of lit round buttons (1 to 4), the same on every screen; Home also stays visible beside it.
   Footer: wayfinding signs, one wide strip per page with an arrow. Motion: GSAP in assets/js/motion.js; off under reduced motion (doors stay open). */
@font-face { font-family: "Bellefair"; font-weight: 400; font-display: swap; src: url("assets/fonts/bellefair.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 200 800; font-display: swap; src: url("assets/fonts/karla.woff2") format("woff2"); }
@view-transition { navigation: auto; }
:root {
  color-scheme: light;
  --bg: #f1f5fb; --surface: #ffffff; --surface-2: #dfe8f5;
  --ink: #0c1d44; --muted: #46597d; --line: rgba(12, 29, 68, .14); --line-strong: rgba(12, 29, 68, .42);
  --accent: #1d4fd1; --accent-ink: #ffffff; --danger: #b3261e;
  --navy: #0c1d44; --navy-2: #16306e;
  --display: "Bellefair", Georgia, serif; --body: "Karla", system-ui, sans-serif;
  --r: 12px; --max: 1200px; --gutter: clamp(18px, 4vw, 48px); --nav-h: 84px;
  --spring: cubic-bezier(.32, .72, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.08rem/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: -.005em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.8vw, 5.8rem); } h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
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: 700; }
.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: 700; 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(--ink); color: #fff; border-radius: 6px; font: 700 .72rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.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: 700 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: 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: #163fb0; }
.btn--light { background: #fff; color: var(--ink); } .btn--light .btn__i { background: var(--accent); color: #fff; } .btn--light:hover { background: var(--surface-2); }
.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; }

/* Top bar and the lift-panel menu */
.top { position: fixed; z-index: 60; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); background: rgba(241, 245, 251, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; } .logo img { width: 40px; height: auto; }
.logo__words { display: grid; line-height: 1.05; } .logo__words b { font: 400 1.5rem var(--display); } .logo__words small { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.top__r { display: flex; align-items: center; gap: 12px; }
.top__home { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-weight: 700; text-decoration: none; border-radius: 999px; } .top__home:hover { background: var(--surface-2); }
.menu-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; box-shadow: 0 8px 22px rgba(12, 29, 68, .28); transition: transform .4s var(--spring), background .4s var(--spring); }
.menu-btn:hover { background: var(--navy-2); } .menu-btn:active { transform: scale(.96); }
.menu-btn__t { font: 700 .62rem var(--body); letter-spacing: .14em; text-transform: uppercase; }
.menu-btn__dots { display: grid; grid-auto-flow: column; gap: 4px; } .menu-btn__dots i { width: 5px; height: 5px; border-radius: 50%; background: #fff; transition: background .4s; }
.menu-btn[aria-expanded="true"] .menu-btn__dots i { background: #8db0ff; }
.nav { position: absolute; z-index: 70; top: calc(100% + 8px); right: var(--gutter); width: min(280px, calc(100vw - 2 * var(--gutter))); display: grid; gap: 10px; padding: 18px; border-radius: 28px; background: var(--navy); color: #fff; box-shadow: 0 30px 70px rgba(12, 29, 68, .4); transform-origin: top right; transform: scale(.92) translateY(-10px); opacity: 0; visibility: hidden; transition: transform .6s var(--spring), opacity .4s var(--spring), visibility 0s .6s; }
.nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .6s var(--spring), opacity .4s var(--spring), visibility 0s; }
.nav a { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 14px; min-height: 56px; text-decoration: none; padding: 4px 4px 4px 16px; border-radius: 999px; transition: background .4s var(--spring); }
.nav a:hover { background: rgba(255, 255, 255, .08); }
.nav__t { font: 400 1.5rem var(--display); }
.lamp { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); font: 700 1.05rem var(--body); transition: background .4s var(--spring), box-shadow .4s var(--spring), border-color .4s; }
.nav a:hover .lamp { border-color: #fff; }
.nav a[aria-current="page"] .lamp { background: #8db0ff; border-color: #8db0ff; color: var(--navy); box-shadow: 0 0 22px rgba(141, 176, 255, .75); }
.nav .nav__cta .lamp { background: var(--accent); border-color: var(--accent); }
.nav__foot { margin: 6px 0 0; text-align: center; font-size: .92rem; opacity: .75; } .nav__foot a { display: inline; min-height: 0; padding: 0; border-radius: 0; }

/* Hero: copy left, lift right */
.hero { padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 70px)); padding-bottom: clamp(60px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.hero__sub { font-size: 1.2rem; color: var(--muted); margin: 22px 0 30px; max-width: 30em; }
.lift { justify-self: center; width: min(100%, 460px); display: grid; gap: 14px; justify-items: center; }
.lift__sign { margin: 0; display: inline-flex; align-items: center; gap: 4px; padding: 8px 18px; border-radius: 8px; background: #050c1f; color: #8db0ff; font: 400 2.4rem/1 var(--display); box-shadow: inset 0 0 14px rgba(141, 176, 255, .3); }
.lift__sign b { font-weight: 400; } .lift__sign .i { width: .9em; height: .9em; transform: rotate(-90deg); }
.lift__frame { position: relative; width: 100%; aspect-ratio: 4 / 5; padding: 14px; border-radius: 22px 22px 6px 6px; background: linear-gradient(160deg, #c9d4e8, #8d9bb8); box-shadow: 0 30px 60px rgba(12, 29, 68, .25); overflow: hidden; isolation: isolate; }
.lift__view { position: absolute; inset: 14px; margin: 0; border-radius: 10px 10px 2px 2px; overflow: hidden; background: var(--navy); z-index: 0; }
.lift__view img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.lift__door { position: absolute; top: 14px; bottom: 14px; width: calc(50% - 14px); z-index: 2; background: repeating-linear-gradient(90deg, #aab6cd 0 2px, #b9c4d9 2px 5px), linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(12, 29, 68, .2)); background-blend-mode: multiply; box-shadow: inset 0 0 0 1px rgba(12, 29, 68, .3); }
.lift__door--l { left: 14px; transform: translateX(-102%); border-radius: 10px 0 0 2px; } .lift__door--r { right: 14px; transform: translateX(102%); border-radius: 0 10px 2px 0; }

/* Directory board */
.board { padding-block: 0 clamp(40px, 6vw, 80px); }
.board__panel { background: var(--navy); color: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 52px); box-shadow: 0 30px 60px rgba(12, 29, 68, .22); }
.board__h { font: 700 .74rem var(--body); letter-spacing: .3em; text-transform: uppercase; color: #8db0ff; margin-bottom: 18px; }
.board__rows { margin: 0; display: grid; }
.board__rows div { display: grid; grid-template-columns: minmax(110px, 190px) 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .22); align-items: baseline; }
.board__rows dt { font: 400 1.7rem/1.1 var(--display); color: #fff; } .board__rows dd { margin: 0; color: #cdd9f3; font-size: 1.08rem; }

.hall__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.hall__a { margin: 0; border-radius: var(--r); overflow: hidden; } .hall__a img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hall__txt { display: grid; justify-items: start; } .hall__txt h2 { margin-bottom: 18px; } .hall__txt p { color: var(--muted); }

.steps2 { padding-top: 0; }
.steps2__row { display: grid; grid-template-columns: .6fr 1.3fr .6fr; gap: clamp(14px, 2.4vw, 28px); align-items: end; }
.s { margin: 0; border-radius: var(--r); overflow: hidden; } .s img { width: 100%; height: 100%; object-fit: cover; }
.s--1 { aspect-ratio: 9 / 16; } .s--2 { aspect-ratio: 16 / 10; } .s--3 { aspect-ratio: 9 / 16; transform: translateY(-40px); }

.garage { background: var(--surface-2); }
.garage__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 6vw, 88px); align-items: center; }
.garage__num { margin: 0; font: 400 clamp(6rem, 18vw, 16rem)/.8 var(--display); color: var(--accent); max-width: none; }
.garage__txt h2 { margin-bottom: 16px; } .garage__txt p { color: var(--muted); font-size: 1.15rem; }

.said h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.said__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.said blockquote { margin: 0; padding: 24px 0 0; border-top: 3px solid var(--accent); }
.said blockquote p { font: 400 1.35rem/1.45 var(--display); margin-bottom: 14px; } .said footer { color: var(--muted); font-size: .94rem; }
.said__note { margin: 32px 0 0; color: var(--muted); font-size: .95rem; max-width: 70ch; } .said__note a { color: var(--accent); font-weight: 700; }
.band { background: var(--navy); color: #fff; }
.band__inner { display: grid; justify-items: start; gap: 14px; } .band h2 { font-size: clamp(3rem, 9vw, 7.4rem); } .band p { margin: 0 0 14px; color: #cdd9f3; 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.2rem; 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.2rem; color: var(--muted); max-width: 34em; margin: 22px 0 28px; }
.vhead__photo { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px rgba(12, 29, 68, .2); } .vhead__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; 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.9rem, 3vw, 2.5rem); }
.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: 700; } .rows dd { margin: 0; color: var(--accent); text-align: right; font-weight: 700; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; } .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.note { color: var(--muted); font-size: .96rem; max-width: 62ch; } .note a { color: var(--accent); font-weight: 700; }
.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.25rem/1.45 var(--display); 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-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: 22px; }
.glance { position: sticky; top: 108px; padding: 26px; display: grid; gap: 18px; } .glance h2 { font-size: 1.7rem; margin: 0; }
.glance dl { margin: 0; display: grid; gap: 14px; } .glance dt { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; } .glance dd { margin: 2px 0 0; }
.glance a:not(.btn) { color: var(--accent); font-weight: 700; }
.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: 700; color: var(--accent); }

/* Footer: wayfinding signs */
.foot { background: var(--navy); color: #fff; padding: clamp(48px, 7vw, 90px) 0 clamp(100px, 10vw, 124px); }
.foot a { color: inherit; text-decoration: none; }
.signs { list-style: none; margin: 0 0 clamp(36px, 5vw, 60px); padding: 0; display: grid; gap: 8px; }
.signs a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 0 clamp(18px, 3vw, 36px); background: var(--navy-2); border-radius: 12px; font: 400 clamp(1.8rem, 4vw, 3rem)/1 var(--display); transition: background .5s var(--spring), padding .5s var(--spring); }
.signs a .i { width: 1.1em; height: 1.1em; color: #8db0ff; transition: transform .5s var(--spring); }
.signs a:hover { background: var(--accent); padding-left: clamp(26px, 4vw, 48px); } .signs a:hover .i { transform: translateX(8px); color: #fff; }
.foot__info { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 5vw, 72px); padding-bottom: 28px; }
.foot h2 { font: 700 .72rem var(--body); letter-spacing: .22em; text-transform: uppercase; color: #8db0ff; margin-bottom: 10px; }
.foot__info p { margin: 0 0 8px; color: #dbe5fb; } .foot__info a:hover, .foot__legal a:hover { text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); color: #b9c8e8; font-size: .92rem; }
.foot__base p { margin: 0; } .foot__legal { display: flex; flex-wrap: wrap; gap: 2px 18px; } .foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.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: 700; text-decoration: none; transition: transform .4s var(--spring); box-shadow: 0 14px 30px rgba(29, 79, 209, .35); }
.wa:active { transform: scale(.98); }
.grain { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .035; 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) {
  .logo__words small { display: none; } .top__home { display: none; }
  .hero__grid, .hall__grid, .vhead__grid, .rsvp__grid, .vlayout, .said__list, .garage__grid, .foot__info { grid-template-columns: 1fr; }
  .board__rows div { grid-template-columns: 1fr; gap: 2px; }
  .lift { width: min(100%, 380px); justify-self: start; }
  .steps2__row { grid-template-columns: 1fr 1fr; } .s--2 { grid-column: 1 / -1; order: 3; } .s--3 { transform: none; }
  .glance { position: static; } .mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { h1 { font-size: clamp(2.6rem, 12vw, 3.3rem); } }

/* 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; }
}
