/* Badsey Properties - site styles */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --ink: #10262e;
  --ink-2: #1f3d47;
  --sea: #0e6b74;
  --sea-2: #138894;
  --foam: #d9eeee;
  --sun: #fff212;      /* the logo yellow */
  --sun-2: #ffe600;
  --coral: #ff6a4d;
  --sand: #f5eee1;
  --shell: #fffcf6;
  --line: #e6dcc9;
  --muted: #586a70;
  --white: #fff;

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgb(16 38 46 / .06), 0 8px 24px -8px rgb(16 38 46 / .18);
  --shadow-lg: 0 2px 4px rgb(16 38 46 / .06), 0 24px 48px -16px rgb(16 38 46 / .32);
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--shell);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--sea-2); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--sun); color: var(--ink); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- type ---------- */
.h-display {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 120, "SOFT" 50;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  letter-spacing: -.02em;
}
.h-display em { font-style: italic; font-weight: 500; color: var(--sea); }
.h-md { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.h-sub { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; margin-top: 1.8em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sea); margin-bottom: 1rem;
}
.eyebrow-light { color: var(--sun); }
.lede-xl { font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 1.3vw, 1.9rem); line-height: 1.35; font-weight: 400; max-width: 34ch; }
.page-lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.prose p { max-width: 68ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7rem 1.25rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 20px -6px rgb(255 230 0 / .7); }
.btn-sun:hover { background: var(--sun-2); }
.btn-ink { background: var(--ink); color: var(--shell); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--shell); border-color: var(--ink); }
.btn-glass { background: rgb(255 255 255 / .14); color: var(--white); border-color: rgb(255 255 255 / .5); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgb(255 255 255 / .26); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--sea); border-bottom: 2px solid var(--sun); padding-bottom: 2px; }
.link-arrow .i { transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.link-light { color: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 252 246 / .86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(16 38 46 / .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand-word { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; }
.brand-word em { font-style: italic; font-weight: 500; color: var(--sea); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: background-color .2s;
}
.site-nav a:not(.btn):hover { background: var(--sand); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--shell); }
.nav-cta { min-height: 42px; padding: .5rem 1rem; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    border-radius: 50%; border: 0; background: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--shell); border-radius: 2px; position: relative;
    transition: transform .25s var(--ease), background-color .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem; background: var(--shell); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(16 38 46 / .35);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { padding: .8rem 1rem; font-size: 1.1rem; }
}

.resting-bar { background: var(--sun); color: var(--ink); font-size: .95rem; font-weight: 600; }
.resting-bar .wrap { display: flex; gap: .7rem; align-items: flex-start; padding-block: .7rem; }
.resting-bar p { margin: 0; }
.resting-bar .i { margin-top: .2em; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 820px); display: grid; align-items: end; color: var(--white); overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: center 60%; animation: heroZoom 18s var(--ease) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(16 38 46 / .25) 0%, rgb(16 38 46 / .1) 35%, rgb(16 38 46 / .82) 100%), linear-gradient(90deg, rgb(16 38 46 / .55), transparent 70%); }
.hero-inner { position: relative; padding-block: clamp(6rem, 18vh, 10rem) clamp(3rem, 8vh, 5rem); }
.hero-title {
  font-family: var(--serif); font-weight: 600; font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem); letter-spacing: -.03em; line-height: 1;
  max-width: 14ch; margin-bottom: 1.5rem;
}
.mark { font-style: italic; font-weight: 500; position: relative; z-index: 0; white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .02em; height: .32em; z-index: -1;
  background: var(--sun); border-radius: .2em; transform: skewX(-8deg) scaleX(0); transform-origin: left;
  animation: markIn .9s .5s var(--ease) forwards; opacity: .9;
}
.hero .mark { color: var(--ink); }
.hero .mark::after { height: 1.05em; bottom: -.04em; opacity: 1; }
.hero-lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 46ch; color: rgb(255 255 255 / .9); }
.hero-card {
  position: absolute; right: var(--gutter); bottom: clamp(3rem, 8vh, 5rem); width: 240px;
  background: var(--shell); color: var(--ink); border-radius: var(--r); padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow-lg); transform: rotate(2deg);
  font-size: .92rem; line-height: 1.45;
}
.hero-card p { margin: 0; }
.hero-card-num { font-family: var(--serif); font-weight: 700; font-size: 3.2rem; line-height: 1; margin-bottom: .4rem !important; display: flex; align-items: baseline; gap: .3rem; }
.hero-card-num span { font-family: var(--sans); font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--sea); }
.hero-card::before { content: ""; position: absolute; top: -10px; left: 24px; width: 54px; height: 20px; background: var(--sun); border-radius: 4px; transform: rotate(-4deg); opacity: .95; }
@media (max-width: 1100px) { .hero-card { display: none; } }

