/* ==========================================================================
   Boscaccy Group — site design system
   One stylesheet for every public page. Sections are ordered:
   1 Tokens  2 Base  3 Type  4 Layout  5 Buttons & links  6 Header & nav
   7 Heroes  8 Components  9 Forms  10 Footer  11 Motion  12 Utilities
   ========================================================================== */

/* 1 ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Brand palette (from Brand Guidelines) */
  --navy: #12173f;
  --navy-deep: #0b0f2c;
  --navy-soft: #1b2153;
  --blue: #5d76a9;
  --gold: #ffbb22;
  --grey: #707271;

  /* Supporting neutrals */
  --ivory: #f5f1e8;
  --paper: #fbf9f4;
  --white: #ffffff;
  --ink: #12173f;
  --ink-soft: #474c69;
  --line: rgba(18, 23, 63, 0.14);
  --line-strong: rgba(18, 23, 63, 0.28);
  --line-light: rgba(255, 255, 255, 0.18);
  --on-dark: rgba(255, 255, 255, 0.78);
  --on-dark-soft: rgba(255, 255, 255, 0.58);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --wrap-narrow: 780px;
  --gutter: clamp(22px, 5vw, 72px);
  --section: clamp(76px, 10.5vw, 156px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 78px;
}

/* 2 ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--navy); color: var(--white); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  background: var(--gold); color: var(--navy); padding: 12px 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3 ── Type ───────────────────────────────────────────────────────────── */
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.012em;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}
.display { font-size: clamp(46px, 7vw, 104px); line-height: 0.98; }
.h1 { font-size: clamp(42px, 5.6vw, 82px); line-height: 1.02; }
.h2 { font-size: clamp(34px, 4.1vw, 60px); line-height: 1.07; }
.h3 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.16; }
.h4 { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.25; letter-spacing: -0.005em; }
.display em, .h1 em, .h2 em, .h3 em { font-style: italic; font-weight: 400; }

.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); flex: none; }
.eyebrow--center { justify-content: center; }
.eyebrow--plain::before { display: none; }

.lede { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.72; color: var(--ink-soft); }
.small { font-size: 13.5px; line-height: 1.65; }
.fine { font-size: 12px; line-height: 1.65; color: var(--grey); }
.fine a, .small a, .prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fine a:hover, .small a:hover, .prose a:hover { color: var(--blue); }
.serif-quote { font-family: var(--serif); font-style: italic; font-weight: 400; }
p + p { margin-top: 1.15em; }

/* Dark contexts flip the text palette */
.on-dark, .section--navy, .section--deep { color: var(--on-dark); }
.on-dark .display, .on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .h4,
.section--navy .h1, .section--navy .h2, .section--navy .h3, .section--navy .h4,
.section--deep .h2, .section--deep .h3, .section--deep .h4 { color: var(--white); }
.on-dark .eyebrow, .section--navy .eyebrow, .section--deep .eyebrow { color: var(--white); }
.on-dark .lede, .section--navy .lede, .section--deep .lede { color: var(--on-dark); }
.on-dark em, .section--navy .h2 em, .section--navy .h1 em { color: var(--gold); }

