/* ============================================================
   CADIEUX CONSULTING - STYLES
   Colours live in the :root block below. Change a value there
   and it updates everywhere on the site.
   ============================================================ */

:root, [data-theme="light"] {
  --blue: #414d9d;          /* logo blue */
  --blue-deep: #2c3578;
  --blue-light: #9aa6dd;
  --black: #101010;         /* logo checkmark black */

  --bg: #ffffff;
  --bg-alt: #f4f5f8;
  --surface: #ffffff;
  --ink: #101010;
  --ink-soft: #494a52;
  --ink-faint: #6e6f7a;
  --line: #e1e2e9;
  --accent: #3a4590;        /* blue, used for small type and rules */
  --deep: #12162f;          /* blue-black, used for dark sections */
  --on-dark: #f1f2f8;

  --shadow-sm: 0 1px 2px rgba(16,16,16,.06), 0 4px 12px rgba(16,16,16,.05);
  --shadow-md: 0 12px 40px rgba(16,16,16,.12);
}

[data-theme="dark"] {
  --bg: #0c0e18;
  --bg-alt: #11142a;
  --surface: #161a32;
  --ink: #f2f3f8;
  --ink-soft: #c1c4d6;
  --ink-faint: #9297ad;
  --line: #262b48;
  --accent: #9aa6dd;
  --deep: #0a0c18;
  --on-dark: #f1f2f8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.3);
  --shadow-md: 0 16px 48px rgba(0,0,0,.5);
}

/* type scale */
:root {
  --text-xs: clamp(.75rem, .7rem + .25vw, .875rem);
  --text-sm: clamp(.875rem, .82rem + .25vw, 1rem);
  --text-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + .6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.35rem);

  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem;
  --space-5:1.25rem; --space-6:1.5rem; --space-8:2rem; --space-10:2.5rem;
  --space-12:3rem; --space-16:4rem; --space-20:5rem; --space-24:6rem;

  --font-display: "Zodiak", "Iowan Old Style", Georgia, serif;
  --font-body: "Erode", "Iowan Old Style", Georgia, serif;
  --font-ui: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.72;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, blockquote { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; margin: 0; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(var(--space-5), 5vw, var(--space-12)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 100; background: var(--surface); padding: var(--space-3) var(--space-4); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .16em;
  font-weight: 700; color: var(--accent); margin: 0 0 var(--space-4);
}
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--ink-soft); max-width: 62ch; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 700; letter-spacing: .01em;
  padding: .85rem 1.4rem; border-radius: var(--radius);
  background: var(--blue); color: #fff; text-decoration: none;
  border: 1px solid var(--blue);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-sm { padding: .6rem 1rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: var(--space-6); min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--blue); }
[data-theme="dark"] .logo { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.logo-tag { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--space-6); }
.site-nav a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--ink-soft); padding-block: var(--space-2); border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-soft); cursor: pointer; transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.menu-btn { display: none; width: 38px; height: 38px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; padding: 10px 9px; }
.menu-btn span { display: block; height: 1.5px; background: var(--ink); margin-block: 4px; transition: transform .25s ease; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; background: var(--deep); color: var(--on-dark); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .5; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,12,26,.96) 0%, rgba(12,16,38,.88) 42%, rgba(12,16,38,.42) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(var(--space-20), 13vw, 9.5rem); }
.hero .eyebrow { color: var(--blue-light); }
.hero h1 { max-width: 20ch; }
.hero .lede { color: #cfdaea; margin-top: var(--space-6); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-ctas .btn-ghost { color: #e7edf6; border-color: rgba(231,237,246,.35); }
.hero-ctas .btn-ghost:hover { color: var(--blue-light); border-color: var(--blue-light); }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-6);
  margin-top: clamp(var(--space-12), 7vw, var(--space-20));
  border-top: 1px solid rgba(231,237,246,.18); padding-top: var(--space-6); max-width: 780px;
}
.hero-stats .v { font-family: var(--font-display); font-size: 2.4rem; color: var(--blue-light); display: block; line-height: 1; }
.hero-stats .l { font-size: var(--text-sm); color: #b9c6da; display: block; margin-top: var(--space-2); line-height: 1.45; }

/* ---------- PILLARS ---------- */
.pillars { background: var(--bg-alt); border-block: 1px solid var(--line); padding-block: clamp(var(--space-12), 7vw, var(--space-20)); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-6); }
.pillar-grid li {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue);
  padding: clamp(var(--space-6), 2.5vw, var(--space-8));
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-grid h3 { font-size: var(--text-lg); margin: 0; }
.pillar-grid p { font-size: var(--text-base); color: var(--ink-soft); margin: 0; line-height: 1.6; }
.pillar-num {
  font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  margin: 0 0 var(--space-2);
}
[data-theme="dark"] .pillar-num { color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }

