/* ==========================================================================
   Navetta Properties — luxury prototype
   Tokens: Navetta navy + champagne (existing brand), reef lagoon + sea-glass
   (taken from the Samaná reef in the hero film), cool shell white.
   Type: Marcellus (display), Montserrat (text + UI).
   ========================================================================== */
:root {
  --night: #0E1426;
  --navy: #171F36;
  --navy-2: #222C47;
  --gold: #C9A96E;
  --gold-deep: #A8864A;
  --lagoon: #1F5F63;
  --seaglass: #BFD6D1;
  --shell: #F5F6F3;
  --paper: #FFFFFF;
  --ink: #1A2030;
  --ink-2: #4A5266;
  --ink-3: #7C8395;
  --rule: rgba(23, 31, 54, .12);
  --rule-light: rgba(255, 255, 255, .16);

  --serif: "Marcellus", "Trajan Pro", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem);
  --step-5: clamp(3.1rem, 2rem + 5.4vw, 7rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--shell); color: var(--ink);
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--seaglass); color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy); padding: 10px 16px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* ---------- type ---------- */
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.05; margin: 0; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.15; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.kicker { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--gold-deep); margin: 0 0 18px; display: block; }
.on-dark .kicker { color: var(--gold); }
.muted { color: var(--ink-3); }
.price { font-family: var(--serif); font-variant-numeric: lining-nums; }
p { margin: 0 0 1em; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 2px;
  background: var(--bg); color: var(--fg); font-weight: 500; letter-spacing: .01em;
  border: 1px solid var(--bg); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
  white-space: nowrap;
}
.btn:hover { --bg: var(--navy-2); }
.btn--gold { --bg: var(--gold); --fg: var(--night); }
.btn--gold:hover { --bg: #D8BC86; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--navy); background: transparent; }
.on-dark .btn--ghost, .btn--ghost.light { color: #fff; border-color: var(--rule-light); }
.on-dark .btn--ghost:hover, .btn--ghost.light:hover { border-color: #fff; }
.btn--wa { --bg: #1F5F63; --fg: #fff; }
.btn--wa:hover { --bg: #174a4d; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link {
  position: relative; display: inline-block; font-weight: 500; padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff; transition: background .4s var(--ease), color .4s, box-shadow .4s, transform .4s var(--ease);
}
.hdr::before { /* reliable contrast surface over the film (audit item 02) */
  content: ""; position: absolute; inset: 0 0 -40px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 20, 38, .62), rgba(14, 20, 38, 0)); transition: opacity .4s;
}
.hdr.solid { background: rgba(245, 246, 243, .94); color: var(--navy); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--rule); }
.hdr.solid::before { opacity: 0; }
.hdr.hide { transform: translateY(-100%); }
.hdr__in { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.hdr__logo { width: 168px; flex: none; }
.hdr__logo img { width: 100%; height: auto; }
.hdr__logo .l-dark { display: none; }
.hdr.solid .hdr__logo .l-light { display: none; }
.hdr.solid .hdr__logo .l-dark { display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav > a, .nav > .has-menu > button { padding: 10px 12px; font-size: .95rem; opacity: .92; transition: opacity .2s; display: inline-flex; gap: 6px; align-items: center; }
.nav > a:hover, .nav > .has-menu > button:hover, .nav a.active { opacity: 1; }
.nav a.active { box-shadow: inset 0 -1px 0 currentColor; }
.has-menu { position: relative; }
.has-menu svg { width: 10px; height: 10px; transition: transform .3s; }
.menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
  width: 560px; padding: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(14, 20, 38, .35);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; opacity: 0; visibility: hidden; transition: .3s var(--ease);
}
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-menu:hover svg, .has-menu.open svg { transform: rotate(180deg); }
.menu a { padding: 14px 16px; border-radius: 2px; transition: background .2s; }
.menu a:hover { background: var(--shell); }
.menu strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-bottom: 2px; }
.menu span { font-size: .86rem; color: var(--ink-3); line-height: 1.45; display: block; }
.hdr__tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; align-items: center; font-size: .82rem; letter-spacing: .04em; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); border-radius: 2px; }
.lang button { padding: 6px 8px; opacity: .6; }
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn svg { width: 20px; height: 20px; }
.hdr .btn--consult { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.hdr:not(.solid) .btn--consult { --bg: var(--gold); --fg: var(--night); }
.burger { display: none; }

.drawer {
  position: fixed; inset: 0; z-index: 150; background: var(--night); color: #fff;
  padding: 96px var(--gutter) 40px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  transform: translateY(-100%); transition: transform .6s var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer nav a { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.25; padding: 4px 0; }
.drawer nav a small { font-family: var(--sans); font-size: .9rem; color: var(--seaglass); margin-left: 8px; }
.drawer .close { position: absolute; right: var(--gutter); top: 20px; }
.drawer__foot { margin-top: auto; display: grid; gap: 10px; }

/* ---------- hero (the one bold moment) ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; color: #fff; overflow: hidden; background: var(--night); }
.hero__media, .hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 0; transition: opacity 1.4s ease; }
.hero__media video.ready { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(14, 20, 38, .86) 0%, rgba(14, 20, 38, .35) 38%, rgba(14, 20, 38, 0) 62%),
  linear-gradient(to right, rgba(14, 20, 38, .35), rgba(14, 20, 38, 0) 55%); }
.hero__horizon { position: absolute; left: 0; right: 0; top: 27.5%; height: 1px; background: linear-gradient(to right, transparent, rgba(255, 255, 255, .55) 18%, rgba(255, 255, 255, .55) 82%, transparent); transform-origin: left; animation: horizon 1.8s .3s var(--ease) both; }
@keyframes horizon { from { transform: scaleX(0); } }
.hero__coords { position: absolute; top: calc(27.5% - 30px); right: var(--gutter); font-size: .8rem; letter-spacing: .08em; opacity: .85; font-variant-numeric: tabular-nums; animation: rise 1.2s 1s var(--ease) both; }
.hero__body { position: absolute; left: 0; right: 0; bottom: 168px; }
/* sized from the available width so "Your life in Las Terrenas" (~10.6em) always holds one line: two lines max */
.hero h1 { font-size: min(5.6rem, calc((100vw - 2 * var(--gutter)) / 10.9)); line-height: 1; letter-spacing: -.02em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero h1 .ln > span { display: inline-block; animation: rise 1.3s var(--ease) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); opacity: 0; } }
.hero__sub { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 28px; flex-wrap: wrap; animation: fade 1.4s .7s ease both; }
.hero__sub p { max-width: 44ch; font-size: var(--step-1); line-height: 1.5; margin: 0; color: rgba(255, 255, 255, .88); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
.hero__ctl { position: absolute; right: var(--gutter); top: calc(27.5% + 14px); z-index: 3; }
.hero__ctl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule-light); display: grid; place-items: center; color: #fff; }
.hero__ctl svg { width: 14px; height: 14px; }

/* search docked beneath the hero (audit item 01) */
.dock { position: relative; z-index: 5; margin-top: -96px; }
.search {
  background: var(--paper); box-shadow: 0 40px 80px -40px rgba(14, 20, 38, .45);
  display: grid; grid-template-columns: auto 1.2fr 1fr 1fr 1fr auto; align-items: stretch; min-height: 96px;
}
.search > * { border-right: 1px solid var(--rule); }
.search > *:last-child { border-right: 0; }
.seg { display: flex; align-items: center; padding: 0 18px; gap: 4px; }
.seg button { padding: 10px 14px; border-radius: 2px; color: var(--ink-3); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.field { display: flex; flex-direction: column; justify-content: center; padding: 14px 22px; position: relative; }
.field label { font-size: .78rem; color: var(--ink-3); letter-spacing: .02em; }
.field select, .field input { border: 0; background: transparent; padding: 4px 0 0; font-size: 1.02rem; color: var(--ink); appearance: none; outline: none; width: 100%; cursor: pointer; }
.field:focus-within { box-shadow: inset 0 -2px 0 var(--gold); }
.search .btn { height: 100%; min-height: 96px; border-radius: 0; padding: 0 36px; font-size: 1.02rem; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 168px) 0; }
.sec--tight { padding: clamp(56px, 7vw, 96px) 0; }
.on-dark { background: var(--night); color: #fff; }
.on-dark .lede, .on-dark .muted { color: rgba(255, 255, 255, .72); }
.on-navy { background: var(--navy); color: #fff; }
.on-paper { background: var(--paper); }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head h2 { max-width: 16ch; }
.sec-head .lede { margin-top: 18px; }

/* credentials row */
.creds { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.creds div { padding: 28px 24px 26px 0; }
.creds div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.creds b { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.creds span { font-size: .92rem; color: var(--ink-2); }

/* ---------- property cards ---------- */
.feat { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 4vw, 64px); }
.feat__main .ph { aspect-ratio: 4 / 3.1; }
.feat__list { display: flex; flex-direction: column; }
.feat__list a { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); align-items: center; }
.feat__list a:last-child { border-bottom: 1px solid var(--rule); }
.feat__list .ph { aspect-ratio: 4 / 3; }
.feat__list h3 { font-size: 1.28rem; }
.ph { position: relative; overflow: hidden; background: #DDE3E1; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.ph img[data-loading] { opacity: 0; }
a:hover .ph img, .card:hover .ph img { transform: scale(1.04); }

.card { position: relative; display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 4 / 3; }
.card__body { padding: 18px 2px 0; display: grid; gap: 6px; }
.card__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card h3 { font-size: 1.36rem; line-height: 1.2; }
.card .price { font-size: 1.24rem; white-space: nowrap; }
.card .where { color: var(--ink-3); font-size: .92rem; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; color: var(--ink-2); }
.facts span { white-space: nowrap; }
.tag { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(255, 255, 255, .94); color: var(--navy); font-size: .78rem; padding: 6px 10px; border-radius: 2px; font-weight: 500; }
.tag--dev { background: var(--lagoon); color: #fff; }
.fav { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: grid; place-items: center; color: var(--navy); transition: transform .3s var(--ease); }
.fav svg { width: 18px; height: 18px; }
.fav[aria-pressed="true"] svg { fill: var(--gold); stroke: var(--gold-deep); }
.fav:active { transform: scale(.9); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 36px); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 30%); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.rail > * { scroll-snap-align: start; }
.rail-ctl { display: flex; gap: 8px; }
.rail-ctl button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.rail-ctl button:hover { border-color: var(--navy); }
.on-dark .rail-ctl button { border-color: var(--rule-light); color: #fff; }
.rail-ctl svg { width: 16px; height: 16px; }

/* ---------- services list with image reveal ---------- */
.svc { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: start; }
.svc__list { border-top: 1px solid var(--rule-light); }
.svc__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--rule-light); color: rgba(255, 255, 255, .55); transition: color .4s; }
.svc__row h3 { font-size: var(--step-3); color: inherit; transition: transform .5s var(--ease); }
.svc__row p { margin: 0; font-size: 1rem; line-height: 1.55; }
.svc__row .link { margin-top: 12px; color: var(--gold); }
.svc__row.on, .svc__row:hover, .svc__row:focus-within { color: #fff; }
.svc__row.on h3 { transform: translateX(14px); }
.svc__pic { position: sticky; top: 120px; aspect-ratio: 3 / 4; overflow: hidden; }
.svc__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.svc__pic img.on { opacity: 1; transform: none; }

/* approach */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); }
.approach h2 { font-size: var(--step-4); }
.approach__txt p { color: var(--ink-2); font-size: 1.06rem; line-height: 1.7; max-width: 60ch; }
.approach__pic { aspect-ratio: 4 / 5; }
.approach dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 40px 0 36px; border-top: 1px solid var(--rule); }
.approach dl div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.approach dl div:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--rule); }
.approach dl div:nth-child(even) { padding-left: 20px; }
.approach dt { font-family: var(--serif); font-size: 1.5rem; }
.approach dd { margin: 0; color: var(--ink-3); font-size: .92rem; }

