/* Tanner Hickey, with Robin Hickey
   Type: Outfit for the wordmark, headings, labels, nav and buttons; Inter for body text;
   Source Serif 4 (I, V, X glyphs only) for the Roman section numerals.
   Dark navy field, cool off-white type, soft silver labels and rules. RE/MAX red on primary actions, RE/MAX blue as the stronger accent.
   Restrained, firm-style layout: numbered sections, thin rules, generous whitespace.
   Layout rhythm takes visual inspiration from Blendtek (black canvas, large type, split hero, pill buttons). */

:root {
  /* Dark navy theme (default since v8). The previous black theme is kept below under html[data-theme="black"]. */
  --bg: #071229;
  --bg-alt: #091530;
  --bg-card: #0c1a36;
  --bg-deep: #040b1c;
  --bg-field: #050d20;
  --bg-header: rgba(7, 18, 41, 0.9);
  --ph-1: #0f2145;
  --ph-2: #091530;
  --ph-3: #071229;
  --text: #eef1f6;
  --text-muted: #9aa6b8;
  --text-soft: #c9d1de;
  --silver: #b8c2d3;
  --silver-hover: #d6dde8;
  --red: #c8102e;
  --red-hover: #e21438;
  --blue: #003da5;
  --blue-bright: #7aa2e8;
  --blue-hover: #9bb8ef;
  --rule: rgba(184, 194, 211, 0.16);
  --rule-strong: rgba(184, 194, 211, 0.34);
  --frame: rgba(184, 194, 211, 0.5);
  --focus: #7aa2e8;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Roman numerals only: Outfit and Inter have no serifs, so "III" would read as bars. Loaded as the I, V and X glyphs only. */
  --font-numeral: "Source Serif 4", Georgia, serif;
  --font-display: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --section-y: clamp(5rem, 11vw, 9rem);
  --max: 76rem;
  --header-h: 5.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Previous black theme. To switch back, add data-theme="black" to the html element. */
html[data-theme="black"] {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --bg-card: #0e0e0e;
  --bg-deep: #000;
  --bg-field: #070707;
  --bg-header: rgba(5, 5, 5, 0.88);
  --ph-1: #121110;
  --ph-2: #0a0a0a;
  --ph-3: #070707;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-bright); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 0.25s var(--ease); }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--text); }
h2 { margin: 0 0 1.25rem; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: -0.025em; }
h3 { margin: 0 0 0.5rem; font-size: 1.22rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0 0 1.1rem; }

.skip-link {
  position: absolute; left: 1rem; top: -120px; z-index: 1000;
  padding: 0.65rem 1.1rem; background: var(--bg-card); color: var(--text);
  border: 1px solid var(--rule-strong); border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 3rem, var(--max)); margin-inline: auto; }

.eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver);
}