/* ---------- SECTIONS ---------- */
#services { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.section-head { max-width: 70ch; margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.section-head h2 { margin-bottom: var(--space-5); }

/* statement */
.statement { background: var(--bg); }
.statement-inner {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(var(--space-8), 6vw, var(--space-16));
  padding-block: clamp(var(--space-16), 9vw, var(--space-24)); align-items: start;
}
.statement blockquote { font-size: clamp(1.5rem, 1rem + 1.9vw, 2.5rem); line-height: 1.15; margin: 0; padding-left: var(--space-6); border-left: 2px solid var(--blue); }
.statement-body p { color: var(--ink-soft); }
.statement-body .kicker { color: var(--ink); font-weight: 700; margin: 0; }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-grid li { background: var(--surface); padding: clamp(var(--space-6), 3vw, var(--space-10)); }
.service-grid h3 { margin-bottom: var(--space-3); }
.service-grid p { font-size: var(--text-base); color: var(--ink-soft); line-height: 1.6; }
.service-points { margin-top: var(--space-5); border-top: 1px solid var(--line); padding-top: var(--space-4); display: grid; gap: var(--space-2); }
.service-points li { padding: 0; background: none; font-size: var(--text-sm); color: var(--ink-soft); letter-spacing: .01em; }
.service-points li::before { content: "•"; color: var(--accent); margin-right: var(--space-2); }

/* realtor */
.realtor { background: var(--bg); }
.realtor-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.section-head--left { margin-bottom: 0; }
.realtor-figure { margin: 0; }
.realtor-figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.ticks { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); font-size: var(--text-base); color: var(--ink-soft); }
.ticks li::before {
  content: ""; width: 11px; height: 6px; margin-top: .55em;
  border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}
.realtor-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-6); margin-top: clamp(var(--space-12), 6vw, var(--space-20)); }
.realtor-grid li { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--blue); padding: var(--space-6); }
.realtor-grid h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.realtor-grid p { font-size: var(--text-base); color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* approach */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(var(--space-6), 3vw, var(--space-8)); }
.steps li {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: grid; grid-template-columns: 76px 1fr; gap: clamp(var(--space-5), 2.5vw, var(--space-8));
  align-items: start; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.steps li:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.steps .n {
  font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: #fff;
  background: var(--blue); border-radius: 50%;
  width: 76px; height: 76px; display: inline-flex; align-items: center; justify-content: center;
  margin: 0; letter-spacing: 0;
}
.steps h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.steps p { font-size: var(--text-base); color: var(--ink-soft); margin: 0; line-height: 1.65; }

/* about */
.about { background: var(--bg); }
.about-inner { display: grid; grid-template-columns: 320px 1fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: start; }
.portrait { margin: 0; position: relative; }
.portrait img { border-radius: 50%; background: var(--bg-alt); }
.portrait::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 1px solid var(--blue); opacity: .5; pointer-events: none;
}
.about-copy p { color: var(--ink-soft); }
.about-subtitle { color: var(--ink); font-weight: 500; font-size: var(--text-base); margin-top: var(--space-4); margin-bottom: var(--space-6); }
.about-copy .ticks { margin-top: var(--space-8); border-top: 1px solid var(--line); padding-top: var(--space-6); }

