/* =============================================================
   components.css — UI patterns
   Depends on: fonts.css, tokens.css, base.css (linked before this)
   Components read semantic and component tokens only — no raw
   colours or pixel lengths. Interactive targets are ≥ 44px
   (--size-target) unless inline in a sentence.
   ============================================================= */


/* =============================================================
   SKIP LINK — first focusable element on the page
   ============================================================= */

.skip-link {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: var(--z-overlay);
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  padding-inline: var(--space-6);
  font-weight: var(--font-weight-ui);
  color: var(--color-action-on);
  text-decoration: none;
  background-color: var(--color-action);
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}


/* =============================================================
   HEADER / NAV
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--header-bg);
  border-bottom: var(--border-width-thin) solid var(--color-border-divider);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  min-height: var(--header-height);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  flex-shrink: 0;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-ui);
  letter-spacing: var(--letter-spacing-nav);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  min-width: var(--size-target);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  letter-spacing: var(--letter-spacing-nav);
  color: var(--color-text);
  text-decoration: none;
  text-underline-offset: 0.35em;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: currentcolor;
  text-decoration-thickness: var(--border-width-thin);
}

/* Mobile menu button — hidden until the nav collapses.
   Wire up with js/nav-toggle.js (toggles aria-expanded and .is-open). */
.site-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--size-target);
  height: var(--size-target);
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: none;
}

/* Optional call to action beside the nav. On phones it moves into the menu
   (repeat the link inside the nav as .site-nav__cta). */
.btn.site-header__cta {
  flex-shrink: 0;
}

/* Compound selectors so these win over .btn's display, which is declared later */
.btn.site-nav__cta {
  display: none;
}

@media (max-width: 48rem) {
  .btn.site-header__cta {
    order: 1;
    margin-inline-start: auto;
  }

  .site-header__toggle {
    display: inline-flex;
    order: 2;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--space-6) var(--space-4);
    background-color: var(--header-bg);
    border-bottom: var(--border-width-thin) solid var(--color-border-divider);
    box-shadow: var(--elevation-1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    width: 100%;
  }
}

@media (max-width: 30rem) {
  .btn.site-header__cta {
    display: none;
  }

  .btn.site-nav__cta {
    display: inline-flex;
    margin-top: var(--space-2);
  }
}


/* =============================================================
   BUTTONS — states: default, hover, active, focus-visible, disabled
   RULE: the label color is the same in every state. Only the
   background and/or border change. (Disabled is the one exception:
   it mutes the label because it is exempt from contrast.)
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-height);
  padding: var(--btn-padding-block) var(--btn-padding-inline);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-ui);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-button);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: var(--border-width-thin) solid transparent;
  border-radius: var(--radius-0);
  transition:
    background-color var(--duration-fast) var(--ease-linear),
    color var(--duration-fast) var(--ease-linear),
    border-color var(--duration-fast) var(--ease-linear);
}

.btn:hover {
  text-decoration: none;
}

/* Primary — filled */
.btn--primary {
  color: var(--btn-primary-fg);
  background-color: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
}

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

.btn--primary:active {
  background-color: var(--btn-primary-bg-active);
  border-color: var(--btn-primary-bg-active);
}

/* Outline */
.btn--outline {
  color: var(--btn-outline-fg);
  background-color: transparent;
  border-color: var(--btn-outline-border);
}

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

.btn--outline:active {
  background-color: var(--btn-outline-bg-active);
}

/* Inverse — outline on dark surfaces (testimonials, band) */
.btn--inverse {
  color: var(--btn-inverse-fg);
  background-color: transparent;
  border-color: var(--btn-inverse-fg);
}

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

.btn--inverse:active {
  background-color: var(--btn-inverse-bg-active);
}

/* Disabled — prefer the disabled attribute; aria-disabled for links */
.btn:disabled,
.btn[aria-disabled="true"] {
  color: var(--btn-disabled-fg);
  cursor: not-allowed;
  background-color: var(--btn-disabled-bg);
  border-color: var(--btn-disabled-bg);
}

/* --- Text link ("View portfolio →") ----------------------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--size-target);
  min-width: var(--size-target);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-text);
  letter-spacing: var(--letter-spacing-nav);
  color: var(--color-text-secondary);
  text-decoration: none;
  text-transform: uppercase;
}

.text-link__label {
  text-decoration: underline;
  text-decoration-color: var(--color-border-control);
  text-decoration-thickness: var(--border-width-thin);
  text-underline-offset: 0.35em;
}

.text-link::after {
  content: "→";
  /* stylelint-disable-next-line declaration-block-no-duplicate-properties -- alt text where supported */
  content: "→" / "";
  transition: transform var(--duration-fast) var(--ease-linear);
}