.numeral-inline { font-family: var(--font-numeral); font-weight: 400; font-size: 1.1em; letter-spacing: 0.06em; margin-right: 0.6rem; color: var(--silver); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

/* Wordmark (option E): Outfit SemiBold, tight, mixed case, a single RE/MAX red full stop */
.brand { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; text-decoration: none; }
a.brand, a.brand:hover { color: inherit; text-decoration: none; }
.logo {
  font-family: "Outfit", var(--font-sans); font-weight: 600;
  font-size: 1.8rem; line-height: 1; letter-spacing: -0.035em;
  color: var(--text); white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.logo-dot { color: var(--red); margin-left: 0.01em; }
.brand:hover .logo { color: #fff; }
.brand-brokerage {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.62rem; line-height: 1.35; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted);
}
.logo-with { font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-muted); letter-spacing: 0.01em; }
@media (max-width: 520px) {
  .site-header .logo { font-size: 1.55rem; }
  .site-header .brand-brokerage { font-size: 0.54rem; letter-spacing: 0.13em; }
  .site-header .brand { gap: 0.45rem; }
}

/* Mobile menu lockup */
.nav-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.nav-lockup .logo { font-size: 2.1rem; }

/* Footer lockup */
.footer-lockup { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.5rem; }
.footer-lockup .logo { font-size: 2.1rem; }

.nav-toggle {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--silver); }
.nav-toggle-bar { display: block; width: 1.05rem; height: 1.5px; background: var(--text); transition: transform 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-deep); border-bottom: 1px solid var(--rule); }
.site-nav.is-open { display: block; min-height: calc(100vh - var(--header-h)); padding: 1.5rem 1.5rem 3rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav li { border-bottom: 1px solid var(--rule); }
.site-nav a {
  display: block; padding: 1.1rem 0.25rem;
  font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.nav-cta-mobile a { color: var(--blue-bright); }

a.btn.header-cta { display: none; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; margin-left: auto; background: transparent; border: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 0.25rem; }
  .site-nav li { border: 0; }
  .site-nav .nav-cta-mobile, .site-nav .nav-lockup { display: none; }
  .site-nav a {
    padding: 0.4rem 0.6rem;
    font-family: var(--font-display); font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft);
  }
  .site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--blue-bright); }
  a.btn.header-cta { display: inline-flex; min-height: 2.6rem; padding: 0.5rem 1.2rem; font-size: 0.82rem; }
}
@media (min-width: 1000px) and (max-width: 1179px) {
  .site-nav a { padding: 0.4rem 0.45rem; letter-spacing: 0.1em; }
  .brand-brokerage { white-space: nowrap; letter-spacing: 0.08em; }
}
@media (min-width: 1280px) { .site-nav a { padding: 0.4rem 0.8rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: 0.7rem 1.6rem;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn-secondary:hover { color: var(--text); border-color: var(--silver); }
.btn-blue { background: transparent; color: var(--blue-bright); border-color: rgba(122, 162, 232, 0.7); }
.btn-blue:hover { color: var(--blue-hover); border-color: var(--blue-hover); background: rgba(0, 61, 165, 0.14); }
.btn-quiet { background: transparent; color: var(--silver-hover); border-color: var(--silver); }
.btn-quiet:hover { color: #fff; border-color: var(--blue-bright); background: rgba(0, 61, 165, 0.35); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 2rem; }

/* Photo placeholders: framed, quiet, intentional */
.photo-placeholder {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  background:
    radial-gradient(110% 80% at 25% 15%, rgba(184, 194, 211, 0.07) 0%, rgba(184, 194, 211, 0) 55%),
    radial-gradient(90% 70% at 85% 95%, rgba(0, 61, 165, 0.12) 0%, rgba(0, 61, 165, 0) 60%),
    linear-gradient(160deg, var(--ph-1) 0%, var(--ph-2) 55%, var(--ph-3) 100%);
}
.photo-placeholder::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid var(--rule); pointer-events: none;
}
.ph-mark {
  font-family: "Outfit", var(--font-sans); font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.035em;
  color: rgba(238, 241, 246, 0.12);
}
.ph-mark::after { content: "."; color: rgba(200, 16, 46, 0.55); }
.ph-caption {
  font-family: var(--font-display); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(201, 209, 222, 0.55);
}
.ph-portrait { aspect-ratio: 4 / 5; width: 100%; }
.ph-portrait .ph-mark { font-size: clamp(2.5rem, 5vw, 4rem); }

/* Hero */
.hero { border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; }
.hero-copy { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 5.5rem); }
.hero-copy-inner { width: min(100% - 3rem, 44rem); margin-inline: auto; }
.hero h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(2.6rem, 5.6vw, 4.7rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 400;
}
.hero-compact h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); }
.hero-lead, .page-lead {
  margin: 0 0 2.25rem; max-width: 36rem;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.7; color: var(--text-soft);
}
.hero-meta {
  margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); max-width: 30rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-muted);
}
.hero-media .photo-placeholder { min-height: 22rem; height: 100%; }

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; min-height: max(38rem, calc(92vh - var(--header-h))); }
  .hero-compact .hero-grid { min-height: 34rem; }
  .hero-copy {
    display: flex; align-items: center;
    padding: 6rem 4.5rem 6rem max(1.5rem, calc((100vw - var(--max)) / 2));
  }
  .hero-copy-inner { width: 100%; margin: 0; max-width: 44rem; }
  .hero-media { border-left: 1px solid var(--rule); }
}