@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes markIn { to { transform: skewX(-8deg) scaleX(1); } }

/* ---------- ticker ---------- */
.ticker { background: var(--ink); color: var(--sun); overflow: hidden; border-block: 4px solid var(--sun); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); padding: .8rem 1.4rem; white-space: nowrap; display: flex; align-items: center; gap: 2.8rem; }
.ticker li::after { content: "✦"; font-style: normal; font-size: .7em; color: var(--coral); margin-left: 1.4rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- resting card ---------- */
.resting { margin-top: clamp(2.5rem, 6vw, 4rem); }
.resting-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem 1.5rem; align-items: center;
  background: var(--foam); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem);
  border: 2px dashed rgb(14 107 116 / .35);
}
.resting-card h2 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .3rem; }
.resting-card p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.resting-sun { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: var(--ink); }
.resting-sun .i { width: 32px; height: 32px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .resting-card { grid-template-columns: 1fr; } }

/* ---------- intro & stats ---------- */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3.5rem, 9vw, 7rem); align-items: center; }
.intro-copy p { color: var(--ink-2); font-size: 1.1rem; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { border-radius: var(--r); padding: 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; min-height: 170px; justify-content: space-between; }
.stat-value { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -.02em; }
.stat-label { font-size: .92rem; line-height: 1.4; font-weight: 600; }
.stat-1 { background: var(--ink); color: var(--shell); }
.stat-1 .stat-value { color: var(--sun); }
.stat-2 { background: var(--sun); transform: translateY(1.5rem); }
.stat-3 { background: var(--foam); }
.stat-3 .stat-value { color: var(--sea); }
.stat-4 { background: var(--coral); color: var(--ink); transform: translateY(1.5rem); }
.stats-wide { grid-template-columns: repeat(4, 1fr); }
.stats-wide .stat { transform: none; }
.stats-row { padding-block: clamp(3rem, 7vw, 5rem); }
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .stats-wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .stat { min-height: 150px; padding: 1.1rem; } }

