/* Brookstream Utilities — site styles
   Tokens follow Media/brand-tokens.css; contrast-adjusted variants are noted. */

:root {
  /* Brand */
  --navy: #072A44;
  --navy-2: #0C3553;          /* raised panel on navy */
  --navy-3: #12405F;          /* hairlines on navy */
  --slate: #4A6C7C;           /* 5.6:1 on white */
  --sage: #81A490;            /* accent on navy only (5.4:1) */
  --sage-ink: #4B7360;        /* sage for light backgrounds (5.0:1) */
  --line-blue: #267DA1;
  --line-sky: #8CBACD;

  /* Surfaces */
  --white: #FFFFFF;
  --cloud: #EEF2F4;
  --mist: #D8E1E5;
  --rule: #C9D3D9;
  --caption: #5F625C;         /* stone darkened for 4.5:1+ */

  /* Text on navy */
  --on-navy: #FFFFFF;
  --on-navy-muted: rgba(255, 255, 255, 0.78);

  /* Type */
  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --text-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --text-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  --text-h2: clamp(1.875rem, 1.4rem + 1.8vw, 2.875rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-eyebrow: 0.8125rem;
  --text-meta: 0.8125rem;

  /* Space (spacious, 8pt rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --container: 1240px;

  /* Shape & motion */
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(7, 42, 68, 0.06), 0 8px 24px rgba(7, 42, 68, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 240ms;
  --header-h: 76px;

  /* Layers */
  --z-header: 40;
  --z-skip: 100;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--line-blue); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--line-sky); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: var(--z-skip);
  background: var(--navy); color: var(--white); padding: 0.75rem 1rem;
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--cloud); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--space-2);
}
.on-navy .eyebrow, .section--navy .eyebrow { color: var(--sage); }
.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--slate); max-width: 62ch; }
.on-navy .lead, .section--navy .lead { color: var(--on-navy-muted); }
.prose { max-width: 66ch; }
.prose p { color: var(--navy); }
.section--navy .prose p { color: var(--on-navy-muted); }
.meta { font-size: var(--text-meta); color: var(--caption); line-height: 1.55; }
.section--navy .meta, .on-navy .meta { color: rgba(255,255,255,0.66); }
.num { font-variant-numeric: tabular-nums lining-nums; }

.section-head { display: grid; gap: var(--space-2); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 820px; }
.section-head h2 { font-size: var(--text-h2); }
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; gap: var(--space-6); }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: 600 0.9375rem/1.2 var(--font); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  border-radius: var(--radius); border: 1.5px solid transparent;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  touch-action: manipulation;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: #0E3C60; }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--cloud); }
.btn--ghost { border-color: var(--rule); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); }
.on-navy .btn--ghost, .section--navy .btn--ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.on-navy .btn--ghost:hover, .section--navy .btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