/* ---------- coastline (signature #2) ---------- */
.coast { position: relative; }
.coast__line { position: relative; height: 120px; margin-bottom: 28px; }
.coast__line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.coast__line path { fill: none; stroke: var(--seaglass); stroke-width: 1.2; }
.coast__dot { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; }
.coast__dot i { width: 11px; height: 11px; border-radius: 50%; background: var(--night); border: 1.5px solid var(--seaglass); transition: background .3s, transform .3s; }
.coast__dot span { font-size: .78rem; color: rgba(255, 255, 255, .6); white-space: nowrap; transition: color .3s; }
.coast__dot.on i { background: var(--gold); border-color: var(--gold); transform: scale(1.35); }
.coast__dot.on span { color: #fff; }
.coast__dot:nth-child(even) span { order: -1; }
.hood-rail { grid-auto-columns: minmax(280px, 26%); }
.hood { display: grid; gap: 14px; }
.hood .ph { aspect-ratio: 3 / 4; }
.hood h3 { font-size: 1.7rem; }
.hood p { color: rgba(255, 255, 255, .72); font-size: .96rem; margin: 0; }
.hood .meta { display: flex; justify-content: space-between; font-size: .86rem; color: var(--seaglass); border-top: 1px solid var(--rule-light); padding-top: 12px; }

/* reviews */
.quote { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.7rem); line-height: 1.25; min-height: 7.5em; }
.quote figcaption { margin-top: 28px; display: flex; gap: 16px; align-items: center; color: var(--ink-2); }
.quote figcaption b { color: var(--ink); font-weight: 600; }
.stars { color: var(--gold-deep); letter-spacing: 2px; }
.quote__nav { display: grid; gap: 18px; }
.quote__count { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.fade-swap { animation: swap .7s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(12px); } }

