/* Domulio attorney realty
   Palette: Atlantic ink, limewash, Table Mountain sandstone, seal red.
   Type: Libre Caslon Display for headings, Hanken Grotesk for everything else. */

:root {
  --ink: #0D2229;
  --ink-2: #16343D;
  --ink-soft: #3A4A50;
  --muted: #5B686D;
  --paper: #FFFFFF;
  --limewash: #F1F2EF;
  --stone: #E6E1D8;
  --sand: #D9BE9C;
  --sand-deep: #A9855C;
  --seal: #7E1F23;
  --seal-dark: #64171A;
  --fynbos: #55624F;
  --line: #D7DBD8;
  --line-dark: rgba(255, 255, 255, .16);
  --ok: #2F6B47;
  --err: #A1262B;

  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 88px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible, .footer :focus-visible, .band :focus-visible { outline-color: var(--sand); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

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

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.75rem, 6.4vw, 5.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2.125rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; }
h4 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; margin: 0; line-height: 1.35; }
p { margin: 0; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--ink-soft); max-width: 36em; }
.small { font-size: .875rem; color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 38em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); white-space: nowrap; }
.btn--seal { background: var(--seal); color: #fff; }
.btn--seal:hover { background: var(--seal-dark); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: rgba(13, 34, 41, .06); }
.btn--glass { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.14); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.link { color: var(--seal); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background-color .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease); color: #fff; }
.header__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex-shrink: 0; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand .logo-ink { display: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: 1rem; border-radius: var(--radius); position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.header__phone { font-weight: 600; text-decoration: none; font-size: .9375rem; opacity: .9; }
.header .btn--line { color: inherit; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: var(--radius); background: transparent; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.header.is-solid, body.page-plain .header { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.header.is-solid .logo-white, body.page-plain .header .logo-white { display: none; }
.header.is-solid .logo-ink, body.page-plain .header .logo-ink { display: block; }
.header.is-solid { --header-h: 76px; }
.header.is-solid .brand img { height: 44px; }

.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .header__phone { display: none; }
}
@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .brand img, .header.is-solid .brand img { height: 42px; }
  .nav, .header__cta .btn { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--paper); color: var(--ink); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; overflow-y: auto; }
  .mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .mobile-nav > a:not(.btn) { font-family: var(--serif); font-size: 2rem; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 24px; }
  .mobile-nav .small { margin-top: 18px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .header { background: var(--paper); color: var(--ink); }
  body.nav-open .header .logo-white { display: none; }
  body.nav-open .header .logo-ink { display: block; }
}

/* Hero (home) */
.hero { position: relative; min-height: min(100svh, 980px); height: 100svh; max-height: 1080px; color: #fff; background: var(--ink) url(../images/area-atlantic-seaboard.jpg) center / cover no-repeat; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero__media video.is-on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(8, 22, 27, .55) 0%, rgba(8, 22, 27, 0) 22%),
  linear-gradient(0deg, rgba(8, 22, 27, .82) 0%, rgba(8, 22, 27, .35) 42%, rgba(8, 22, 27, 0) 70%),
  linear-gradient(90deg, rgba(8, 22, 27, .45) 0%, rgba(8, 22, 27, 0) 60%); }
.hero__in { width: 100%; padding-bottom: clamp(36px, 7vh, 88px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.hero h1 { max-width: 11.5em; text-wrap: balance; }
.hero h1 span { display: block; }
.hero__text { margin-top: 26px; max-width: 34em; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: rgba(255,255,255,.9); }
.hero__fee { margin-top: 14px; color: var(--sand); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding-bottom: 6px; }
.hero__caption { font-size: .875rem; color: rgba(255,255,255,.8); min-height: 1.4em; transition: opacity .6s; }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.35); cursor: pointer; border-radius: 2px; }
.hero__dots button[aria-current="true"] { background: #fff; }
.video-toggle { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid rgba(255,255,255,.5); background: rgba(8, 22, 27, .25); color: #fff; font-size: .875rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.video-toggle svg { width: 14px; height: 14px; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

/* One orchestrated entrance: the hero headline */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
  .hero h1 span:nth-child(2) { animation-delay: .18s; }
  .hero__text, .hero__fee, .hero__actions { opacity: 0; animation: fade .9s ease .55s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

@media (max-width: 760px) {
  .hero { height: auto; min-height: 100svh; }
  .hero__in { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 40px); }
  .hero__meta { flex-direction: row; justify-content: space-between; align-items: center; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Sections */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--lime { background: var(--limewash); }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: #E9EDEC; }
.section--ink .lede, .section--ink .small { color: rgba(233, 237, 236, .75); }
.head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2 { max-width: 13em; text-wrap: balance; }
.head--stack { grid-template-columns: 1fr; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* Buy / sell split (home) */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split__side { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; padding: clamp(32px, 4vw, 64px); color: #fff; isolation: isolate; overflow: hidden; }
.split__side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.split__side:hover > img { transform: scale(1.03); }
.split__side::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 22, 27, .9) 0%, rgba(8, 22, 27, .55) 45%, rgba(8, 22, 27, .1) 100%); }
.split__side h2 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }
.split__side p { margin-top: 12px; max-width: 30em; color: rgba(255,255,255,.88); }
.quick { margin-top: 28px; display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: var(--radius); max-width: 560px; }
.quick input, .quick select { flex: 1; min-width: 0; height: 52px; border: 0; padding: 0 14px; color: var(--ink); background: transparent; outline: none; }
.quick select { flex: .8; border-left: 1px solid var(--line); cursor: pointer; }
.quick input::placeholder { color: #7B878B; }
.quick:focus-within { box-shadow: 0 0 0 2px var(--sand); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__side { min-height: 480px; }
}
@media (max-width: 520px) {
  .quick { flex-wrap: wrap; }
  .quick input, .quick select { flex: 1 1 100%; border-left: 0; }
  .quick select { border-top: 1px solid var(--line); }
  .quick .btn { width: 100%; }
}

/* Network statement */
.statement { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.statement__big { font-family: var(--serif); font-size: clamp(1.875rem, 3.2vw, 2.875rem); line-height: 1.22; letter-spacing: -.01em; text-wrap: pretty; }
.statement__big em { font-style: italic; color: var(--seal); }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 16px; }
.facts svg { width: 24px; height: 24px; color: var(--seal); margin-top: 2px; }
.facts p { color: var(--ink-soft); margin-top: 4px; font-size: 1rem; }
@media (max-width: 900px) { .statement { grid-template-columns: 1fr; } }

/* Fee */
.fee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.fee__figure { font-family: var(--serif); font-size: clamp(4.25rem, 11vw, 10rem); line-height: .9; letter-spacing: -.035em; color: #fff; white-space: nowrap; }
.fee__figure small { font-size: .32em; letter-spacing: 0; vertical-align: top; margin-right: .08em; position: relative; top: .3em; color: var(--sand); }
.fee__terms { margin-top: 22px; font-size: 1.125rem; color: var(--sand); }
.fee__lede { margin-top: 28px; }
.fee .btn { margin-top: 34px; }
.schedule { border-top: 1px solid var(--line-dark); }
.schedule__title { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 14px; color: #fff; }
.schedule ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.schedule li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; line-height: 1.45; color: #E9EDEC; }
.schedule li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--sand); }
.schedule__note { margin-top: 22px; font-size: .9375rem; color: rgba(233, 237, 236, .7); max-width: 44em; }
.schedule--light { border-top-color: var(--line); }
.schedule--light .schedule__title { color: var(--ink); }
.schedule--light li { color: var(--ink); border-bottom-color: var(--line); }
.schedule--light li svg { color: var(--seal); }
.schedule--light .schedule__note { color: var(--muted); }
@media (max-width: 980px) { .fee { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .schedule ul { grid-template-columns: 1fr; } }

/* Why an attorney */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.why__img { position: sticky; top: calc(var(--header-h) + 24px); }
.why__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.why__img figcaption { margin-top: 12px; }
.reasons { list-style: none; margin: 40px 0 0; padding: 0; }
.reasons li { padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 20px; }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons .glyph { width: 52px; height: 52px; color: var(--ink); }
.reasons h3 { font-size: 1.625rem; }
.reasons p { margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why__img { position: static; }
  .why__img img { aspect-ratio: 16 / 10; }
}

/* Process (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line); }
.steps li { counter-increment: step; padding-right: 28px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); font-family: var(--serif); font-size: 1.25rem; margin-bottom: 22px; position: relative; }
.section--lime .steps li::before { background: var(--limewash); }
.steps li:last-child::before { background: var(--seal); border-color: var(--seal); color: #fff; }
.steps h3 { font-size: 1.375rem; }
.steps p { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 22px; padding: 0 0 30px; }
  .steps li::before { grid-row: span 2; margin: 0; }
}

/* Video band */
.band { position: relative; min-height: clamp(420px, 70vh, 720px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink) url(../images/area-false-bay-coast.jpg) center / cover; }
.band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 22, 27, .78) 0%, rgba(8, 22, 27, .35) 60%, rgba(8, 22, 27, .15) 100%); }
.band__text { max-width: 15em; font-family: var(--serif); font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: -.015em; }
.band p.small { color: rgba(255,255,255,.8); margin-top: 22px; max-width: 30em; font-size: 1.0625rem; }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.area { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; isolation: isolate; min-height: 340px; display: flex; align-items: flex-end; padding: 26px; }
.area:nth-child(1) { grid-column: span 7; min-height: 460px; }
.area:nth-child(2) { grid-column: span 5; min-height: 460px; }
.area:nth-child(3) { grid-column: span 5; }
.area:nth-child(4) { grid-column: span 7; }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.area:hover img { transform: scale(1.04); }
.area::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 22, 27, .75) 0%, rgba(8, 22, 27, 0) 55%); }
.area h3 { font-size: clamp(1.625rem, 2.4vw, 2.25rem); }
.area span { display: block; margin-top: 4px; font-size: .9375rem; color: rgba(255,255,255,.85); }
@media (max-width: 860px) {
  .areas { grid-template-columns: 1fr; }
  .area:nth-child(n) { grid-column: auto; min-height: 300px; }
}

