:root {
  --ink: #17202b;
  --paper: #fafaf8;
  --stone: #eeede9;
  --line: #dddbd5;
  --muted: #5b6672;
  --lake: #24566a;
  --lake-d: #1a4353;
  --brass: #a8834a;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --g: 20px;
  --r: 14px;
}
@media (min-width: 860px) { :root { --g: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--lake); color: #fff; }
.btn-accent:hover { background: var(--lake-d); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { border-color: var(--line); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--g); background: rgba(250, 250, 248, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mono {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font: 500 15px/1 var(--serif); letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-weight: 600; font-size: 15px; }
.brand-text small { font-size: 12.5px; color: var(--muted); }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav { display: flex; } }
@media (max-width: 520px) { .top-call { display: none; } }

/* Hero */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 20px var(--g) 40px;
  display: grid; gap: 28px;
}
.hero-photo { margin: 0; position: relative; order: -1; }
.arch {
  border-radius: 999px 999px var(--r) var(--r); overflow: hidden; background: var(--stone);
  aspect-ratio: 4 / 4.6; max-width: 460px; margin: 0 auto; max-height: 56svh; width: 100%;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.badge {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; box-shadow: 0 8px 24px -12px rgba(23, 32, 43, .35);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #2f8a5b; box-shadow: 0 0 0 3px rgba(47, 138, 91, .18); }
.hero-copy { padding-top: 12px; }
.hero-role { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.hero-name { font-size: clamp(52px, 13vw, 112px); line-height: .94; letter-spacing: -0.025em; }
.hero-name span { display: block; }
.hero-headline { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; margin: 22px 0 12px; }
.hero-intro { color: var(--muted); max-width: 46ch; font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 22px; }
.hero-cta .btn { flex: 1 1 auto; }
.rating { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; text-decoration: none; color: var(--muted); }
.rating strong { color: var(--ink); }
.stars { color: var(--brass); letter-spacing: 2px; font-size: 15px; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; padding-top: 36px; padding-bottom: 72px; }
  .hero-photo { order: 0; }
  .arch { aspect-ratio: 4 / 5; max-width: none; max-height: none; }
  .hero-cta .btn { flex: 0 0 auto; }
}

/* Load moment */
@media (prefers-reduced-motion: no-preference) {
  .arch img { transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2, .7, .1, 1); }
  .arch { clip-path: inset(100% 0 0 0 round 999px 999px var(--r) var(--r)); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
  .hero-copy > *, .badge { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .badge { transform: translate(-50%, 14px); }
  .is-ready .arch { clip-path: inset(0 0 0 0 round 999px 999px var(--r) var(--r)); }
  .is-ready .arch img { transform: none; }
  .is-ready .hero-copy > *, .is-ready .badge { opacity: 1; transform: none; }
  .is-ready .badge { transform: translateX(-50%); transition-delay: .9s; }
  .is-ready .hero-copy > :nth-child(2) { transition-delay: .25s; }
  .is-ready .hero-copy > :nth-child(3) { transition-delay: .4s; }
  .is-ready .hero-copy > :nth-child(4) { transition-delay: .5s; }
  .is-ready .hero-copy > :nth-child(5) { transition-delay: .6s; }
  .is-ready .hero-copy > :nth-child(6) { transition-delay: .7s; }
}

/* Stats */
.stats { background: var(--ink); color: #fff; }
.stats-list {
  max-width: var(--wrap); margin: 0 auto; padding: 28px var(--g); list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px;
}
.stats-list li { display: flex; flex-direction: column; gap: 2px; }
.stat-v { font: 400 clamp(32px, 4.2vw, 44px)/1.05 var(--serif); }
.stat-l { font-size: 14px; color: rgba(255, 255, 255, .68); }
@media (min-width: 860px) {
  .stats-list { grid-template-columns: repeat(4, 1fr); padding-top: 36px; padding-bottom: 36px; }
  .stats-list li + li { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 28px; }
}

/* Blocks */
.block { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--g) 0; }
@media (min-width: 860px) { .block { padding-top: 104px; } }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.block-sub { color: var(--muted); font-size: 15px; }
.block-sub strong { color: var(--ink); }
.fine { margin-top: 20px; color: var(--muted); font-size: 14.5px; }
.fine a { color: var(--ink); text-underline-offset: 3px; }

/* Tabs */
.tabs { display: inline-flex; padding: 4px; background: var(--stone); border-radius: 999px; }
.tab {
  border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font: 500 14.5px/1 var(--sans); color: var(--muted);
}
.tab span { opacity: .7; }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(23, 32, 43, .12); }

/* Cards */
.cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--g) * -1); padding: 0 var(--g) 6px; scroll-padding: 0 var(--g);
}
.cards::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card-img { position: relative; aspect-ratio: 3 / 2; background: var(--stone); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.tag {
  position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: #fff; color: var(--ink);
}
.tag.sold { background: var(--ink); color: #fff; }
.card-body { padding: 16px 18px 18px; }
.price { font: 500 26px/1.1 var(--serif); }
.specs { margin-top: 8px; font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.specs i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.addr { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.meta { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stone); font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
@media (min-width: 640px) { .cards { grid-auto-columns: 46%; } }
@media (min-width: 960px) {
  .cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 22px; }
}

/* Reviews */
.quotes {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--g) * -1); padding: 0 var(--g) 6px; scroll-padding: 0 var(--g);
}
.quotes::-webkit-scrollbar { display: none; }
.quote { margin: 0; scroll-snap-align: start; background: var(--stone); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.6; flex: 1; }
.quote figcaption { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 600; font-size: 15px; }
.quote .src { margin-top: 4px; font-size: 13px; }
.quote-lead { background: var(--ink); color: #fff; }
.quote-lead blockquote { font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.quote-lead figcaption, .quote-lead figcaption strong { color: rgba(255, 255, 255, .75); }
.quote-lead figcaption strong { color: #fff; }
@media (min-width: 960px) {
  .quotes { grid-auto-flow: row; grid-template-columns: 1.3fr 1fr 1fr; overflow: visible; margin: 0; padding: 0; gap: 18px; }
  .quote-lead { grid-row: span 2; padding: 36px; justify-content: space-between; }
  .quote-lead blockquote { font-size: 30px; flex: 0; }
}

/* About */
.about { display: grid; gap: 32px; }
.about-photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--stone); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy > div p { font-size: 17px; color: #2f3a46; max-width: 58ch; }
.about-copy > div p + p { margin-top: 14px; }
.facts { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 15px; }
.areas-h { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 26px 0 12px; }
.areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff; }
@media (min-width: 860px) {
  .about { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
  .about-photo { aspect-ratio: 4 / 5; }
}

/* Profiles */
.profiles h2 { margin-bottom: 22px; }
.profile-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.profile-list a {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none;
  transition: border-color .2s;
}
.profile-list a:hover { border-color: var(--ink); }
.pl { font-weight: 600; font-size: 16px; }
.pn { font-size: 13.5px; color: var(--muted); grid-column: 1; }
.profile-list svg { grid-row: 1 / 3; grid-column: 2; width: 20px; height: 20px; color: var(--muted); }
@media (min-width: 640px) { .profile-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .profile-list { grid-template-columns: repeat(5, 1fr); } }

/* Contact */
.contact {
  max-width: var(--wrap); margin: 64px auto 0; padding: 0 var(--g);
  display: grid; gap: 28px;
}
@media (min-width: 860px) { .contact { margin-top: 104px; } }
.contact-copy h2 { margin-bottom: 14px; }
.contact-copy > p { color: var(--muted); font-size: 17px; max-width: 46ch; }
.direct { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.direct li { border-bottom: 1px solid var(--line); }
.direct li > a, .direct li > div { display: flex; flex-direction: column; padding: 14px 0; text-decoration: none; font-size: 17px; }
.direct .k { font-size: 13px; color: var(--muted); }
.direct a:hover span:last-child { color: var(--lake); }
.form { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: 22px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.row { display: grid; gap: 16px; }
.field label, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lake); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; cursor: pointer; background: var(--paper); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--lake); outline-offset: 2px; }
.form-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: -4px; }
.form-ok { padding: 12px 14px; border-radius: 10px; background: #e7f2ec; color: #1f5c3d; font-size: 14.5px; }
.form-ok.is-err { background: #f8ebe8; color: #8a2f1d; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } .form { padding: 30px; } }
@media (min-width: 860px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }

/* Footer */
.foot {
  max-width: var(--wrap); margin: 72px auto 0; padding: 28px var(--g) 110px;
  border-top: 1px solid var(--line); display: grid; gap: 16px; font-size: 14px; color: var(--muted);
}
.foot strong { color: var(--ink); font-weight: 600; }
.foot-main { display: grid; gap: 6px; }
.eho { display: inline-flex; align-items: center; gap: 6px; }
.credit a { color: var(--ink); text-underline-offset: 3px; }
@media (min-width: 860px) { .foot { grid-template-columns: 1fr auto; align-items: end; padding-bottom: 40px; } }

/* Mobile dock */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; padding: 6px;
  background: rgba(23, 32, 43, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px; box-shadow: 0 14px 40px -12px rgba(23, 32, 43, .55);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .7, .1, 1);
}
.dock.is-on { transform: none; }
.dock a {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px;
  color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 600; border-radius: 999px;
}
.dock svg { width: 17px; height: 17px; fill: currentColor; }
.dock .dock-main { background: var(--lake); }
@media (min-width: 860px) { .dock { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