/* 4 ── Layout ─────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }
.wrap--wide { max-width: 1680px; }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 100px); }
.section--flush-top { padding-top: 0; }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); }
.section--deep { background: var(--navy-deep); }

.section-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(40px, 5.5vw, 76px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--row {
  max-width: none; grid-template-columns: 1fr auto; align-items: end; column-gap: 40px;
}
.section-head--row > .eyebrow { grid-column: 1 / -1; }
@media (max-width: 760px) { .section-head--row { grid-template-columns: 1fr; } }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--navy .rule, .on-dark .rule { background: var(--line-light); }
.stack > * + * { margin-top: var(--gap, 24px); }

/* 5 ── Buttons & links ────────────────────────────────────────────────── */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink);
  --btn-bg-h: var(--ink); --btn-fg-h: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 16px 30px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.3;
  text-align: center; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
  transition: color 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
  cursor: pointer;
}
.btn:hover { color: var(--btn-fg-h); background: var(--btn-bg-h); border-color: var(--btn-bg-h); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy); --btn-bd: var(--gold); --btn-bg-h: var(--white); --btn-fg-h: var(--navy); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy); --btn-bg-h: var(--navy-soft); --btn-fg-h: var(--white); }
.btn--light { --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, 0.55); --btn-bg-h: var(--white); --btn-fg-h: var(--navy); }
.btn--sm { min-height: 44px; padding: 11px 22px; font-size: 10.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 8px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: gap 0.35s var(--ease), color 0.25s;
}
.link::after { content: ""; width: 22px; height: 9px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpath d='M0 4.5h20M16.5 1l4 3.5-4 3.5' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpath d='M0 4.5h20M16.5 1l4 3.5-4 3.5' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.link:hover { gap: 22px; }
.on-dark .link, .section--navy .link, .section--deep .link { color: var(--white); }
.on-dark .link:hover, .section--navy .link:hover { color: var(--gold); }

/* 6 ── Header & navigation ────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--white);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-solid { background: var(--navy); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }

.nav { display: flex; align-items: center; gap: 28px; height: 78px; transition: height 0.4s var(--ease); }
.site-header.is-solid .nav { height: 66px; }
.nav__brand { display: block; flex: none; margin-right: auto; }
.nav__brand img { height: 52px; width: auto; transition: height 0.4s var(--ease); }
.site-header.is-solid .nav__brand img { height: 44px; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 36px); }
.nav__links > a, .nav__more > button {
  position: relative; padding: 10px 0; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white);
}
.nav__links > a::after, .nav__more > button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav__links > a:hover::after, .nav__links > a[aria-current="page"]::after,
.nav__more:hover > button::after, .nav__more.is-open > button::after { transform: scaleX(1); }
.nav__more { position: relative; }
.nav__more > button { display: inline-flex; align-items: center; gap: 8px; }
.nav__more > button svg { width: 9px; height: 9px; transition: transform 0.3s; }
.nav__more.is-open > button svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: 100%; right: -24px; min-width: 250px; padding: 14px 0;
  background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(11, 15, 44, 0.22);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}
.nav__more:hover .nav__menu, .nav__more:focus-within .nav__menu, .nav__more.is-open .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a { display: block; padding: 11px 26px; font-size: 13.5px; font-weight: 500; color: var(--ink); transition: background-color 0.2s, padding-left 0.25s var(--ease); }
.nav__menu a:hover { background: var(--ivory); padding-left: 32px; }
.nav__cta { flex: none; }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; flex: none; margin-right: -8px; }
.nav__toggle span:not(.sr) { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* Eight links plus the button: tightened on smaller laptop screens so nothing wraps. */
@media (max-width: 1400px) {
  .nav { gap: 22px; }
  .nav__links { gap: clamp(16px, 1.7vw, 24px); }
  .nav__links > a, .nav__more > button { letter-spacing: 0.14em; }
  .nav__cta { padding-inline: 16px; letter-spacing: 0.12em; }
}
@media (max-width: 1180px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav { height: 68px; }
  .site-header.is-solid .nav { height: 60px; }
  .nav__brand img { height: 46px; }
  .site-header.is-solid .nav__brand img { height: 40px; }
}

/* Mobile menu — full-screen sheet */
.mnav {
  position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; padding: 96px var(--gutter) 28px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mnav.is-open { opacity: 1; visibility: visible; }
.mnav__primary a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid var(--line-light);
  font-family: var(--serif); font-size: clamp(30px, 8.4vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em;
  opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s;
}
.mnav.is-open .mnav__primary a { opacity: 1; transform: none; transition-delay: calc(60ms * var(--i, 0) + 120ms); }
.mnav__primary a span { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; color: var(--gold); }
.mnav__primary a:active { color: var(--gold); }
.mnav__secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-top: 26px; }
.mnav__secondary a { padding: 8px 0; font-size: 13.5px; font-weight: 500; color: var(--on-dark); }
.mnav__foot { margin-top: auto; padding-top: 30px; display: grid; gap: 14px; }
.mnav__foot .btn { width: 100%; }
.mnav__contact { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--on-dark); }
.mnav__firm { font-size: 11px; letter-spacing: 0.05em; color: var(--on-dark-soft); line-height: 1.6; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--navy); }
@media (min-width: 1181px) { .mnav { display: none; } }

/* 7 ── Heroes ─────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); background: var(--navy-deep); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
/* Optional hero film: add assets/video/hero.mp4 and rebuild (see site-src/README.md). */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__toggle { position: absolute; right: var(--gutter); bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.hero__toggle:hover { color: var(--white); }
.hero__toggle::before { content: ""; width: 9px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero__toggle[aria-pressed="true"]::before { width: 0; height: 0; border: 6px solid transparent; border-left: 10px solid currentColor; border-right: 0; }
@media (max-width: 640px) { .hero__toggle { position: static; margin-top: 22px; } }
/* Hero photos are shown in their true colour (no navy tint). The only darkening
   is a neutral shadow behind the navigation and behind the headline. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0) 20%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0) 68%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.32) 34%, rgba(0, 0, 0, 0) 66%);
}
.hero__title { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5); }
.hero__sub, .hero .eyebrow { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 0, 0, 0.5); }
.hero__in { width: 100%; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__copy { max-width: 900px; display: grid; gap: clamp(20px, 2.4vw, 30px); }
.hero .eyebrow { color: var(--white); }
.hero__title { color: var(--white); }
.hero__title em { color: var(--white); }
.hero__sub { max-width: 600px; font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.7; color: rgba(255, 255, 255, 0.9); }
.hero__actions { margin-top: 8px; }
.hero__credit { position: absolute; right: var(--gutter); bottom: 18px; font-size: 10px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.5); }
.hero__credit a:hover { color: var(--white); }
@media (max-width: 640px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__credit { position: static; margin-top: 26px; }
}

/* Interior page hero */
.page-hero { position: relative; color: var(--white); background: var(--navy); isolation: isolate; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.page-hero--image::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0) 24%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.3) 46%, rgba(0, 0, 0, 0) 74%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.34) 36%, rgba(0, 0, 0, 0) 68%);
}
.page-hero--image .page-hero__title { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5); }
.page-hero--image .page-hero__sub, .page-hero--image .eyebrow, .page-hero--image .crumbs { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 0, 0, 0.5); }
/* Phones: the text spans the full width, so the shadow rises from the bottom instead. */
@media (max-width: 760px) {
  .hero::after, .page-hero--image::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 18%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 46%, rgba(0, 0, 0, 0.16) 76%, rgba(0, 0, 0, 0) 100%);
  }
}
.page-hero__in { padding-top: calc(var(--header-h) + clamp(64px, 9vw, 130px)); padding-bottom: clamp(56px, 7.5vw, 104px); display: grid; gap: 24px; }
.page-hero--image .page-hero__in { min-height: min(78vh, 760px); align-content: end; }
.page-hero__title { color: var(--white); max-width: 15.5em; }
.page-hero__title em { color: var(--gold); }
.page-hero__sub { max-width: 640px; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.7; color: rgba(255, 255, 255, 0.86); }
.page-hero .eyebrow { color: var(--white); }
.page-hero__credit { position: absolute; right: var(--gutter); bottom: 14px; font-size: 10px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.5); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* 8 ── Components ─────────────────────────────────────────────────────── */

