/* De Brit option 2: "Night in Benin". Deep pool-teal with one orange accent (the pool-side cushions), Epilogue with Mulish.
   Signature: a booking bar fixed to the bottom of the screen (check-in, check-out, guests) on every page except the request form, and rooms in a sideways scroller.
   Nav: a solid orange logo block flush in the top-left corner, links on the right over a thick rule; on phones a Menu button drops a panel.
   Footer: a huge "Sleep well." sign-off over three columns. Motion: GSAP in assets/js/motion.js; off under reduced motion. */
@font-face { font-family: "Epilogue"; font-weight: 100 900; font-display: swap; src: url("assets/fonts/epilogue.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 200 1000; font-display: swap; src: url("assets/fonts/mulish.woff2") format("woff2"); }
@view-transition { navigation: auto; }
:root {
  color-scheme: dark;
  --bg: #0b2527; --surface: #11353a; --surface-2: #184249;
  --ink: #eef6f4; --muted: #a3c4c0; --line: rgba(240, 138, 60, .22); --line-strong: rgba(240, 138, 60, .6);
  --accent: #f08a3c; --accent-ink: #1d1004; --danger: #ffb3ad;
  --display: "Epilogue", system-ui, sans-serif; --body: "Mulish", system-ui, sans-serif;
  --r: 10px; --max: 1200px; --gutter: clamp(18px, 4vw, 48px); --nav-h: 84px; --bar-h: 88px;
  --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%; scrollbar-color: #1f5a63 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1rem/1.7 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--accent); overflow-x: clip; padding-bottom: var(--bar-h); }
body[data-page="stay"] { padding-bottom: 0; }
::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: 800; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.4vw, 6.6rem); } h1 span { color: var(--accent); display: block; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); } h3 { font-size: 1.7rem; letter-spacing: -.02em; }
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; font-weight: 800; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
section { padding-block: clamp(60px, 8vw, 120px); }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.link { font-weight: 800; 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 14px; background: var(--accent); color: var(--accent-ink); border-radius: 3px; font: 800 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 26px; border-radius: var(--r); border: 1.5px solid transparent; font: 800 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: 0 0 0 24px; }
.btn:active { transform: scale(.98); }
.btn__i { display: grid; place-items: center; width: 52px; height: 52px; border-left: 1.5px solid rgba(29, 16, 4, .3); transition: transform .5s var(--spring); }
.btn:hover .btn__i { transform: translate(2px, -1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); } .btn--primary:hover { background: #ffa05a; }
.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: 60px; height: 60px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }

