/*
  Vocational Services Unlimited — site stylesheet

  Type:    Source Serif 4 (headings) + Public Sans (text, UI). Self-hosted, variable weight.
  Color:   Flat only. Deep navy + warm neutrals. Teal appears only inside the logo image.
  Layout:  Editorial: a narrow heading rail beside wide content, hairline rules instead of cards.
  Shape:   Square corners (2px max). No shadows, gradients, blur or decorative icons.
  Motion:  None, apart from instant state changes. The home video can be paused and never autoplays
           under prefers-reduced-motion.
*/

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/public-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/public-sans-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-serif-4.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  /* Navy (logo navy is --navy-700) */
  --navy-900: #0e1a3d;
  --navy-800: #16275a;
  --navy-700: #1f347d;

  /* Warm neutrals */
  --paper: #faf7f2;
  --sand-100: #f2ece2;
  --sand-200: #e7dfd1;
  --sand-300: #d6cab6;

  /* Text */
  --ink: #1b1e25;
  --ink-2: #474b55;
  --on-dark: #f6f1e8;
  --on-dark-2: #c8cedd;

  /* Status (text-level only, all AA on paper) */
  --error: #9b1c1c;
  --success: #1d5a32;

  /* Roles */
  --link: var(--navy-700);
  --rule: var(--sand-300);
  --focus: var(--navy-700);

  /* Type */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.32rem + 0.75vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.375rem, 1.75rem + 2.8vw, 4.25rem);

  /* Space */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 7rem);
  --max: 76rem;
  --measure: 38rem;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: inherit;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); line-height: 1.3; }

p,
ul,
ol,
dl,
blockquote,
figure {
  margin: 0;
}

p { text-wrap: pretty; }

* + p,
* + ul,
* + ol,
* + dl {
  margin-top: 1em;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.4em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 650;
}

abbr[title] {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--navy-700);
  color: var(--on-dark);
}

[hidden] {
  display: none !important;
}

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

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy-900);
  color: var(--on-dark);
  font-weight: 600;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: none;
  outline-color: var(--on-dark);
  outline-offset: -6px;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section--sand {
  background: var(--sand-100);
}

.section--sand + .section,
.section + .section--sand {
  border-top: 0;
}

.prose {
  max-width: var(--measure);
}

/* Heading rail: section title on the left, content on the right */
.rail {
  display: grid;
  gap: 1.5rem var(--gutter);
}

@media (min-width: 56rem) {
  .rail {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

.rail__head h2 {
  font-size: var(--step-3);
}

.rail__head p {
  margin-top: 1rem;
  color: var(--ink-2);
  max-width: 24rem;
}

/* Two balanced columns */
.split {
  display: grid;
  gap: 2.5rem var(--gutter);
  align-items: start;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split--wide-left {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .split--portrait {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .split--center {
    align-items: center;
  }
}

/* ---------- Small text styles ---------- */

.kicker {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40rem;
}

.small {
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* ---------- Buttons and links ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid var(--navy-700);
  border-radius: 2px;
  background: var(--navy-700);
  color: var(--on-dark);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-700);
}

.btn--ghost:hover {
  background: var(--navy-700);
  color: var(--on-dark);
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.75;
}

.more {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
}

.more::after {
  content: "\2009\2192";
}

.more:hover {
  border-bottom-width: 2px;
}

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

.utility {
  background: var(--navy-900);
  color: var(--on-dark-2);
  font-size: var(--step--1);
  --focus: var(--on-dark);
}

.utility .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.5rem;
}

.utility a {
  color: var(--on-dark);
  font-weight: 600;
}

@media (max-width: 40rem) {
  .utility__hours {
    display: none;
  }
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 5rem;
}

/* Logo slot: fixed height, any aspect ratio, so a sharper file can drop in */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding-block: 0.75rem;
}

.brand img {
  height: 2.75rem;
  width: auto;
}

.nav-toggle {
  display: none;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li + li {
  margin-top: 0;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.75rem;
}

.nav a,
.nav__sub-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--navy-700);
  text-decoration: underline;
}