/* contact */
.contact { background: var(--deep); color: var(--on-dark); }
.contact .eyebrow { color: var(--blue-light); }
.contact .lede { color: #c8d4e6; }
.contact-inner { max-width: 720px; }
.contact h2 { margin-bottom: var(--space-5); }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.contact-actions .btn-ghost { color: #e7edf6; border-color: rgba(231,237,246,.35); }
.contact-actions .btn-ghost:hover { color: var(--blue-light); border-color: var(--blue-light); }
.contact-meta { font-size: var(--text-base); color: #a9b8ce; margin-top: var(--space-6); }
.contact-meta a { color: var(--blue-light); text-decoration: none; border-bottom: 1px solid rgba(217,184,119,.4); }

/* footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: var(--space-12) var(--space-6); }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: space-between; }
.footer-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: var(--space-2); }
.footer-note { font-size: var(--text-base); color: var(--ink-soft); max-width: 46ch; }
.footer-links { display: grid; gap: var(--space-2); }
.footer-links a { font-size: var(--text-base); color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; margin-top: var(--space-10); border-top: 1px solid var(--line); padding-top: var(--space-5); }
.footer-base p { font-size: var(--text-sm); color: var(--ink-faint); margin: 0; max-width: 70ch; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .pillar-grid, .service-grid, .realtor-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .statement-inner, .realtor-top { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 240px 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .header-actions .btn-sm { display: none; }
  .site-nav {
    position: fixed; inset: 76px 0 auto; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: var(--space-4) 0 var(--space-6); display: none; box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-inline: clamp(var(--space-5), 5vw, var(--space-12)); }
  .site-nav a { display: block; padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
  .hero-stats { grid-template-columns: 1fr; gap: var(--space-5); }
  .pillar-grid, .service-grid, .realtor-grid, .steps { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 60px 1fr; }
  .steps .n { width: 60px; height: 60px; font-size: 1.5rem; }
  .about-inner { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
  .statement blockquote { padding-left: var(--space-4); }
}

/* ---------- FIXES ---------- */
section[id] { scroll-margin-top: 88px; }

@media (max-width: 520px) {
  .logo-name { font-size: .9rem; white-space: nowrap; }
  .logo-tag { display: none; }
  .header-inner { min-height: 68px; gap: var(--space-4); }
  .site-nav { inset: 68px 0 auto; }
}


/* ---------- LOGO PLATE (keeps the black checkmark readable in dark mode) ---------- */
.logo-plate { display: inline-flex; align-items: center; border-radius: 3px; padding: 0; background: transparent; }
.logo-plate img { height: 40px; width: auto; }
[data-theme="dark"] .logo-plate { background: #fff; padding: 6px 9px; }
.footer-logo { margin-bottom: var(--space-4); }
.footer-logo img { height: 84px; width: auto; }
[data-theme="dark"] .footer-logo { padding: 12px 14px; }
.logo { gap: var(--space-4); }
.logo-name { color: var(--ink); }

/* REALTOR section leads the page, so give it a little more presence */
.realtor .section-head--left h2 { font-size: clamp(1.85rem, 1.2rem + 2vw, 2.75rem); }
.realtor-grid li { transition: border-color .2s ease, transform .2s ease; }
.realtor-grid li:hover { border-color: var(--blue); transform: translateY(-2px); }

@media (max-width: 520px) {
  .logo-plate img { height: 34px; }
  .footer-logo img { height: 68px; }
}

/* ---------- HEADER TIGHTENING ---------- */
.site-nav a { white-space: nowrap; }
.site-nav ul { gap: var(--space-5); }
.header-inner { gap: var(--space-5); }
.logo-tag { display: none; }
.logo-name { font-size: .95rem; letter-spacing: .05em; }
@media (max-width: 1180px) { .site-nav ul { gap: var(--space-4); } .logo-name { display: none; } }


/* ---------- TYPOGRAPHIC REFINEMENT ---------- */
/* Body copy is set in Erode, a refined serif. Small UI chrome stays in a crisp sans. */
.eyebrow, .btn, .site-nav a, .logo-name, .footer-links a, .hero-stats .l, .footer-base p, .service-points li {
  font-family: var(--font-ui);
}
.eyebrow { letter-spacing: .18em; font-weight: 700; }
h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -.005em; }
.lede { line-height: 1.6; }
.statement blockquote { font-style: italic; }
.statement-body .kicker { font-weight: 600; font-style: italic; color: var(--ink); }
.about-subtitle { font-style: italic; font-size: var(--text-lg); color: var(--ink-soft); }
.pillar-grid p, .steps p, .service-grid p, .realtor-grid p, .ticks li, .footer-note { line-height: 1.7; }
.hero .lede, .contact .lede { line-height: 1.6; }
.hero-stats .v, .pillar-num, .steps .n { font-feature-settings: "lnum" 1; }
.service-points li { font-size: var(--text-sm); letter-spacing: .005em; }

/* ---------- TRANSPARENT HEADER OVER THE DARK HERO ---------- */
/* At the top of the page the header sits inside the dark hero, so the logo
   reads as part of that section. Once you scroll it becomes a solid bar. */
.site-header { background: transparent; backdrop-filter: none; }
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
}
.site-header:not(.scrolled) { color: #fff; }
.site-header:not(.scrolled) .logo { color: #fff; }
.site-header:not(.scrolled) .logo-plate { background: #fff; padding: 5px 8px; border-radius: 7px; }
.site-header:not(.scrolled) .site-nav a { color: rgba(255,255,255,.82); }
.site-header:not(.scrolled) .site-nav a:hover,
.site-header:not(.scrolled) .site-nav a.active { color: #fff; border-bottom-color: #fff; }
.site-header:not(.scrolled) .theme-toggle,
.site-header:not(.scrolled) .menu-btn { border-color: rgba(255,255,255,.32); color: #fff; }
.site-header:not(.scrolled) .theme-toggle:hover,
.site-header:not(.scrolled) .menu-btn:hover { border-color: #fff; color: #fff; }
.site-header:not(.scrolled) .menu-btn span { background: #fff; }
.site-header:not(.scrolled) .btn-primary { background: #fff; color: var(--blue-deep); border-color: #fff; }
.site-header:not(.scrolled) .btn-primary:hover { background: rgba(255,255,255,.88); }
/* the hero is pulled up under the sticky header so it sits behind it */
.hero { margin-top: -76px; padding-top: calc(76px + clamp(var(--space-12), 9vh, var(--space-20))); }
@media (max-width: 520px) {
  .hero { margin-top: -68px; padding-top: calc(68px + var(--space-12)); }
}
@media (max-width: 900px) {
  .site-header:not(.scrolled) .site-nav { background: var(--deep); }
  .site-header:not(.scrolled) .site-nav a { color: rgba(255,255,255,.9); }
}


/* ---------- FULL LOGO LOCKUP IN THE HEADER ---------- */
/* Page one uses the same complete logo as the footer, on a white plate so the
   black checkmark and the wordmark stay crisp over the dark hero. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header-logo { background: #fff; padding: 7px 12px; border-radius: 8px; }
.header-logo img { height: 62px; width: auto; }
.header-inner { min-height: 92px; }
.hero { margin-top: -92px; padding-top: calc(92px + clamp(var(--space-12), 8vh, var(--space-20))); }
.site-header.scrolled .header-logo { box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 900px) {
  .header-logo img { height: 52px; }
  .header-inner { min-height: 80px; }
  .hero { margin-top: -80px; padding-top: calc(80px + var(--space-14)); }
  .site-nav { inset: 80px 0 auto; }
}
@media (max-width: 520px) {
  .header-logo img { height: 44px; }
  .header-logo { padding: 6px 9px; }
  .header-inner { min-height: 72px; }
  .hero { margin-top: -72px; padding-top: calc(72px + var(--space-12)); }
  .site-nav { inset: 72px 0 auto; }
}

/* ---------- APPROACH CARD GRID PLACEMENT ---------- */
.steps .n { grid-column: 1; grid-row: 1 / span 2; }
.steps h3 { grid-column: 2; grid-row: 1; }
.steps p  { grid-column: 2; grid-row: 2; }

/* ---------- FINAL SPACING FIXES ---------- */
.steps li { row-gap: var(--space-2); align-content: start; }
.steps h3 { margin-bottom: 0; align-self: center; }
.site-header.scrolled { background: var(--bg); backdrop-filter: none; }
section[id] { scroll-margin-top: 104px; }

/* ============================================================
   TOP BRAND BANNER
   Mirrors the LinkedIn banner: white logo panel on the left,
   deep blue statement panel on the right, practice-area strip
   along the bottom. The header sits directly underneath.
   ============================================================ */
.brand-banner { background: var(--deep); border-bottom: 1px solid var(--line); }
.bb-panels { display: grid; grid-template-columns: minmax(300px, 38%) 1fr; min-height: 268px; }

.bb-left {
  position: relative; z-index: 2; background: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-4);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  padding-right: clamp(var(--space-8), 5vw, var(--space-16));
  clip-path: polygon(0 0, 100% 0, calc(100% - 52px) 100%, 0 100%);
}
.bb-left::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 46px; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--blue-light), transparent);
}
.bb-logo { width: min(300px, 100%); height: auto; display: block; }
.bb-sub { list-style: none; margin: 0; padding: 0; }
.bb-sub li {
  font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500;
  letter-spacing: .01em; color: var(--blue-deep); line-height: 1.6;
}

.bb-right { position: relative; overflow: hidden; display: flex; align-items: center; padding: clamp(var(--space-6), 4vw, var(--space-12)); }
.bb-media { position: absolute; inset: 0; }
.bb-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 72%; opacity: .55; }
.bb-right::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--deep) 2%, color-mix(in srgb, var(--deep) 46%, transparent) 46%, color-mix(in srgb, var(--deep) 20%, transparent) 100%);
}
.bb-lines { position: relative; z-index: 1; list-style: none; margin: 0 auto 0 0; padding: 0; text-align: left; }
.bb-lines li {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.35rem, 2.5vw, 2.15rem); line-height: 1.24; letter-spacing: .045em; color: #fff;
}
.bb-lines li.is-accent { color: var(--blue-light); }

.bb-badges {
  list-style: none; margin: 0; max-width: none;
  padding: var(--space-4) max(var(--space-5), calc((100% - 1220px) / 2));
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-4);
  background: #fff; border-top: 1px solid var(--line);
}
.bb-badges { width: 100%; }
.brand-banner > .bb-badges { background: #fff; }
.bb-badges li {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink); line-height: 1.3;
}
.bb-ic {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff;
}

