/* ==========================================================================
   Foster, Griffith & Allen, Inc. — site styles
   Plain CSS, no build step. Palette and type are derived from the firm logo.
   ========================================================================== */

:root {
  /* Brand — sampled from the logo artwork */
  --navy: #163a79;          /* logo blue */
  --navy-deep: #0f2a57;     /* hover / emphasis */
  --navy-tint: #e8edf5;     /* very light navy wash */
  --ink: #232021;           /* logo charcoal, headings */
  --text: #333333;          /* body copy */
  --muted: #5a6270;         /* secondary text (AA on white and on --paper) */
  --rule: #d9dee6;          /* hairlines */
  --paper: #f5f7fa;         /* soft section background */
  --sand: #f7f2ea;          /* warm section background */
  --sand-deep: #b8925a;     /* warm accent, decorative use only */
  --white: #ffffff;

  /* Type — system stacks only; no web-font downloads */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.875rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.375rem);
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.75vw, 3.5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --measure: 62ch;
  --wrap: 72rem;
  --radius: 6px;
  --header-h: 4.25rem;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--navy-deep); }
.req { color: #b3261e; font-weight: 700; margin-left: 0.1em; }
.address-link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.address-link:hover { color: var(--navy); text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; box-shadow: 0 0 0 6px #fff; }
.section--navy :focus-visible, .site-footer :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--navy); }
ul, ol { padding-left: 1.25rem; }
p, ul, ol { margin: 0 0 var(--space-2); max-width: var(--measure); }
strong { font-weight: 600; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-4) 0; }
address { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 var(--space-1);
}
.eyebrow--muted { color: var(--muted); }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

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

/* Skip link */
.skip-link {
  position: absolute; left: var(--space-2); top: -100%;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 100;
}
.skip-link:focus { top: var(--space-2); }

/* Pre-launch placeholders — impossible to miss, easy to search for */

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 52rem); margin-inline: auto; }
.section { padding-block: var(--space-5); }
.section--tight { padding-block: var(--space-4); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: #cfdaf0; }
.section--navy 
.section--navy a { color: #fff; }
.section--navy .muted { color: #cfdaf0; }
@media (min-width: 48em) { .section { padding-block: var(--space-6); } }

.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }

.split { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 56em) { .split { grid-template-columns: 5fr 7fr; } .split--even { grid-template-columns: 1fr 1fr; } }
.split--stretch { align-items: stretch; }
.split--center { align-items: center; }

.section-head { max-width: 40rem; margin-bottom: var(--space-4); }
.section-head--wide { max-width: 47.5rem; }
.section-head--tight { margin-bottom: var(--space-3); }
.section-head--wide p { max-width: none; }
.section-head p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: var(--step--1);
  line-height: 1.2; padding: 0.85rem 1.35rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy-tint); color: var(--navy-deep); }
.btn--on-navy { background: #fff; color: var(--navy); border-color: #fff; }
.btn--on-navy:hover { background: var(--navy-tint); border-color: var(--navy-tint); color: var(--navy-deep); }
.btn--ghost-on-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost-on-navy:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn--lg { padding: 1rem 1.6rem; font-size: var(--step-0); }
.btn--sm { padding: 0.55rem 0.8rem; }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-3); }
.actions .or { color: var(--muted); font-size: var(--step--1); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; flex: none; }
.brand__full { display: block; width: min(58vw, 260px); height: auto; }
.brand__mono { display: none; }
@media (min-width: 74em) { .brand__full { width: clamp(220px, 23.5vw, 380px); } }
@media (min-width: 84em) { .brand__full { width: clamp(300px, 26vw, 420px); } }
.site-header .wrap { width: min(100% - 2.5rem, 78rem); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: #fff; color: var(--ink); cursor: pointer; order: 3;
}
.nav-toggle svg { width: 1.35rem; height: 1.35rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--rule);
  padding: var(--space-2) 0 var(--space-3);
  box-shadow: 0 12px 30px rgba(15, 42, 87, 0.08);
}
.site-nav[data-open="true"] { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.site-nav ul a {
  display: block; padding: 0.7rem 0; font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--navy); }
.site-nav .nav-utility { margin-top: var(--space-3); display: grid; gap: var(--space-2); }

.header-phone {
  display: none; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.header-phone svg { width: 1rem; height: 1rem; flex: none; }
.header-phone:hover { color: var(--navy-deep); }
.header-phone--icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--navy); order: 2;
}
.header-phone--icon svg { width: 1.2rem; height: 1.2rem; }
.header-cta { display: none; }
.header-portal { display: none; }