.text-link:hover {
  color: var(--color-text);
  text-decoration: none;
}

.text-link:hover .text-link__label {
  text-decoration-color: currentcolor;
}

.text-link:hover::after {
  transform: translateX(var(--space-1));
}


/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  padding-block: var(--space-24);
  background-color: var(--color-bg-raised);
  border-top: var(--border-width-thin) solid var(--color-border-divider);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-16);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-ui);
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__tagline {
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  color: var(--color-text-secondary);
}

.site-footer__col-title {
  margin-bottom: var(--space-4);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-title);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  color: var(--color-text);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  min-width: var(--size-target);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  color: var(--color-text-secondary);
}

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

@media (max-width: 48rem) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }

  .site-footer__col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 30rem) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}


/* =============================================================
   FORMS — field, choice (checkbox / radio), fieldset
   Invalid state never relies on colour alone: heavier border,
   an "!" marker, and error text linked with aria-describedby.
   ============================================================= */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: var(--size-narrow);
}

.field__label {
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-ui);
  letter-spacing: var(--letter-spacing-nav);
  color: var(--color-text);
}

.field__hint {
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  color: var(--color-text-secondary);
}

.field__control {
  width: 100%;
  min-height: var(--field-min-height);
  padding: var(--space-2) var(--field-padding-inline);
  font: inherit;
  color: var(--color-text);
  background-color: var(--field-bg);
  border: var(--border-width-thin) solid var(--field-border);
  border-radius: var(--radius-0);
}

textarea.field__control {
  min-height: var(--space-32);
  line-height: var(--line-height-body);
  resize: vertical;
}

.field__control:hover {
  border-color: var(--color-text);
}

.field__control:focus-visible {
  border-color: var(--field-border-focus);
}

.field__control[aria-invalid="true"] {
  border-color: var(--color-text);
  box-shadow: inset 0 0 0 var(--border-width-thin) var(--color-text);
}

.field__control:disabled {
  color: var(--color-text-disabled);
  cursor: not-allowed;
  background-color: var(--color-bg-disabled);
  border-color: var(--color-bg-disabled);
}

.field__error {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-ui);
  color: var(--color-text);
}

.field__error::before {
  content: "!";
  /* stylelint-disable-next-line declaration-block-no-duplicate-properties -- alt text where supported */
  content: "!" / "";
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--size-icon);
  height: var(--size-icon);
  font-size: var(--font-size-label);
  line-height: 1;
  color: var(--color-action-on);
  background-color: var(--color-action);
  border-radius: 50%;
}

.fieldset {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-width: var(--size-narrow);
  border: none;
}

.fieldset__legend {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-ui);
  letter-spacing: var(--letter-spacing-nav);
}

.choice {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  min-height: var(--size-target);
  cursor: pointer;
}

.choice__input {
  flex: none;
  width: var(--size-icon);
  height: var(--size-icon);
  accent-color: var(--color-action);
  cursor: pointer;
}

.choice__input:disabled {
  cursor: not-allowed;
}

.choice__input:disabled + .choice__label {
  color: var(--color-text-disabled);
}


/* =============================================================
   TAG, ALERT, DIVIDER
   ============================================================= */

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-label);
  line-height: var(--line-height-label);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  color: var(--color-text);
  border: var(--border-width-thin) solid var(--color-border-control);
}

.tag--solid {
  color: var(--color-action-on);
  background-color: var(--color-action);
  border-color: var(--color-action);
}

.alert {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-width: var(--size-narrow);
  padding: var(--space-4) var(--space-6);
  background-color: var(--color-bg-raised);
  border: var(--border-width-thin) solid var(--color-border-control);
  border-inline-start: var(--space-1) solid var(--color-text);
}

.alert__title {
  font-weight: var(--font-weight-ui);
}

.alert__body {
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  color: var(--color-text-secondary);
}

.divider {
  border: none;
  border-top: var(--border-width-thin) solid var(--color-border-divider);
}

.divider--strong {
  border-top-color: var(--color-border-control);
}