/* Listings */
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.listing { text-decoration: none; display: block; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; color: inherit; width: 100%; }
.listing__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.listing__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.listing:hover .listing__img img { transform: scale(1.04); }
.tag { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.94); color: var(--ink); font-size: .8125rem; font-weight: 600; padding: 5px 10px; border-radius: 2px; }
.tag--example { left: auto; right: 14px; background: var(--ink); color: #fff; }
.listing__price { font-family: var(--serif); font-size: 1.75rem; margin-top: 18px; line-height: 1.1; }
.listing__title { font-weight: 600; margin-top: 6px; }
.listing__where { color: var(--muted); font-size: .9375rem; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9375rem; }
.specs span { display: inline-flex; align-items: center; gap: 7px; }
.specs svg { width: 17px; height: 17px; color: var(--muted); }
.listings-empty { grid-column: 1 / -1; padding: 48px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
@media (max-width: 1000px) { .listings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .listings { grid-template-columns: 1fr; } }

/* Filters (buy) */
.filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 44px; }
.filters label { display: block; background: var(--paper); padding: 10px 16px 8px; }
.filters label span { display: block; font-size: .8125rem; color: var(--muted); font-weight: 500; }
.filters select, .filters input { width: 100%; border: 0; background: transparent; height: 34px; padding: 0; outline: none; font-weight: 600; cursor: pointer; }
.filters label:focus-within { box-shadow: inset 0 0 0 2px var(--seal); }
.filters .btn { height: 100%; border-radius: 0; min-height: 64px; }
.results-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: -18px 0 28px; color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters .btn { grid-column: 1 / -1; } }