@media (min-width: 74em) {
  .nav-toggle, .header-phone--icon { display: none; }
  .site-nav {
    display: block; position: static; background: none; border: 0; padding: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 1.1rem; align-items: center; }
  .site-nav ul a { border: 0; padding: 0.25rem 0; font-size: var(--step--1); }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--navy); }
  .site-nav .nav-utility { display: none; }
  .header-phone { display: inline-flex; font-size: var(--step--1); margin-left: var(--space-2); padding-left: var(--space-2); border-left: 1px solid var(--rule); }
  .header-portal, .header-cta { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: var(--space-5) var(--space-5);
  background:
    radial-gradient(60rem 30rem at 110% -20%, var(--navy-tint) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 48em) { .hero { padding-block: var(--space-6) var(--space-6); } }
.hero__inner { max-width: 46rem; }
.hero__inner--wide { max-width: 52rem; }
.hero h1 { margin-bottom: var(--space-3); }
.hero h1 em { font-style: normal; color: var(--navy); }
.hero .lede { max-width: 38rem; }
.hero__mark {
  position: absolute; right: -4rem; top: 50%; transform: translateY(-50%);
  width: clamp(18rem, 36vw, 34rem); opacity: 0.045; pointer-events: none;
}
.hero__mark svg { width: 100%; height: auto; }

/* Compact hero (homepage) */
.hero--compact { padding-block: var(--space-4); }
@media (min-width: 48em) { .hero--compact { padding-block: var(--space-5); } }
.hero__grid { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 56em) { .hero__grid { grid-template-columns: 1fr auto; } }
.hero__title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35em 0; font-size: var(--step-3); margin-bottom: var(--space-2); }
.hero__title span { white-space: nowrap; }
@media (max-width: 39.99em) { .hero__title { flex-direction: column; align-items: flex-start; gap: 0.1em; } .hero__sep { display: none; } }
.hero__sep { display: inline-block; width: 2px; height: 0.8em; background: var(--sand-deep); margin: 0 0.6em; border-radius: 1px; }
.hero--compact .lede { margin-bottom: 0; }
.hero__mark--solid { position: static; transform: none; opacity: 1; width: clamp(150px, 16vw, 230px); display: none; justify-self: end; margin-right: var(--space-3); }
.hero__mark--solid svg path { fill: var(--navy); }
@media (min-width: 56em) { .hero__mark--solid { display: block; } }

/* Page hero (interior) */
.page-hero {
  padding-block: var(--space-4) var(--space-4);
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 48em) { .page-hero { padding-block: var(--space-5) var(--space-5); } }
.page-hero h1 { margin-bottom: var(--space-2); }
.page-hero .lede { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: var(--space-3); }
@media (min-width: 40em) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border-left: 3px solid var(--navy); padding-left: var(--space-2); }
.stat__value { font-family: var(--serif); font-size: var(--step-3); color: var(--navy); line-height: 1; display: block; margin-bottom: 0.35rem; }
.stat__label { color: var(--muted); font-size: var(--step--1); display: block; max-width: 16rem; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-1);
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card h3 { font-size: var(--step-1); margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.card ul { margin: 0.25rem 0 0; padding-left: 1.1rem; color: var(--text); font-size: var(--step--1); }
.card li { margin-bottom: 0.2rem; }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { border-color: var(--navy); box-shadow: 0 8px 24px rgba(15, 42, 87, 0.08); color: inherit; }
.card--link:hover h3 { color: var(--navy); }
.card--link .card__more { color: var(--navy); }
.card__more { margin-top: auto; padding-top: var(--space-1); font-weight: 600; font-size: var(--step--1); }
.card__more::after { content: " →"; }
/* Whole-card click without nesting interactive content */
.card--link > a.card__cover::after { content: ""; position: absolute; inset: 0; }
.card--link > a.card__cover, .card--link h3 a { text-decoration: none; color: var(--ink); }
.card--link:hover h3 a { color: var(--navy); }
.card--link > a.card__cover:focus-visible { outline: none; }
.card--link:has(a.card__cover:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }

/* Left-rule callout (echoes the homepage stat block) */
.callout { border-left: 3px solid var(--navy); padding-left: 1.5rem; display: grid; gap: var(--space-3); align-content: start; }
.callout__block h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.callout__block p { margin: 0; color: var(--text); }

/* Footnote under a grid */
.footnote { border-top: 1px solid var(--rule); padding-top: 1.5rem; margin-top: var(--space-3); max-width: 56rem; font-size: var(--step--1); color: var(--muted); }
.footnote strong { color: var(--ink); }

/* Values list (About) */
.values { margin: 0; max-width: none; display: grid; gap: var(--space-3) var(--space-4); }
@media (min-width: 48em) { .values { grid-template-columns: 1fr 1fr; } }
.value { border-top: 1px solid var(--rule); padding-top: var(--space-2); }
.value dt { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); margin-bottom: 0.35rem; }
.value dd { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* Industry grid */
.industries { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
@media (min-width: 40em) { .industries { grid-template-columns: repeat(3, 1fr); } }
.industries--wide { grid-template-columns: repeat(3, 1fr); }
.industries--wide li { white-space: nowrap; }
@media (max-width: 47.99em) { .industries--wide { grid-template-columns: repeat(2, 1fr); } .industries--wide li { white-space: normal; } }
.industries li {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 0.9rem 1rem; min-height: 4rem; font-weight: 500; color: var(--ink); font-size: var(--step--1);
  display: flex; align-items: center; gap: 0.6rem; text-wrap: balance;
}
.industries li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sand-deep); flex: none; }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.45rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--rule); }
.timeline li { position: relative; padding-left: 2.25rem; padding-bottom: var(--space-3); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem; width: 1rem; height: 1rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--navy);
}
.timeline li.is-now::before { background: var(--navy); }
.timeline time { display: block; font-family: var(--serif); font-size: var(--step-2); color: var(--navy); line-height: 1; margin-bottom: 0.35rem; }
.timeline h3 { font-family: var(--sans); font-size: var(--step-0); font-weight: 600; margin-bottom: 0.25rem; }
.timeline p { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* Horizontal on wide screens (homepage variant) */
@media (min-width: 60em) {
  .timeline--horizontal { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); }
  .timeline--horizontal::before { left: 0.5rem; right: 0.5rem; top: 0.45rem; bottom: auto; height: 2px; width: auto; }
  .timeline--horizontal li { padding-left: 0; padding-top: 2rem; padding-bottom: 0; }
  .timeline--horizontal li::before { left: 0; top: 0; }
}