/* Introduction: statement + supporting column + quiet ledger */
.intro { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.intro__statement { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.5vw, 50px); line-height: 1.14; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.intro__statement em { font-weight: 400; }
.intro__body { display: grid; gap: 26px; justify-items: start; padding-top: 10px; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

.ledger { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 84px); }
.ledger > li { padding: 30px 28px 4px 0; }
.ledger > li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.ledger__k { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.ledger__v { font-size: 14.5px; line-height: 1.65; }
.section--navy .ledger, .section--navy .ledger > li + li { border-color: var(--line-light); }
.section--navy .ledger__k { color: var(--white); }
@media (max-width: 900px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger > li { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); }
  .ledger > li + li { padding-left: 0; border-left: 0; }
  .ledger > li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger > li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Two client pathways — equal-weight image panels */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 26px); }
.path { position: relative; display: flex; align-items: flex-end; min-height: clamp(480px, 62vw, 760px); color: var(--white); overflow: hidden; isolation: isolate; }
.path__img { position: absolute; inset: 0; z-index: -2; }
.path__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 1.4s var(--ease); }
/* Like the heroes, tile photos keep their true colour: a neutral shadow rises only
   behind the text, and the type carries its own soft shadow. */
.path::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.36) 60%, rgba(0, 0, 0, 0.62) 100%); transition: opacity 0.6s; }
.path__kicker, .path__title, .path__text, .path .link { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 0, 0, 0.5); }
.path:hover .path__img img { transform: scale(1.045); }
.path__body { padding: clamp(26px, 3.6vw, 52px); display: grid; gap: 18px; max-width: 560px; }
.path__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.path__title { font-family: var(--serif); font-size: clamp(34px, 3.7vw, 54px); font-weight: 500; line-height: 1.04; letter-spacing: -0.012em; color: var(--white); }
.path__text { font-size: 15.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.86); }
.path .link { color: var(--white); margin-top: 6px; justify-self: start; }
.path__cover { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 820px) {
  .paths { grid-template-columns: 1fr; }
  .path { min-height: 540px; }
  /* On phones the text covers more of the photo, so the shadow starts higher. */
  .path::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 12%, rgba(0, 0, 0, 0.5) 44%, rgba(0, 0, 0, 0.72) 100%); }
}