/* Page hero (inner pages) */
.page-hero { position: relative; min-height: clamp(460px, 68vh, 680px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 22, 27, .5) 0%, rgba(8, 22, 27, 0) 25%), linear-gradient(0deg, rgba(8, 22, 27, .85) 0%, rgba(8, 22, 27, .2) 65%); }
.page-hero .wrap { padding-bottom: clamp(40px, 7vh, 80px); padding-top: calc(var(--header-h) + 40px); }
.page-hero h1 { font-size: clamp(2.75rem, 5.6vw, 5rem); max-width: 12em; text-wrap: balance; }
.page-hero p { margin-top: 20px; max-width: 36em; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: rgba(255,255,255,.9); }
.page-hero--short { min-height: clamp(340px, 46vh, 460px); }

/* Two column content */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cols--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.cols img.photo { width: 100%; border-radius: var(--radius); object-fit: cover; }
@media (max-width: 900px) { .cols, .cols--wide-left { grid-template-columns: 1fr; } }

/* Forms */
.form-panel { background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 3.4vw, 44px); border: 1px solid var(--line); }
.form-panel h2, .form-panel h3 { margin-bottom: 8px; }
.form-panel > p { color: var(--ink-soft); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: 7px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.input { width: 100%; height: 52px; border: 1px solid #BFC6C3; border-radius: var(--radius); padding: 0 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
select.input { cursor: pointer; }
.input:hover { border-color: #8E9894; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13, 34, 41, .12); }
.field.has-error .input { border-color: var(--err); }
.field .err { display: none; color: var(--err); font-size: .875rem; margin-top: 6px; }
.field.has-error .err { display: block; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .9375rem; color: var(--ink-soft); align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--seal); }
.hp { position: absolute; left: -9999px; }
.form-done { display: none; padding: 28px; border-radius: var(--radius); background: var(--limewash); border-left: 3px solid var(--ok); }
.form-done h3 { font-size: 1.625rem; }
.form-done p { margin-top: 8px; color: var(--ink-soft); }
form.is-done { display: none; }
form.is-done + .form-done { display: block; }
.form-note { margin-top: 14px; font-size: .875rem; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div { padding: 0 0 26px; color: var(--ink-soft); max-width: 44em; }
.faq details > div p + p { margin-top: .8em; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.calc__in { padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.calc__out { padding: clamp(24px, 3vw, 40px); background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.calc__out .small { color: rgba(255,255,255,.72); }
.calc__big { font-family: var(--serif); font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1; margin: 10px 0 18px; }
.calc__rows { border-top: 1px solid var(--line-dark); }
.calc__rows div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: .9375rem; }
.calc__rows dt { color: rgba(255,255,255,.75); }
.calc__rows dd { margin: 0; font-weight: 600; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }

/* Contact */
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 16px; }
.contact-list svg { width: 22px; height: 22px; color: var(--seal); margin-top: 3px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { display: block; color: var(--muted); font-size: .9375rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 22, 27, .66); }
.modal.is-open { display: flex; }
.modal__box { position: relative; background: var(--paper); border-radius: var(--radius); width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; grid-template-columns: 1.15fr 1fr; }
.modal__box > img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.modal__body { padding: clamp(24px, 3vw, 40px); }
.modal__body .listing__price { margin-top: 0; font-size: 2.25rem; }
.modal__body p.desc { margin-top: 16px; color: var(--ink-soft); }
.modal__body .btn { margin-top: 24px; }
.modal__close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(8, 22, 27, .2); }
.modal__close svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .modal__box { grid-template-columns: 1fr; } .modal__box > img { min-height: 220px; max-height: 280px; } }

/* Notice for example content */
.example-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius); background: var(--limewash); color: var(--ink-soft); font-size: .9375rem; margin-bottom: 32px; }
.example-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--seal); }