/* ---------- bands & sections ---------- */
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band-sand { background: var(--sand); }
.band-ink { background: var(--ink); color: var(--shell); }
.band-ink .h-display em { color: var(--sun); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head .h-display { margin: 0; }
.section-head .eyebrow { margin-bottom: .6rem; }

/* ---------- property cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.card { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-link:focus-visible { outline-offset: -3px; border-radius: var(--r); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--foam); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-noimg { display: grid; place-items: center; height: 100%; color: var(--sea); }
.card-noimg .i { width: 48px; height: 48px; }
.card-tag {
  position: absolute; top: .8rem; left: .8rem; background: var(--sun); color: var(--ink);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .65rem; border-radius: 999px;
}
.card-count { position: absolute; bottom: .8rem; right: .8rem; display: inline-flex; gap: .35rem; align-items: center; background: rgb(16 38 46 / .72); color: var(--white); font-size: .8rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.card-count .i { width: 14px; height: 14px; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-kicker { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); }
.card-kicker .i { width: 15px; height: 15px; }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; margin: 0; overflow-wrap: anywhere; }
.card-price { margin: auto 0 0; padding-top: .6rem; border-top: 1px solid var(--line); font-weight: 800; font-size: 1.1rem; }
.card-price span { font-weight: 600; font-size: .82rem; color: var(--muted); }

.specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--ink-2); font-size: .92rem; }
.specs li { display: inline-flex; align-items: center; gap: .35rem; }
.specs .i { color: var(--sea); }
.specs-lg { font-size: 1.05rem; gap: .6rem 1.4rem; }

/* ---------- team ---------- */
.team { padding-block: clamp(3.5rem, 8vw, 6rem); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.5rem; }
.person { display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem; align-items: start; background: var(--white); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.person-photo { position: relative; isolation: isolate; }
.person-photo img { width: 160px; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50% 50% 50% 12px; }
.person-photo::after { content: ""; position: absolute; inset: auto -6px -6px auto; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); z-index: -1; }
.person h3 { font-family: var(--serif); font-size: 1.55rem; margin-bottom: .2rem; }
.person-role { color: var(--sea); font-weight: 700; font-size: .92rem; margin-bottom: .8rem; }
.person p:not(.person-role) { color: var(--ink-2); font-size: 1rem; }
.person-contact { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .4rem; }
.person-contact a { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.person-contact a:hover { color: var(--sea); text-decoration: underline; }
.person-contact .i { color: var(--sea); }
@media (max-width: 560px) {
  .person { grid-template-columns: 1fr; }
  .person-photo img { width: 120px; }
}

/* ---------- quotes ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.quote { margin: 0; padding: 1.75rem; border-radius: var(--r); background: var(--ink-2); position: relative; display: flex; flex-direction: column; }
.quote-mark { font-family: var(--serif); font-weight: 700; font-size: 4.5rem; line-height: .7; height: 2.4rem; color: var(--sun); }
.quote blockquote { margin: 0 0 1.25rem; font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { margin-top: auto; display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: .92rem; }
.quote-date { color: var(--sun); font-weight: 600; }
.quotes-masonry { columns: 3 320px; column-gap: 1.25rem; padding-block: 1rem clamp(3.5rem, 8vw, 6rem); }
.quotes-masonry .quote { break-inside: avoid; margin-bottom: 1.25rem; background: var(--white); box-shadow: var(--shadow); }
.quotes-masonry .quote-mark { color: var(--sea); }
.quotes-masonry .quote-date { color: var(--sea); }
.quotes-masonry .quote:nth-child(4n+1) { background: var(--sun); }
.quotes-masonry .quote:nth-child(4n+1) .quote-mark, .quotes-masonry .quote:nth-child(4n+1) .quote-date { color: var(--ink); }
.quotes-masonry .quote:nth-child(4n+3) { background: var(--ink); color: var(--shell); }
.quotes-masonry .quote:nth-child(4n+3) .quote-mark, .quotes-masonry .quote:nth-child(4n+3) .quote-date { color: var(--sun); }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta-card { position: relative; isolation: isolate; border-radius: var(--r-lg); overflow: hidden; color: var(--white); min-height: 380px; display: grid; align-items: center; }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(14 107 116 / .95) 0%, rgb(16 38 46 / .75) 55%, rgb(16 38 46 / .2) 100%); }
.cta-copy { padding: clamp(1.75rem, 5vw, 4rem); max-width: 620px; }
.cta-copy p { font-size: 1.15rem; color: rgb(255 255 255 / .9); }
.cta .btn-ink { background: var(--sun); color: var(--ink); }
.cta .btn-ghost { color: var(--white); }
.cta .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem); background: radial-gradient(1200px 400px at 85% -10%, var(--foam), transparent 70%); }
.page-head .h-display { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); max-width: 18ch; }
.page-head-photo { position: relative; isolation: isolate; color: var(--white); padding-block: clamp(7rem, 18vw, 12rem) clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.page-head-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(16 38 46 / .1), rgb(16 38 46 / .8)); }
.page-head-photo .h-display em { color: var(--sun); }

/* ---------- listing / filters ---------- */
.listing { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.filters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: .75rem; align-items: end;
  background: var(--white); padding: 1rem; border-radius: var(--r); box-shadow: var(--shadow);
  position: sticky; top: 84px; z-index: 5;
}
.field { display: grid; gap: .3rem; min-width: 0; }
.field label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field select {
  appearance: none; width: 100%; min-height: 46px; padding: .55rem 2.2rem .55rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--shell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310262e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center / 16px;
  font-weight: 600; cursor: pointer;
}
.field select:hover { border-color: var(--sea); }
.filters-reset { min-height: 46px; }
.result-count { margin: 1.5rem 0 1rem; font-weight: 700; color: var(--muted); }
.card[hidden] { display: none; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--sand); border-radius: var(--r); }
.empty-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
@media (max-width: 900px) {
  .filters { grid-template-columns: 1fr 1fr; position: static; }
  .filters-reset { grid-column: 1 / -1; }
}

/* ---------- property detail ---------- */
.crumbs-wrap { padding-top: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; font-size: .9rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; opacity: .6; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; color: var(--sea); }
.prop { padding-block: 1.5rem clamp(3rem, 7vw, 5rem); }
.prop-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.prop-title { margin-bottom: .6rem; font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); max-width: 20ch; }
.prop-price { text-align: right; }
.prop-price p { margin: 0; }
.prop-price-label { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prop-price-value { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1.1; }
.badge { display: inline-block; margin-top: .5rem !important; background: var(--foam); color: var(--sea); padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.badge-archive { background: var(--sun); color: var(--ink); }
@media (max-width: 640px) { .prop-price { text-align: left; } }

.gallery { margin-bottom: 2.5rem; }
.gallery-main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; list-style: none; margin: 0; padding: 0; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 9; }
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-open img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav, .lightbox-btn {
  position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--shell); color: var(--ink); box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease), background-color .2s;
}
.gallery-nav:hover, .lightbox-btn:hover { background: var(--sun); transform: scale(1.06); }
.gallery-nav .i, .lightbox-btn .i { width: 24px; height: 24px; }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-counter { position: absolute; bottom: 1rem; left: 1rem; margin: 0; background: rgb(16 38 46 / .75); color: var(--white); font-weight: 700; font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: .6rem; overflow-x: auto; list-style: none; margin: .8rem 0 0; padding: .2rem .2rem .5rem; scrollbar-width: thin; }
.gallery-thumbs button { display: block; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 3px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: var(--foam); opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--sun); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .gallery-slide { aspect-ratio: 4 / 3; }
  .gallery-nav { width: 42px; height: 42px; }
  .gallery-main { border-radius: var(--r); }
}

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 20 24 / .96); color: var(--white); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(8 20 24 / .9); }
.lightbox img { max-width: min(94vw, 1600px); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); }
.lightbox-close { top: 1.5rem; right: 1.5rem; translate: none; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter { position: absolute; bottom: 1.25rem; left: 50%; translate: -50% 0; margin: 0; font-weight: 700; }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; translate: none; } }