/* Property cards */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.2vw, 48px) clamp(20px, 2.4vw, 36px); }
.prop-grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .prop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .prop-grid, .prop-grid--two { grid-template-columns: 1fr; } }
.prop { display: flex; flex-direction: column; }
.prop__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy); }
.prop__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.prop:hover .prop__media img { transform: scale(1.04); }
.prop__status {
  position: absolute; left: 0; top: 18px; padding: 8px 16px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--white); color: var(--navy);
}
.prop__status[data-status="active"] { background: var(--gold); }
.prop__status[data-status="sold"] { background: var(--navy); color: var(--white); }
.prop__status--tag { top: 58px; background: var(--gold); color: var(--navy); }
a.prop__media { display: block; }
.prop__addr a { transition: color 0.25s; }
.prop__addr a:hover { color: var(--blue); }
.prop__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; color: rgba(255, 255, 255, 0.6); font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; background: linear-gradient(140deg, var(--navy-soft), var(--navy-deep)); }
.prop__placeholder img { width: 46px; height: auto; opacity: 0.85; transition: none; transform: none !important; }
.prop__body { padding-top: 22px; display: grid; gap: 8px; }
.prop__addr { font-family: var(--serif); font-size: clamp(24px, 2vw, 29px); font-weight: 500; line-height: 1.15; color: var(--ink); letter-spacing: -0.008em; font-variant-numeric: lining-nums; }
.prop__city { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.prop__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); }
.prop__price { margin-left: auto; font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.prop__note { font-size: 13.5px; line-height: 1.6; }
.prop__attr { font-size: 11px; color: var(--grey); letter-spacing: 0.02em; }
.prop .link { margin-top: 10px; justify-self: start; }
.prop-filter { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-bottom: clamp(32px, 4vw, 54px); border-bottom: 1px solid var(--line); }
.prop-filter button { padding: 14px 0; margin-bottom: -1px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s; }
.prop-filter button:hover { color: var(--ink); }
.prop-filter button[aria-pressed="true"] { color: var(--ink); border-color: var(--gold); }
.prop[hidden] { display: none; }
.empty-note { padding: 34px; border: 1px solid var(--line); background: var(--white); max-width: 720px; }

/* Editorial split: image + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 112px); align-items: center; }
.split--top { align-items: start; }
.split--wide-text { grid-template-columns: 0.82fr 1.18fr; }
.split--wide-media { grid-template-columns: 1.1fr 0.9fr; }
.split__media { position: relative; }
.split__media img { width: 100%; object-fit: cover; }
.split__media--portrait img { aspect-ratio: 4 / 5; object-position: 50% 18%; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__media--land img { aspect-ratio: 4 / 3; }
.split__media--frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); z-index: -1; }
/* A photo that stays in view beside longer text. Only where the two sit side by
   side: stacked in one column, a pinned photo would cover the text below it. */
@media (min-width: 901px) { .split__media--pin { position: sticky; top: 104px; } }
.split__media figcaption, .caption { margin-top: 12px; font-size: 11px; letter-spacing: 0.04em; color: var(--grey); }
.section--navy .split__media figcaption, .section--navy .caption { color: var(--on-dark-soft); }
.split__body { display: grid; gap: 26px; justify-items: start; }
.split--flip .split__media { order: 2; }
@media (max-width: 900px) {
  .split, .split--wide-text, .split--wide-media { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__media--frame::before { inset: 14px -12px -14px 14px; }
  .split__media--portrait { max-width: 520px; }
}
.signature { display: grid; gap: 2px; padding-top: 6px; }
.signature__name { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.2; color: var(--ink); }
.section--navy .signature__name { color: var(--white); }
/* Firm name is deliberately the same size as the licensee name (TREC). */
.signature__firm { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--ink); }
.section--navy .signature__firm { color: var(--white); }
.signature__meta { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 8px; }

/* Numbered principles */
.principles { border-top: 1px solid var(--line); counter-reset: p; }
.principle { display: grid; grid-template-columns: 110px minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px clamp(24px, 4vw, 64px); align-items: baseline; padding: clamp(28px, 3.4vw, 46px) 0; border-bottom: 1px solid var(--line); counter-increment: p; }
.principle::before { content: counter(p, decimal-leading-zero); font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--blue); font-variant-numeric: lining-nums; }
.principle__title { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 36px); font-weight: 500; line-height: 1.14; color: var(--ink); letter-spacing: -0.01em; }
.principle__text { font-size: 15.5px; line-height: 1.75; }
.section--navy .principles, .section--navy .principle { border-color: var(--line-light); }
.section--navy .principle__title { color: var(--white); }
.section--navy .principle::before { color: var(--gold); }
@media (max-width: 860px) {
  .principle { grid-template-columns: 48px 1fr; row-gap: 10px; }
  .principle__text { grid-column: 2; }
}

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { padding: 34px 28px 10px 0; counter-increment: s; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; color: var(--blue); margin-bottom: 18px; }
.step__title { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.18; color: var(--ink); margin-bottom: 12px; }
.step__text { font-size: 14.5px; line-height: 1.7; }
.step ul { margin-top: 12px; display: grid; gap: 7px; font-size: 14px; line-height: 1.55; }
.step ul li { padding-left: 18px; position: relative; }
.step ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--gold); }
.section--navy .steps, .section--navy .step + .step { border-color: var(--line-light); }
.section--navy .step__title { color: var(--white); }
.section--navy .step::before { color: var(--gold); }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step { padding: 30px 22px 30px 0; border-bottom: 1px solid var(--line); }
  .step + .step { padding-left: 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .section--navy .step { border-color: var(--line-light); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Feature list: two-column hairline rows */
.features { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--line); }
.feature { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.feature__title { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.2; color: var(--ink); }
.feature__text { font-size: 14.5px; line-height: 1.7; }
.section--navy .features, .section--navy .feature { border-color: var(--line-light); }
.section--navy .feature__title { color: var(--white); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* Community tiles */
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 22px); }
.place { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4.1; color: var(--white); overflow: hidden; isolation: isolate; background: var(--navy); }
.place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); z-index: -2; transition: transform 1.4s var(--ease); }
.place::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 15, 44, 0.08) 30%, rgba(11, 15, 44, 0.88) 100%); }
.place:hover img { transform: scale(1.06); }
.place__body { padding: clamp(20px, 2vw, 30px); display: grid; gap: 8px; width: 100%; }
.place__name { font-family: var(--serif); font-size: clamp(28px, 2.5vw, 38px); font-weight: 500; line-height: 1.05; color: var(--white); }
.place__note { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); display: flex; align-items: center; gap: 10px; }
.place__note::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.4); transform: scaleX(0.25); transform-origin: left; transition: transform 0.6s var(--ease), background-color 0.4s; }
.place:hover .place__note::after { transform: scaleX(1); background: var(--gold); }
.place--text { aspect-ratio: auto; min-height: 220px; background: var(--navy); }
.place--text::after { display: none; }
.places--feature { grid-template-columns: 1.25fr 1fr 1fr; }
.places--feature .place:first-child { grid-row: span 2; aspect-ratio: auto; }
.places--feature .place:not(:first-child) { aspect-ratio: 4 / 3; }
@media (max-width: 980px) {
  .places { grid-template-columns: 1fr 1fr; }
  .places--feature { grid-template-columns: 1fr 1fr; }
  .places--feature .place:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .places { grid-template-columns: 1fr; }
  .place { aspect-ratio: 4 / 3; }
  .places--feature { grid-template-columns: 1fr; }
  .places--feature .place:first-child { aspect-ratio: 4 / 3; }
}
.place-links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: clamp(28px, 3vw, 44px); align-items: center; }
.place-links__label { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); }