/* =============================================================
   PAGE HERO — centered title + subtitle (Portfolio, Leadership)
   ============================================================= */

.page-hero {
  padding-block: var(--space-group);
  text-align: center;
}

.page-hero__title {
  font-size: var(--font-size-display);
  line-height: var(--line-height-h1);
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-h1);
}

.page-hero__subtitle {
  margin-top: var(--space-6);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-text);
  color: var(--color-text-secondary);
  max-width: 52ch;
  margin-inline: auto;
}


.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

@media (max-width: 30rem) {
  .page-hero {
    padding-block: var(--space-24);
  }

  .page-hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 20rem;
    margin-inline: auto;
  }
}


/* =============================================================
   PROJECT ROW — alternating two-column layout (Portfolio index)
   ============================================================= */

.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  align-items: center;
  padding-block: var(--space-32);
}

.project-row + .project-row {
  border-top: var(--border-width-thin) solid var(--color-border-divider);
}

.project-row__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-subtle);
}

.project-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-row__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 44ch;
}

.project-row__title {
  font-size: var(--font-size-feature);
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-h2);
  line-height: var(--line-height-h2);
}

.project-row__description {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-text);
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
  max-width: var(--size-measure);
}

/* Odd rows: image left, text right.
   Even rows: text left, image right.  */
.project-row--reversed .project-row__media {
  order: 2;
}

.project-row--reversed .project-row__content {
  order: 1;
}

@media (max-width: 48rem) {
  .project-row {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-block: var(--space-16);
  }

  .project-row__content {
    max-width: none;
  }

  .project-row--reversed .project-row__media {
    order: 0;
  }

  .project-row--reversed .project-row__content {
    order: 0;
  }
}


/* =============================================================
   LEADERSHIP GRID — two-column topic sections
   ============================================================= */

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24) var(--space-32);
  padding-block: var(--space-24);
}

.leadership-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.leadership-item__title {
  font-size: var(--font-size-feature);
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-h2);
  line-height: var(--line-height-h2);
}

.leadership-item__description {
  font-weight: var(--font-weight-text);
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}

/* A leadership item can span both columns for a pull quote */
.leadership-item--wide {
  grid-column: 1 / -1;
}

@media (max-width: 48rem) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
}


/* =============================================================
   CASE STUDY — generic template (cs-*)
   ============================================================= */

/* Hero -------------------------------------------------------- */
.case-study-hero {
  padding-block: var(--space-24) var(--space-12);
  text-align: center;
  background-color: var(--color-bg-raised);
}

.case-study-hero__title {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-h1);
}

.case-study-hero__subtitle {
  margin-top: var(--space-4);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-text);
  color: var(--color-text-secondary);
  max-width: 56ch;
  margin-inline: auto;
}

/* Intro — wide image + problem statement sidebar ------------- */
.case-study-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-24);
  align-items: start;
  padding-block: var(--space-24);
  background-color: var(--color-bg-subtle);
}

.case-study-intro__media {
  display: grid;
  gap: var(--space-4);
}

.case-study-intro__media img {
  width: 100%;
  height: auto;
}

/* Problem statement / metadata sidebar */
.case-study-sidebar {
  padding-top: var(--space-2);
}

.case-study-sidebar__heading {
  font-size: var(--font-size-h4);
  line-height: var(--line-height-h4);
  font-weight: var(--font-weight-title);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: var(--border-width-thin) solid var(--color-border-divider);
}

.case-study-sidebar__entry {
  display: grid;
  grid-template-columns: 10ch 1fr;
  gap: var(--space-2);
  padding-block: var(--space-4);
  border-bottom: var(--border-width-thin) solid var(--color-border-divider);
  font-size: var(--font-size-small);
  line-height: var(--line-height-body);
}

.case-study-sidebar__key {
  font-weight: var(--font-weight-label);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  font-size: var(--font-size-label);
  line-height: var(--line-height-label);
  padding-top: 0.1em;
}

.case-study-sidebar__value {
  font-weight: var(--font-weight-text);
  color: var(--color-text);
}

/* Section — a labeled content section (flows, phases) -------- */
.case-study-section {
  padding-block: var(--space-24);
}

.case-study-section + .case-study-section {
  border-top: var(--border-width-thin) solid var(--color-border-divider);
}

.case-study-section--alt {
  background-color: var(--color-bg-subtle);
}

.case-study-section__header {
  margin-bottom: var(--space-12);
}