/* Header: logo block in the corner, links over a thick rule */
.top { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: var(--nav-h); display: flex; align-items: stretch; justify-content: space-between; background: rgba(11, 37, 39, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 4px solid var(--accent); }
.logo { display: grid; place-items: center; width: var(--nav-h); background: var(--accent); } .logo img { width: 46px; height: auto; background: #fff; border-radius: 10px; padding: 5px; }
.top__name { margin: 0 auto 0 18px; display: grid; align-content: center; line-height: 1.1; max-width: none; } .top__name b { font: 800 1.2rem var(--display); letter-spacing: -.02em; } .top__name small { color: var(--muted); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.nav { display: flex; align-items: stretch; padding-right: var(--gutter); }
.nav a { display: inline-flex; align-items: center; padding: 0 20px; text-decoration: none; font-weight: 800; transition: background .4s var(--spring), color .4s var(--spring); }
.nav a:hover { background: var(--surface); } .nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -4px 0 var(--accent); }
.nav .nav__cta { background: var(--surface-2); margin-left: 8px; } .nav .nav__cta:hover { background: var(--accent); color: var(--accent-ink); }
.nav__tel { color: var(--muted); font-weight: 700; } .menu-btn { display: none; }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: end; overflow: hidden; padding-block: calc(var(--nav-h) + 40px) 90px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; margin: 0; z-index: -2; } .hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 37, 39, .97) 8%, rgba(11, 37, 39, .55) 52%, rgba(11, 37, 39, .4)); }
.hero__in { display: grid; justify-items: start; }
.hero__sub { font-size: 1.2rem; color: #d3e6e3; margin: 22px 0 30px; max-width: 32em; }

/* Rooms: a sideways scroller */
.rooms { padding-inline: 0; }
.rooms__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); } .rooms__head p { color: var(--muted); margin: 0; }
.rooms__list { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 22px; scrollbar-width: thin; scrollbar-color: var(--accent) var(--surface-2); }
.room { flex: none; width: min(88vw, 440px); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.room__ph { margin: 0; } .room__ph img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.room__body { padding: 24px; display: grid; align-content: start; gap: 0; } .room__body h3 { margin-bottom: 10px; } .room__body > p { color: var(--muted); }
.room__feat { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; } .room__feat li { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: .88rem; font-weight: 700; }
.room__rate { margin: 0 0 16px; color: var(--muted); } .room__rate b { font: 800 1.8rem var(--display); color: var(--accent); letter-spacing: -.02em; }
.rooms--page { padding-inline: 0; padding-block: 0 clamp(40px, 5vw, 72px); } .rooms--page .rooms__list { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; overflow: visible; } .rooms--page .room { width: auto; min-width: 0; }

.amen { background: var(--surface); border-block: 1px solid var(--line-strong); } .amen--page { background: none; border: 0; padding-block: 0 clamp(40px, 5vw, 72px); }
.amen__grid2 { display: grid; grid-template-columns: .5fr 1.5fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.amen__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 4vw, 56px); }
.amen__grid li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.amen__grid .i { width: 2rem; height: 2rem; color: var(--accent); }
.amen__grid span { display: grid; line-height: 1.3; } .amen__grid b { font-weight: 800; font-size: 1.08rem; } .amen__grid small { color: var(--muted); font-size: .9rem; }
.amen--page .amen__grid { grid-template-columns: minmax(0, 1fr); }