.arrow { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow, .text-link:hover .arrow, .card-link:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; text-decoration: none; color: var(--navy);
  border-bottom: 1.5px solid var(--rule); padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease-out);
}
.text-link:hover { border-color: var(--navy); }
.section--navy .text-link { color: var(--white); border-color: rgba(255,255,255,0.35); }
.section--navy .text-link:hover { border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { border-color: var(--rule); box-shadow: 0 2px 12px rgba(7,42,68,0.06); }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(10px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 160px; height: auto; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--navy);
  border-radius: var(--radius);
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 8px; height: 2px;
  background: var(--sage-ink); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-nav .btn { margin-left: 0.75rem; min-height: 44px; padding-block: 0.6rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; color: var(--navy); cursor: pointer; border-radius: var(--radius);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 32px rgba(7,42,68,0.08);
    padding: var(--space-2) var(--gutter) var(--space-4);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { min-height: 52px; padding: 0; font-size: 1.0625rem; border-bottom: 1px solid var(--cloud); border-radius: 0; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--sage-ink); }
  .site-nav .btn { margin: var(--space-3) 0 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy) url("../Media/graphics/hero-navy-flow-lines-2560x1440.jpg") no-repeat;
  background-size: cover; background-position: 62% 30%;
  color: var(--on-navy);
}
.hero::before {
  /* keeps text contrast steady where lines pass behind copy */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,42,68,0.94) 0%, rgba(7,42,68,0.78) 45%, rgba(7,42,68,0.15) 100%);
}
.hero__inner { padding-block: clamp(5rem, 3rem + 9vw, 10rem) clamp(4rem, 3rem + 5vw, 7rem); }
.hero--home .hero__inner { min-height: min(86svh, 860px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: var(--text-display); font-weight: 400; max-width: 17ch; letter-spacing: -0.025em; }
.hero--page h1 { font-size: var(--text-h1); max-width: 20ch; }
.hero .lead { margin-top: var(--space-3); color: var(--on-navy-muted); max-width: 58ch; }
.hero .eyebrow { color: var(--sage); }
.hero .btn-row { margin-top: var(--space-5); }
.breadcrumb { font-size: var(--text-small); margin-bottom: var(--space-3); color: var(--on-navy-muted); }
.breadcrumb a { color: var(--on-navy-muted); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.breadcrumb a:hover { color: var(--white); border-color: var(--white); }

/* ---------- Stat band ---------- */
.stats {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--rule);
}
.stat { padding: var(--space-4) var(--space-3) var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.stat__value { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.stat__value small { font-size: 0.45em; font-weight: 500; letter-spacing: 0; margin-left: 0.15em; color: var(--slate); }
.stat__label { margin-top: var(--space-2); font-weight: 600; font-size: var(--text-small); line-height: 1.4; }
.stat__note { margin-top: 0.35rem; font-size: var(--text-meta); color: var(--caption); line-height: 1.5; }
.section--navy .stats, .on-navy .stats { border-color: var(--navy-3); }
.section--navy .stat { border-color: var(--navy-3); }
.section--navy .stat__value small { color: var(--sage); }
.section--navy .stat__note { color: rgba(255,255,255,0.66); }
@media (min-width: 900px) {
  .stats--lined .stat { border-bottom: 0; border-right: 1px solid var(--rule); padding-left: var(--space-3); }
  .stats--lined .stat:first-child { padding-left: 0; }
  .stats--lined .stat:last-child { border-right: 0; }
  .stats--lined { border-bottom: 1px solid var(--rule); }
  .section--navy .stats--lined .stat { border-color: var(--navy-3); }
  .section--navy .stats--lined { border-color: var(--navy-3); }
}

/* ---------- Layout blocks ---------- */
.split { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--top { align-items: start; }
  .split--reverse > :first-child { order: 2; }
}
.split h2 { font-size: var(--text-h2); margin-bottom: var(--space-3); }

.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
}
.section--tint .card { border-color: transparent; }
.card h3 { font-size: var(--text-h3); margin-bottom: var(--space-2); font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: var(--text-small); line-height: 1.65; }
.card .icon { width: 44px; height: 44px; margin-bottom: var(--space-3); }
.section--navy .card { background: var(--navy-2); border-color: var(--navy-3); }
.section--navy .card p { color: var(--on-navy-muted); }

/* Division cards on the home page */
.division-card {
  position: relative; display: flex; flex-direction: column;
  min-height: 420px; padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  text-decoration: none; color: var(--white); background: var(--navy);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.division-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../Media/graphics/flow-lines-transparent.png") no-repeat right -30% top 18% / 150% auto;
  opacity: 0.5; transition: opacity var(--dur) var(--ease-out);
}
.division-card--alt { background: #0A3A4F; }
.division-card--alt::before { background-position: left -40% bottom 10%; }
.division-card:hover { box-shadow: 0 18px 40px rgba(7,42,68,0.22); }
.division-card:hover::before { opacity: 0.75; }
.division-card .eyebrow { color: var(--sage); }
.division-card h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 400; max-width: 16ch; }
.division-card p { margin-top: var(--space-2); color: var(--on-navy-muted); max-width: 44ch; }
.division-card ul { list-style: none; margin-top: var(--space-4); display: grid; gap: 0.5rem; font-size: var(--text-small); color: var(--on-navy-muted); }
.division-card li { display: flex; gap: 0.6rem; }
.division-card li::before { content: ""; flex: none; width: 14px; height: 2px; margin-top: 0.7em; background: var(--sage); }
.division-card .card-link { margin-top: auto; padding-top: var(--space-5); display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--white); }

/* ---------- Principles / numbered steps ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--rule); }
.step { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--space-2); padding-block: var(--space-4); border-bottom: 1px solid var(--rule); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 1.125rem; font-weight: 500; color: var(--sage-ink); font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.step p { color: var(--slate); font-size: var(--text-small); max-width: 60ch; }
.section--navy .steps, .section--navy .step { border-color: var(--navy-3); }
.section--navy .step::before { color: var(--sage); }
.section--navy .step p { color: var(--on-navy-muted); }

@media (min-width: 960px) {
  .steps--row { grid-template-columns: repeat(4, 1fr); border-top: 0; gap: var(--space-4); }
  .steps--row .step { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--navy); padding-top: var(--space-3); }
  .section--navy .steps--row .step { border-top-color: var(--sage); }
}

/* ---------- Process flow (commercial) ---------- */
.flow { list-style: none; display: grid; gap: var(--space-2); }
.flow__stage {
  position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--space-3);
}
.flow__stage--us { background: var(--navy); border-color: var(--navy); color: var(--white); }
.flow__stage--us p { color: var(--on-navy-muted); }
.flow__stage--us .flow__tag { color: var(--sage); }
.flow__tag { font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.flow__stage h3 { font-size: 1.25rem; font-weight: 600; margin: 0.35rem 0 0.5rem; }
.flow__stage p { font-size: var(--text-small); color: var(--slate); }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
  .flow__stage:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: calc(-1 * var(--space-4) + 6px);
    width: calc(var(--space-4) - 12px); height: 2px; background: var(--rule);
  }
}