.case-study-section__label {
  display: block;
  font-size: var(--font-size-label);
  line-height: var(--line-height-label);
  font-weight: var(--font-weight-label);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.case-study-section__title {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  font-weight: var(--font-weight-title);
  letter-spacing: var(--letter-spacing-h3);
  margin-bottom: var(--space-4);
}

.case-study-section__description {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-text);
  color: var(--color-text-secondary);
  max-width: var(--size-measure);
  line-height: var(--line-height-body);
}

/* Image group — 1, 2, or 3 images in a row */
.case-study-images {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.case-study-images--1 { grid-template-columns: 1fr; }
.case-study-images--2 { grid-template-columns: 1fr 1fr; }
.case-study-images--3 { grid-template-columns: 1fr 1fr 1fr; }

.case-study-images img {
  width: 100%;
  height: auto;
  display: block;
}

.case-study-images figcaption {
  margin-top: var(--space-2);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-text);
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}

/* Outcome section — two-column text + image */
.case-study-outcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  align-items: center;
  padding-block: var(--space-32);
}

.case-study-outcome__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.case-study-outcome__title {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-h2);
}

.case-study-outcome__body {
  font-weight: var(--font-weight-text);
  color: var(--color-text-secondary);
  line-height: var(--line-height-prose);
}

.case-study-outcome__body p + p {
  margin-top: var(--space-6);
}

/* Metrics / results row */
.case-study-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

.case-study-metric {
  min-width: var(--space-32);
}

.case-study-metric__number {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-metric);
  letter-spacing: var(--letter-spacing-h2);
  line-height: var(--leading-none);
  color: var(--color-text);
}

.case-study-metric__label {
  margin-top: var(--space-2);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-text);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
}

@media (max-width: 48rem) {
  .case-study-intro {
    grid-template-columns: 1fr;
  }

  .case-study-outcome {
    grid-template-columns: 1fr;
  }

  .case-study-images--2,
  .case-study-images--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 30rem) {
  .case-study-images--2,
  .case-study-images--3 {
    grid-template-columns: 1fr;
  }
}


/* =============================================================
   PULL QUOTE
   ============================================================= */

.pull-quote {
  padding-block: var(--space-24);
  text-align: center;
}

.pull-quote--inset {
  background-color: var(--color-bg-subtle);
  padding-inline: var(--space-8);
  padding-block: var(--space-8);
  text-align: left;
}

.pull-quote__text {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-text);
  line-height: var(--line-height-h3);
  letter-spacing: var(--letter-spacing-h3);
  max-width: 50ch;
  margin-inline: auto;
  quotes: '\201C' '\201D';
}

.pull-quote--inset .pull-quote__text {
  margin-inline: 0;
}

.pull-quote__text::before { content: open-quote; }
.pull-quote__text::after  { content: close-quote; }

.pull-quote__attribution {
  margin-top: var(--space-6);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-ui);
  color: var(--color-text-secondary);
  letter-spacing: var(--letter-spacing-nav);
}

.pull-quote__attribution::before {
  content: '— ';
}


/* =============================================================
   TESTIMONIALS — dark section, 3-column grid
   ============================================================= */

.testimonials {
  background-color: var(--color-bg-inverse);
  color: var(--color-text-on-inverse);
  padding-block: var(--space-32);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
}

.testimonial {
  display: flex;
  flex-direction: column;
}

.testimonial__body {
  flex: 1;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-text);
  line-height: var(--line-height-prose);
  color: var(--color-text-on-inverse);
}

.testimonial__body p + p {
  margin-top: var(--space-4);
}

.testimonial__attribution {
  padding-top: var(--space-8);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-ui);
  color: var(--color-text-on-inverse);
}

.testimonial__attribution-org {
  font-weight: var(--font-weight-text);
  color: var(--color-text-on-inverse-secondary);
  margin-top: var(--space-1);
  font-size: var(--font-size-label);
  line-height: var(--line-height-label);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
}

@media (max-width: 64rem) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 30rem) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}


/* =============================================================
   CONTACT BAND — heading, text, links on --band-bg
   AAA: white 7.46:1, body 7.14:1 (verified in tokens/contrast.json)
   ============================================================= */

.contact-band {
  padding-block: var(--space-32);
  color: var(--band-fg);
  text-align: center;
  background-color: var(--band-bg);
}

.contact-band__title {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-h1);
  color: var(--band-fg);
}