/* Testimonials */
.voices { position: relative; }
.voices__track { display: grid; }
.voice { grid-area: 1 / 1; display: grid; gap: clamp(24px, 3vw, 40px); justify-items: center; text-align: center; opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0.7s; }
.voice.is-active { opacity: 1; visibility: visible; }
.voice__mark { font-family: var(--serif); font-size: 84px; line-height: 0.5; height: 34px; color: var(--gold); }
.voice__quote { font-family: var(--serif); font-size: clamp(25px, 2.75vw, 40px); font-weight: 400; font-style: italic; line-height: 1.34; color: var(--ink); max-width: 980px; text-wrap: pretty; }
.section--navy .voice__quote { color: var(--white); }
.voice__by { display: grid; gap: 6px; }
.voice__name { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.section--navy .voice__name { color: var(--white); }
.voice__ctx { font-size: 13px; color: var(--grey); }
.section--navy .voice__ctx { color: var(--on-dark-soft); }
.voices__nav { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: clamp(30px, 4vw, 52px); }
.voices__btn { width: 50px; height: 50px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.section--navy .voices__btn { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.voices__btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.voices__btn svg { width: 18px; height: 9px; }
.voices__count { font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; min-width: 56px; text-align: center; }
.no-js .voice { position: static; opacity: 1; visibility: visible; grid-area: auto; margin-bottom: 56px; }

/* Stacked testimonial cards (interior pages) */
.quotes { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: clamp(24px, 3vw, 44px); }
.quote { padding: clamp(28px, 3vw, 42px); background: var(--white); border-top: 1px solid var(--gold); display: grid; gap: 22px; align-content: start; }
.section--white .quote, .section--paper .quote { background: var(--ivory); }
.quote__text { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.45; color: var(--ink); }
.quote__by { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.quote__by span { display: block; margin-top: 6px; font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-size: 13px; color: var(--grey); }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* Insight (article) cards */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) clamp(20px, 2.6vw, 40px); }
.insight { display: grid; grid-template-rows: auto 1fr; border-top: 1px solid var(--ink); padding-top: 22px; gap: 16px; position: relative; }
.insight__tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); display: flex; justify-content: space-between; gap: 12px; }
.insight__tag time { color: var(--grey); }
.insight__body { display: grid; gap: 14px; align-content: start; }
.insight__title { font-family: var(--serif); font-size: clamp(25px, 2.15vw, 31px); font-weight: 500; line-height: 1.16; color: var(--ink); letter-spacing: -0.008em; transition: color 0.25s; }
.insight:hover .insight__title { color: var(--blue); }
.insight__text { font-size: 14.5px; line-height: 1.7; }
.insight .link { margin-top: 8px; justify-self: start; align-self: end; }
.insight__cover { position: absolute; inset: 0; }
.section--navy .insight { border-color: rgba(255, 255, 255, 0.6); }
.section--navy .insight__title { color: var(--white); }
@media (max-width: 900px) { .insights { grid-template-columns: 1fr; } }

/* Closing call to action */
.closing { position: relative; color: var(--white); isolation: isolate; overflow: hidden; background: var(--navy-deep); }
.closing__media { position: absolute; inset: 0; z-index: -2; }
.closing__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 60%); }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 15, 44, 0.94) 0%, rgba(11, 15, 44, 0.8) 48%, rgba(11, 15, 44, 0.62) 100%); }
.closing__in { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(40px, 7vw, 110px); align-items: center; padding-block: var(--section); }
.closing__copy { display: grid; gap: 26px; justify-items: start; }
.closing .eyebrow { color: var(--white); }
.closing__direct { display: grid; gap: 8px; margin-top: 8px; font-size: 15px; color: var(--on-dark); }
.closing__direct a { color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, 0.35); padding-bottom: 2px; transition: border-color 0.25s, color 0.25s; }
.closing__direct a:hover { color: var(--gold); border-color: var(--gold); }
.closing__credit { position: absolute; right: var(--gutter); bottom: 14px; font-size: 10px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.45); }
@media (max-width: 940px) { .closing__in { grid-template-columns: 1fr; } }

