/* ============================================================
   Reflexion Partners — Design System
   Default palette: charcoal + brass; alternative preview themes retained
   Type: Cabinet Grotesk Medium (display) + Satoshi (body)
   ============================================================ */

[hidden] { display: none !important; }

:root {
  /* Type scale */
  --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 */
  --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;

  /* Brand palette */
  --color-bg: #faf9f5;
  --color-surface: #ffffff;
  --color-surface-2: #f4f2ec;
  --color-surface-offset: #efede5;
  --color-divider: #e4e1d8;
  --color-border: #ddd9cd;

  --color-ink: #0d2340;          /* deep navy text */
  --color-text: #1c2739;
  --color-text-muted: #5c6779;
  --color-text-faint: #98a0ad;
  --color-text-inverse: #f7f6f1;

  --color-navy: #0d2340;          /* navy surfaces (hero, CTA) */
  --color-navy-2: #0a1c33;        /* darker navy */
  --color-primary: #1f4fd8;       /* royal blue */
  --color-primary-hover: #173fb0;
  --color-accent: #5b86ff;        /* light royal on navy */

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgb(13 35 64 / 0.06);
  --shadow-md: 0 4px 12px rgb(13 35 64 / 0.08);
  --shadow-lg: 0 12px 32px rgb(13 35 64 / 0.12);

  /* Widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1160px;
  --content-full: 100%;

  --font-display: 'Cabinet Grotesk', 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', sans-serif;

  /* Hero treatment */
  --glow: rgb(91 134 255 / 0.22);
  --hero-overlay-a: rgb(10 28 51 / 0.94);
  --hero-overlay-b: rgb(13 35 64 / 0.42);
  --hero-overlay-mobile-a: rgb(10 28 51 / 0.88);
  --hero-overlay-mobile-b: rgb(10 28 51 / 0.72);
}

/* ============ Theme: Midnight Navy ============ */
[data-theme='navy'] {
  --color-bg: #0b1526;
  --color-surface: #101d33;
  --color-surface-2: #15243d;
  --color-surface-offset: #0e1a2e;
  --color-divider: #1c2c47;
  --color-border: #26395c;
  --color-ink: #f2f5fa;
  --color-text: #e8ecf4;
  --color-text-muted: #9aa7bc;
  --color-text-faint: #5f6e88;
  --color-navy: #0b1526;
  --color-navy-2: #081020;
  --color-primary: #5b86ff;
  --color-primary-hover: #7c9dff;
  --color-accent: #6c93ff;
  --glow: rgb(91 134 255 / 0.25);
  --hero-overlay-a: rgb(6 14 28 / 0.93);
  --hero-overlay-b: rgb(8 18 36 / 0.45);
  --hero-overlay-mobile-a: rgb(6 14 28 / 0.9);
  --hero-overlay-mobile-b: rgb(6 14 28 / 0.75);
}

/* ============ Theme: Charcoal & Brass ============ */
[data-theme='charcoal'] {
  --color-bg: #131313;
  --color-surface: #1a1b1e;
  --color-surface-2: #202124;
  --color-surface-offset: #17181a;
  --color-divider: #26272b;
  --color-border: #33343a;
  --color-ink: #f4f1e8;
  --color-text: #e9e6dd;
  --color-text-muted: #a39e92;
  --color-text-faint: #6b675e;
  --color-navy: #1a1b1e;
  --color-navy-2: #101112;
  --color-primary: #c9a45c;
  --color-primary-hover: #dab878;
  --color-accent: #d4b478;
  --glow: rgb(201 164 92 / 0.18);
  --hero-overlay-a: rgb(10 10 10 / 0.66);
  --hero-overlay-b: rgb(16 16 16 / 0.06);
  --hero-overlay-mobile-a: rgb(10 10 10 / 0.72);
  --hero-overlay-mobile-b: rgb(10 10 10 / 0.28);
}

/* ============ Theme: Hunter Green & Brass ============ */
[data-theme='forest'] {
  --color-bg: #0f1f18;
  --color-surface: #152a20;
  --color-surface-2: #1a3327;
  --color-surface-offset: #122419;
  --color-divider: #22392c;
  --color-border: #2e4c3b;
  --color-ink: #f0f5ee;
  --color-text: #e4ede2;
  --color-text-muted: #9cb0a0;
  --color-text-faint: #63796a;
  --color-navy: #122620;
  --color-navy-2: #0c1a14;
  --color-primary: #3e7a58;
  --color-primary-hover: #4d9269;
  --color-accent: #c9a45c;
  --glow: rgb(201 164 92 / 0.15);
  --hero-overlay-a: rgb(8 18 13 / 0.92);
  --hero-overlay-b: rgb(10 24 18 / 0.5);
  --hero-overlay-mobile-a: rgb(8 18 13 / 0.9);
  --hero-overlay-mobile-b: rgb(8 18 13 / 0.78);
}