/* ---------- Checklist ---------- */
.checks { list-style: none; display: grid; gap: var(--space-2); }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 0.85rem; align-items: start; }
.checks svg { width: 22px; height: 22px; margin-top: 0.2rem; color: var(--sage-ink); }
.section--navy .checks svg { color: var(--sage); }
.section--navy .checks li { color: var(--on-navy-muted); }

/* ---------- Feature list with icons ---------- */
.feature { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-2); align-items: start; }
.feature img { width: 40px; height: 40px; }
.feature h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.35rem; }
.feature p { font-size: var(--text-small); color: var(--slate); }
.section--navy .feature p { color: var(--on-navy-muted); }

/* ---------- Media ---------- */
.render-frame {
  background: linear-gradient(180deg, var(--white), var(--cloud));
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: clamp(1rem, 0.5rem + 2vw, 2.5rem);
}
.render-frame img { width: 100%; aspect-ratio: 1537 / 1024; object-fit: contain; }
figcaption { margin-top: var(--space-2); }

.statement {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.375rem); font-weight: 400; line-height: 1.3;
  letter-spacing: -0.015em; max-width: 30ch; text-wrap: balance;
}
.statement em { font-style: normal; color: var(--sage); }
.section--tint .statement em, .section:not(.section--navy) .statement em { color: var(--sage-ink); }