/* header goes back to a solid bar under the banner */
.site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); }
.site-header:not(.scrolled) { color: inherit; }
.site-header:not(.scrolled) .logo { color: var(--blue); }
.site-header:not(.scrolled) .logo-plate { background: transparent; padding: 0; }
.site-header:not(.scrolled) .site-nav a { color: var(--ink-soft); }
.site-header:not(.scrolled) .site-nav a:hover,
.site-header:not(.scrolled) .site-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.site-header:not(.scrolled) .theme-toggle,
.site-header:not(.scrolled) .menu-btn { border-color: var(--line); color: var(--ink-soft); }
.site-header:not(.scrolled) .menu-btn span { background: var(--ink); }
.site-header:not(.scrolled) .btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
[data-theme="dark"] .site-header:not(.scrolled) .logo { color: var(--ink); }
[data-theme="dark"] .site-header:not(.scrolled) .logo-plate { background: #fff; padding: 6px 9px; }
.header-inner { min-height: 72px; }
.logo-plate img { height: 36px; }
.hero { margin-top: 0; padding-top: clamp(var(--space-16), 10vh, var(--space-24)); }
section[id] { scroll-margin-top: 84px; }

@media (max-width: 1100px) {
  .bb-badges li { font-size: var(--text-xs); letter-spacing: .05em; }
  .bb-ic { width: 32px; height: 32px; }
}
@media (max-width: 860px) {
  .bb-panels { grid-template-columns: 1fr; min-height: 0; }
  .bb-left { clip-path: none; align-items: center; text-align: center; padding-right: clamp(var(--space-6), 3vw, var(--space-10)); }
  .bb-left::after { display: none; }
  .bb-sub li { text-align: center; }
  .bb-right { padding-block: var(--space-8); }
  .bb-lines { margin: 0 auto; text-align: center; }
  .bb-badges { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-3) var(--space-4); }
}
@media (max-width: 520px) {
  .bb-badges { grid-template-columns: 1fr; }
  .bb-logo { width: min(240px, 100%); }
  .hero { margin-top: 0; padding-top: var(--space-14); }
  .site-nav { inset: 72px 0 auto; }
}