/* --------------------------------------------------------------------------
   Steps ("what happens next")
   -------------------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: none; display: grid; gap: var(--space-3); }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--serif); font-size: var(--step-1);
  display: grid; place-items: center;
}
.section--navy .steps li::before { background: #fff; color: var(--navy); }
.steps h3 { font-family: var(--sans); font-size: var(--step-0); font-weight: 600; margin-bottom: 0.25rem; }
.steps p { margin: 0; font-size: var(--step--1); color: var(--muted); }
.section--navy .steps p { color: #dbe4f3; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 56em) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { margin-bottom: var(--space-1); }
.cta-band p { margin: 0; }
.cta-band .actions { margin-top: 0; }

/* --------------------------------------------------------------------------
   Service pages
   -------------------------------------------------------------------------- */
.service-list { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: var(--space-2); }
.service-list li { border-top: 1px solid var(--rule); padding-top: var(--space-2); display: grid; gap: 0.25rem; }
@media (min-width: 40em) { .service-list li { grid-template-columns: 14rem 1fr; gap: var(--space-2); } }
.service-list h3 { font-family: var(--sans); font-size: var(--step-0); font-weight: 600; margin: 0; }
.service-list p { margin: 0; color: var(--muted); font-size: var(--step--1); }

.aside-box { background: var(--paper); border-radius: var(--radius); padding: var(--space-3); border: 1px solid var(--rule); }
.aside-box h3 { font-size: var(--step-1); }
.aside-box p:last-child, .aside-box ul:last-child { margin-bottom: 0; }
.aside-box--sand { background: var(--sand); }

