/* =============================================================
   Harris Shea v2 preview stylesheet
   Concept: senior advisory, NZ. Calm, polished, purposeful.
   Display: Gilroy (700). Body: Montserrat. Accent: navy + cyan + orange.
   Brand identity matched to harrisshea.co.nz live site.
============================================================= */

/* -------- Tokens -------- */
:root,
[data-theme='light'] {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing (4px) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.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;
  --space-32: 8rem;

  /* Surfaces clean white + pale-blue alternates, matching live brand */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f4f9fc;       /* very pale blue for subtle alt sections */
  --color-surface-offset: #e5f2f9;  /* live brand --light-blue */
  --color-divider: #d6e3ec;
  --color-border: #d2e0ea;

  /* Text */
  --color-text: #1a1b1f;            /* live brand body text */
  --color-text-muted: #4a5560;
  --color-text-faint: #8a96a4;
  --color-text-inverse: #ffffff;

  /* Brand colours (live site) */
  --color-navy: #0c2c60;            /* live brand --navy: dark sections */
  --color-blue: #33accd;            /* live brand --blue: heading accent / cyan */
  --color-light-blue: #e5f2f9;      /* live brand --light-blue: light bg */
  --color-orange: #ff7420;          /* live brand --orange: CTA */

  /* Primary (links, body CTAs, hover) maps to navy for restraint;
     orange is reserved for hero CTA pill / contact button only. */
  --color-primary: #0c2c60;
  --color-primary-hover: #081f47;
  --color-primary-active: #051634;
  --color-primary-soft: #e5f2f9;

  /* Accent for headings / eyebrow */
  --color-accent: #33accd;

  /* Warm secondary maps to brand orange (used for primary CTA only) */
  --color-warm: #ff7420;
  --color-warm-hover: #e85f10;

  /* Radii */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 30, 35, 0.05);
  --shadow-md: 0 6px 18px rgba(20, 30, 35, 0.08);
  --shadow-lg: 0 18px 40px rgba(20, 30, 35, 0.12);

  /* Widths */
  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1240px;

  /* Fonts (matched to live brand) */
  --font-display: 'Gilroy', 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
}

/* -------- Base -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--color-text);
}
p, li { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
::selection { background: rgba(51, 172, 205, 0.22); color: var(--color-text); }

a, button, [role='button'], input, textarea, select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

.skip-link {
  position: absolute; top: -200px; left: 0;
  background: var(--color-primary); color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-4); z-index: 100;
}
.skip-link:focus { top: 0; }

/* -------- Layout primitives -------- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
}
.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: inline-flex; align-items: center; gap: var(--space-3);
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: var(--color-accent);
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin-bottom: var(--space-6);
  max-width: 22ch;
  line-height: 1.08;
}
.section-heading .accent { color: var(--color-accent); font-style: normal; font-weight: 700; }
.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
}

/* -------- Header / Nav -------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.header.is-scrolled {
  border-bottom-color: var(--color-divider);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex; align-items: center; gap: 0;
  color: var(--color-text);
  text-decoration: none;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .brand-logo { height: 44px; }
}
.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav a {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 400;
}
.nav a:hover { color: var(--color-primary); }
.nav .btn { margin-left: var(--space-3); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--color-text);
}
@media (max-width: 880px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-bg);
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-divider);
    gap: var(--space-1);
  }
  .nav.is-open a { padding: var(--space-3) var(--space-4); }
  .nav.is-open .btn { margin-left: 0; margin-top: var(--space-3); justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--color-warm); color: #000000;
}
.btn-primary:hover { background: var(--color-warm-hover); transform: translateY(-1px); color: #000000; }
.btn-ghost {
  background: transparent; color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-arrow::after {
  content: '→'; transition: transform var(--transition-interactive);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: clamp(640px, 80vh, 820px);
  padding-block: clamp(var(--space-24), 13vw, var(--space-32));
  overflow: hidden;
  isolation: isolate;
  color: var(--color-text-inverse);
  background: linear-gradient(135deg, #061838 0%, #0c2c60 55%, #143a78 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../photos/hero-bg.webp') center/cover no-repeat;
  opacity: 0.95;
  z-index: -2;
  filter: grayscale(8%) contrast(1.08) brightness(1.12);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  /* Dark on the left where the headline sits, almost transparent on the right where the woman stands */
  background:
    linear-gradient(100deg, rgba(6,24,56,0.88) 0%, rgba(8,28,64,0.72) 30%, rgba(12,44,96,0.32) 60%, rgba(20,58,120,0.05) 100%),
    linear-gradient(180deg, rgba(6,24,56,0.10) 0%, transparent 35%, transparent 75%, rgba(6,18,38,0.45) 100%);
  z-index: -1;
}
.hero-inner { display: grid; gap: var(--space-8); max-width: 980px; }
.hero h1 {
  font-size: clamp(2.5rem, 1rem + 5.5vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--color-text-inverse);
}
.hero h1 .accent { font-style: normal; color: var(--color-accent); font-weight: 700; }
.hero-tagline {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}
.hero-sub {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.55;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.92);
}
.hero-support {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  max-width: 56ch;
  font-family: var(--font-body);
  font-weight: 400;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.hero-ctas .btn-ghost {
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.35);
}
.hero-ctas .btn-ghost:hover {
  border-color: var(--color-text-inverse);
  background: rgba(255,255,255,0.08);
  color: var(--color-text-inverse);
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex; align-items: center; gap: var(--space-3);
}
.hero-eyebrow::before {
  content: ''; width: 32px; height: 1px;
  background: rgba(248, 246, 241, 0.5);
}