/* ---------- Map ---------- */
.map-panel { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius-lg); padding: clamp(1rem, 0.5rem + 2vw, 2rem); }
.map-panel svg { width: 100%; height: auto; }
.map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-3); font-size: var(--text-small); color: var(--on-navy-muted); }
.map-legend li { display: inline-flex; align-items: center; gap: 0.55rem; }
.map-legend svg { width: 16px; height: 16px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--navy-3); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
th, td { text-align: left; padding: 0.95rem 1.1rem; vertical-align: top; }
thead th { font-size: var(--text-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.section--navy table { color: var(--on-navy-muted); }
.section--navy thead th { color: var(--sage); background: var(--navy-2); }
.section--navy tbody tr + tr td, .section--navy tbody tr + tr th { border-top: 1px solid var(--navy-3); }
.section--navy tbody th { color: var(--white); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; }
.status--live { color: var(--sage); }
.status--live::before { background: currentColor; }

/* ---------- Team ---------- */
.person { display: grid; gap: var(--space-3); align-content: start; border-top: 2px solid var(--navy); padding-top: var(--space-4); }
.person__photo {
  width: 144px; height: 144px; border-radius: 50%;
  object-fit: cover; object-position: 50% 20%;
  background: var(--cloud); border: 1px solid var(--rule);
}
.person__badge {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
  font-size: 1.5rem; font-weight: 500; letter-spacing: 0.04em;
}
.person h3 { font-size: 1.5rem; font-weight: 500; }
.person__role { font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-ink); margin-top: 0.4rem; }
.person p { color: var(--slate); font-size: var(--text-small); }

/* ---------- Partner types ---------- */
.partner-type { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4) 0; border-top: 1px solid var(--rule); }
.partner-type h3 { font-size: 1.375rem; font-weight: 500; }
.partner-type .tag { font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-ink); }
.partner-type p { color: var(--slate); font-size: var(--text-small); }