.contact-band__body {
  max-width: 42ch;
  margin-top: var(--space-6);
  margin-inline: auto;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-text);
  color: var(--band-fg-secondary);
}

.contact-band__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-12);
}

.contact-band__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  min-width: var(--size-target);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-ui);
  letter-spacing: var(--letter-spacing-button);
  color: var(--band-fg);
  text-decoration: underline;
  text-decoration-color: var(--band-rule);
  text-decoration-thickness: var(--border-width-thin);
  text-underline-offset: 0.35em;
  text-transform: uppercase;
}

.contact-band__link:hover {
  text-decoration-color: currentcolor;
}

/* Decorative dot between links — mark it aria-hidden in markup */
.contact-band__sep {
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  color: var(--color-decorative);
  user-select: none;
}

@media (max-width: 30rem) {
  .contact-band {
    padding-block: var(--space-24);
  }

  .contact-band__sep {
    display: none;
  }

  .contact-band__links {
    flex-direction: column;
  }
}

/* =============================================================
   CONTENT PAGE — generic layout for sub-pages
   (leadership sub-pages, about, generic article)
   ============================================================= */

.content-page {
  padding-block: var(--space-32);
}

.content-page__header {
  margin-bottom: var(--space-24);
  max-width: var(--size-narrow);
}

.content-page__title {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-h1);
  margin-bottom: var(--space-6);
}

.content-page__intro {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-text);
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
  max-width: 52ch;
}

/* Text + image block (reusable within content pages) */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  padding-block: var(--space-16);
}

.content-block + .content-block {
  border-top: var(--border-width-thin) solid var(--color-border-divider);
}

.content-block__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.content-block__title {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  font-weight: var(--font-weight-title);
  letter-spacing: var(--letter-spacing-h3);
}

.content-block__body {
  font-weight: var(--font-weight-text);
  color: var(--color-text-secondary);
  line-height: var(--line-height-prose);
}

.content-block__media {
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-subtle);
  overflow: hidden;
}

.content-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-block--image-right .content-block__media {
  order: 2;
}

@media (max-width: 48rem) {
  .content-block {
    grid-template-columns: 1fr;
  }

  .content-block--image-right .content-block__media {
    order: 0;
  }
}


/* =============================================================
   ABOUT HERO — photo + intro text (two-column)
   ============================================================= */

.about-hero {
  display: grid;
  grid-template-columns: clamp(10rem, 20vw, 15rem) 1fr;
  gap: var(--space-24);
  align-items: start;
  padding-block: var(--space-24);
}

.about-hero__content {
  grid-column: 2;
  padding-top: var(--space-2);
}

.about-hero__greeting {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-h1);
  margin-bottom: var(--space-8);
}

.about-hero__bio {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-text);
  line-height: var(--line-height-body);
  color: var(--color-text);
  max-width: 46ch;
}

@media (max-width: 48rem) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero__content {
    grid-column: 1;
  }
}


/* =============================================================
   HOME SECTIONS
   ============================================================= */

/* Hero quote (home page top) */
.home-quote {
  padding-block: var(--space-group) var(--space-section);
  text-align: center;
}

.home-quote__text {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-text);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
  max-width: 32ch;
  margin-inline: auto;
  quotes: '\201C' '\201D';
}

.home-quote__text::before { content: open-quote; }
.home-quote__text::after  { content: close-quote; }

.home-quote__attribution {
  margin-top: var(--space-8);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-ui);
  color: var(--color-text-secondary);
  letter-spacing: var(--letter-spacing-nav);
}

/* Natural: show the whole image uncropped, no divider between rows, section rhythm.
   For the home page rows, where the media is a diagram or sketch. */
.project-row--natural {
  padding-block: var(--space-section);
}

.project-row--natural + .project-row--natural {
  border-top: 0;
}

.project-row--natural .project-row__media {
  aspect-ratio: auto;
}

.project-row--natural .project-row__media img {
  height: auto;
}

/* Content block variants for long-form child pages */
.content-block--natural .content-block__media {
  aspect-ratio: auto;
}

.content-block--natural .content-block__media img {
  height: auto;
}

/* Text only: one column */
.content-block--text {
  grid-template-columns: minmax(0, 1fr);
}

/* Sidebar with longer keys (a phrase, not a single word) */
.case-study-sidebar--wide-keys .case-study-sidebar__entry {
  grid-template-columns: 24ch 1fr;
}

