/* ==========================================================================
   Quinn Environmental Strategies, Inc.
   Site stylesheet. One file, no build step.
   Sections: fonts / tokens / reset / layout / header / buttons / hero /
             bento / cards / prose / quotes / forms / footer / motion
   ========================================================================== */

/* --------------------------------------------------------------- 1. Fonts */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-400-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------------- 2. Tokens */

:root {
  color-scheme: light;

  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #eceff1;
  --ink: #0f1f2b;
  --ink-2: #41535f;
  --ink-3: #6b7d8a;
  --line: #d8dee3;
  --line-strong: #b6c1c9;

  --navy: #0d2637;
  --navy-2: #123249;
  --on-navy: #e9eff3;
  --on-navy-2: #a3b8c6;
  --on-navy-line: #21445c;

  --accent: #2f6b1c;
  --accent-hover: #245414;
  --accent-ink: #ffffff;
  --accent-soft: #e6f0de;
  --brand: #87c554;

  --radius: 2px;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.75rem, 7vw, 6.5rem);

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(15, 31, 43, .06), 0 4px 14px rgba(15, 31, 43, .05);
  --shadow-md: 0 2px 6px rgba(15, 31, 43, .07), 0 16px 40px rgba(15, 31, 43, .09);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;

    --bg: #0b151c;
    --surface: #101d26;
    --surface-2: #16262f;
    --ink: #e7edf1;
    --ink-2: #a9bac5;
    --ink-3: #82949f;
    --line: #1f333e;
    --line-strong: #2f4855;

    --navy: #071119;
    --navy-2: #0d2231;
    --on-navy: #e7edf1;
    --on-navy-2: #93a8b5;
    --on-navy-line: #1d3a4b;

    --accent: #9ed46e;
    --accent-hover: #b8e390;
    --accent-ink: #07131a;
    --accent-soft: #16281a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 16px 40px rgba(0, 0, 0, .4);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --bg: #0b151c;
  --surface: #101d26;
  --surface-2: #16262f;
  --ink: #e7edf1;
  --ink-2: #a9bac5;
  --ink-3: #82949f;
  --line: #1f333e;
  --line-strong: #2f4855;

  --navy: #071119;
  --navy-2: #0d2231;
  --on-navy: #e7edf1;
  --on-navy-2: #93a8b5;
  --on-navy-line: #1d3a4b;

  --accent: #9ed46e;
  --accent-hover: #b8e390;
  --accent-ink: #07131a;
  --accent-soft: #16281a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 16px 40px rgba(0, 0, 0, .4);
}

/* --------------------------------------------------------------- 3. Reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; }

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

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .65rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: .75rem; }

/* -------------------------------------------------------------- 4. Layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { max-width: 46rem; }
.section-head h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
.section-head > p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--ink-2);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* -------------------------------------------------------------- 5. Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--surface); }
}

.utility-bar {
  background: var(--navy);
  color: var(--on-navy-2);
  font-size: .8125rem;
  border-bottom: 1px solid var(--on-navy-line);
}
.utility-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  flex-wrap: wrap;
}
.utility-bar a { color: var(--on-navy); text-decoration: none; }
.utility-bar a:hover { color: var(--accent); }
.utility-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}
.utility-social { display: flex; gap: .5rem; }
.utility-social a {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--on-navy-line);
  border-radius: var(--radius);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.utility-social a:hover { border-color: var(--accent); background: rgba(255, 255, 255, .05); }
.utility-social svg { width: 15px; height: 15px; fill: currentColor; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}
.masthead > * { min-width: 0; }

/* Narrow screens: the wordmark keeps both lines by wrapping the descriptor,
   the menu button drops its text label, and the social icons step aside. */