.sub-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 var(--space-2); padding: 0; max-width: none; }
.sub-nav a { display: inline-block; padding: 0.4rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-size: var(--step--1); color: var(--ink); background: #fff; }
.sub-nav a:hover { border-color: var(--navy); color: var(--navy); }
.sub-nav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-group { padding-block: var(--space-4); border-top: 1px solid var(--rule); }
.team-group:first-of-type { border-top: 0; padding-top: 0; }
.team-group__head { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-3); }
.team-group__head h2 { margin: 0; font-size: var(--step-2); }
.team-group__head .count { color: var(--muted); font-size: var(--step--1); }
.people { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); grid-auto-rows: 1fr; }
.people--list { grid-template-columns: 1fr; grid-auto-rows: auto; }
.person--row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; min-height: 0; }
.schedule__note { margin: 0; }
.person {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--space-3); display: grid; gap: 0.15rem; align-content: start; min-height: 7.5rem;
}
.person--lead { grid-column: 1 / -1; }
@media (min-width: 40em) { .person--lead { grid-column: span 2; } }
.person__photo { display: none; } /* Becomes visible once an <img> is placed inside — see team page comments */
.person__photo:has(img) { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; margin-bottom: var(--space-2); background: var(--paper); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); margin: 0; line-height: 1.2; }
.person__credential { font-family: var(--sans); font-weight: 600; font-size: 0.75em; letter-spacing: 0.06em; color: var(--navy); white-space: nowrap; }
.person__title { color: var(--muted); font-size: var(--step--1); margin: 0; }
.person__bio { margin: var(--space-2) 0 0; font-size: var(--step--1); color: var(--text); }
.person__bio:empty { display: none; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-2); max-width: 40rem; }
.form__row { display: grid; gap: var(--space-2); }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: var(--step--1); color: var(--ink); }
.field .hint { color: var(--muted); font-size: 0.85rem; margin: 0; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #6f7a8a; border-radius: var(--radius); padding: 0.75rem 0.9rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--navy); outline-offset: 1px; }
.field textarea { min-height: 8rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: var(--step--1); color: var(--ink); margin-bottom: 0.35rem; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.choices label { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--step--1); }
.choices input { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.form__note { font-size: var(--step--1); color: var(--muted); margin: 0; }
.form__status { padding: var(--space-2); border-radius: var(--radius); font-size: var(--step--1); }
.form__status--ok { background: #e6f4ea; color: #1e4620; border: 1px solid #b7dfc0; }
.form__status--err { background: #fdecea; color: #611a15; border: 1px solid #f5c2c0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Contact details / map card
   -------------------------------------------------------------------------- */
.contact-card { display: grid; gap: var(--space-2); }
.contact-card dl { margin: 0; display: grid; gap: 0.35rem; max-width: none; }
.contact-card dt { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: var(--space-2); }
.contact-card dd { margin: 0; color: var(--ink); }
.contact-card dt:first-child { margin-top: 0; }
.map-card {
  border-radius: var(--radius); border: 1px solid var(--rule); background: var(--paper);
  padding: var(--space-3); display: grid; gap: var(--space-1);
}
.map-card__pin { width: 2rem; height: 2rem; color: var(--navy); }

/* --------------------------------------------------------------------------
   Prose (privacy, about narrative)
   -------------------------------------------------------------------------- */
.prose h2 { font-size: var(--step-2); margin-top: var(--space-4); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-3); }
.prose > :first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #d5d7db; padding-block: var(--space-5) var(--space-3); font-size: var(--step--1); }
.site-footer a { color: #c9ced8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 56em) { .footer-grid { grid-template-columns: 1.2fr 1.4fr 1fr; gap: var(--space-5); } }
.site-footer h2 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin: 0 0 var(--space-2); line-height: 1.3; }
.footer-firm { display: grid; gap: 0; }
.footer-brand { display: block; line-height: 0; margin-bottom: var(--space-4); }
.footer-brand img { width: min(100%, 300px); height: auto; }
.footer-firm address { display: grid; gap: 0.6rem; }
.footer-address { display: inline-block; justify-self: start; color: #c9ced8; line-height: 1.5; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(255,255,255,0.45); text-underline-offset: 4px; }
.footer-address:hover { color: #fff; text-decoration-color: rgba(255,255,255,0.7); }
.footer-address__arrow { font-size: 0.85em; margin-left: 0.15em; }
.footer-phone { font-weight: 700; color: #fff; font-size: var(--step-0); font-variant-numeric: tabular-nums; justify-self: start; }
.footer-hours { color: #9aa0aa; margin: 0; }
.footer-links { display: grid; gap: var(--space-4); }
@media (min-width: 40em) { .footer-links { grid-template-columns: 1fr 1fr; gap: var(--space-3); } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.footer-more { color: #9aa0aa; }
.footer-more:hover { color: #c9ced8; }
.footer-cta p { color: #9aa0aa; margin-bottom: var(--space-2); }
.site-footer .btn--on-navy { color: var(--navy); }
.site-footer .btn--on-navy:hover { color: var(--navy-deep); }
.footer-bottom { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; color: #9aa0aa; }
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.flow > * + * { margin-top: var(--space-2); }
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.fw-normal { font-weight: 400; }
.on-dark { color: #fff; }
.wrap--left { margin-inline: 0; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.center p, .center ul { margin-inline: auto; }

/* Scheduling page rows (must follow .person) */
.person--row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; min-height: 0; padding: var(--space-2) var(--space-3); }
.person--row .person__name { font-size: var(--step-0); }
.schedule__action { flex: none; }