.dine { position: relative; isolation: isolate; overflow: hidden; }
.dine__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 85% 20%, rgba(240, 138, 60, .22), transparent 60%), var(--bg); }
.dine__grid { display: grid; grid-template-columns: 1.2fr .6fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.dine__txt h2 { margin-bottom: 18px; } .dine__txt p { color: #cfe3e0; font-size: 1.18rem; } .dine__txt { display: grid; justify-items: start; }
.dine__ph { margin: 0; border: 1px solid var(--line-strong); padding: 8px; transform: rotate(2deg); } .dine__ph img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }

.said { background: var(--surface); border-block: 1px solid var(--line-strong); }
.said__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.said blockquote { margin: 0; }
.said__lead { position: relative; padding-top: 70px; } .said__lead::before { content: "\201C"; position: absolute; top: -10px; left: -6px; font: 800 9rem/1 var(--display); color: var(--accent); }
.said__lead p { font: 700 clamp(1.5rem, 2.8vw, 2.3rem)/1.3 var(--display); letter-spacing: -.02em; margin-bottom: 16px; }
.said__side { display: grid; gap: 26px; } .said__side blockquote { padding-top: 22px; border-top: 3px solid var(--accent); } .said__side p { font: 400 1.12rem/1.5 var(--body); margin-bottom: 10px; }
.said footer { color: var(--muted); font-size: .94rem; }
.said__note { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: .95rem; max-width: 70ch; } .said__note a { color: var(--accent); font-weight: 800; }
.band__inner { display: grid; justify-items: start; gap: 12px; } .band h2 { font-size: clamp(2.8rem, 9vw, 8rem); } .band p { color: var(--muted); margin: 0 0 18px; max-width: 34em; }

/* Fixed booking bar */
.book { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr .5fr auto; gap: 14px; align-items: end; padding: 14px var(--gutter) 14px; background: rgba(8, 28, 30, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 4px solid var(--accent); }
.book label { display: grid; gap: 3px; min-width: 0; } .book label span { font: 800 .7rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.book input { width: 100%; font: inherit; font-weight: 800; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 12px; min-height: 48px; color-scheme: dark; }
.book input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.book .btn { min-height: 48px; } .book .btn__i { width: 48px; height: 48px; } .book__m { display: none; }
body[data-page="stay"] .book { display: none; }

/* 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.1fr .9fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.vhead__lede { font-size: 1.2rem; color: #cfe3e0; max-width: 34em; margin: 22px 0 28px; }
.vhead__photo { margin: 0; padding: 8px; border: 1px solid var(--line-strong); } .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.8rem, 3vw, 2.6rem); }
.rows { margin: 0 0 14px; display: grid; border-top: 1px solid var(--line-strong); }
.rows div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 800; } .rows dd { margin: 0; color: var(--accent); text-align: right; font-weight: 700; }
.note { color: var(--muted); font-size: .95rem; max-width: 62ch; } .note a { color: var(--accent); font-weight: 800; }
.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: 400 1.18rem/1.5 var(--body); 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; overflow: hidden; } .map iframe { width: 100%; height: 420px; border: 0; display: block; }
.glance, .rsvp__card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); }
.glance { position: sticky; top: 108px; 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: 800 .72rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); } .glance dd { margin: 3px 0 0; }
.glance a:not(.btn) { color: var(--accent); font-weight: 800; }
.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: 800; color: var(--accent); }

/* Footer: sign-off */
.foot { padding: clamp(56px, 8vw, 100px) 0 clamp(110px, 12vw, 150px); border-top: 4px solid var(--accent); overflow: hidden; }
.foot a { color: inherit; text-decoration: none; }
.foot__sign { margin: 0 0 8px; font: 800 clamp(4rem, 17vw, 15rem)/.85 var(--display); letter-spacing: -.05em; color: var(--surface-2); max-width: none; white-space: nowrap; user-select: none; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(24px, 5vw, 72px); padding-block: 30px; }
.foot h2 { font: 800 .72rem var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.foot__grid p { margin: 0 0 8px; color: #d3e6e3; }
.foot__nav { display: grid; } .foot__nav a, .foot__legal a { display: inline-flex; align-items: center; min-height: 44px; } .foot__nav a:hover, .foot__legal a:hover, .foot__grid 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 var(--line); color: var(--muted); font-size: .92rem; }
.foot__base p { margin: 0; } .foot__legal { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.wa { position: fixed; right: 18px; bottom: calc(var(--bar-h) + 14px); z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; background: #25d366; color: #06230f; border-radius: var(--r); font-weight: 800; text-decoration: none; transition: transform .4s var(--spring); }
body[data-page="stay"] .wa { bottom: 18px; } .wa:active { transform: scale(.98); }
.grain { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .05; background: url("assets/img/grain.png"); mix-blend-mode: overlay; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
@media (max-width: 960px) {
  :root { --bar-h: 76px; }
  .top__name small { display: none; }
  .menu-btn { display: inline-grid; place-items: center; width: var(--nav-h); border: 0; border-left: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
  .burger { position: relative; width: 22px; height: 14px; } .burger i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .5s var(--spring); }
  .burger i:nth-child(1) { top: 3px; } .burger i:nth-child(2) { top: 10px; }
  .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); }
  .top__name { margin-right: auto; }
  .nav { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; padding: 8px var(--gutter) 22px; background: #0b2527; border-bottom: 4px solid var(--accent); transform: translateY(-14px); opacity: 0; visibility: hidden; transition: transform .5s var(--spring), opacity .35s, visibility 0s .5s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--spring), opacity .35s, visibility 0s; }
  .nav a { min-height: 56px; font-size: 1.15rem; border-bottom: 1px solid var(--line); padding: 0 4px; } .nav .nav__cta { margin: 14px 0 0; justify-content: center; border-bottom: 0; } .nav a[aria-current="page"] { box-shadow: none; }
  .book { grid-template-columns: 1fr; padding: 10px var(--gutter); } .book label, .book button { display: none; } .book .book__m { display: inline-flex; justify-content: space-between; }
  .rooms__head, .amen__grid2, .dine__grid, .said__grid, .vhead__grid, .rsvp__grid, .vlayout, .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .amen__grid { grid-template-columns: minmax(0, 1fr); } .dine__ph { max-width: 280px; } .glance { position: static; }
  .wa { right: 14px; }
}
@media (max-width: 480px) { h1 { font-size: clamp(2.6rem, 12.5vw, 3.4rem); } }

/* 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; }
}