/* ---------------- Base ---------------- */

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.12;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 500;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: rgb(31 79 216 / 0.22);
  color: var(--color-ink);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

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);
}

.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;
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

/* ---------------- Header ---------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
    background 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.header--scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
  background: color-mix(in srgb, var(--color-bg) 96%, transparent);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand__mark {
  height: 44px;
  width: auto;
}

.brand__logo {
  display: block;
  height: 52px;
  width: auto;
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}

.nav {
  display: block;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-ink);
  background: var(--color-surface-2);
}

/* Current page: brass pill so visitors always know where they are */
.nav__link[aria-current='page'] {
  color: var(--color-primary);
  border-color: color-mix(in srgb, var(--color-primary) 55%, transparent);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

/* Stack logo above the page links on smaller screens */
@media (max-width: 899px) {
  .header__inner > .nav {
    width: 100%;
    min-width: 0;
  }
  .header__inner > .brand {
    align-self: flex-start;
  }
  .header__inner {
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
    padding-block: var(--space-3);
    min-height: 0;
  }
  .nav__list {
    justify-content: center;
    gap: 2px var(--space-1);
  }
}

@media (max-width: 640px) {
  .brand__name {
    white-space: nowrap;
    font-size: var(--text-base);
  }
  .brand__logo {
    height: 42px;
  }
  .nav__list {
    flex-wrap: wrap;
    gap: 2px 0;
  }
  .nav__link {
    padding: 6px 9px;
    font-size: 0.875rem;
  }
}

@media (max-width: 374px) {
  .nav__link {
    padding: 5px 6px;
    font-size: 0.8125rem;
  }
}

/* Mobile nav drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.drawer--open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-ink);
}

.drawer__close:hover {
  background: var(--color-surface-2);
}

.drawer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.drawer__link {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
}

.drawer__link[aria-current='page'] {
  color: var(--color-primary);
}

.drawer__cta {
  margin-top: var(--space-8);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--ghost {
  border-color: color-mix(in srgb, var(--color-ink) 22%, transparent);
  color: var(--color-ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--color-ink);
  background: var(--color-surface-2);
}

.btn--light {
  background: #fff;
  color: var(--color-navy);
}

.btn--light:hover {
  background: var(--color-surface-2);
}

.btn--outline-light {
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.08);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--glow), transparent 60%),
    linear-gradient(100deg,
      var(--hero-overlay-a) 0%,
      var(--hero-overlay-b) 100%),
    var(--hero-image, url('../assets/hero-industries-v2.jpg')) center / cover no-repeat,
    linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-2) 100%);
  color: #fff;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    background:
      radial-gradient(1100px 500px at 85% -10%, var(--glow), transparent 60%),
      linear-gradient(180deg,
        var(--hero-overlay-mobile-a) 0%,
        var(--hero-overlay-mobile-b) 100%),
      var(--hero-image, url('../assets/hero-industries-v2.jpg')) 76% center / cover no-repeat,
      linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-2) 100%);
  }
}

.hero__watermark {
  position: absolute;
  right: -6vw;
  bottom: -18vw;
  font-family: var(--font-display);
  font-size: 46vw;
  line-height: 0.8;
  color: rgb(255 255 255 / 0.035);
  user-select: none;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
  max-width: 820px;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.hero__kicker::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--color-accent);
}

.hero__title {
  font-size: var(--text-3xl);
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 20px rgb(0 0 0 / 0.45);
}

.hero__lede {
  font-size: var(--text-lg);
  color: rgb(255 255 255 / 0.95);
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.85);
  max-width: 46ch;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Page hero for interior pages */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, var(--glow), transparent 60%),
    linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-2) 100%);
  color: #fff;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.page-hero__kicker {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.page-hero__title {
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.page-hero__lede {
  font-size: var(--text-lg);
  color: rgb(255 255 255 / 0.78);
  max-width: 52ch;
}

/* ---------------- Sections ---------------- */

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.section--alt {
  background: var(--color-surface);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--color-primary);
}

.section-head--center .kicker::after {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--color-primary);
}

.section-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.section-lede {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

/* Definition strip */
.definition {
  border-block: 1px solid var(--color-divider);
  background: var(--color-surface);
}

.definition__inner {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-10);
  align-items: center;
}

@media (min-width: 800px) {
  .definition__inner {
    grid-template-columns: 1fr 2px 2fr;
    gap: var(--space-10);
  }
}