/* Banner (simple centered call to action) */
.banner { text-align: center; display: grid; gap: 26px; justify-items: center; }
.banner .h2 { max-width: 15em; }
.banner .lede { max-width: 620px; }

/* Pull statement */
.statement { text-align: center; display: grid; gap: 30px; justify-items: center; }
.statement__text { font-family: var(--serif); font-size: clamp(38px, 5.6vw, 84px); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; color: var(--white); max-width: 13em; text-wrap: balance; }
.statement__text em { color: var(--gold); font-weight: 400; }
.section--ivory .statement__text, .section--paper .statement__text { color: var(--ink); }

/* Before / after */
.ba { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(12px, 1.4vw, 22px); align-items: end; }
.ba figure { position: relative; }
.ba img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ba figcaption { position: absolute; left: 0; top: 16px; padding: 7px 14px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; background: var(--white); color: var(--navy); }
.ba figure:last-child figcaption { background: var(--gold); }
@media (max-width: 640px) { .ba { grid-template-columns: 1fr; } }

/* Before / after viewer (renovation pages): one room at a time, before beside after */
.ba-viewer { display: grid; gap: clamp(18px, 2vw, 28px); outline-offset: 10px; }
.ba-viewer__stage { cursor: pointer; }
.ba-slide { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 16px); margin: 0; }
.js .ba-slide:not(.is-active) { display: none; }
.js .ba-slide.is-active { animation: baIn 0.5s var(--ease); }
@keyframes baIn { from { opacity: 0; } to { opacity: 1; } }
.ba-pane { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-deep); }
.ba-pane img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag { position: absolute; left: 0; top: 16px; padding: 7px 14px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; background: var(--white); color: var(--navy); }
.ba-tag--after { background: var(--gold); }
.ba-slide__cap { grid-column: 1 / -1; font-size: 13px; color: var(--on-dark); }
.js .ba-slide__cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.no-js .ba-slide { margin-bottom: 28px; }
.no-js .ba-viewer__bar, .no-js .ba-viewer__thumbs, .no-js .ba-viewer__hint { display: none; }
.ba-viewer__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ba-viewer__label { display: grid; gap: 14px; }
.ba-viewer__label p { margin: 0; }
.ba-viewer__count { margin-left: 14px; color: var(--gold); font-variant-numeric: tabular-nums; }
.ba-viewer__nav { display: flex; gap: 10px; flex: none; }
.ba-viewer__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 104px); justify-content: start; gap: 8px; }
.ba-viewer__hint { margin: -6px 0 0; font-size: 12px; color: var(--on-dark-soft); }
#before-after { scroll-margin-top: -18px; }
.ba-thumb { position: relative; aspect-ratio: 3 / 2; overflow: hidden; opacity: 0.5; transition: opacity 0.3s; }
.ba-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ba-thumb:hover, .ba-thumb[aria-current="true"] { opacity: 1; }
.ba-thumb[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--gold); }
@media (max-width: 760px) {
  .ba-viewer__bar { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; }
  .ba-viewer__label { display: contents; }
  .ba-viewer__label .eyebrow { grid-column: 1 / -1; }
  .ba-slide { grid-template-columns: 1fr; }
  .ba-viewer__thumbs { grid-auto-columns: 76px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
  .ba-viewer__thumbs::-webkit-scrollbar { display: none; }
}

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 28px; padding: 26px 0; font-family: var(--serif); font-size: clamp(22px, 1.9vw, 27px); font-weight: 500; line-height: 1.25; color: var(--ink); transition: color 0.25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary::after { content: ""; flex: none; width: 15px; height: 15px; align-self: center; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__a { padding: 0 0 30px; max-width: 760px; font-size: 15.5px; line-height: 1.8; }
.faq-group + .faq-group { margin-top: clamp(52px, 6vw, 84px); }
.faq-group__head { display: grid; gap: 14px; margin-bottom: 28px; }

/* Long-form prose (articles, legal, community guides) */
.prose { font-size: 17px; line-height: 1.85; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); font-weight: 500; line-height: 1.14; letter-spacing: -0.01em; color: var(--ink); margin-top: 1.9em; text-wrap: balance; }
.prose h3 { font-family: var(--serif); font-size: clamp(23px, 2vw, 28px); font-weight: 500; line-height: 1.22; color: var(--ink); margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.8em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a.btn { text-decoration: none; }
.prose a.btn:hover { color: var(--btn-fg-h); }
.prose .lede { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 34px); line-height: 1.25; color: var(--ink); }
.prose ul, .prose ol { display: grid; gap: 0.6em; padding-left: 0; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 14px; height: 1px; background: var(--gold); }
.prose ol { counter-reset: o; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: o; }
.prose ol li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 0; top: 0.35em; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--blue); }
.prose blockquote { margin: 2.2em 0; padding: 6px 0 6px clamp(22px, 3vw, 40px); border-left: 1px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: clamp(23px, 2.2vw, 30px); line-height: 1.42; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 16px; font-family: var(--sans); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.prose .callout { padding: clamp(24px, 3vw, 38px); background: var(--ivory); border-top: 1px solid var(--gold); }
.section--ivory .prose .callout { background: var(--white); }
.prose .callout h3 { margin-top: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.6em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }

/* Sidebar layout (community guides, contact) */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(40px, 7vw, 110px); align-items: start; }
.aside { position: sticky; top: 98px; display: grid; gap: 22px; padding: clamp(26px, 2.6vw, 38px); background: var(--white); border-top: 1px solid var(--gold); }
.section--white .aside { background: var(--ivory); }
.aside__title { font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.18; color: var(--ink); }
.aside dl { margin: 0; display: grid; gap: 0; }
.aside dl > div { display: grid; gap: 3px; padding: 14px 0; border-top: 1px solid var(--line); }
.aside dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.aside dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