/* Page hero (text only) */
.page-hero { padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(3.5rem, 8vw, 5.5rem); border-bottom: 1px solid var(--rule); }
.page-hero h1 {
  margin: 0 0 1.75rem; max-width: 54rem;
  font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.08; letter-spacing: -0.035em;
}
.page-hero .page-lead { max-width: 40rem; margin-bottom: 0; }

/* Numbered sections */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section + .section:not(.section-alt):not(.consult) { border-top: 1px solid var(--rule); }

.section-grid { display: grid; gap: 1.75rem; }
.section-label { display: flex; align-items: baseline; gap: 0.9rem; }
.numeral { font-family: var(--font-numeral); font-weight: 400; font-size: 1.15rem; color: var(--silver); letter-spacing: 0.06em; min-width: 1.6rem; }
.label { font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.section-body { min-width: 0; }
.section-body > :last-child { margin-bottom: 0; }
.section-lead { max-width: 44rem; font-size: 1.15rem; line-height: 1.75; color: var(--text-soft); margin-bottom: 2.75rem; }
.section-body h2 + .section-lead:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .section-grid { grid-template-columns: 15rem 1fr; gap: 3rem; }
  .section-label { flex-direction: column; gap: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--rule-strong); align-self: start; }
}

/* Indexed lists (approach, services, process) */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index-list > li {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem;
  padding: 2rem 0; border-bottom: 1px solid var(--rule); align-content: start;
}
.index-num { font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--silver); letter-spacing: 0.04em; padding-top: 0.25rem; }
.index-body p { margin: 0; color: var(--text-muted); max-width: 40rem; }
.index-body h3 { margin-bottom: 0.45rem; }
.index-link {
  display: inline-block; margin-top: 0.9rem;
  font-family: var(--font-display); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-bright); text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 0.15rem;
}
.index-link::after { content: "\2192"; margin-left: 0.6rem; }
.index-link:hover { border-color: var(--blue-bright); }

@media (min-width: 760px) {
  .index-list-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; border-top: 0; }
  .index-list-grid > li { border-top: 1px solid var(--rule); border-bottom: 0; }
  .index-list-3 { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
  .index-list-3 { grid-template-columns: repeat(3, 1fr); }
  .index-list-3 > li { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* People preview */
.people-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .people-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 46rem; } }
.person-card { display: flex; align-items: center; gap: 1.5rem; text-decoration: none; color: var(--text); }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-card:hover .headshot-frame { border-color: var(--silver); }
.person-name { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.02em; }
.person-card:hover .person-name { color: var(--silver-hover); }
.person-role { margin-top: 0.35rem; font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.person-since { color: var(--text-muted); }
.person-line .sep { color: var(--text-muted); margin: 0 0.5rem; }
.person-line { margin-top: 0.4rem; font-size: 0.95rem; color: var(--blue-bright); }

/* Profiles: attorney style. Small framed photo beside flowing text, one hairline between people. */
.profile {
  display: grid; gap: 1.5rem; max-width: 52rem;
  padding: 0 0 clamp(3rem, 6vw, 4.25rem);
}
.profile + .profile { padding-top: clamp(3rem, 6vw, 4.25rem); border-top: 1px solid var(--rule); }
.profile:last-child { padding-bottom: 0; }
/* Headshots: small, framed, never larger than the source (about 240px wide).
   Thin silver frame with an inset gap between frame and photo. */
.headshot-frame {
  display: block; flex-shrink: 0; box-sizing: border-box;
  padding: 6px; border: 1px solid var(--frame); border-radius: 3px;
  background: transparent; transition: border-color 0.3s var(--ease);
}
.headshot {
  display: block; width: 100%; height: auto; aspect-ratio: 240 / 277; object-fit: cover;
  border-radius: 1px; background: var(--bg-card);
}
.headshot-sm { width: 7.25rem; padding: 5px; }
.headshot-md { width: 11rem; }
@media (min-width: 900px) { .headshot-md { width: 11.5rem; } }
.headshot-empty {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--ph-1) 0%, var(--ph-2) 60%, var(--ph-3) 100%);
}
.headshot-empty .ph-mark { font-size: 1.5rem; }
.headshot-md .headshot-empty .ph-mark { font-size: 2.2rem; }
.headshot-pf { width: 8.5rem; padding: 5px; }
.profile-photo { width: fit-content; }
.profile-body { min-width: 0; max-width: 38rem; }
.profile-body h2, .profile-body h3 { font-size: clamp(1.9rem, 3vw, 2.35rem); letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.profile-role { margin: 0.45rem 0 0; font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--silver); }
.profile-link { margin: 0.6rem 0 0; font-size: 0.88rem; }
.profile-link a { color: var(--text-soft); text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; }
.profile-link a:hover { color: var(--silver); border-color: var(--silver); }
.profile-bio { color: var(--text-soft); margin: 1.35rem 0 0; }
.profile-bio p { margin: 0 0 0.85rem; }
.profile-bio p:last-child { margin-bottom: 0; }
/* Small labelled lists, as on law firm profiles (Recognition, Designations, Registration) */
.profile-meta {
  margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem 2.25rem;
}
.profile-meta dt {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--silver); margin-bottom: 0.35rem;
}
.profile-meta dd { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-soft); }
@media (min-width: 720px) {
  .profile { grid-template-columns: 8.5rem 1fr; gap: 2.75rem; align-items: start; }
}
@media (max-width: 719px) {
  .headshot-pf { width: 7rem; }
}