.definition__word {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-ink);
}

.definition__phonetic {
  font-size: var(--text-base);
  color: var(--color-text-faint);
  font-style: italic;
}

.definition__rule {
  display: none;
  background: var(--color-primary);
  height: 100%;
  min-height: 80px;
}

@media (min-width: 800px) {
  .definition__rule {
    display: block;
  }
}

.definition__text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
}

.definition__text strong {
  color: var(--color-ink);
  font-weight: 600;
}

/* What's with the name? */
.name-story__inner {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .name-story__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: clamp(var(--space-10), 6vw, var(--space-20));
    align-items: start;
  }
}

.name-story__head .section-title {
  margin-bottom: 0;
}

.name-story__body {
  display: grid;
  gap: var(--space-5);
  max-width: 62ch;
}

.name-story__body p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.name-story__body .name-story__lead {
  font-size: var(--text-lg);
  color: var(--color-ink);
  line-height: 1.55;
}

.name-story__lead strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* Split layout */
#contact-form {
  scroll-margin-top: 11rem;
}

.split {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse > .split__media {
    order: -1;
  }
}

.split__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}

.split__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 56ch;
}

.figure {
  position: relative;
}

.figure__img {
  width: 100%;
  border-radius: var(--radius-xl);
  background: var(--color-surface-2);
}

.figure__img--padded {
  padding: var(--space-12);
}

.split--who-we-are .figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
  border-radius: var(--radius-md);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .split--who-we-are {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .split--who-we-are .split__media {
    display: flex;
    align-items: center;
  }
  .split--who-we-are .figure__img {
    aspect-ratio: auto;
    height: 68%;
    min-height: 280px;
  }
}

.split--who-we-are .split__text {
  margin-bottom: var(--space-4);
}

.split--who-we-are .split__text--lead {
  color: var(--color-text);
  font-size: var(--text-lg);
}

.split--who-we-are .split__content > :last-child {
  margin-bottom: 0;
}

/* Steps */
#how-we-work > .container {
  max-width: 1000px;
}

#how-we-work .step {
  min-width: 0;
  max-width: none;
}

#how-we-work .steps {
  grid-template-columns: minmax(0, 1fr);
}

.steps {
  display: grid;
  gap: var(--space-6);
  counter-reset: steps;
  list-style: none;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps--2x2 {
    grid-template-columns: 1fr 1fr;
  }
}

.step {
  counter-increment: steps;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.step::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.step__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius-md);
  border: 0;
  margin-block: var(--space-4) var(--space-5);
  margin-inline: auto;
}

.step__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.step__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.strategy-video {
  margin: var(--space-6) 0 0;
}

.strategy-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #131313;
  object-fit: cover;
  border: 0;
  border-radius: var(--radius-md);
}

.strategy-video figcaption {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.strategy-video__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
}

.strategy-video a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.candidate-report {
  margin: var(--space-6) 0 0;
}

.candidate-report img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: var(--radius-md);
}

.candidate-report figcaption {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.candidate-report__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
}

.candidate-report figcaption a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Cards */
.cards {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 700px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}

.card__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
}

.card__title {
  font-size: var(--text-lg);
}

.card__text {
  color: var(--color-text-muted);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text);
}

/* Leadership */
.people {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
}

.person {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 820px) {
  .person {
    grid-template-columns: 300px 1fr;
    gap: var(--space-10);
  }
  .person--reverse {
    grid-template-columns: 1fr 300px;
  }
  .person--reverse > .person__photo {
    order: 2;
  }
}

.person__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--color-surface-2);
}

.person__name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}

.person__role {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.person__bio {
  color: var(--color-text-muted);
}

/* Blog cards */
.posts {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 750px) {
  .posts {
    grid-template-columns: repeat(3, 1fr);
  }
  .posts--grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition:
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive),
    border-color var(--transition-interactive);
}

.post:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-divider));
}

.post__media {
  overflow: hidden;
  background: var(--color-surface-2);
}

.post__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
}

.post:hover .post__img {
  transform: scale(1.04);
}

.post__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  flex: 1;
}

.post__tag {
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 28%, transparent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.post__title {
  font-size: var(--text-lg);
  color: var(--color-ink);
}

.post__text {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post__read {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.post__read svg {
  transition: transform var(--transition-interactive);
}

.post:hover .post__read svg {
  transform: translateX(4px);
}

/* Featured article */
@media (min-width: 750px) {
  .post--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 3fr 2fr;
  }
  .post--featured .post__img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 320px;
  }
  .post--featured .post__title {
    font-size: var(--text-xl);
  }
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(800px 400px at 100% 0%, var(--glow), transparent 60%),
    linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-2) 100%);
  color: #fff;
  overflow: hidden;
}