/* Simple definition rows (contact details) */
.details { display: grid; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.details dt { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.details dd { margin: 0; font-size: 16px; color: var(--ink); }
.details dd a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.25s, color 0.25s; }
.details dd a:hover { color: var(--blue); border-color: var(--blue); }
.details dd small { display: block; margin-top: 4px; font-size: 13px; color: var(--grey); }
.details--wide > div { grid-template-columns: 230px 1fr; }
@media (max-width: 520px) { .details > div { grid-template-columns: 1fr; gap: 4px; } }
.section--navy .details, .section--navy .details > div { border-color: var(--line-light); }
.section--navy .details dt { color: var(--on-dark-soft); }
.section--navy .details dd { color: var(--white); }

/* Notice (disclosures, placeholders) */
/* Product image of the Deal Analyzer (For Investors page). The screenshot is
   tall, so it is shown in a fixed window that fades out at the bottom. */
.app-shot { position: relative; max-width: 400px; max-height: 660px; margin-inline: auto; overflow: hidden; padding: 8px 12px 0; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 34px 60px -34px rgba(18, 23, 63, 0.4); }
.app-shot img { display: block; width: 100%; height: auto; }
.app-shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 110px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 88%); pointer-events: none; }
.notice { padding: 22px 26px; border: 1px solid var(--line); background: var(--white); font-size: 13.5px; line-height: 1.7; }
.notice strong { color: var(--ink); font-weight: 600; }


/* 9 ── Forms ──────────────────────────────────────────────────────────── */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; position: relative; }
.field label, .field__label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.field label small { font-weight: 500; letter-spacing: 0.06em; text-transform: none; color: var(--grey); font-size: 11.5px; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink);
  padding: 13px 0 14px; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color 0.25s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 92px; resize: vertical; }
