/* The Bell option 2: "Floor display". Near-black graphite with one amber accent (the lift's floor indicator), Space Grotesk with IBM Plex Mono.
   Signature: a lit floor display that counts 1 to 5 on load; the same "5" and arrow sit in the nav bar. Facts are a spec sheet in monospace.
   Nav: a full-width instrument bar with mono links; on phones the links drop down under the bar. Footer: a ledger table with a square "Top" button.
   Motion: GSAP in assets/js/motion.js; off under reduced motion (the display just reads 5). */
@font-face { font-family: "Space Grotesk"; font-weight: 300 700; font-display: swap; src: url("assets/fonts/spacegrotesk.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("assets/fonts/plexmono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("assets/fonts/plexmono-500.woff2") format("woff2"); }
@view-transition { navigation: auto; }
:root {
  color-scheme: dark;
  --bg: #0b0c0e; --surface: #131519; --surface-2: #1c1f25;
  --ink: #ecebe6; --muted: #9ca1ac; --line: rgba(255, 176, 46, .18); --line-strong: rgba(255, 176, 46, .5);
  --accent: #ffb02e; --accent-ink: #1a1100; --danger: #ffb3ad;
  --display: "Space Grotesk", system-ui, sans-serif; --body: "Space Grotesk", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 0px; --max: 1200px; --gutter: clamp(18px, 4vw, 48px); --nav-h: 72px;
  --spring: cubic-bezier(.32, .72, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; scrollbar-color: #5a4318 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 1.1rem/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: 600; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); } h1 span { color: var(--accent); display: block; }
h2 { font-size: clamp(2rem, 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; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
section { padding-block: clamp(60px, 8vw, 120px); }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.link { font-family: var(--mono); font-size: .95rem; 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 12px; border: 1px solid var(--line-strong); font: 500 .72rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 26px; border-radius: var(--r); border: 1px 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: 0 0 0 26px; }
.btn:active { transform: scale(.98); }
.btn__i { display: grid; place-items: center; width: 52px; height: 52px; border-left: 1px solid rgba(26, 17, 0, .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: #ffc15c; }
.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; }

/* Instrument bar */
.top { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); background: rgba(11, 12, 14, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-strong); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; } .logo img { width: 36px; height: auto; } .logo__words { font: 600 1.15rem var(--display); letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font: 500 .82rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; transition: color .4s var(--spring), border-color .4s var(--spring); }
.nav a:hover { color: var(--ink); } .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav .nav__cta { background: var(--accent); color: var(--accent-ink); border-bottom-color: transparent; margin-left: 10px; } .nav .nav__cta:hover { background: #ffc15c; color: var(--accent-ink); } .nav .nav__cta[aria-current="page"] { color: var(--accent-ink); border-bottom-color: #fff; }
.floor { margin: 0; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; background: #050505; border: 1px solid var(--line-strong); color: var(--accent); font: 500 1.2rem/1 var(--mono); text-shadow: 0 0 10px rgba(255, 176, 46, .7); max-width: none; }
.floor .i { transform: rotate(-90deg); width: .9em; height: .9em; } .floor small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; margin-left: 8px; color: var(--muted); text-shadow: none; }
.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) 72px; 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% 45%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 12, 14, .96) 6%, rgba(11, 12, 14, .58) 52%, rgba(11, 12, 14, .5)); }
.hero__in { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.disp { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 14px 24px 12px; background: #050505; border: 1px solid var(--line-strong); color: var(--accent); text-shadow: 0 0 22px rgba(255, 176, 46, .75); background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px); }
.disp__lab { grid-column: 1 / -1; font: 500 .7rem var(--mono); letter-spacing: .3em; text-transform: uppercase; text-shadow: none; color: var(--muted); }
.disp__n { font: 600 clamp(6rem, 14vw, 12rem)/.95 var(--mono); min-width: .62em; text-align: center; } .disp .i { width: clamp(2rem, 5vw, 4rem); height: clamp(2rem, 5vw, 4rem); transform: rotate(-90deg); }
.hero__copy { display: grid; justify-items: start; }
.hero__sub { font-size: 1.2rem; color: #d4d6dc; margin: 22px 0 30px; max-width: 32em; }

/* Spec sheet */
.spec { background: var(--surface); border-block: 1px solid var(--line-strong); }
.spec__grid { display: grid; grid-template-columns: .5fr 1.5fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.spec__rows { margin: 0; display: grid; font-family: var(--mono); }
.spec__rows div { display: grid; grid-template-columns: minmax(100px, 160px) 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px dashed var(--line-strong); align-items: baseline; }
.spec__rows div:first-child { border-top: 1px dashed var(--line-strong); }
.spec__rows dt { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; } .spec__rows dd { margin: 0; color: var(--ink); font-size: 1rem; }

.figs__row { display: grid; grid-template-columns: 1.5fr .8fr; gap: clamp(16px, 3vw, 40px); align-items: end; }
.fig { margin: 0; } .fig img { width: 100%; height: auto; object-fit: cover; border: 1px solid var(--line); } .fig--a img { aspect-ratio: 16 / 10; } .fig--b img { aspect-ratio: 4 / 5; }
.fig figcaption { padding-top: 10px; font: 400 .86rem var(--mono); color: var(--muted); letter-spacing: .06em; }

.garage { background: var(--surface); border-block: 1px solid var(--line-strong); }
.garage__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 6vw, 88px); align-items: center; }
.garage__txt h2 { margin-bottom: 18px; } .garage__txt p { color: #d0d2d8; }
.garage__num { margin: 0; display: block; font: 600 clamp(5rem, 15vw, 13rem)/.9 var(--mono); color: var(--accent); text-shadow: 0 0 40px rgba(255, 176, 46, .35); max-width: none; }
.garage__num span { display: inline; } .garage__num small { display: block; font: 400 .9rem var(--mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; text-shadow: none; margin-top: 10px; }

.reel__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 28px); }
.reel figure { margin: 0; aspect-ratio: 9 / 14; overflow: hidden; border: 1px solid var(--line); } .reel img { width: 100%; height: 100%; object-fit: cover; }

.said h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.said__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.said blockquote { margin: 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.said blockquote p { font: 300 1.18rem/1.55 var(--body); margin-bottom: 16px; } .said footer { color: var(--muted); font: 400 .84rem var(--mono); letter-spacing: .04em; }
.said__note { margin: 32px 0 0; color: var(--muted); font-size: .95rem; max-width: 70ch; } .said__note a { color: var(--accent); }
.band { background: var(--surface); border-top: 1px solid var(--line-strong); }
.band__inner { display: grid; justify-items: start; gap: 12px; } .band h2 { font-size: clamp(3rem, 10vw, 8.4rem); color: var(--accent); text-shadow: 0 0 40px rgba(255, 176, 46, .3); } .band p { color: var(--muted); margin: 0 0 18px; }

/* Inner pages */
main > section:first-child:not(.hero) { padding-top: calc(var(--nav-h) + 50px); }
.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: #d0d2d8; 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.4rem); }
.rows { margin: 0 0 14px; display: grid; border-top: 1px dashed var(--line-strong); font-family: var(--mono); }
.rows div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px dashed var(--line-strong); }
.rows dt { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; } .rows dd { margin: 0; text-align: right; font-size: .98rem; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); } .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.note { color: var(--muted); font-size: .95rem; max-width: 62ch; } .note a { color: var(--accent); }
.quotes { display: grid; border-top: 1px dashed var(--line-strong); }
.quotes blockquote { margin: 0; padding: 22px 0; border-bottom: 1px dashed var(--line-strong); } .quotes p { font: 300 1.2rem/1.5 var(--body); margin-bottom: 6px; } .quotes footer { color: var(--muted); font: 400 .84rem var(--mono); }
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); }
.glance { position: sticky; top: 96px; 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: 500 .72rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); } .glance dd { margin: 4px 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: ledger table */
.foot { padding: clamp(56px, 8vw, 96px) 0 clamp(100px, 10vw, 124px); border-top: 1px solid var(--line-strong); }
.foot a { color: inherit; text-decoration: none; }
.foot__grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 64px); align-items: end; padding-bottom: 28px; }
.foot__table { margin: 0; display: grid; font-family: var(--mono); border-top: 1px dashed var(--line-strong); }
.foot__table div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--line-strong); align-items: baseline; }
.foot__table dt { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; } .foot__table dd { margin: 0; color: #dcdee4; font-size: .98rem; }
.foot__table a:hover, .foot__legal a:hover, .foot__nav a:hover { text-decoration: underline; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 22px; } .foot__nav a, .foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__up { display: grid; place-items: center; align-content: center; gap: 6px; width: 120px; height: 120px; background: var(--accent); color: var(--accent-ink); font: 500 .78rem var(--mono); letter-spacing: .2em; text-transform: uppercase; transition: transform .5s var(--spring), background .4s; }
.foot__up .i { width: 1.8rem; height: 1.8rem; transform: rotate(-90deg); transition: transform .5s var(--spring); } .foot__up:hover { background: #ffc15c; } .foot__up:hover .i { transform: rotate(-90deg) translateX(6px); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px; padding-top: 16px; color: var(--muted); font: 400 .86rem var(--mono); }
.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; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; transition: transform .4s var(--spring); }
.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: 900px) {
  .floor small { display: none; } .floor { margin-left: auto; }
  .menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
  .burger { position: relative; width: 20px; height: 12px; } .burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--spring); }
  .burger i:nth-child(1) { top: 2px; } .burger i:nth-child(2) { top: 9px; }
  .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; top: var(--nav-h); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; padding: 10px var(--gutter) 22px; background: #0b0c0e; border-bottom: 1px solid var(--line-strong); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .5s var(--spring), opacity .4s, visibility 0s .5s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--spring), opacity .4s, visibility 0s; }
  .nav a { min-height: 54px; font-size: 1rem; border-bottom: 1px dashed var(--line-strong); } .nav .nav__cta { margin: 14px 0 0; justify-content: center; }
  .hero__in, .spec__grid, .garage__grid, .vhead__grid, .rsvp__grid, .vlayout, .said__list, .foot__grid, .figs__row { grid-template-columns: 1fr; }
  .disp { justify-self: start; }
  .reel__row { grid-template-columns: 1fr 1fr; } .reel figure:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .foot__table div, .spec__rows div { grid-template-columns: 1fr; gap: 2px; } .foot__up { width: 100%; height: 72px; grid-auto-flow: column; justify-content: center; }
  .glance { position: static; } .mosaic { grid-template-columns: repeat(2, 1fr); }
}
@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; }
}