.direct { margin: 0; display: grid; border-top: 1px solid var(--rule); }
.direct > div {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--rule);
}
.direct dt {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--silver); padding-top: 0.3rem;
}
.direct dd { margin: 0; color: var(--text); font-size: 0.98rem; }
.direct a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.direct a:hover { color: var(--silver); border-color: var(--silver); }
@media (max-width: 520px) {
  .direct > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .direct dd { word-break: break-word; }
}

/* Areas */
.area-grid { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.area-card { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.area-card p { margin: 0; color: var(--text-muted); }
@media (min-width: 900px) {
  .area-grid { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; border-top: 0; }
  .area-card { border-top: 1px solid var(--rule); border-bottom: 0; }
}

/* Guide */
.guide-panel {
  display: grid; gap: 1.5rem;
  padding: clamp(2.25rem, 5vw, 3.75rem);
  border: 1px solid var(--rule-strong);
  background: linear-gradient(160deg, rgba(184, 194, 211, 0.05), rgba(184, 194, 211, 0) 60%), var(--bg-card);
}
.guide-panel h2 { margin: 0; }
.guide-panel p { color: var(--text-soft); max-width: 36rem; }
.guide-panel .btn { margin-top: 0.75rem; }
@media (min-width: 900px) { .guide-panel { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; } }

/* Consultation strip */
.consult { border-top: 1px solid var(--rule); background: var(--bg-deep); }
.consult-inner { display: grid; gap: 1.5rem; }
.consult h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.1; max-width: 30rem; }
.consult p { color: var(--text-soft); max-width: 32rem; margin-bottom: 1.75rem; }
.consult .actions { margin: 0; }
@media (min-width: 900px) { .consult-inner { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; } }

/* Contact */
.contact-grid { display: grid; gap: 3.5rem; }
@media (min-width: 950px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; } }
.contact-person { padding-bottom: 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--rule); }
.contact-person:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.contact-person h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 0.35rem; }
.contact-role { font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.25rem; }
.contact-office { color: var(--text-soft); margin: 0; }

.contact-form { padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--bg-card); border: 1px solid var(--rule-strong); }
.form-title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.form-note { margin: 0 0 1.75rem; font-size: 0.88rem; color: var(--text-muted); }
/* Netlify honeypot: hidden from people, left empty; bots that fill it are dropped */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block; margin-bottom: 0.45rem;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-soft);
}
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 0.95rem;
  border: 1px solid var(--rule-strong); border-radius: 2px;
  background: var(--bg-field); font: inherit; font-size: 1rem; color: var(--text);
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--silver); }
.field textarea { resize: vertical; min-height: 8rem; }
.field-check { display: flex; align-items: flex-start; gap: 0.75rem; margin: 0.25rem 0 1.75rem; font-size: 0.95rem; color: var(--text-muted); }
.field-check input { width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; accent-color: var(--silver); flex-shrink: 0; }