/* film */
.film { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.film img, .film iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film button { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(to top, rgba(14, 20, 38, .55), rgba(14, 20, 38, .1)); }
.film button span { display: inline-flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: var(--step-2); }
.film button i { width: 78px; height: 78px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); display: grid; place-items: center; transition: transform .5s var(--ease), background .3s; }
.film button:hover i { transform: scale(1.08); background: rgba(255, 255, 255, .12); }
.film button svg { width: 22px; height: 22px; margin-left: 4px; }

/* journal */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.post .ph { aspect-ratio: 3 / 2; margin-bottom: 18px; }
.post h3 { font-size: 1.45rem; line-height: 1.2; margin: 8px 0 10px; }
.post p { color: var(--ink-2); font-size: .96rem; }
.post small { color: var(--ink-3); font-size: .84rem; }
.post .cats { font-size: .84rem; color: var(--lagoon); }

/* newsletter */
.peninsula { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.peninsula ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: rgba(255, 255, 255, .8); }
.peninsula li { padding-left: 22px; position: relative; }
.peninsula li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--gold); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.in { display: grid; gap: 6px; }
.in > span { font-size: .84rem; color: var(--ink-2); }
.on-dark .in > span, .on-navy .in > span { color: rgba(255, 255, 255, .7); }
.in input, .in select, .in textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper); border-radius: 2px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.in textarea { min-height: 110px; resize: vertical; }
.in input:focus, .in select:focus, .in textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201, 169, 110, .25); }
.on-dark .in input, .on-dark .in select, .on-navy .in input, .on-navy .in select, .on-navy .in textarea { background: rgba(255, 255, 255, .06); border-color: var(--rule-light); color: #fff; }
.on-dark .in select option, .on-navy .in select option { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 40px; font-size: .92rem; background: var(--paper); transition: .2s; }
.chip[aria-pressed="true"], .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.on-navy .chip { background: transparent; border-color: var(--rule-light); color: #fff; }
.on-navy .chip[aria-pressed="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.chip svg { width: 14px; height: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.on-dark .check, .on-navy .check { color: rgba(255, 255, 255, .7); }
.form .note { font-size: .84rem; color: var(--ink-3); margin: 0; }
.on-navy .form .note, .on-dark .form .note { color: rgba(255, 255, 255, .6); }
.err { color: #B3412E; font-size: .84rem; }
.done { padding: 28px; border: 1px solid var(--rule); background: var(--paper); }
.done h3 { margin-bottom: 8px; }
.on-navy .done, .on-dark .done { background: transparent; border-color: var(--rule-light); }

/* ---------- page heroes ---------- */
.phero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 18s ease-out both; }
@keyframes kb { from { transform: scale(1.08); } }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 20, 38, .85), rgba(14, 20, 38, .2) 55%, rgba(14, 20, 38, .45)); }
.phero .wrap { position: relative; z-index: 2; padding-bottom: clamp(48px, 7vw, 96px); padding-top: 140px; }
.phero h1 { font-size: var(--step-5); max-width: 14ch; }
.phero p { font-size: var(--step-1); max-width: 48ch; color: rgba(255, 255, 255, .86); margin: 22px 0 0; }
.phero .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.phero--short { min-height: 52svh; }
.plain-head { padding: calc(var(--header-h) + clamp(48px, 7vw, 100px)) 0 clamp(32px, 4vw, 56px); }
.plain-head h1 { font-size: var(--step-5); max-width: 16ch; }
.plain-head p { margin-top: 20px; }
.crumbs { font-size: .86rem; color: var(--ink-3); margin-bottom: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.phero .crumbs { color: rgba(255, 255, 255, .7); }

/* ---------- long-form prose (all crawled content renders here) ---------- */
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.prose > section, .prose > article > section { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--rule); }
.prose > section:first-child { border-top: 0; padding-top: 0; }
.prose h2 { font-size: var(--step-3); margin: 1.6em 0 .55em; line-height: 1.1; max-width: 22ch; }
.prose section > h2:first-child, .prose section > .loose + h2 { margin-top: 0; }
.prose h3 { font-size: var(--step-1); font-family: var(--serif); margin: 1.6em 0 .45em; line-height: 1.25; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.prose p, .prose li { max-width: 68ch; }
.prose a { color: var(--lagoon); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold-deep); }
.prose li strong { display: block; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }
.prose img { width: 100%; height: auto; margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .96rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; background: var(--paper); }
.prose details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.prose summary { cursor: pointer; font-family: var(--serif); font-size: 1.25rem; }
.prose .loose { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.15rem; margin: 0 0 .6em; }
.prose .loose.small { font-family: var(--sans); font-style: normal; color: var(--ink-3); font-size: .92rem; }
.prose .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 1.6em 0; }
.prose .gallery img { margin: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.prose-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.toc { position: sticky; top: 110px; align-self: start; font-size: .92rem; }
.toc p { font-family: var(--serif); font-style: italic; color: var(--gold-deep); margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0 7px 14px; color: var(--ink-3); border-left: 1px solid var(--rule); transition: .2s; }
.toc a:hover, .toc a.on { color: var(--ink); border-color: var(--gold); }

/* ---------- consultation band (context carried into the form: audit 04 + 05) ---------- */
.consult { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.consult h2 { font-size: var(--step-4); }
.consult .direct { margin-top: 36px; display: grid; gap: 14px; }
.consult .direct a { display: flex; gap: 14px; align-items: center; }
.consult .direct svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- listings page ---------- */
.filters { position: sticky; top: var(--header-h); z-index: 20; background: rgba(245, 246, 243, .96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.filters__bar { display: flex; gap: 10px; align-items: center; padding: 14px 0; flex-wrap: wrap; }
.filters select { min-height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23171F36' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 14px center / 10px; appearance: none; font-size: .94rem; cursor: pointer; }
.filters .spacer { flex: 1; }
.view-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 2px; }
.view-toggle button { min-height: 42px; padding: 0 14px; font-size: .9rem; color: var(--ink-3); }
.view-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 14px; }
.active-chips:empty { display: none; }
.results-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 36px 0 28px; gap: 16px; }
.results-meta h2 { font-size: var(--step-2); }
.results.loading { opacity: .45; transition: opacity .2s; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.split .grid { grid-template-columns: repeat(2, 1fr); }
.map { width: 100%; height: 100%; min-height: 420px; background: #DDE3E1; }
.split .map { position: sticky; top: calc(var(--header-h) + 90px); height: calc(100svh - var(--header-h) - 120px); }
.empty { padding: 80px 0; text-align: left; max-width: 48ch; }
.empty h3 { margin-bottom: 12px; }
.leaflet-container { font-family: var(--sans); }
.pin { background: var(--navy); color: #fff; padding: 5px 9px; font-size: .78rem; font-weight: 600; white-space: nowrap; border-radius: 2px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); transform: translate(-50%, -100%); position: absolute; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--navy); }
.pin.hot { background: var(--gold); color: var(--night); z-index: 999 !important; }
.pin.hot::after { border-top-color: var(--gold); }
.leaflet-popup-content-wrapper { border-radius: 2px; }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.mpop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mpop div { padding: 12px 14px; }
.mpop b { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; display: block; line-height: 1.25; }

/* ---------- listing detail ---------- */
.lx-gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(76svh, 720px); margin-top: var(--header-h); }
.lx-gallery button { position: relative; overflow: hidden; background: #DDE3E1; }
.lx-gallery button:first-child { grid-row: 1 / 3; }
.lx-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lx-gallery button:hover img { transform: scale(1.03); }
.lx-gallery .all { position: absolute; right: 16px; bottom: 16px; background: rgba(255, 255, 255, .95); color: var(--navy); padding: 10px 16px; font-size: .9rem; font-weight: 500; border-radius: 2px; display: flex; gap: 8px; align-items: center; }
.lx-gallery .all svg { width: 16px; height: 16px; }
.lx { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(40px, 6vw, 96px); padding-top: 48px; }
.lx-head .ref { color: var(--ink-3); font-size: .9rem; }
.lx-head h1 { font-size: var(--step-4); margin: 14px 0 12px; max-width: 18ch; }
.lx-head .where { color: var(--ink-2); }
.lx-head .price { font-size: var(--step-3); margin-top: 22px; }
.lx-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 36px 0 48px; }
.lx-facts div { padding: 20px 0; }
.lx-facts div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.lx-facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.lx-facts span { font-size: .86rem; color: var(--ink-3); }
.lx-sec { padding: 40px 0; border-top: 1px solid var(--rule); }
.lx-sec > h2 { font-size: var(--step-2); margin-bottom: 22px; }
.desc { position: relative; max-height: 420px; overflow: hidden; transition: max-height .8s var(--ease); }
.desc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to top, var(--shell), rgba(245, 246, 243, 0)); transition: opacity .4s; }
.desc.open { max-height: 9000px; }
.desc.open::after { opacity: 0; pointer-events: none; }
.desc p strong:only-child { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.2rem; color: var(--gold-deep); }
.amen { columns: 3 200px; column-gap: 32px; padding: 0; margin: 0; list-style: none; }
.amen li { padding: 9px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; font-size: .96rem; }
.lx-map { height: 380px; }
.calc { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 14px; align-items: end; }
.calc output { font-family: var(--serif); font-size: 2rem; line-height: 1; display: block; }
.calc small { color: var(--ink-3); font-size: .8rem; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 16px; }
.agent-card { background: var(--paper); padding: 24px; display: grid; gap: 16px; box-shadow: 0 30px 60px -40px rgba(14, 20, 38, .35); }
.agent { display: flex; gap: 14px; align-items: center; }
.agent img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; }
.agent b { display: block; font-weight: 600; }
.agent small { color: var(--ink-3); }
.agent-acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.agent-acts a { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--rule); font-size: .82rem; border-radius: 2px; transition: border-color .2s; }
.agent-acts a:hover { border-color: var(--navy); }
.agent-acts svg { width: 18px; height: 18px; }
.agent-card h3 { font-size: 1.5rem; }
.agent-card .form .row { grid-template-columns: 1fr; }
.reply { font-size: .84rem; color: var(--ink-3); }
.mobile-cta { display: none; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(9, 12, 22, .97); color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; opacity: 0; visibility: hidden; transition: .35s; }
.lb.open { opacity: 1; visibility: visible; }
.lb header { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); font-size: .92rem; }
/* the photo is pinned inside its own row, so it always fits between the top bar and the thumbnail strip */
.lb figure { margin: 0 70px; position: relative; min-height: 0; overflow: hidden; }
.lb figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.lb .nav-b { position: absolute; top: 50%; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; border: 1px solid var(--rule-light); display: grid; place-items: center; color: #fff; }
.lb .prev { left: 12px; } .lb .next { right: 12px; }
.lb .nav-b svg { width: 18px; height: 18px; }
.lb .thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 14px var(--gutter) 18px; }
.lb .thumbs button { flex: none; width: 92px; height: 62px; opacity: .45; transition: opacity .2s; }
.lb .thumbs button.on { opacity: 1; outline: 1px solid var(--gold); }
.lb .thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- rentals ---------- */
.stay { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); }
.stay + .stay { margin-top: 28px; }
.stay:nth-child(even) .ph { order: 2; }
.stay .ph { min-height: 380px; }
.stay__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.stay__body h3 { font-size: var(--step-3); }
.stay__acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.stay__acts small { width: 100%; color: var(--ink-3); font-size: .82rem; }
.status { font-size: .84rem; color: var(--lagoon); }
.status.rented { color: var(--ink-3); }
.lt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ---------- team ---------- */
.leader { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.leader + .leader { margin-top: clamp(64px, 8vw, 120px); }
.leader:nth-child(even) .leader__pic { order: 2; }
.leader__pic { aspect-ratio: 3 / 4; }
.leader h3 { font-size: var(--step-4); margin: 6px 0 10px; }
.leader .role { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.2rem; }
.leader .langs { color: var(--ink-3); font-size: .92rem; }
.leader .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.crew .ph { aspect-ratio: 4 / 5; margin-bottom: 16px; }
.crew h3 { font-size: 1.5rem; }
.partners { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.partners a, .partners div { padding: 26px 20px 26px 0; border-bottom: 1px solid var(--rule); }
.partners b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.partners span { color: var(--ink-3); font-size: .9rem; }

/* ---------- neighborhoods ---------- */
.hood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.hood-grid .hood p { color: var(--ink-2); }
.hood-grid .hood .meta { color: var(--lagoon); border-color: var(--rule); }
.hood-facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); }
.hood-facts div { padding: 26px 24px; }
.hood-facts div + div { border-left: 1px solid var(--rule); }
.hood-facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.hood-facts span { color: var(--ink-3); font-size: .86rem; }