@media (max-width: 48rem) {
  .case-study-sidebar--wide-keys .case-study-sidebar__entry {
    grid-template-columns: 1fr;
  }
}

/* Compact leadership item: h3-size title for lists of items under an h2 */
.leadership-item--compact .leadership-item__title {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  letter-spacing: var(--letter-spacing-h3);
}


/* =============================================================
   FORCED COLORS (Windows High Contrast)
   ============================================================= */

@media (forced-colors: active) {
  .btn {
    border-color: ButtonText;
  }

  /* Fills are removed in forced colors, so the primary button gets a heavier edge to stay distinct from outline */
  .btn--primary {
    border-width: var(--border-width-thick);
  }

  .btn:disabled,
  .btn[aria-disabled="true"] {
    border-color: GrayText;
  }

  /* box-shadow is removed too, so the invalid state needs a real border */
  .field__control[aria-invalid="true"] {
    border-width: var(--border-width-thick);
  }

  .field__control,
  .tag,
  .alert {
    border-color: CanvasText;
  }

  .field__error::before {
    forced-color-adjust: none;
    color: Canvas;
    background-color: CanvasText;
  }
}

/* ---------------------------------------------------------------------------
   Home moments: live skills radar and sketch draw-on (home-moments.js).
   Both sit on white "paper" in every theme, matching the source artwork.
   --------------------------------------------------------------------------- */
.project-row__media--paper {
  position: relative;
  background-color: var(--gray-0);
}

/* Radar ------------------------------------------------------------------- */
.radar {
  /* stylelint-disable color-no-hex -- the radar's ink and empty-cell colours come from radar-leadership.gif and sit on white paper in every theme */
  --radar-ink: #0b1a2b;
  --radar-empty: #d7dadd;
  /* stylelint-enable color-no-hex */
  --radar-ease: cubic-bezier(0.16, 1, 0.3, 1);

  color: var(--radar-ink);
}

.radar__svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: inherit;
}

.radar__cell {
  fill: var(--radar-empty);
  stroke: var(--gray-0);
  stroke-width: 3;
  transition: fill 420ms var(--radar-ease);
  transition-delay: calc(var(--i) * 45ms + var(--ring) * 70ms);
}

.radar__cell.is-on {
  fill: var(--radar-ink);
}

.radar__sector {
  transition: opacity 240ms var(--radar-ease);
}

.radar__label {
  /* stylelint-disable-next-line declaration-property-value-disallowed-list -- SVG user units; scales with the viewBox */
  font-size: 30px;
  fill: var(--radar-ink);
}

.radar__name {
  /* stylelint-disable-next-line declaration-property-value-disallowed-list -- SVG user units; scales with the viewBox */
  font-size: 34px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--radar-ink);
  transition: opacity 240ms var(--radar-ease);
}

.radar__name.is-swapping {
  opacity: 0;
}

@media (hover: hover) {
  .radar__svg:has(.radar__sector:hover) .radar__sector:not(:hover) {
    opacity: 0.3;
  }
}

.radar__controls {
  display: flex;
  justify-content: center;
  padding-block-end: var(--space-4);
  gap: var(--space-1);
}

.radar__tab {
  font: inherit;
  font-size: var(--font-size-small);
  color: var(--gray-6);
  background: none;
  border: 0;
  padding: var(--space-1) var(--space-2);
  border-bottom: var(--border-width-thick) solid transparent;
  cursor: pointer;
  transition: color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}

.radar__tab:hover {
  color: var(--radar-ink);
}

.radar__tab[aria-pressed="true"] {
  color: var(--radar-ink);
  border-bottom-color: var(--radar-ink);
}

.radar__tab:focus-visible {
  outline: var(--border-width-thick) solid var(--radar-ink);
  outline-offset: var(--space-1);
}

/* Sketch draw-on ---------------------------------------------------------- */
.sketch__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sketch__veil path {
  fill: none;
  stroke: var(--gray-10);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.sketch__rule {
  stroke-width: 18;
  transition: stroke-dashoffset 700ms cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0s);
}

.sketch__pass {
  stroke-width: 120;
  transition: stroke-dashoffset 1100ms cubic-bezier(0.45, 0, 0.2, 1) var(--d, 0s);
}

.sketch.is-drawn .sketch__veil path {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .radar__cell,
  .radar__name,
  .sketch__veil path {
    transition: none !important;
  }
}