/* -------- What we do 4 pillars -------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--color-divider);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-12);
}
.pillar {
  background: var(--color-surface);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: background var(--transition-interactive);
}
.pillar:hover { background: var(--color-surface-2); }
.pillar-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-primary);
  letter-spacing: 0.05em;
}
.pillar h3 {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.pillar p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* -------- Where we work -------- */
.where {
  background: var(--color-surface-offset);
}
.where-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-top: var(--space-12);
}
@media (min-width: 880px) {
  .where-grid { grid-template-columns: 1fr 1.2fr; gap: var(--space-16); align-items: start; }
}
.sectors-primary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.sector {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  min-height: 130px;
}
.sector-icon {
  width: 32px; height: 32px;
  color: var(--color-primary);
}
.sector-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
@media (max-width: 540px) {
  .sectors-primary { grid-template-columns: 1fr; }
}
.sectors-secondary {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-6);
  line-height: 1.7;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
}
.sectors-secondary strong {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

/* -------- Recent work -------- */
.recent { background: var(--color-bg); }
.work-note {
  margin-top: var(--space-4);
  max-width: 60ch;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.work-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: clamp(var(--space-6), 2.5vw, var(--space-8));
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.work-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.work-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--color-primary);
}
.work-card h3 {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.work-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* -------- How we work -------- */
.how {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.how .eyebrow { color: var(--color-accent); }
.how .eyebrow::before { background: var(--color-accent); }
.how h2, .how p { color: var(--color-text-inverse); }
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-top: var(--space-10);
  align-items: start;
}
@media (min-width: 880px) {
  .how-grid { grid-template-columns: 1fr 1.4fr; gap: var(--space-16); }
}
.how-lead {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  max-width: 14ch;
}
.how-body p {
  font-size: var(--text-lg);
  color: rgba(248, 246, 241, 0.85);
  margin-bottom: var(--space-5);
  font-weight: 300;
  line-height: 1.55;
  max-width: 60ch;
}
.how-body p:last-child { margin-bottom: 0; }

.section-heading--inverse {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-3);
}
.section-heading--inverse .accent { color: var(--color-accent); }

.how-protected {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text-inverse) !important;
  border-left: 2px solid var(--color-accent);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  margin: var(--space-6) 0 var(--space-7) 0 !important;
  max-width: 32ch;
}