.prop-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prop-main .h-sub:first-child { margin-top: 0; }
.prop-main .prose { font-size: 1.08rem; color: var(--ink-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; background: var(--foam); font-weight: 600; font-size: .92rem; }
.chips .i { color: var(--sea); width: 16px; height: 16px; }
.prop-side { display: grid; gap: 1.25rem; position: sticky; top: 96px; }
.facts { margin: 0; background: var(--sand); border-radius: var(--r); padding: .5rem 1.25rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 800; text-align: right; }
.agent-card { display: grid; grid-template-columns: 72px 1fr; gap: .5rem 1rem; align-items: center; background: var(--white); border-radius: var(--r); padding: 1.25rem; box-shadow: var(--shadow); }
.agent-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; }
.agent-card p { margin: 0; }
.agent-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.agent-role { color: var(--sea); font-weight: 700; font-size: .85rem; }
.agent-note { grid-column: 1 / -1; margin-top: .5rem !important; color: var(--ink-2); font-size: .95rem; }
.agent-card .btn-row { grid-column: 1 / -1; margin-top: .5rem; }
.agent-card .btn { flex: 1 1 100%; }
@media (max-width: 900px) {
  .prop-body { grid-template-columns: 1fr; }
  .prop-side { position: static; }
}

/* ---------- about ---------- */
.about-intro { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.profile { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.band .profile { padding-block: 0; }
.profile-photo { position: relative; isolation: isolate; }
.profile-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50% 50% var(--r-lg) var(--r-lg); box-shadow: var(--shadow-lg); }
.profile-photo::before { content: ""; position: absolute; inset: 8% -6% -4% 8%; background: var(--sun); border-radius: 50% 50% var(--r-lg) var(--r-lg); z-index: -1; }
.profile-flip .profile-photo::before { background: var(--sea); opacity: .25; }
.quals { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0 0; padding: 0; }
.quals li { background: var(--ink); color: var(--sun); font-weight: 800; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; }
.profile-body > p { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.ticks .i { color: var(--ink); background: var(--sun); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: .15em; }
.ticks-muted .i { background: var(--foam); color: var(--sea); }
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 300px; }
}

/* ---------- guides ---------- */
.guides { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-block: 1rem clamp(3.5rem, 8vw, 6rem); align-items: start; }
.guides-toc { position: sticky; top: 96px; }
.guides-toc-h { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.guides-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; border-left: 3px solid var(--sun); }
.guides-toc a { display: block; padding: .35rem 1rem; text-decoration: none; font-weight: 700; }
.guides-toc a:hover { color: var(--sea); }
.guides-body h2 { margin-top: 2.5rem; }
.guides-body h2:first-child { margin-top: 0; }
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 3.5rem 1.15rem 1.4rem; font-weight: 800; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); font-size: 1.3rem; font-weight: 700; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--sea); }
.faq .prose { padding: 0 1.4rem 1.2rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .guides { grid-template-columns: 1fr; }
  .guides-toc { position: static; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; padding-block: 1rem clamp(3.5rem, 8vw, 6rem); }
.contact-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.75rem; display: grid; gap: 1.25rem; align-content: start; }
.contact-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: top; border: 4px solid var(--sun); }
.contact-card .h-sub { margin: 0 0 .2rem; }
.contact-card-sun { background: var(--sun); }
.contact-card-sun .i { color: var(--ink) !important; }

.notfound { padding-block: clamp(5rem, 14vw, 9rem); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgb(255 252 246 / .85); position: relative; margin-top: 3rem; }
.footer-wave { position: absolute; top: -40px; left: 0; right: 0; height: 41px; color: var(--ink); }
.footer-wave svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer-word { font-family: var(--serif); font-weight: 700; font-size: 1.8rem; color: var(--white); margin-bottom: .2rem; }
.footer-word em { color: var(--sun); font-weight: 500; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--sun); }
.footer-h { font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-list a, .footer-list span { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--sun); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.25rem 2rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .88rem; color: rgb(255 252 246 / .6); }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.stat-2.reveal.is-in, .stat-4.reveal.is-in { transform: translateY(1.5rem); }
.stats-wide .stat.reveal.is-in { transform: 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; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .gallery-nav, .gallery-thumbs, .filters, .resting-bar, .ticker { display: none !important; }
}