.cta-band__inner {
  display: grid;
  gap: var(--space-8);
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1fr auto;
  }
}

.cta-band__title {
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-3);
}

.cta-band .btn {
  margin-top: var(--space-6);
}

.cta-band__inner + .container {
  padding-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.cta-band__inner {
  padding-bottom: var(--space-8) !important;
}

.cta-ribbon {
  margin: 0;
  width: 100%;
}

.cta-ribbon img {
  display: block;
  width: 100%;
  height: clamp(110px, 14vw, 210px);
  object-fit: cover;
  object-position: center 55%;
  border-radius: var(--radius-md);
}

.case-cta .cta-ribbon {
  margin-top: var(--space-10);
}

.cta-band__text {
  color: rgb(255 255 255 / 0.75);
  max-width: 46ch;
}

.cta-band__phone {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #fff;
  text-decoration: none;
  margin-top: var(--space-2);
}

.cta-band__phone:hover {
  color: var(--color-accent);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Footer */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
}

.footer__inner {
  display: grid;
  gap: var(--space-10);
  padding-block: var(--space-16);
}

@media (min-width: 800px) {
  .footer__inner {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__logo {
  height: 56px;
  width: auto;
}

.footer__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 34ch;
  margin-bottom: var(--space-6);
}

.footer__phone {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}

.footer__phone:hover {
  color: var(--color-primary);
}

.footer__heading {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink);
  margin-bottom: var(--space-5);
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__bottom {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
}

.footer__social a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ---------------- Form ---------------- */

.form {
  display: grid;
  gap: var(--space-5);
}

.form__row {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

.field input,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.form__status {
  display: none;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}

.form__status--ok {
  display: block;
  background: color-mix(in srgb, #2e7d32 10%, var(--color-surface));
  color: #1d5c20;
  border: 1px solid color-mix(in srgb, #2e7d32 30%, transparent);
}

.form__status--error {
  display: block;
  background: color-mix(in srgb, #b3261e 8%, var(--color-surface));
  color: #8c1d18;
  border: 1px solid color-mix(in srgb, #b3261e 30%, transparent);
}

/* ---------------- FAQ accordion ---------------- */

.faq {
  display: grid;
  gap: var(--space-4);
}

.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}

.faq__summary::-webkit-details-marker {
  display: none;
}

.faq__summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-primary);
  transition: transform var(--transition-interactive);
}

.faq__item[open] .faq__summary::after {
  transform: rotate(45deg);
}

.faq__body {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-muted);
}

/* ---------------- Utilities ---------------- */

.text-center {
  text-align: center;
}

.stack > * + * {
  margin-top: var(--space-4);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- Theme adjustments ---------------- */

/* Primary button text color per dark theme (brass/light-blue need dark text) */
[data-theme='navy'] .btn--primary {
  color: #071120;
}
[data-theme='charcoal'] .btn--primary {
  color: #17130c;
}

/* Blog card images keep a dark base on dark themes */
[data-theme='navy'] .post__img,
[data-theme='charcoal'] .post__img,
[data-theme='forest'] .post__img {
  background: var(--color-surface-2);
}

/* Display type: Cabinet Grotesk Medium everywhere */
h1, h2, h3, h4,
.brand__name, .drawer__link, .hero__watermark, .definition__word,
.step::before, .cta-band__phone, .faq__summary {
  font-weight: 500;
}

@media (max-width: 899px) {
  html {
    scroll-padding-top: 140px;
  }
}

/* Footer and contact page contact details */
.footer__contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.footer__contact-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer__contact-link:hover {
  color: var(--color-primary);
}

.contact-details {
  list-style: none;
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-details__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-details__value {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-details__value:hover {
  color: var(--color-primary);
}

/* Keep all header menu items on a single line at every screen width */
.nav__list {
  flex-wrap: nowrap;
}

@media (min-width: 900px) and (max-width: 1099px) {
  .header__inner {
    gap: var(--space-4);
  }
  .brand__logo {
    height: 46px;
  }
  .nav__list {
    gap: 0;
  }
  .nav__link {
    padding: var(--space-2) var(--space-3);
  }
}

@media (max-width: 640px) {
  .header__inner.container {
    padding-inline: var(--space-3);
  }
  .nav__list {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
  }
  .nav__link {
    padding: 6px 3px;
    /* Scales with the screen so all six links fit on one line */
    font-size: min(0.875rem, calc((100vw - 64px) / 26));
  }
}

@media (min-width: 480px) and (max-width: 640px) {
  .nav__link {
    padding: 6px 8px;
  }
}