/* Footer */
.footer { background: var(--ink); color: rgba(233, 237, 236, .78); padding: clamp(64px, 8vw, 104px) 0 36px; font-size: .9375rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer__brand img { height: 56px; width: auto; }
.footer__brand p { margin-top: 20px; max-width: 26em; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; color: rgba(233, 237, 236, .9); }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 28px; }
.footer__legal { max-width: 62em; font-size: .8125rem; color: rgba(233, 237, 236, .6); margin-top: 18px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* WhatsApp */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1F8F4E; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(8, 22, 27, .28); }
.wa svg { width: 28px; height: 28px; }
.wa:hover { background: #18773F; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Fee on a light background (sell page) */
.fee--light h2 { margin-bottom: 28px; }
.fee--light .fee__figure { color: var(--ink); }
.fee--light .fee__figure small { color: var(--seal); }
.fee--light .fee__terms { color: var(--seal); }

/* A Roman arch, once: the portrait beside "Why sell with an attorney" */
.why__img img { border-radius: 999px 999px var(--radius) var(--radius); }
@media (max-width: 900px) { .why__img img { border-radius: var(--radius); } }
@media (max-width: 760px) { .hero__meta { padding-right: 70px; } }


/* ---------- Header with the logo in the centre ---------- */
.header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.header .nav { margin-left: 0; }
.nav--left { grid-column: 1; grid-row: 1; justify-self: start; margin-left: -14px; }
.brand { grid-column: 2; grid-row: 1; justify-self: center; }
.nav--right { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 0; }
.nav a.btn { padding: 0 18px; margin-left: 12px; }
.nav a.btn::after { display: none; }
.brand img { height: 54px; }
.header__call { display: none; }
@media (max-width: 1100px) {
  .nav--left, .nav--right { display: none; }
  .header__call { display: grid; place-items: center; grid-column: 1; grid-row: 1; justify-self: start; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: var(--radius); color: inherit; }
  .header__call svg { width: 20px; height: 20px; }
  .menu-btn { display: block; grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }
  .brand img, .header.is-solid .brand img { height: 44px; }
}

/* ---------- Background videos on inner pages and bands ---------- */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
.bg-video.is-on { opacity: 1; }
.page-hero__actions { opacity: 1 !important; animation: none !important; margin-top: 28px; }

/* ---------- Home: statement and price ---------- */
.statement__small { margin-top: 24px; }
.fee__heading { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; color: var(--sand); margin-bottom: 14px; line-height: 1.4; }
.fee--light .fee__heading { color: var(--seal); margin-bottom: 14px; }

/* ---------- Featured listing ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.feature__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.feature__media > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature__media:hover > img:first-child { transform: scale(1.03); }
.feature__inset { position: absolute; right: 18px; bottom: 18px; width: 36%; aspect-ratio: 3 / 2; object-fit: cover; border: 4px solid #fff; border-radius: 2px; box-shadow: 0 10px 28px rgba(8, 22, 27, .32); }
.feature__title { font-size: clamp(2rem, 3.2vw, 2.75rem); margin-top: 8px; }
.feature__price { font-family: var(--serif); font-size: clamp(1.75rem, 2.4vw, 2.25rem); margin-top: 14px; line-height: 1.1; }
.feature__desc { margin-top: 16px; color: var(--ink-soft); max-width: 34em; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Realtors ---------- */
.realtors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.realtor img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; border-radius: 999px 999px var(--radius) var(--radius); background: var(--stone); }
.realtor h3 { margin-top: 22px; font-size: 1.75rem; }
.realtor__role { color: var(--seal); font-weight: 600; font-size: .9375rem; margin-top: 4px; }
.realtor__bio { color: var(--ink-soft); font-size: 1rem; margin-top: 12px; }
@media (max-width: 1000px) { .realtors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .realtors { grid-template-columns: 1fr; } .realtor img { aspect-ratio: 4 / 5; } }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.trio p { margin-top: 10px; color: rgba(233, 237, 236, .75); }
@media (max-width: 800px) { .trio { grid-template-columns: 1fr; } }