.how-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
  display: grid;
  gap: var(--space-3);
  max-width: 60ch;
}
.how-steps li {
  counter-increment: step;
  position: relative;
  padding-left: var(--space-8);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(248, 246, 241, 0.92);
}
.how-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.how-divider {
  border: 0;
  height: 1px;
  background: rgba(248, 246, 241, 0.18);
  margin: var(--space-9) 0 var(--space-7) 0;
  max-width: 6rem;
}

.how-ai-eyebrow {
  font-family: var(--font-body) !important;
  font-size: var(--text-xs) !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600 !important;
  color: var(--color-accent) !important;
  margin-bottom: var(--space-3) !important;
}

.how-closing {
  margin-top: var(--space-9) !important;
  padding-top: var(--space-7);
  border-top: 1px solid rgba(248, 246, 241, 0.14);
  font-style: italic;
  max-width: 60ch;
}

.stakeholders-line {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-muted);
  font-style: italic;
  margin: var(--space-5) 0 var(--space-2) 0;
  max-width: 56ch;
}

/* -------- People -------- */
.people {}
.principals {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-top: var(--space-12);
}
@media (min-width: 760px) {
  .principals { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
.principal {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.principal-photo {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
  background: var(--color-surface-offset);
}
.principal-body {
  padding: clamp(var(--space-6), 2.5vw, var(--space-8));
  display: flex; flex-direction: column; gap: var(--space-4);
}
.principal-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.principal-role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.principal-bio {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.principal-contact {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.principal-contact a:hover { color: var(--color-primary); }
.principal-contact .row {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--color-text-muted);
}
.principal-contact .row svg { width: 16px; height: 16px; flex-shrink: 0; }

/* -------- Team photo (inline within Associates) -------- */
.team-figure {
  margin: clamp(1.5rem, 3vw, 2.5rem) auto clamp(2rem, 4vw, 3rem);
  max-width: 860px;
}
.team-figure--inline {
  /* slightly narrower band, sits between intro paragraph and groups */
  max-width: 860px;
}
.team-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 14px 44px -22px rgba(12, 44, 96, 0.30), 0 3px 14px -8px rgba(12, 44, 96, 0.15);
}
@media (max-width: 640px) {
  .team-photo { border-radius: 4px; }
}

/* -------- Associates -------- */
.associates {
  background: var(--color-surface-offset);
}
.assoc-intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 70ch;
  margin-top: var(--space-6);
}
.assoc-groups {
  display: flex; flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-16);
}
.assoc-group {}
.assoc-group-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}
.assoc-group-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-primary);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.assoc-group-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  flex: 1;
}
.assoc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-6);
}
.assoc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.assoc-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.assoc-photo {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  background: var(--color-surface-offset);
}
.assoc-photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-surface-offset));
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-primary);
}
.assoc-body {
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
  flex: 1;
}
.assoc-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.assoc-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.assoc-cross {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-warm);
  font-weight: 500;
}

/* -------- Talk to us -------- */
.talk { background: var(--color-bg); }
.talk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-top: var(--space-10);
  align-items: start;
}
@media (min-width: 880px) {
  .talk-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-16); }
}
.talk-lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.talk-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 50ch;
}
.talk-meta {
  display: flex; flex-direction: column; gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.talk-meta .row { display: flex; gap: var(--space-3); align-items: center; }
.talk-meta .row svg { width: 16px; height: 16px; color: var(--color-primary); }
.talk-meta a:hover { color: var(--color-primary); }

/* form */
form.contact {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
form.contact .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--color-text-muted);
}
.field label .required { color: var(--color-warm); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--color-text);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-primary); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%), linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field-help {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.form-submit { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: var(--space-4); }
.form-status { font-size: var(--text-xs); color: var(--color-text-muted); }
.form-success {
  grid-column: 1 / -1;
  background: var(--color-primary-soft);
  color: var(--color-primary-active);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-sm);
  display: none;
}
.form-success.is-shown { display: block; }
@media (max-width: 600px) {
  form.contact { grid-template-columns: 1fr; }
}