/* ============================================================
   GOLD ACCENTS
   Taken from the LinkedIn banner. Gold is used for hairlines,
   small highlights and details only, so the blue and black
   stay the primary brand colours.
   --gold      : lines and text on dark backgrounds
   --gold-ink  : gold text on white (darker, so it stays readable)
   ============================================================ */
:root { --gold: #c9a349; --gold-ink: #8a6a22; --gold-soft: rgba(201,163,73,.22); }
[data-theme="dark"] { --gold-ink: #d8b968; }

/* banner: gold divider and gold closing line, exactly like the LinkedIn art */
.bb-left::after { background: linear-gradient(to bottom, transparent, var(--gold), transparent); width: 3px; }
.bb-lines li.is-accent { color: var(--gold); }
.bb-badges { border-top: 2px solid var(--gold); }
.bb-ic { box-shadow: 0 0 0 2px var(--gold-soft); }
.brand-banner { border-bottom: 2px solid var(--gold); }

/* eyebrow labels pick up gold */
.eyebrow { color: var(--gold-ink); }
.hero .eyebrow, .statement .eyebrow, [data-theme="dark"] .eyebrow { color: var(--gold); }

/* hero: gold stat figures and a gold hairline */
.hero-stats { border-top: 1px solid var(--gold-soft); }
.hero-stats .v { color: var(--gold); }
.hero .btn-ghost { border-color: var(--gold); }
.hero .btn-ghost:hover { background: var(--gold); border-color: var(--gold); color: #12162f; }

/* cards: gold top rules and gold detail on the numbers */
.pillar-grid li { border-top-color: var(--gold); }
.pillar-num { box-shadow: 0 0 0 2px var(--gold-soft); }
.steps .n { box-shadow: 0 0 0 3px var(--gold-soft); }
.steps li:hover { border-color: var(--gold); }
.realtor-grid li { border-top-color: var(--gold); }
.service-grid li:hover { border-color: var(--gold); }

/* statement quote gets a gold rule */
.statement blockquote { border-left-color: var(--gold); }

/* ticks and small marks */
.ticks svg, .ticks li::before { color: var(--gold-ink); }

/* about credentials list */
.about-copy .credentials li::before, .credentials li::before { color: var(--gold-ink); }

/* footer hairline */
.site-footer { border-top: 2px solid var(--gold); }
.footer-base { border-top-color: var(--gold-soft); }

/* links and nav hover */
.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--gold); }
a:not(.btn):not(.logo):hover { text-decoration-color: var(--gold); }
.about-copy .ticks { border-top-color: var(--gold-soft); }

/* ---------- GOLD ACCENT CLEANUP ---------- */
.statement blockquote { border-left: 3px solid var(--gold); }
.contact .eyebrow, .realtor .eyebrow { color: var(--gold-ink); }
.contact .eyebrow { color: var(--gold); }
.footer-logo img { height: 78px; }
.footer-logo { background: #fff; padding: 8px 12px; border-radius: 8px; }
.contact .btn-ghost { border-color: var(--gold); }
.contact .btn-ghost:hover { background: var(--gold); border-color: var(--gold); color: #12162f; }

/* ---------- CHECK MARKS AND DARK MODE BANNER ---------- */
.ticks li::before { border-left-color: var(--gold-ink); border-bottom-color: var(--gold-ink); }
.bb-badges { background: #fff; }
.bb-badges li { color: #101010; }
[data-theme="dark"] .bb-badges { background: var(--deep); border-top-color: var(--gold); }
[data-theme="dark"] .bb-badges li { color: #fff; }
[data-theme="dark"] .bb-sub li { color: var(--blue-deep); }