@media (max-width: 560px) {
  .masthead { gap: .75rem; min-height: 66px; }
  .logo { gap: .55rem; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__type b { font-size: 1.125rem; }
  .logo__type span {
    font-size: .5625rem;
    letter-spacing: .09em;
    line-height: 1.35;
    max-width: 17ch;
  }
  .utility-social { display: none; }
  .utility-bar .wrap { justify-content: flex-start; }
  .utility-links { gap: .9rem; font-size: .75rem; }
}

/* Logo lockup: green lighthouse mark plus wordmark set in Archivo. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__type { display: grid; line-height: 1; }
.logo__type b {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.logo__type span {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .28rem;
}

/* Desktop navigation: single row, never wraps. */
.nav { display: flex; align-items: center; gap: .35rem; }
.nav > ul {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
}
.nav a:not(.btn), .nav .nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .7rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:not(.btn):hover, .nav .nav__trigger:hover { color: var(--ink); background: var(--surface-2); }
.nav [aria-current='page'] { color: var(--ink); font-weight: 600; }
.nav__trigger svg { width: 10px; height: 10px; fill: currentColor; transition: transform .2s var(--ease); }
.nav__item { position: relative; }
.nav__item[data-open='true'] .nav__trigger svg { transform: rotate(180deg); }

.nav__panel {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 17rem;
  padding: .4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__item[data-open='true'] .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav__panel a {
  display: block;
  padding: .5rem .65rem;
  font-size: .9375rem;
  color: var(--ink-2);
}
.nav__panel a:hover { color: var(--ink); background: var(--surface-2); }

.masthead__actions { display: flex; align-items: center; gap: .5rem; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.theme-toggle:hover { border-color: var(--line-strong); color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-moon,
:root:not([data-theme='light']) .theme-toggle .icon-moon { display: block; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-sun { display: none; }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme='dark']) .theme-toggle .icon-sun { display: block; }
}

.nav-close-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  cursor: pointer;
}
.nav-close-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav-close-btn:hover { border-color: var(--line-strong); color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  /* The sticky header uses backdrop-filter, which makes it the containing
     block for fixed children. The header sits at the viewport top, so an
     explicit viewport height gives the panel the full screen. */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(24rem, 100%);
    display: block;
    padding: 1.25rem var(--gutter) 3rem;
    background: var(--surface);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s var(--ease);
    z-index: 150;
  }
  .nav[data-open='true'] { transform: none; }
  .nav > ul { display: block; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav a:not(.btn), .nav .nav__trigger {
    width: 100%;
    padding: .95rem .25rem;
    font-size: 1.0625rem;
    justify-content: space-between;
  }
  .nav__panel {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 .75rem .9rem;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__item[data-open='true'] .nav__panel { display: block; }
  .nav__close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: .5rem;
  }
  .nav .btn { width: 100%; justify-content: center; margin-top: 1.25rem; }
}
@media (min-width: 1024px) {
  .nav__close { display: none; }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 25, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
  z-index: 140;
}
body[data-nav='open'] .nav-scrim { opacity: 1; visibility: visible; }
body[data-nav='open'] { overflow: hidden; }

/* ------------------------------------------------------------- 6. Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }

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

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

.btn--on-navy {
  background: transparent;
  color: var(--on-navy);
  border-color: var(--on-navy-line);
}
.btn--on-navy:hover { border-color: var(--on-navy); background: rgba(255, 255, 255, .06); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--accent);
  text-decoration: none;
}
.link-arrow svg { width: 14px; height: 14px; fill: currentColor; transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- 7. Hero */

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
/* Headline runs the full content width so it lands on two lines, with the
   supporting copy and the photograph in an asymmetric row underneath. */
.hero__title {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(2.125rem, 1.15rem + 3.4vw, 3.5rem);
  line-height: 1.04;
  max-width: 30ch;
}
.hero__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: end;
  padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
.hero__lead {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  color: var(--ink-2);
  max-width: 36ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.hero__figure {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.hero__figure picture { display: block; width: 100%; height: 100%; }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  margin-top: .75rem;
  font-size: .8125rem;
  color: var(--ink-3);
}

/* Dark statement band. */
.band {
  background: var(--navy);
  color: var(--on-navy);
}
.band h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.band p { color: var(--on-navy-2); }
.band .eyebrow { color: var(--accent); }
.band__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
@media (min-width: 860px) {
  .band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.band__stack { display: grid; gap: 1.1rem; }
.band__stack p { max-width: 56ch; }

/* --------------------------------------------------------------- 8. Bento */

.bento {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.75rem;
}
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  min-height: 12.5rem;
  transition: background .2s var(--ease);
}
.tile:hover { background: var(--surface-2); }
.tile h3 { font-size: 1.1875rem; }
.tile p { color: var(--ink-2); font-size: .9375rem; }
.tile .link-arrow { margin-top: auto; }

/* Two of the six tiles carry photography so the grid is not a wall of text. */
.tile--photo { padding: 0; }
.tile--photo > picture { display: block; }
.tile--photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile__body {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
  padding: clamp(1.35rem, 2.2vw, 1.75rem);
}

/* ---------------------------------------------------------- 9. Card decks */

.deck {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 700px) { .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { font-size: 1.0625rem; }
.card p { color: var(--ink-2); font-size: .9375rem; }

/* Paired columns: no card chrome, hairline between. */
.pair {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
@media (min-width: 800px) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair > * + * {
    border-left: 1px solid var(--line);
    padding-left: clamp(1.75rem, 4vw, 3rem);
  }
}
.pair h3 { font-size: 1.375rem; margin-bottom: .85rem; }
.pair p { color: var(--ink-2); }
.pair .link-arrow { margin-top: 1.1rem; }

/* Grouped name columns, used for regulatory agencies. */
.groups {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  margin-top: 2.5rem;
}
@media (min-width: 700px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.groups h3 {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.groups ul { list-style: none; margin-top: .9rem; display: grid; gap: .55rem; }
.groups li { font-size: .9375rem; color: var(--ink-2); }

/* --------------------------------------------------------------- 10. Team */

.roster { display: grid; gap: clamp(2.5rem, 5vw, 4rem); margin-top: 3rem; }
.person {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}
@media (min-width: 760px) { .person { grid-template-columns: 200px minmax(0, 1fr); } }
.person__photo {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  max-width: 200px;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo--empty {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.person__photo--empty svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.person h3 { font-size: 1.375rem; }
.person__role {
  margin-top: .35rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.person__bio { margin-top: 1.1rem; display: grid; gap: .9rem; color: var(--ink-2); max-width: 68ch; }

/* ------------------------------------------------------------- 11. Quotes */

.quotes { display: grid; gap: 1.25rem; margin-top: 2.75rem; align-items: start; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.35rem, 2vw, 1.6rem);
  background: var(--surface);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
  .quote:nth-child(2) { margin-top: 2rem; }
  .quote:nth-child(3) { margin-top: 4rem; }
}
.quote blockquote { margin: 0; font-size: 1.0625rem; color: var(--ink); }
.quote figcaption { margin-top: auto; font-size: .875rem; color: var(--ink-3); }
.quote figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* -------------------------------------------------- 12. Page header + prose */

.page-head {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head p {
  margin-top: 1.1rem;
  color: var(--on-navy-2);
  max-width: 60ch;
  font-size: clamp(1rem, .96rem + .3vw, 1.1875rem);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.35rem;
  font-size: .8125rem;
  color: var(--on-navy-2);
  list-style: none;
}
.crumbs a { color: var(--on-navy-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: '/'; margin-right: .5rem; color: var(--on-navy-line); }
.crumbs [aria-current='page'] { color: var(--on-navy); }

.prose { max-width: 68ch; display: grid; gap: 1.15rem; }
.prose > h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  margin-top: 1.25rem;
}
.prose > h3 { font-size: 1.25rem; margin-top: .75rem; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

.checklist { list-style: none; display: grid; gap: .8rem; }
.checklist li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--ink-2);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: .8rem;
  height: 2px;
  background: var(--accent);
}

.figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.figure img { width: 100%; }
.figure figcaption {
  padding: .85rem 1.1rem;
  font-size: .8125rem;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .split--sticky > :last-child { position: sticky; top: 7rem; }
}

/* Numbered project entries: a deck, not a bulleted list. */
.projects { display: grid; gap: 1.25rem; margin-top: 1.5rem; counter-reset: proj; }
@media (min-width: 820px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.project {
  display: grid;
  gap: .65rem;
  padding: clamp(1.35rem, 2.4vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.project h3 { font-size: 1.0625rem; }
.project p { color: var(--ink-2); font-size: .9375rem; }

/* -------------------------------------------------------------- 13. Forms */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }

.contact-list { list-style: none; display: grid; gap: 1.5rem; margin-top: 2rem; }
.contact-list dt, .contact-list h3 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .35rem;
}
.contact-list a { color: var(--accent); text-underline-offset: 3px; }
.contact-list .big { font-size: 1.25rem; font-weight: 600; font-family: var(--font-display); letter-spacing: -.01em; }

.form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field { display: grid; gap: .4rem; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8125rem; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%;
  padding: .75rem .85rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field textarea { min-height: 9rem; resize: vertical; }
.field .error {
  font-size: .8125rem;
  font-weight: 500;
  color: #b3261e;
}
:root[data-theme='dark'] .field .error { color: #ff9d94; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .field .error { color: #ff9d94; }
}
.field[data-invalid='true'] input,
.field[data-invalid='true'] textarea { border-color: #b3261e; }

.form__status {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: .9375rem;
  color: var(--ink);
}
.form__status[data-tone='success'] {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
.form__status[data-tone='error'] { border-left-color: #b3261e; }
:root[data-theme='dark'] .form__status[data-tone='error'] { border-left-color: #ff9d94; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .form__status[data-tone='error'] { border-left-color: #ff9d94; }
}
.form button[type='submit'][data-busy='true'] { opacity: .7; pointer-events: none; }

/* ------------------------------------------------------------- 14. Footer */

.site-footer {
  background: var(--navy);
  color: var(--on-navy-2);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .9375rem;
}
.site-footer a { color: var(--on-navy-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__grid h2 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-navy);
  margin-bottom: 1rem;
}
.footer__grid ul { list-style: none; display: grid; gap: .6rem; }
.site-footer .logo { color: var(--on-navy); }
.site-footer .logo__type span { color: var(--on-navy-2); }
.footer__blurb { margin-top: 1.25rem; max-width: 34ch; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-navy-line);
  font-size: .8125rem;
}

/* Closing contact band. */
.cta-band {
  background: var(--navy-2);
  color: var(--on-navy);
  border-top: 1px solid var(--on-navy-line);
}
.cta-band__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 820px) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
}
.cta-band h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); }
.cta-band p { margin-top: .9rem; color: var(--on-navy-2); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band .btn--primary { background: var(--brand); color: #0a1a08; }
.cta-band .btn--primary:hover { background: #9ad46b; }

/* ------------------------------------------------------------- 15. Motion */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-scrim { display: none; }
  body { background: #fff; color: #000; }
}