.nav a[aria-current="page"],
.nav .is-section > .nav__sub-toggle {
  color: var(--navy-700);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.nav__item--has-sub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__sub-toggle {
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__sub-toggle:hover,
.nav__sub-toggle[aria-expanded="true"] {
  color: var(--navy-700);
}

.nav__sub-toggle svg {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
}

.nav__sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav__sub {
  min-width: 17rem;
  padding: 0.5rem 0;
  background: var(--paper);
  border: 1px solid var(--sand-300);
  border-top: 3px solid var(--navy-700);
}

.nav__sub a {
  display: flex;
  width: 100%;
  padding: 0.35rem 1.25rem;
}

.nav__cta {
  margin-left: 0.5rem;
}

.nav .nav__cta a {
  padding: 0.5rem 1.1rem;
  min-height: 2.75rem;
  border: 2px solid var(--navy-700);
  border-radius: 2px;
  color: var(--navy-700);
  font-weight: 600;
}

.nav .nav__cta a:hover,
.nav .nav__cta a[aria-current="page"] {
  background: var(--navy-700);
  color: var(--on-dark);
  text-decoration: none;
}

/* Desktop: submenu is a dropdown. site.js opens it on hover and click and keeps
   aria-expanded in step; without JS, hover and keyboard focus open it. */
@media (min-width: 62rem) {
  .nav__sub {
    position: absolute;
    top: 100%;
    left: -1.25rem;
    z-index: 20;
    display: none;
  }

  .nav__sub a {
    white-space: nowrap;
  }

  .nav__sub.is-open,
  .no-js .nav__item--has-sub:hover .nav__sub,
  .no-js .nav__item--has-sub:focus-within .nav__sub {
    display: block;
  }
}

/* Mobile: whole nav collapses behind a menu button (JS), with submenu shown inline */
@media (max-width: 61.99rem) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--navy-700);
    border-radius: 2px;
    background: transparent;
    color: var(--navy-700);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .nav {
    flex-basis: 100%;
    padding-bottom: 1rem;
  }

  .js .nav:not(.is-open) {
    display: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list > li {
    border-top: 1px solid var(--rule);
  }

  .nav__item--has-sub {
    flex-wrap: wrap;
  }

  .nav__sub-toggle {
    justify-content: space-between;
    width: 100%;
  }

  .nav__sub {
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 0.75rem 1rem;
    border: 0;
    border-left: 2px solid var(--navy-700);
    margin-bottom: 0.75rem;
  }

  .js .nav__sub:not(.is-open) {
    display: none;
  }

  .no-js .nav__sub-toggle svg {
    display: none;
  }

  .nav__cta {
    margin: 1rem 0 0;
    border-top: 0 !important;
  }

  .nav .nav__cta a {
    justify-content: center;
    width: 100%;
  }
}

/* ---------- Home hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--navy-900);
  color: var(--on-dark);
  --focus: var(--on-dark);
  --link: var(--on-dark);
}

.hero__text {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}

.hero__text .kicker {
  color: var(--on-dark-2);
}

.hero__text h1 {
  max-width: 12ch;
}

.hero__text .lede {
  margin-top: 1.5rem;
  color: var(--on-dark-2);
  max-width: 34rem;
}

.hero .btn,
.page-head--dark .btn {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--navy-900);
}

.hero .btn:hover,
.page-head--dark .btn:hover {
  background: var(--sand-200);
  border-color: var(--sand-200);
}

.hero .btn--ghost,
.page-head--dark .btn--ghost {
  background: transparent;
  color: var(--on-dark);
}

.hero .btn--ghost:hover,
.page-head--dark .btn--ghost:hover {
  background: var(--on-dark);
  color: var(--navy-900);
}

.hero__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #726764; /* poster's average tone */
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-toggle {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 2px;
  background: var(--navy-900);
  color: var(--on-dark);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}

.video-toggle svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

@media (min-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
    padding-right: clamp(2rem, 4vw, 4rem);
  }

  .hero__media {
    aspect-ratio: auto;
    min-height: 34rem;
  }
}

/* ---------- Interior page header ---------- */

.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}

.page-head h1 {
  max-width: 18ch;
}

.page-head .audience {
  margin-top: 1rem;
  max-width: var(--measure);
  padding-left: 0.9rem;
  border-left: 3px solid var(--navy-700);
}

.page-head--dark .audience {
  border-left-color: var(--on-dark-2);
}

.page-head .lede {
  margin-top: 1.5rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.breadcrumb li + li {
  margin-top: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--sand-300);
}

.breadcrumb a {
  color: var(--ink-2);
}

.page-head--dark {
  background: var(--navy-900);
  color: var(--on-dark);
  --link: var(--on-dark);
  --focus: var(--on-dark);
}

.page-head--dark .lede,
.page-head--dark .breadcrumb ol,
.page-head--dark .breadcrumb a {
  color: var(--on-dark-2);
}

.page-head--dark .kicker,
.page-head--dark .breadcrumb li + li::before {
  color: var(--on-dark-2);
}