/* Prose */
.prose p { max-width: 42rem; color: var(--text-soft); }

/* Footer */
.site-footer { padding: 4.5rem 0 3rem; border-top: 1px solid var(--rule-strong); background: var(--bg-deep); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; } }
.footer-col p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }
.footer-brokerage { font-weight: 500; color: var(--text-soft); }
.footer-label { font-family: var(--font-display); font-weight: 500; font-size: 0.7rem !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver) !important; }
.site-footer a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.site-footer a:hover { color: var(--silver); border-color: var(--silver); }
.footer-base { padding-top: 2rem; }
.footer-base p { font-size: 0.8rem; color: var(--text-muted); max-width: 56rem; margin: 0 0 1rem; line-height: 1.65; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin: 0 !important; }

/* 404 */
.page-simple { padding: clamp(6rem, 16vw, 11rem) 0; }
.page-simple h1 { margin: 0 0 1.5rem; font-size: clamp(2.4rem, 5.6vw, 3.9rem); line-height: 1.08; letter-spacing: -0.035em; }

/* Utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Single-column indexed lists: title and description side by side on wide screens */
@media (min-width: 1100px) {
  .index-list:not(.index-list-grid) .index-body { display: grid; grid-template-columns: 17rem 1fr; column-gap: 2.5rem; }
  .index-list:not(.index-list-grid) .index-body h3 { grid-row: span 2; margin: 0; }
  .index-list:not(.index-list-grid) .index-link { justify-self: start; }
}

.section-body h2 + .index-list { margin-top: 2.25rem; }
@media (max-width: 600px) {
  .index-list > li { grid-template-columns: 2.4rem 1fr; gap: 0.6rem; }
}

.contact-person .direct > div:last-child { border-bottom: 0; }
.contact-person { padding-bottom: 1.5rem; }

/* Brokerage: balloon, figures, offices */
.balloon { display: block; height: auto; }
.balloon-sm { width: 2.75rem; }
.balloon-md { width: 4.5rem; }
.brand-block { display: flex; gap: 1.75rem; align-items: flex-start; max-width: 44rem; }
.brand-block p { margin-top: 0; color: var(--text-soft); }
.page-hero-with-aside .container { position: relative; }
.page-hero-aside { margin-bottom: 2rem; }
@media (min-width: 900px) {
  .page-hero-aside { position: absolute; right: 1.5rem; top: 0.25rem; margin: 0; }
}
.figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin: 2.5rem 0; border-top: 1px solid var(--rule);
}
.figures div { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.5rem; }
.figures dd { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.figures dt { font-size: 0.9rem; line-height: 1.45; color: var(--text-muted); max-width: 14rem; }
.home-base { margin-top: 2rem; }
.home-base-line { color: var(--text-muted); }
.office-grid { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.office-card { padding: 1.5rem 1.5rem 1.6rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.office-card h3 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.office-card p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--text-muted); }
.office-card a { color: var(--text-soft); }
.office-home { background: var(--bg-card); box-shadow: inset 0 2px 0 var(--red); }
.office-home h3 { color: var(--text); }
.office-card p.office-tag { margin: -0.4rem 0 0.75rem; font-family: var(--font-display); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); }

/* Quiet one line note under a section's list */
.section-note { margin: 2.25rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--text-muted); max-width: 40rem; }
.section-note-tight { margin-top: 0; margin-bottom: 1.75rem; max-width: 46rem; }

/* Giving back: official CMN reversed (white) logo, unaltered, beside a short note */
.cmn-block { display: grid; gap: 1.5rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); max-width: 46rem; align-items: start; }
.cmn-logo { display: inline-block; width: 9.5rem; line-height: 0; border: 0; }
.cmn-logo img { display: block; width: 100%; height: auto; }
.cmn-logo:focus-visible { outline: 2px solid var(--silver); outline-offset: 6px; }
.cmn-text p { margin: 0 0 0.75rem; color: var(--text-soft); font-size: 0.95rem; }
.cmn-text p:last-child { margin-bottom: 0; color: var(--text-muted); }
@media (min-width: 720px) { .cmn-block { grid-template-columns: 9.5rem 1fr; gap: 2.5rem; } }