/* -------- Footer -------- */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.78);
  padding-block: var(--space-16) var(--space-8);
}
.footer a { color: rgba(248, 246, 241, 0.85); }
.footer a:hover { color: var(--color-accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
.footer h4 {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}
.footer ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-inverse);
  font-weight: 500;
  margin-bottom: var(--space-3);
  display: inline-flex; align-items: center; gap: var(--space-3);
}
.footer-logo {
  display: block;
  height: auto;
  width: 180px;
  max-width: 100%;
  margin-bottom: var(--space-5);
  opacity: 0.95;
}
.footer-tag {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-sm);
  max-width: 38ch;
  line-height: 1.6;
}
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(248, 246, 241, 0.12);
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(248, 246, 241, 0.55);
}
.footer-bottom .quiet {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

/* -------- Reveal-on-scroll utility (light, optional) -------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* -------- Print -------- */
@media print {
  .header, .nav-toggle, .hero-ctas, form.contact { display: none; }
}

/* -------- Compact associates layout on mobile --------
   17 cards stacked at full size produces a 10,000+px section.
   On mobile we switch to a tight horizontal card: small avatar + name + bio,
   with bio truncated to 3 lines until tapped to expand.
*/
@media (max-width: 640px) {
  .assoc-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .assoc-card {
    flex-direction: row;
    align-items: stretch;
    border-radius: var(--radius-md);
  }
  .assoc-card:hover { transform: none; }
  .assoc-photo {
    width: 84px;
    height: 84px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    align-self: flex-start;
  }
  .assoc-body {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-1);
    min-width: 0;
  }
  .assoc-name {
    font-size: var(--text-base);
  }
  /* Bio: clamp the prose itself, then a separate Read more label below */
  .assoc-bio {
    font-size: 0.8125rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
  }
  .assoc-card.is-expanded .assoc-bio {
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  /* Separate toggle label so it never gets clipped by the line-clamp */
  .assoc-card .assoc-body::after {
    content: 'Read more';
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    font-weight: 500;
    cursor: pointer;
  }
  .assoc-card.is-expanded .assoc-body::after {
    content: 'Read less';
  }
  /* Section heads tighter on mobile */
  .assoc-groups { gap: var(--space-8); margin-top: var(--space-10); }
  .assoc-group-head { padding-bottom: var(--space-3); margin-bottom: var(--space-5); }
  .assoc-group-title { font-size: var(--text-base); }
}

/* ============================================================
   CLIENTS MARQUEE
   ============================================================ */
.clients {
  padding: var(--space-16) 0 0;
  background: #fff;
}
.clients-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.25;
  color: var(--color-primary);
  text-align: center;
  margin: 0 auto var(--space-8);
  max-width: 720px;
}
.clients-heading .accent {
  color: var(--color-accent, #33accd);
  font-style: normal;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e5f2f9;
  padding: var(--space-8) 0;
  /* Soft fade on edges so logos enter/exit gracefully */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}

.marquee-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Fixed-width slot per logo so spacing reads as uniform regardless of native aspect ratio */
.client-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 80px;
  margin: 0 28px;
  padding: 0;
}

.client-logo img {
  display: block;
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-logo--text {
  width: 220px;
  height: 80px;
}
.client-logo--text span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-primary, #0c2c60);
  text-align: center;
  text-transform: uppercase;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Pause on hover (subtle nicety) */
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    /* Show logos statically scrolled to a sensible position */
    transform: translate3d(0, 0, 0);
  }
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
}

/* Mobile: smaller logos, faster cadence so users don't wait long */
@media (max-width: 640px) {
  .clients { padding-top: var(--space-10); }
  .clients-heading { font-size: 1.4rem; padding: 0 1rem; }
  .marquee { padding: var(--space-6) 0; }
  .client-logo {
    width: 160px;
    height: 60px;
    margin: 0 18px;
  }
  .client-logo img {
    max-height: 60px;
    max-width: 100%;
  }
  .client-logo--text { width: 160px; height: 60px; }
  .client-logo--text span { font-size: 0.95rem; }
  .marquee-track { animation-duration: 45s; }
}
