/* Pleasant option 1: "Red Carpet". Claret-black ground, a carpet-red accent, white type. Gloock (high-contrast serif) for display, Instrument Sans for text.
   Signature: a red carpet runner with rope posts down the left of the page (desktop), photographs with a scalloped tent-valance bottom edge.
   Nav: a full-width bar that melts into a floating pill once you scroll. Footer: one giant tappable phone number over a single link row.
   Motion: GSAP in assets/js/motion.js (runner drifts, valance photos lift in, blur-rise reveals); off under reduced motion. */
@font-face { font-family: "Gloock"; font-weight: 400; font-display: swap; src: url("assets/fonts/gloock.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-display: swap; src: url("assets/fonts/instrument.woff2") format("woff2"); }

@view-transition { navigation: auto; }

:root {
  color-scheme: dark;
  --bg: #2a0810; --surface: #3a0e18; --surface-2: #4a1421;
  --ink: #fbf4f3; --muted: #cfaeb3; --line: rgba(251, 244, 243, .16); --line-strong: rgba(251, 244, 243, .5);
  --accent: #e8475f; --accent-ink: #fff; --carpet: #b3243a; --danger: #ffb3ad;
  --display: "Gloock", Georgia, serif; --body: "Instrument Sans", system-ui, sans-serif;
  --r: 12px; --max: 1180px; --gutter: clamp(18px, 4vw, 44px); --nav-h: 72px;
  --spring: cubic-bezier(.32, .72, 0, 1);
  --valance: radial-gradient(circle at 24px 100%, transparent 23px, #000 24px) 0 100% / 48px 51% repeat-x, linear-gradient(#000, #000) 0 0 / 100% 52% no-repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; scrollbar-color: #7a2030 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--accent); overflow-x: clip; }
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 400; letter-spacing: -0.015em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.8vw, 7rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
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: #fff; padding: 8px 14px; z-index: 100; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
section { padding-block: clamp(64px, 9vw, 130px); position: relative; z-index: 1; }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #ff9aa9; }
.link .i { transition: transform .5s var(--spring); }
.link:hover .i { transform: translateX(5px); }
.tag { display: inline-flex; margin: 0 0 18px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 .75rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: background .5s var(--spring), color .5s var(--spring), transform .4s var(--spring); }
.btn:has(.btn__i) { padding: 6px 6px 6px 26px; }
.btn:active { transform: scale(.98); }
.btn__i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, currentColor 18%, transparent); transition: transform .5s var(--spring); }
.btn:hover .btn__i { transform: translate(2px, -1px) scale(1.06); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #f2667b; }
.btn--line { border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--quiet { color: var(--ink); text-decoration: underline; padding: 0 10px; }
.btn--light { background: #fff; color: var(--bg); }
.btn--light:hover { background: #ffe4e8; }
.btn--lg { min-height: 58px; font-size: 1.06rem; }
.btn--lg:has(.btn__i) { padding: 7px 7px 7px 30px; }
.btn--lg .btn__i { width: 44px; height: 44px; }
.btn--sm { min-height: 42px; font-size: .96rem; }
.btn--sm:has(.btn__i) { padding: 4px 4px 4px 20px; }
.btn--sm .btn__i { width: 34px; height: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* Header: a full-width bar that becomes a floating pill after the first scroll */
.top { position: fixed; z-index: 60; top: 0; left: 0; right: 0; transition: top .7s var(--spring); }
.top__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--nav-h); padding: 10px var(--gutter); margin-inline: auto; transition: width .7s var(--spring), padding .7s var(--spring); }
.top__bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); border-bottom: 1px solid var(--line); transition: border-radius .7s var(--spring), background .5s var(--spring), border-color .5s; }
.top.is-scrolled { top: 14px; }
.top.is-scrolled .top__bar { width: min(1040px, 100% - 28px); padding: 8px 10px 8px 22px; min-height: 62px; }
.top.is-scrolled .top__bar::before { border-radius: 999px; background: rgba(42, 8, 16, .78); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo .mark { width: 40px; height: 40px; color: #ff6b81; }
.mark .rug { fill: #fff; }
.logo__words { display: grid; line-height: 1; }
.logo__words b { font: 400 1.6rem var(--display); letter-spacing: -0.01em; }
.logo__words small { font: 600 .72rem var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 5px; line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; padding: 10px 18px; border-radius: 999px; transition: background .5s var(--spring); }
.nav a:not(.btn):hover { background: rgba(251, 244, 243, .1); }
.nav a[aria-current="page"]:not(.btn) { background: rgba(232, 71, 95, .24); }
.menu-btn { display: none; }

/* The runner: a carpet down the left edge of the page */
.runner { position: absolute; z-index: 0; top: 0; left: 0; bottom: 0; width: clamp(60px, 9vw, 150px); overflow: hidden; pointer-events: none; opacity: .9; }
.runner svg { width: 100%; height: 100%; display: block; }
.runner .car { fill: var(--carpet); } .runner .trim { stroke: #f6b5c0; stroke-width: 3; fill: none; stroke-dasharray: 10 8; }
.runner .post { fill: #e9c36a; stroke: #e9c36a; stroke-width: 2; } .runner .rope { stroke: #e9c36a; stroke-width: 3; fill: none; opacity: .8; }
main { position: relative; }
main > section:not(.band), main > .vhead { padding-left: clamp(60px, 9vw, 150px); }

/* Hero */
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 90px)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero__copy { display: grid; justify-items: start; }
.hero__sub { font-size: 1.2rem; color: #e6cdd0; margin: 24px 0 30px; max-width: 34em; }
.hero__rating { margin: 24px 0 0; color: var(--muted); font-size: .98rem; }
.scal { margin: 0; position: relative; background: var(--surface-2); -webkit-mask: var(--valance); mask: var(--valance); }
.scal img { width: 100%; height: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }

/* Facts */
.facts { padding-block: clamp(28px, 4vw, 48px); border-block: 1px solid var(--line); background: var(--surface); }
.facts__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facts p { margin: 0; display: grid; }
.facts b { font: 400 clamp(2.6rem, 6vw, 4.6rem)/1 var(--display); color: #ff9aa9; }
.facts span { color: var(--muted); font-size: .96rem; }

/* Looks */
.looks__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 40px; margin-bottom: clamp(28px, 4vw, 52px); }
.looks__head p { margin: 0; color: var(--muted); }
.looks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.looks__grid figure:nth-child(2) { margin-top: 48px; }
.looks__grid figure:nth-child(3) { margin-top: 96px; }
.looks__grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 34px; font: 400 1.3rem var(--display); background: linear-gradient(to top, rgba(42, 8, 16, .85), transparent); }

/* Steps list */
.steps { background: var(--surface); }
.steps__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.steps h2 { position: sticky; top: 110px; }
.steps__list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps__list li { display: grid; gap: 4px; padding: 24px 0 24px 64px; border-top: 1px solid var(--line-strong); position: relative; counter-increment: s; }
.steps__list li::before { content: counter(s); position: absolute; left: 0; top: 18px; font: 400 2.4rem/1 var(--display); color: #ff9aa9; }
.steps__list b { font: 400 1.7rem var(--display); }
.steps__list span { color: var(--muted); }

/* Words */
.words__lead { margin: 0 0 clamp(36px, 5vw, 64px); max-width: 22em; }
.words__lead p { font: 400 clamp(2rem, 4vw, 3.4rem)/1.12 var(--display); margin-bottom: 16px; }
.words footer { color: var(--muted); font-size: .94rem; }
.words__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); border-top: 1px solid var(--line-strong); padding-top: 28px; }
.words__row blockquote { margin: 0; }
.words__row p { font: 400 1.35rem/1.35 var(--display); margin-bottom: 12px; }
.words__note { margin: 36px 0 0; color: var(--muted); font-size: .95rem; max-width: 70ch; }
.words__note a { color: #ff9aa9; }

/* Band */
.band { background: var(--carpet); text-align: center; }
.band__inner { display: grid; justify-items: center; gap: 12px; }
.band h2 { font-size: clamp(3rem, 8vw, 7rem); }
.band p { margin: 0 0 18px; color: #ffe0e5; }

/* Venue, gallery, RSVP */
main > section:first-child:not(.hero) { padding-top: calc(var(--nav-h) + 60px); }
.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); position: relative; z-index: 1; }
.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: #e6cdd0; max-width: 34em; margin: 22px 0 28px; }
.vlayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(48px, 7vw, 100px); padding-left: clamp(60px, 9vw, 150px); position: relative; z-index: 1; width: 100%; max-width: calc(var(--max) + clamp(60px, 9vw, 150px)); }
.vmain > section { padding: 0 0 clamp(40px, 5vw, 72px); }
.vmain h2 { margin-bottom: 22px; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.rooms__list { margin: 0 0 14px; display: grid; border-top: 1px solid var(--line-strong); }
.rooms__list div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.rooms__list dt { font: 400 1.4rem var(--display); }
.rooms__list dd { margin: 0; font: 400 1.4rem var(--display); color: #ff9aa9; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.note { color: var(--muted); font-size: .95rem; max-width: 62ch; }
.note a { color: #ff9aa9; }
.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.4rem/1.35 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); border: 1px solid var(--line); min-height: 380px; border-radius: 12px; 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: 16px; }
.glance { position: sticky; top: 100px; padding: 26px; display: grid; gap: 18px; }
.glance h2 { font-size: 1.8rem; margin: 0; }
.glance dl { margin: 0; display: grid; gap: 14px; }
.glance dt { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.glance dd { margin: 2px 0 0; }
.glance a:not(.btn) { color: #ff9aa9; font-weight: 600; }
.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: 600; color: #ff9aa9; }

/* Footer: one giant phone number, then a single row */
.foot { position: relative; z-index: 1; background: #1c050b; border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 clamp(104px, 11vw, 132px); }
.foot a { color: inherit; text-decoration: none; }
.foot__top { display: grid; gap: 6px; justify-items: start; margin-bottom: clamp(36px, 5vw, 64px); }
.foot__lead { margin: 0; font: 600 .8rem var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.foot__phone { font: 400 clamp(2.8rem, 10.5vw, 9.5rem)/1 var(--display); letter-spacing: -0.03em; color: var(--ink); transition: color .5s var(--spring); }
.foot__phone:hover { color: #ff6b81; }
.foot__addr { margin: 8px 0 0; color: #e6cdd0; font-size: 1.1rem; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 36px; padding-top: 26px; border-top: 1px solid var(--line-strong); font-size: .95rem; }
.logo--foot .logo__words b { font-size: 1.35rem; }
.foot__links, .foot__legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot__links a, .foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__links a:hover, .foot__legal a:hover { text-decoration: underline; }
.foot__copy { margin: 0; color: var(--muted); }

.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: #fff; font-weight: 600; text-decoration: none; transition: transform .4s var(--spring); }
.wa:active { transform: scale(.98); }
.grain { position: fixed; inset: 0; z-index: 85; 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) {
  .runner { width: 34px; opacity: .8; }
  main > section:not(.band), main > .vhead, .vlayout { padding-left: 44px; }
  .menu-btn { display: inline-block; position: relative; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; z-index: 90; }
  .burger { position: absolute; inset: 0; }
  .burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .6s var(--spring); }
  .burger i:nth-child(1) { top: 18px; } .burger i:nth-child(2) { top: 25px; }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; z-index: 70; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 90px var(--gutter) 40px 60px; background: #1c050b; opacity: 0; visibility: hidden; transition: opacity .6s var(--spring), visibility 0s .6s; }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--spring), visibility 0s; }
  .nav a:not(.btn) { font: 400 2.8rem var(--display); padding: 6px 0; border-radius: 0; transform: translateY(40px); opacity: 0; transition: transform .8s var(--spring), opacity .8s var(--spring); }
  .nav.is-open a { transform: none; opacity: 1; }
  .nav.is-open a:nth-child(1) { transition-delay: .1s; } .nav.is-open a:nth-child(2) { transition-delay: .17s; } .nav.is-open a:nth-child(3) { transition-delay: .24s; } .nav.is-open a:nth-child(4) { transition-delay: .31s; }
  .nav .nav__cta { margin-top: 20px; font: 600 1.1rem var(--body); }
  .top.is-scrolled { top: 0; }
  .top.is-scrolled .top__bar { width: 100%; padding: 10px var(--gutter); }
  .top.is-scrolled .top__bar::before { border-radius: 0; }
  .logo__words small { display: none; }
  .hero__grid, .vhead__grid, .steps__grid, .rsvp__grid { grid-template-columns: 1fr; }
  .facts__row { grid-template-columns: 1fr 1fr; }
  .looks__grid { grid-template-columns: 1fr; }
  .looks__grid figure:nth-child(n) { margin-top: 0; }
  .steps h2 { position: static; }
  .words__row { grid-template-columns: 1fr; }
  .vlayout { grid-template-columns: 1fr; }
  .glance { position: static; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { h1 { font-size: clamp(2.7rem, 12vw, 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; }
}