/* ---------- Listing page ---------- */
.listing-hero { padding-top: calc(var(--header-h) + 22px); }
.crumbs { font-size: .9375rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: inherit; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: clamp(320px, 58vh, 620px); border-radius: var(--radius); overflow: hidden; }
.gallery__item { padding: 0; border: 0; cursor: zoom-in; background: var(--stone); overflow: hidden; min-height: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item:nth-child(1) { grid-row: span 2; }
.gallery__item:nth-child(n+6) { display: none; }
.gallery__all { position: absolute; right: 16px; bottom: 16px; background: #fff; color: var(--ink); box-shadow: 0 2px 12px rgba(8, 22, 27, .22); }
.gallery__all:hover { background: var(--limewash); }
.gallery__all svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: auto; }
  .gallery__item:nth-child(1) { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery__item { aspect-ratio: 1; }
  .gallery__item:nth-child(n+4) { display: none; }
}
.listing-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.listing-type { color: var(--seal); font-weight: 600; }
.listing-title { font-size: clamp(2.25rem, 4vw, 3.25rem); margin-top: 8px; text-wrap: balance; }
.listing-address { color: var(--muted); margin-top: 10px; }
.listing-price { font-family: var(--serif); font-size: clamp(2.25rem, 3.4vw, 3rem); margin-top: 22px; line-height: 1; }
.key-facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.key-facts li { padding: 20px 16px 20px 0; }
.key-facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.key-facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.875rem; line-height: 1.1; }
.key-facts span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 620px) {
  .key-facts { grid-template-columns: 1fr 1fr; }
  .key-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .key-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.listing-desc { margin-top: 44px; }
.listing-desc h2, .listing-sub { font-size: clamp(1.75rem, 2.4vw, 2.25rem); margin: 0 0 16px; }
.listing-sub { margin-top: 52px; }
.details { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; border-top: 1px solid var(--line); }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 700px) { .details { grid-template-columns: 1fr; } }
.map { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.map iframe { width: 100%; height: 100%; border: 0; }
.listing-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.prefill { background: none; border: 0; padding: 0; margin-top: 18px; cursor: pointer; font-size: .9375rem; }
@media (max-width: 960px) { .listing-layout { grid-template-columns: 1fr; } .listing-aside { position: static; } }

.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 22, 27, .93); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-width: min(90vw, 1400px); max-height: 80vh; object-fit: contain; border-radius: 2px; }
.lightbox__cap { color: rgba(255, 255, 255, .85); margin-top: 14px; font-size: .9375rem; text-align: center; padding: 0 64px; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer small print ---------- */
.footer__reg { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .8125rem; color: rgba(233, 237, 236, .62); }
.footer__fine { margin-top: 18px; font-size: .8125rem; line-height: 1.55; color: rgba(233, 237, 236, .55); max-width: 62em; }
.footer__fine p + p { margin-top: 6px; }
.video-toggle { white-space: nowrap; }
@media (max-width: 760px) { .hero__dots button { width: 16px; } .hero__dots { gap: 6px; } }