/* ---------- Contact ---------- */
.contact-card { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.contact-card h2 { font-size: var(--text-h3); font-weight: 600; }
.contact-card .role { color: var(--sage); font-size: var(--text-small); margin-top: 0.25rem; }
.contact-lines { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.contact-lines a {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px;
  color: var(--white); text-decoration: none; font-size: 1.125rem; overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.contact-lines a:hover { border-color: var(--white); }
.contact-lines svg { width: 20px; height: 20px; flex: none; color: var(--sage); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../Media/graphics/flow-lines-transparent.png") no-repeat right -12% center / min(1400px, 110%) auto;
  opacity: 0.35;
}
.cta-band__inner { padding-block: clamp(4rem, 3rem + 5vw, 7rem); display: grid; gap: var(--space-4); align-items: end; }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1.3fr auto; } }
@media (max-width: 767px) {
  /* keep the flow lines clear of body copy on phones */
  .cta-band::before { background-position: right -40% bottom -30px; background-size: 180% auto; opacity: 0.18; }
  .division-card::before { opacity: 0.25; background-position: right -60% bottom -10%; }
}
@media (max-width: 1023px) {
  .hero::before { background: linear-gradient(180deg, rgba(7,42,68,0.9) 0%, rgba(7,42,68,0.82) 100%); }
}
.cta-band h2 { font-size: var(--text-h2); max-width: 22ch; }
.cta-band p { color: var(--on-navy-muted); margin-top: var(--space-2); max-width: 56ch; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #051F33; color: var(--on-navy-muted); font-size: var(--text-small); }
.footer-top { display: grid; gap: var(--space-5); padding-block: var(--space-6) var(--space-5); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { width: 176px; }
.footer-brand p { margin-top: var(--space-3); max-width: 38ch; }
.footer-col h2 { font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-bottom: var(--space-2); }
.footer-col ul { list-style: none; display: grid; gap: 0.1rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-navy-muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { border-top: 1px solid var(--navy-3); padding-block: var(--space-4); display: grid; gap: var(--space-1); font-size: var(--text-meta); color: rgba(255,255,255,0.66); }

/* ---------- Photography ---------- */
.photo { margin: 0; }
.photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); background: var(--mist);
}
.photo--wide img { aspect-ratio: 4 / 3; }
.photo figcaption { margin-top: var(--space-2); }
@media (min-width: 960px) { .photo--tall img { aspect-ratio: 3 / 4; } }

/* ---------- Raw vs serviced land comparison ---------- */
.compare { border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.compare table { color: var(--navy); }
.compare th, .compare td { padding: 1.1rem 1.4rem; border-top: 1px solid var(--rule); }
.compare thead th { border-top: 0; font-size: var(--text-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); background: var(--cloud); }
.compare thead th:last-child { background: var(--navy); color: var(--sage); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare tbody td:nth-child(2) { color: var(--slate); }
.compare tbody td:last-child { background: rgba(129, 164, 144, 0.1); font-weight: 500; }
@media (max-width: 719px) {
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tbody tr { border-top: 1px solid var(--rule); padding: 1rem 1.25rem; }
  .compare tbody tr:first-child { border-top: 0; }
  .compare th, .compare td { border: 0; padding: 0.2rem 0; }
  .compare tbody th { width: auto; margin-bottom: 0.35rem; }
  .compare tbody td::before { display: block; font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-top: 0.5rem; }
  .compare tbody td:nth-child(2)::before { content: "Raw land"; }
  .compare tbody td:last-child::before { content: "With a Brookstream agreement"; color: var(--sage-ink); }
  .compare tbody td:last-child { background: none; }
}

/* ---------- Geographic map ---------- */
.geo-map { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.geo-map .site-dot { fill: var(--sage); stroke: var(--navy); stroke-width: 2.5; }
.geo-map .site-halo { fill: none; stroke: var(--sage); stroke-width: 2; opacity: 0.55; }
.geo-map .site-label { font: 600 22px var(--font); fill: #fff; paint-order: stroke; stroke: #0A2F4B; stroke-width: 5px; stroke-linejoin: round; }
.geo-map .ref-dot { fill: rgba(255,255,255,0.8); }
.geo-map .ref-label { font: 400 16px var(--font); fill: rgba(255,255,255,0.8); paint-order: stroke; stroke: #0A2F4B; stroke-width: 4px; stroke-linejoin: round; }
.geo-map .rof-area { fill: rgba(129,164,144,0.16); stroke: var(--sage); stroke-width: 2; stroke-dasharray: 6 6; }
.geo-map .rof-label { font: 600 20px var(--font); fill: var(--sage); paint-order: stroke; stroke: #0A2F4B; stroke-width: 5px; stroke-linejoin: round; }
.geo-map .rof-sub { font: 400 15px var(--font); fill: rgba(255,255,255,0.75); paint-order: stroke; stroke: #0A2F4B; stroke-width: 4px; stroke-linejoin: round; }
@media (max-width: 767px) {
  .geo-map .site-label { font-size: 34px; stroke-width: 7px; }
  .geo-map .ref-label, .geo-map .rof-sub { display: none; }
  .geo-map .rof-label { font-size: 28px; }
  .geo-map .site-dot { r: 11; }
}

/* ---------- Industry associations ---------- */
.assoc-grid { list-style: none; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.assoc__logo { display: flex; align-items: center; gap: 0.75rem; height: 72px; margin-bottom: 0.5rem; }
.assoc__logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.assoc--compact { align-items: center; justify-content: center; }
.assoc--compact .assoc__logo { justify-content: center; margin: 0; height: 64px; }
/* CWWA publishes its mark only in white; shown here in CWWA blue (#0052A0, sampled from its own logo) */
.assoc__mark--cwwa {
  flex: none; width: 62px; height: 64px; background: #0052A0;
  -webkit-mask: url("../Media/associations/cwwa-logo-white.png") center / contain no-repeat;
  mask: url("../Media/associations/cwwa-logo-white.png") center / contain no-repeat;
}
.assoc__wordmark { font-size: 1.75rem; font-weight: 600; letter-spacing: 0.02em; color: #0052A0; }
.assoc {
  display: flex; flex-direction: column; gap: 0.5rem; min-height: 100%;
  padding: var(--space-3); background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; color: var(--navy);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.assoc:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.assoc__abbr { font-size: 1.625rem; font-weight: 500; letter-spacing: 0.02em; }
.assoc__name { font-weight: 600; font-size: var(--text-small); line-height: 1.4; }
.assoc__desc { font-size: var(--text-meta); color: var(--caption); line-height: 1.5; }
.assoc__link { margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-meta); font-weight: 600; color: var(--sage-ink); }
.assoc__link svg { width: 14px; height: 14px; }

/* ---------- Utilities ---------- */
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.stack-3 > * + * { margin-top: var(--space-3); }
.divider { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- Reveal motion (content stays visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .skip-link { display: none !important; }
  .hero, .section--navy { background: none !important; color: #000 !important; }
  .hero::before { display: none; }
}