/* ---------- Figures ---------- */

.figure img {
  width: 100%;
  object-fit: cover;
  background-color: var(--sand-200);
}

/* While a photo loads, its box holds the photo's own average tone (sampled from
   the file) at its final size, so the page doesn't flash beige or shift. */
img[src*="office-conference-room"] { background-color: #5c5c57; }
img[src*="office-corridor"] { background-color: #706a5c; }
img[src*="office-open-plan"] { background-color: #a29993; }
img[src*="office-workroom"] { background-color: #90867a; }
img[src*="team-conference"] { background-color: #938d86; }
img[src*="team-meeting"] { background-color: #716a5c; }
img[src*="team-training"] { background-color: #999085; }
img[src*="randi-owen"] { background-color: #757267; }
img[src*="michael-benovic"] { background-color: #666456; }

.figure--wide img {
  aspect-ratio: 21 / 9;
}

.figure--landscape img {
  aspect-ratio: 3 / 2;
}

.figure--portrait img {
  aspect-ratio: 4 / 5;
}

/* Headshot: shown whole at its native ratio, never upscaled past its pixels */
.figure--headshot img {
  max-width: 22rem;
  aspect-ratio: 442 / 726;
}

@media (max-width: 40rem) {
  .figure--wide img {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- Audience paths (home) ---------- */

.paths {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.paths > li {
  margin: 0;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.paths h3 {
  font-size: var(--step-1);
  font-family: var(--font-serif);
}

.paths p {
  margin-top: 0.6rem;
  color: var(--ink-2);
}

.paths .path-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 44rem) {
  .paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
}

@media (min-width: 62rem) {
  .paths {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .paths > li {
    padding-block: 2rem 2.25rem;
  }
}

/* Heading above a full-width block (home "Where to start") */
.section-head {
  display: grid;
  gap: 0.75rem var(--gutter);
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--ink-2);
}

@media (min-width: 56rem) {
  .section-head {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: baseline;
  }
}

/* ---------- Trust strip (home) ---------- */

.trust {
  background: var(--navy-900);
  color: var(--on-dark);
}

.trust__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0;
  margin: 0;
  padding: 1.1rem 0;
  list-style: none;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  word-spacing: 0.15em;
}

.trust__list li {
  margin: 0;
}

.trust__list li + li::before {
  content: "·";
  padding-inline: 0.75em;
  color: var(--on-dark-2);
}

/* ---------- Photo band (home) ---------- */

.photo-band {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.photo-band + .section {
  padding-top: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 40rem) {
  .trust__list {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .trust__list li + li::before {
    content: none;
  }
}

/* ---------- Definition rows (service components, facts) ---------- */

.rows {
  margin: 0;
  border-top: 2px solid var(--ink);
}

.rows > div {
  display: grid;
  gap: 0.4rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.rows dt {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
}

.rows dd {
  margin: 0;
  color: var(--ink-2);
}

.rows dd > * + * {
  margin-top: 0.6em;
}

@media (min-width: 44rem) {
  .rows > div {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

.rows--compact > div {
  padding: 1rem 0;
}

.rows--compact dt {
  font-family: var(--font-sans);
  font-size: var(--step-0);
}

/* Timeline variant: year in the first column */
.rows--timeline dt {
  font-size: var(--step-2);
  font-variant-numeric: lining-nums tabular-nums;
}

@media (min-width: 44rem) {
  .rows--timeline > div {
    grid-template-columns: 8rem minmax(0, 1fr);
    align-items: baseline;
  }
}

/* ---------- Mission quote ---------- */

.mission {
  margin-top: 3rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--navy-700);
}

.mission p {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  line-height: 1.35;
  font-weight: 450;
}

.mission footer {
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* ---------- Dark band (forensic) ---------- */

.band-dark {
  background: var(--navy-900);
  color: var(--on-dark);
  --link: var(--on-dark);
  --focus: var(--on-dark);
  --rule: #34426b;
}

.band-dark .rail__head p,
.band-dark .lede,
.band-dark .muted {
  color: var(--on-dark-2);
}

.band-dark .btn {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--navy-900);
}

.band-dark .btn:hover {
  background: var(--sand-200);
  border-color: var(--sand-200);
}

.band-dark .btn--ghost {
  background: transparent;
  color: var(--on-dark);
}

.band-dark .btn--ghost:hover {
  background: var(--on-dark);
  color: var(--navy-900);
}

.band-dark .rows {
  border-top-color: var(--on-dark);
}

.band-dark .rows dd {
  color: var(--on-dark-2);
}

/* Large typographic list (jurisdictions) */
.statement-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid currentColor;
}

.statement-list li {
  margin: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-size: var(--step-3);
  line-height: 1.1;
}

@media (min-width: 48rem) {
  .statement-list {
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--gutter);
  }
}

/* ---------- Credentials ---------- */

.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.creds li {
  margin: 0;
}

/* ---------- Profiles (team) ---------- */

.profile {
  display: grid;
  gap: 2rem var(--gutter);
  padding-block: var(--section);
}

.profile:first-child {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.profile__photo picture {
  display: block;
}

.profile__photo img {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 442 / 726;
  object-fit: cover;
}

.profile__role {
  margin-top: 0.75rem;
  font-size: var(--step-1);
  color: var(--ink-2);
}

.profile__body .prose {
  margin-top: 1.5rem;
}

.profile__body .rows {
  margin-top: 2.5rem;
}

@media (min-width: 52rem) {
  .profile {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

/* ---------- Steps ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 0 0 1.5rem 3rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  font-family: var(--font-serif);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--navy-700);
}

.steps strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
}

/* ---------- Related links ---------- */

.related {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.related li {
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.related a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.related a::after {
  content: "\2192";
  color: var(--navy-700);
}

.related a:hover {
  color: var(--navy-700);
  text-decoration: underline;
}

@media (min-width: 48rem) {
  .related {
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--gutter);
  }
}

/* ---------- Contact details ---------- */

.contact-details {
  margin: 0;
}

.contact-details > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-details > div:first-child {
  border-top: 2px solid var(--ink);
}

.contact-details dt {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.contact-details dd {
  margin: 0.25rem 0 0;
  font-size: var(--step-1);
}

.notice {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--navy-700);
  background: var(--sand-100);
}

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

.form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form__row {
  display: grid;
  gap: 1.5rem;
}

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

.field label {
  display: block;
  font-weight: 600;
}

.field .hint {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink-2);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1e25' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--navy-700);
}

.field [aria-invalid="true"] {
  border: 2px solid var(--error);
}

.field__error {
  display: block;
  margin-top: 0.4rem;
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 600;
}

.field__error:empty {
  display: none;
}

.req {
  color: var(--ink-2);
  font-weight: 400;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--navy-700);
  background: var(--sand-100);
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  border-left-color: var(--error);
}

.form-status.is-success {
  border-left-color: var(--success);
}

.form-status h2 {
  font-size: var(--step-1);
}

.form-status ul {
  margin-top: 0.5rem;
}

/* No-JS fallback messages, shown via the URL fragment the endpoint redirects to */
.target-msg {
  display: none;
}

.target-msg:target {
  display: block;
}

/* ---------- CTA strip ---------- */

.cta {
  display: grid;
  gap: 1.5rem var(--gutter);
  align-items: end;
}

.cta h2 {
  max-width: 20ch;
}

@media (min-width: 52rem) {
  .cta {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .cta .actions {
    justify-content: flex-end;
    margin-top: 0;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--sand-100);
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem var(--gutter);
}

@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr));
  }
}

.footer-brand img {
  height: 5.5rem;
  width: auto;
}

.footer-brand p {
  margin-top: 1.25rem;
  color: var(--ink-2);
  max-width: 22rem;
}

/* Social links: icon-only, in the link color; the 2.75rem box is the tap target
   and the negative margin keeps the first icon aligned with the text above. */
.social {
  display: flex;
  gap: 0.25rem;
  margin-left: -0.75rem;
}

.site-footer .social li + li {
  margin-top: 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--navy-700);
}

.social a:hover {
  color: var(--navy-900);
}

.social svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.site-footer ul {
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer address {
  margin-top: 0.75rem;
  font-style: normal;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* ---------- Spacing helpers (last, so they win over component margins) ---------- */

.mt-s { margin-top: 1rem; }
.mt-m { margin-top: 1.5rem; }
.mt-l { margin-top: 2.5rem; }

.section--flush-top {
  padding-top: 0;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

/* ---------- Forced colors ---------- */

@media (forced-colors: active) {
  .btn,
  .video-toggle,
  .nav .nav__cta a {
    border: 2px solid ButtonText;
  }

  .mission,
  .notice,
  .form-status {
    border-left-color: CanvasText;
  }
}

/* ---------- Print ---------- */

@media print {
  .utility,
  .nav,
  .nav-toggle,
  .hero__media,
  .skip-link {
    display: none !important;
  }

  .hero,
  .band-dark,
  .page-head--dark {
    background: none;
    color: #000;
  }
}
