/* Pleasant option 2: "Green linen". Deep emerald ground with blush-pink colour blocks, white type. Familjen Grotesk for display, Plus Jakarta Sans for text.
   Signature: hanging beaded strings that sway (the ceiling in the guests' photos). Nav: a fixed left rail on desktop (logo on top, links stacked, RSVP at the foot).
   Footer: an oversized address beside a stacked link column. Motion (GSAP in assets/js/motion.js): strings sway, blocks slide in, blur-rise reveals; off under reduced motion. */
@font-face { font-family: "Familjen Grotesk"; font-weight: 400 700; font-display: swap; src: url("assets/fonts/familjen.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 200 800; font-display: swap; src: url("assets/fonts/jakarta.woff2") format("woff2"); }

@view-transition { navigation: auto; }

:root {
  color-scheme: dark;
  --bg: #0e4a3a; --deep: #093629; --surface: #145a47; --surface-2: #1b6e58;
  --ink: #f4fbf7; --muted: #b7d6c9; --line: rgba(244, 251, 247, .2); --line-strong: rgba(244, 251, 247, .55);
  --accent: #f6b8c6; --accent-ink: #3a0f1b; --blush: #f7d9df; --blush-ink: #2b1018; --danger: #ffb3ad;
  --display: "Familjen Grotesk", system-ui, sans-serif; --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --rail: 96px; --r: 14px; --gutter: clamp(20px, 4vw, 56px);
  --spring: cubic-bezier(.32, .72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; -webkit-text-size-adjust: 100%; scrollbar-color: #2a8068 var(--deep); }
body { margin: 0; background: var(--deep); 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: 700; letter-spacing: -0.035em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 8.4vw, 8rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
p { margin: 0 0 1rem; max-width: 60ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
.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; }
main, .foot { margin-left: var(--rail); }
section { padding: clamp(56px, 8vw, 120px) var(--gutter); }
.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); }
.blk--blush .link { color: #8a2540; }
.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: 700 .74rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }

.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: 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: 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 16%, 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: #fbcdd8; }
.btn--line { border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--deep); }
.btn--quiet { color: var(--ink); text-decoration: underline; padding: 0 10px; }
.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; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* Left rail */
.top { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 0; background: var(--deep); border-right: 1px solid var(--line); }
.logo { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo .mark { width: 46px; height: 46px; color: var(--accent); }
.mark .rug { fill: #fff; }
.logo__words b { display: block; font: 700 1rem var(--display); letter-spacing: -0.01em; text-align: center; }
.logo__words small { display: none; }
.nav { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nav a { writing-mode: vertical-rl; transform: rotate(180deg); text-decoration: none; font: 700 .9rem var(--body); letter-spacing: .22em; text-transform: uppercase; padding: 14px 10px; border-radius: 999px; transition: background .5s var(--spring), color .5s var(--spring); }
.nav a:hover { background: rgba(244, 251, 247, .1); }
.nav a[aria-current="page"] { background: rgba(246, 184, 198, .22); color: var(--accent); }
.nav .nav__cta { background: var(--accent); color: var(--accent-ink); margin-bottom: 4px; }
.nav .nav__cta:hover { background: #fbcdd8; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 64px); overflow: hidden; background: var(--bg); isolation: isolate; padding-top: clamp(100px, 12vw, 160px); }
.hero__strings { position: absolute; top: 0; left: 0; right: 0; height: 56%; z-index: -1; color: #d7efe5; opacity: .35; }
.strings { width: 100%; height: 100%; display: block; }
.strings .str { transform-origin: top center; animation: sway 7s ease-in-out infinite alternate; }
.strings path { stroke: currentColor; stroke-width: 1; fill: none; } .strings circle { fill: currentColor; } .strings .end { fill: var(--accent); }
.s0 { animation-delay: 0s; } .s1 { animation-delay: -1s; animation-duration: 8s; } .s2 { animation-delay: -2s; } .s3 { animation-delay: -3s; animation-duration: 9s; } .s4 { animation-delay: -4s; } .s5 { animation-delay: -5s; animation-duration: 6.5s; } .s6 { animation-delay: -1.5s; } .s7 { animation-delay: -3.5s; animation-duration: 7.5s; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.hero__in { display: grid; justify-items: start; }
.hero__sub { font-size: 1.2rem; color: #d4ebe1; margin: 24px 0 30px; max-width: 32em; }
.hero__rating { margin: 24px 0 0; color: var(--muted); font-size: .98rem; }
.hero__photo { margin: 0; overflow: hidden; border-radius: 28px 28px 0 0; align-self: end; height: min(78dvh, 720px); background: var(--surface-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Colour blocks */
.blocks { padding: 0; }
.blk { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 80px); padding: clamp(56px, 8vw, 110px) var(--gutter); }
.blk--blush { background: var(--blush); color: var(--blush-ink); }
.blk--green { background: var(--surface); }
.blk__txt { display: grid; justify-items: start; }
.blk__txt h2 { margin-bottom: 16px; }
.blk--blush p { color: #4a2530; }
.blk--green p { color: #d4ebe1; }
.blk__ph { margin: 0; overflow: hidden; border-radius: 22px; background: var(--surface-2); }
.blk__ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Words */
.said { background: var(--deep); }
.said__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.said h2 { position: sticky; top: 40px; }
.said__list { display: grid; gap: 28px; }
.said blockquote { margin: 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--accent); }
.said blockquote p { font: 600 1.5rem/1.35 var(--display); letter-spacing: -0.02em; margin-bottom: 10px; }
.said footer { color: var(--muted); font-size: .95rem; }
.said__note { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }
.said__note a { color: var(--accent); }

.band { background: var(--accent); color: var(--accent-ink); text-align: center; }
.band__inner { display: grid; justify-items: center; gap: 12px; }
.band h2 { font-size: clamp(3rem, 8vw, 7rem); }
.band p { color: #5a2a38; margin: 0 0 18px; }
.band .btn--primary { background: var(--deep); color: #fff; }
.band .btn--primary:hover { background: #0b3d2f; }

/* Inner pages */
main > section:first-child:not(.hero) { padding-top: clamp(48px, 6vw, 90px); }
.wrap { width: 100%; }
.phead { padding-bottom: clamp(20px, 3vw, 40px); }
.phead__lede { color: var(--muted); font-size: 1.2rem; max-width: 40em; margin: 18px 0 0; }
.vhead { padding-bottom: clamp(20px, 3vw, 48px); }
.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: #d4ebe1; max-width: 34em; margin: 22px 0 28px; }
.vhead__photo { margin: 0; overflow: hidden; border-radius: 24px; background: var(--surface-2); }
.vhead__photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.vlayout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 5vw, 72px); align-items: start; padding: 0 var(--gutter) clamp(48px, 7vw, 100px); }
.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: 700 1.3rem var(--display); letter-spacing: -0.02em; }
.rooms__list dd { margin: 0; font: 700 1.3rem var(--display); color: var(--accent); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; 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: var(--accent); }
.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: 600 1.3rem/1.4 var(--display); letter-spacing: -0.015em; 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: 18px; 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: 30px; 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: 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: a big address beside a stacked link column */
.foot { background: var(--blush); color: var(--blush-ink); padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(104px, 11vw, 132px); }
.foot a { color: inherit; text-decoration: none; }
.foot__in { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.foot__big { margin: 0; max-width: none; font: 700 clamp(2.4rem, 6.4vw, 6rem)/.98 var(--display); letter-spacing: -0.04em; }
.foot__side { display: grid; gap: 14px; }
.foot__list { display: grid; }
.foot__list a { font: 700 1.3rem var(--display); letter-spacing: -0.02em; padding: 8px 0; border-bottom: 1px solid rgba(43, 16, 24, .25); min-height: 44px; transition: padding-left .5s var(--spring); }
.foot__list a:hover { padding-left: 10px; }
.foot__call { margin: 6px 0 0; font: 700 1.5rem var(--display); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: .95rem; }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.foot__copy { margin: 0; font-size: .9rem; opacity: .75; }

.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(--deep); color: #fff; font-weight: 700; text-decoration: none; border: 1.5px solid rgba(255, 255, 255, .4); 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) { .strings .str { animation: none; } *, *::before, *::after { transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .top { right: 0; bottom: auto; width: auto; height: 64px; flex-direction: row; padding: 8px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); }
  .logo { flex-direction: row; }
  .logo .mark { width: 38px; height: 38px; }
  .logo__words b { font-size: 1.2rem; }
  .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; background: var(--deep); 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 { writing-mode: horizontal-tb; transform: translateY(40px); opacity: 0; font: 700 2.8rem var(--display); letter-spacing: -0.04em; text-transform: none; padding: 6px 0; background: none !important; 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 { color: var(--accent); }
  main { padding-top: 64px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero__photo { height: auto; aspect-ratio: 4 / 3; border-radius: 22px; margin-top: 16px; }
  .blk { grid-template-columns: 1fr; }
  .blk--green .blk__ph { order: 2; }
  .said__grid, .vhead__grid, .rsvp__grid, .foot__in { grid-template-columns: 1fr; }
  .said h2 { position: static; }
  .vlayout { grid-template-columns: 1fr; }
  .glance { position: static; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { h1 { font-size: clamp(2.8rem, 12.5vw, 3.6rem); } .logo__words small { display: none; } }

/* 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; }
}