/* ---------- journal ---------- */
.lead-post { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: end; margin-bottom: 80px; }
.lead-post .ph { aspect-ratio: 16 / 10; }
.lead-post h2 { font-size: var(--step-3); margin: 12px 0 16px; }
.byline { display: flex; gap: 14px; align-items: center; color: var(--ink-3); font-size: .92rem; margin-top: 26px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; }
.byline b { color: var(--ink); font-weight: 500; }

/* ---------- footer ---------- */
.ftr { background: var(--night); color: rgba(255, 255, 255, .75); padding: 96px 0 36px; font-size: .95rem; }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--rule-light); }
.ftr__brand img { width: 190px; margin-bottom: 24px; }
.ftr__brand p { max-width: 34ch; }
.ftr h4 { font-family: var(--serif); font-weight: 400; color: #fff; font-size: 1.2rem; margin: 0 0 18px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr a:hover { color: #fff; }
.ftr__bot { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; font-size: .84rem; flex-wrap: wrap; color: rgba(255, 255, 255, .55); }
.ftr__bot button { text-decoration: underline; text-underline-offset: 3px; }
.ftr .social { display: flex; gap: 6px; margin-top: 22px; }
.ftr .social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule-light); border-radius: 50%; }
.ftr .social svg { width: 16px; height: 16px; }
.cta-band { padding: clamp(80px, 10vw, 150px) 0; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.cta-band h2 { font-size: var(--step-4); max-width: 15ch; }
.cta-band .acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* toast + cookie */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; z-index: 400; background: var(--navy); color: #fff; padding: 16px 22px; max-width: min(560px, calc(100vw - 32px)); font-size: .94rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); transition: transform .5s var(--ease); border-left: 2px solid var(--gold); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 350; width: min(420px, calc(100vw - 32px)); background: var(--paper); padding: 22px; box-shadow: 0 30px 60px -20px rgba(14, 20, 38, .4); font-size: .9rem; display: grid; gap: 14px; }
.cookie[hidden] { display: none; }
.cookie div { display: flex; gap: 8px; }
.cookie .btn { min-height: 42px; flex: 1; }

/* reveal on scroll — one quiet gesture used only on large imagery */
.reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.reveal.in { clip-path: inset(0 0 0 0); }

/* page transition */
#app { min-height: 100svh; }
#app.leaving { opacity: 0; transition: opacity .25s; }
#app.entering { animation: fade .6s ease backwards; } /* backwards, not both: a held animation keeps #app in its own layer, under the fixed header */

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
  .hdr__tools { margin-left: auto; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .seg { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--rule); padding: 12px 18px; }
  .search .field { border-bottom: 1px solid var(--rule); }
  .search .field:nth-of-type(even) { border-right: 0; }
  .search .btn { grid-column: 1 / -1; min-height: 64px; }
  .svc { grid-template-columns: 1fr; }
  .svc__pic { display: none; }
  .lx { grid-template-columns: 1fr; }
  .aside { position: static; }
  .split { grid-template-columns: 1fr; }
  .split .map { position: relative; top: 0; height: 60svh; order: -1; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .hdr__logo { width: 138px; }
  .hdr .btn--consult, .lang, .hdr .wa-top { display: none; }
  .hero { min-height: 600px; }
  .hero__body { bottom: 120px; }
  .hero__sub { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__horizon { top: 22%; }
  .hero__coords { top: calc(22% - 28px); }
  .hero__ctl { top: calc(22% + 12px); }
  .dock { margin-top: -48px; }
  .grid, .posts, .hood-grid, .crew, .lt { grid-template-columns: 1fr 1fr; }
  .feat, .approach, .peninsula, .quote, .consult, .leader, .lead-post, .cta-band .wrap, .stay { grid-template-columns: 1fr; }
  .leader:nth-child(even) .leader__pic, .stay:nth-child(even) .ph { order: 0; }
  .stay .ph { min-height: 260px; }
  .sec-head { grid-template-columns: 1fr; }
  .creds, .lx-facts, .hood-facts { grid-template-columns: 1fr 1fr; }
  .creds div:nth-child(3) { padding-left: 0; border-left: 0; }
  .creds div:nth-child(n+3), .lx-facts div:nth-child(n+3), .hood-facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .lx-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hood-facts div:nth-child(3) { border-left: 0; }
  .rail { grid-auto-columns: 78%; }
  .hood-rail { grid-auto-columns: 70%; }
  .coast__line { display: none; }
  .lx-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 62svh; }
  .lx-gallery button:first-child { grid-column: 1 / -1; grid-row: auto; }
  .lx-gallery button:nth-child(n+4) { display: none; }
  .calc { grid-template-columns: 1fr 1fr; }
  .prose-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
  .partners { grid-template-columns: 1fr 1fr; }
  .cta-band .acts { justify-content: flex-start; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(245, 246, 243, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--rule); }
  .has-mobile-cta .ftr { padding-bottom: 110px; }
  .quote blockquote { min-height: 0; }
}
@media (max-width: 600px) {
  .grid, .posts, .hood-grid, .crew, .lt, .form .row, .approach dl { grid-template-columns: 1fr; }
  .approach dl div:nth-child(odd) { border-right: 0; padding-right: 0; }
  .approach dl div:nth-child(even) { padding-left: 0; }
  .search { grid-template-columns: 1fr; }
  .search .field { border-right: 0; }
  .feat__list a { grid-template-columns: 104px 1fr; }
  .ftr__top { grid-template-columns: 1fr; }
  .lb figure { margin: 0 8px; }
  .lb .nav-b { display: none; }
  .filters__bar select { flex: 1 1 calc(50% - 10px); }
  .filters .spacer { display: none; }
  .results-meta { flex-direction: column; }
  .calc { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .hero__coords { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { clip-path: none; }
}