/* ------------------------------------------------------------------
   Photography (v24). Licensed photos, see CREDITS.md.
   One consistent treatment: lightly muted colour and a soft navy edge, so the
   photos sit quietly in the palette while their detail shows. Text never sits directly on a photo
   except the small band captions, which sit on a near solid navy fade.
   ------------------------------------------------------------------ */
picture { display: contents; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); }
.hero-media { position: relative; overflow: hidden; min-height: 22rem; background: var(--bg-deep); }
.hero-media .photo { position: absolute; inset: 0; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 18, 41, 0.30) 0%, rgba(7, 18, 41, 0) 22%),
    linear-gradient(0deg, rgba(7, 18, 41, 0.22) 0%, rgba(7, 18, 41, 0) 30%);
}
@media (max-width: 999px) { .hero-media { min-height: 0; aspect-ratio: 4 / 3; } }

.photo-band { position: relative; margin: 0; height: clamp(13rem, 30vw, 24rem); overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--bg-deep); }
.photo-band .photo { position: absolute; inset: 0; }
.photo-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 18, 41, 0.84) 0%, rgba(7, 18, 41, 0.50) 20%, rgba(7, 18, 41, 0.08) 52%, rgba(7, 18, 41, 0.04) 100%);
}
.photo-band figcaption { position: absolute; left: 0; right: 0; bottom: 1.25rem; z-index: 1; margin-inline: auto; }
.photo-band figcaption span {
  font-family: var(--font-display); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  text-shadow: 0 1px 6px rgba(7, 18, 41, 0.7);
}

/* Fine line river contours: a quiet motif behind text heroes */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -8%; bottom: -12%; width: min(78rem, 120%); height: 100%;
  background: url("assets/img/contours.svg") no-repeat right bottom / contain; pointer-events: none; opacity: 0.9;
}
.page-hero > .container { position: relative; }
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: url("assets/img/contours.svg") no-repeat left bottom / cover; opacity: 0.55; pointer-events: none;
}
.hero-copy-inner { position: relative; }

/* Areas map */
.map-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .map-hero-grid { grid-template-columns: 1fr 0.95fr; gap: 4rem; } }
.page-hero-map::before { display: none; }
.map-figure { margin: 0; }
.ontario-map { display: block; width: 100%; height: auto; max-width: 36rem; margin-inline: auto; }
.ontario-map .map-water path { fill: rgba(0, 61, 165, 0.16); stroke: var(--silver); stroke-opacity: 0.45; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ontario-map .map-region { fill: rgba(184, 194, 211, 0.06); stroke: var(--silver); stroke-opacity: 0.35; stroke-dasharray: 3 4; }
.ontario-map .map-dot { fill: var(--silver); }
.ontario-map .map-dot-small { fill: var(--text-muted); }
.ontario-map .map-home { fill: var(--red-hover); }
.ontario-map .map-home-ring { fill: none; stroke: var(--red-hover); stroke-opacity: 0.6; }
.ontario-map .map-north path { fill: none; stroke: var(--silver); stroke-opacity: 0.7; stroke-width: 1.2; }
.ontario-map text { font-family: var(--font-sans); }
.ontario-map .map-label { font-size: 14px; fill: var(--text); }
.ontario-map .map-label-home { font-size: 15px; font-weight: 500; }
.ontario-map .map-label-small { font-size: 11.5px; fill: var(--text-muted); }
.ontario-map .map-note { font-size: 11.5px; fill: var(--text-muted); }
.ontario-map .map-water-label { font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; fill: var(--silver); fill-opacity: 0.75; }
.map-figure figcaption { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* Credits */
.credits-list { margin: 1.5rem 0 0; padding: 0; list-style: none; max-width: 46rem; }
.credits-list li { padding: 0.7rem 0; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--text-soft); }
.credits-list a { color: var(--text); }

/* Keep phone numbers on one line */
a[href^="tel:"] { white-space: nowrap; }