.field select { padding-right: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2312173f' stroke-width='1.3'/%3E%3C/svg%3E") right 2px center / 12px 8px no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: rgba(18, 23, 63, 0.38); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 1px 0 var(--navy); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { font-size: 12.5px; color: #b3261e; }
.form__consent { font-size: 12px; line-height: 1.65; color: var(--grey); }
.form__consent a { text-decoration: underline; text-underline-offset: 3px; }
.form__status { font-size: 14.5px; line-height: 1.65; padding: 18px 20px; border-left: 2px solid var(--gold); background: var(--ivory); color: var(--ink); }
.form__status[data-kind="error"] { border-color: #b3261e; }
.form__status a { text-decoration: underline; text-underline-offset: 3px; }
.form__done { display: grid; gap: 16px; padding: 8px 0; }
.form__done .h3 { color: var(--ink); }
.form--dark + .form__done .h3, .form-card--dark .form__done .h3 { color: var(--white); }
.form-card--dark .form__done { color: var(--on-dark); }
.form-card--dark .form__done .eyebrow { color: var(--white); }
.form__done:focus { outline: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Form on a dark surface */
.form--dark .field label, .form--dark .field__label { color: var(--white); }
.form--dark .field input, .form--dark .field select, .form--dark .field textarea { color: var(--white); border-color: rgba(255, 255, 255, 0.42); }
.form--dark .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.3'/%3E%3C/svg%3E"); }
.form--dark .field select option { color: var(--ink); }
.form--dark .field input::placeholder, .form--dark .field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.form--dark .field input:focus, .form--dark .field select:focus, .form--dark .field textarea:focus { border-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.form--dark .form__consent { color: var(--on-dark-soft); }
.form--dark .form__status { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.form--dark .field__error, .form--dark .field [aria-invalid="true"] { color: #ffb4ab; border-color: #ffb4ab; }
.form-card { padding: clamp(28px, 3.4vw, 50px); background: var(--white); border-top: 1px solid var(--gold); }
.form-card--dark { background: rgba(11, 15, 44, 0.6); border: 1px solid var(--line-light); border-top-color: var(--gold); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.form-card__title { font-family: var(--serif); font-size: clamp(27px, 2.3vw, 33px); font-weight: 500; line-height: 1.15; color: var(--ink); margin-bottom: 8px; }
.form-card--dark .form-card__title { color: var(--white); }
.form-card__sub { font-size: 14.5px; margin-bottom: 28px; }
.form-card--dark .form-card__sub { color: var(--on-dark); }

/* 10 ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-deep); color: var(--on-dark); font-size: 14.5px; }
.footer__top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: clamp(36px, 5vw, 80px); padding-block: clamp(64px, 7vw, 104px) clamp(48px, 5vw, 72px); }
.footer__brand { display: grid; gap: 24px; align-content: start; justify-items: start; max-width: 340px; }
.footer__brand img { height: 78px; width: auto; }
.footer__col h2 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { transition: color 0.25s; }
.footer__col a:hover { color: var(--gold); }
.footer__connect { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: clamp(36px, 4vw, 54px); border-bottom: 1px solid var(--line-light); }
.footer__connect-title { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; color: var(--white); margin: 0 0 6px; }
.footer__connect-sub { margin: 0; font-size: 14px; color: var(--on-dark-soft); }
.footer__connect-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 18px; border: 1px solid var(--line-light); color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.social-btn svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 560px) { .footer__connect-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .social-btn { justify-content: center; padding-inline: 10px; letter-spacing: 0.12em; } }

/* Link to the Google Business Profile, used on several pages */
.g-reviews { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border: 1px solid var(--line-strong); font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.g-reviews:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.g-reviews__stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.section--navy .g-reviews { color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.section--navy .g-reviews:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

/* Photography and video showcase (Sell page) */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 22px); }
.work figure { position: relative; margin: 0; }
.work img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.work figcaption { margin-top: 10px; font-size: 12px; letter-spacing: 0.04em; color: var(--on-dark-soft); }
/* Freeze frame from a listing video: the frame opens the video, and the buttons sit on it */
.work-film { position: relative; margin-top: clamp(12px, 1.4vw, 22px); background: var(--navy-deep); }
.work-film__frame { display: block; position: relative; overflow: hidden; }
.work-film__frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-film__frame:hover img { transform: scale(1.03); }
.work-film__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.7) 100%); }
.work-film__play { position: absolute; left: 50%; top: 44%; width: clamp(64px, 7vw, 96px); transform: translate(-50%, -50%); z-index: 1; transition: transform 0.4s var(--ease); }
.work-film__play svg { width: 100%; height: auto; display: block; }
.work-film__frame:hover .work-film__play { transform: translate(-50%, -50%) scale(1.08); }
.work-film__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: clamp(18px, 2.4vw, 32px); pointer-events: none; }
.work-film__bar a { pointer-events: auto; }
.work-film__bar p { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; color: var(--white); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
@media (max-width: 700px) {
  .work-film__bar { position: static; padding: 18px; }
  .work-film__bar .btn { flex: 1 1 100%; }
  .work-film__play { top: 50%; }
  .work-film__frame::after { display: none; }
}
@media (max-width: 640px) { .work { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }

/* Brokerage disclosure block. The firm name must stay at least as large as the
   licensee / group name beside it (TREC 1260-02-.12(3)(b)). */
.footer__firm { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: center; padding-block: clamp(30px, 3.4vw, 46px); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
/* Brokerage identification, on every page (TREC 1260-02-.12). The firm name is set
   at the same size as the licensee name; do not shrink one without the other. */
.firm-id { display: grid; gap: 6px; }
.firm-id__agent, .firm-id__firm { font-family: var(--serif); font-size: clamp(23px, 2.1vw, 29px); font-weight: 500; line-height: 1.2; color: var(--white); font-variant-numeric: lining-nums; }
.firm-id__agent small { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-soft); margin-left: 10px; white-space: nowrap; }
.firm-id__line { font-size: 13.5px; color: var(--on-dark); margin-top: 6px; font-variant-numeric: lining-nums; }
.firm-id__line a:hover { color: var(--gold); }
.footer__marks { display: flex; align-items: center; gap: 22px; color: var(--white); }
.footer__marks svg { height: 46px; width: auto; }
.footer__marks span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5; color: var(--on-dark); }
@media (max-width: 760px) { .footer__firm { grid-template-columns: 1fr; } }

.footer__legal { padding-block: 30px 40px; display: grid; gap: 18px; font-size: 12px; line-height: 1.75; color: var(--on-dark-soft); }
.footer__legal p { max-width: 1040px; margin: 0; }
.footer__legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; }
.footer__legal-row ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer__legal a:hover { color: var(--white); }

/* 11 ── Motion ────────────────────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.hero__media img { animation: heroSettle 2.4s var(--ease) both; }
@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* 12 ── Utilities ─────────────────────────────────────────────────────── */
.center { text-align: center; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 34px; } .mt-l { margin-top: clamp(44px, 5vw, 72px); } .mt-xl { margin-top: clamp(64px, 8vw, 120px); }
.max-s { max-width: 560px; } .max-m { max-width: 720px; } .max-l { max-width: 900px; }
.mx-auto { margin-inline: auto; }
.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
.only-m { display: none; }
@media (max-width: 560px) { .only-m { display: inline; } .hide-m { display: none; } }
[hidden] { display: none !important; }

@media print {
  .site-header, .mnav, .site-footer .footer__top, .closing { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero, .hero { color: #000; background: none; min-height: 0; }
  .page-hero__media, .hero__media, .hero::after, .page-hero::after { display: none; }
  .page-hero__title, .hero__title { color: #000; }
}
