/* ==========================================================================
   Enervation, L.L.C. — site styles
   Palette is taken from the Enervation logo: the logo's sky blue (#2c6ab9)
   and its "vation" orange (#ff980d), deepened to navy for contrast, set on a
   warm paper neutral that echoes harvested Iowa fields.
   ========================================================================== */

@font-face {
  font-family: "Bitter";
  src: url("/assets/fonts/bitter-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/sourcesans3-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/sourcesans3-italic-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy-950: #0b1c33;
  --navy-900: #0f2542;
  --navy-800: #173a66;
  --blue: #2c6ab9;          /* logo field */
  --blue-700: #1f5299;      /* links on light backgrounds */
  --sky-50: #eef4fb;
  --paper: #f8f6f1;
  --paper-2: #efebe2;
  --white: #ffffff;
  --ink: #16202c;
  --muted: #4b5563;
  --line: #d8d1c3;
  --line-strong: #8b8578;
  --orange: #ff980d;        /* logo accent: decoration and dark backgrounds only */
  --orange-ink: #9a4c00;    /* orange for text on light backgrounds */
  --danger: #b42318;
  --success: #1d6b3a;
  --focus: #1f5299;

  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 6px;
  --shadow: 0 18px 40px -22px rgba(11, 28, 51, .45);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; font-weight: 650; letter-spacing: -0.012em; color: var(--navy-900); text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy-900); text-decoration-thickness: 2px; text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
strong { font-weight: 700; }
sup { line-height: 0; }
::selection { background: #ffd9a6; color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.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 {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: .75rem 1.1rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); outline-color: var(--orange); }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-body); font-size: .8125rem; font-weight: 700; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 3px; background: var(--orange); border-radius: 2px; flex: none; }
.eyebrow-light { color: #ffd39a; }
.section-title { font-size: clamp(1.85rem, 3.4vw, 2.75rem); max-width: 22ch; }
.subhead { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin-top: .2em; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.75rem); max-width: 20ch; margin-bottom: .4em; }
.page-lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose-lead > p:first-child { font-size: clamp(1.2rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--navy-900); }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.text-link::after { content: "\2192"; transition: transform .2s ease; }
.text-link:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.4rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; flex-wrap: wrap; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button:hover { text-decoration: none; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--blue-700); color: var(--white); box-shadow: 0 8px 20px -12px rgba(31, 82, 153, .9); }
.button-primary:hover { background: var(--navy-800); color: var(--white); }
.button-ghost { border-color: rgba(255, 255, 255, .8); color: var(--white); background: rgba(11, 28, 51, .25); }
.button-ghost:hover { background: var(--white); color: var(--navy-900); }
.button-light { background: var(--white); color: var(--navy-900); }
.button-light:hover { background: #ffe3bd; color: var(--navy-900); }
.button-outline { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.button-outline:hover { background: var(--blue-700); color: var(--white); }
.button-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.file-meta { font-weight: 400; opacity: .85; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .button, .text-link::after { transition: none; } .button:hover { transform: none; } }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 92px; padding-block: .6rem; }
.brand { flex: none; display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 16px -10px rgba(23, 58, 102, .8); }
.brand img { width: 96px; height: auto; }
.brand:focus-visible { outline-offset: 4px; }
.brand-tagline { display: none; margin: 0; font-family: var(--font-head); font-style: italic; font-size: .95rem; color: var(--muted); line-height: 1.3; max-width: 15rem; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .2rem; align-items: center; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .8rem;
  color: var(--ink); font-weight: 600; font-size: 1.0rem; text-decoration: none; border-radius: var(--radius);
  position: relative;
}
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .35rem; height: 3px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a:hover { color: var(--navy-900); }
.site-nav a[aria-current="page"] { color: var(--navy-900); }
.site-nav .nav-cta { background: var(--blue-700); color: var(--white); margin-left: .5rem; padding-inline: 1.15rem; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--navy-800); color: var(--white); }
.nav-toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .site-nav a::after { transition: none; } }

@media (min-width: 1180px) { .brand-tagline { display: block; } }

@media (max-width: 1023px) {
  .header-inner { flex-wrap: wrap; min-height: 76px; }
  .brand img { width: 80px; }
  .site-nav { width: 100%; margin-left: 0; }
  .site-nav ul { gap: .15rem; }
  /* With JavaScript: a disclosure menu. Without it, the links simply wrap below the logo. */
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem; margin-left: auto;
    min-height: 48px; padding: .5rem .95rem; border: 2px solid var(--navy-800); border-radius: var(--radius);
    background: var(--white); color: var(--navy-900); font: 700 1rem/1 var(--font-body); cursor: pointer;
  }
  .js .nav-toggle:hover { background: var(--sky-50); }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .js .site-nav { display: none; padding: .5rem 0 1rem; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav a { display: flex; min-height: 52px; font-size: 1.125rem; padding-inline: .75rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .site-nav a:not(.nav-cta)::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; transform: scaleY(0); }
  .js .site-nav a:hover::after, .js .site-nav a[aria-current="page"]::after { transform: scaleY(1); }
  .js .site-nav .nav-cta { margin: .85rem 0 0; justify-content: center; border-radius: var(--radius); border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(560px, 84vh, 860px); display: flex; align-items: flex-end; color: var(--white); background: var(--navy-900); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 28, 51, .88) 0%, rgba(11, 28, 51, .62) 38%, rgba(11, 28, 51, .12) 72%, rgba(11, 28, 51, 0) 100%),
    linear-gradient(0deg, rgba(11, 28, 51, .75) 0%, rgba(11, 28, 51, 0) 45%);
}
.hero-content { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: clamp(6.5rem, 12vw, 9.5rem); }
.hero-title { color: var(--white); font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 700; line-height: 1.04; max-width: 13.5ch; margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; max-width: 34rem; color: #eaf1fa; }
.hero-credit { position: absolute; z-index: 1; right: var(--gutter); bottom: 4.75rem; margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
@media (max-width: 719px) {
  /* On phones the photo sits above the headline so both stay legible. */
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero::after { display: none; }
  .hero-media { position: relative; order: 0; height: auto; }
  .hero-media img { position: relative; height: auto; aspect-ratio: 4 / 3; }
  .hero-credit { position: static; order: 1; padding: .55rem var(--gutter) 0; font-size: .78rem; color: #b9c9df; text-shadow: none; }
  .hero-content { order: 2; padding-top: 1.5rem; padding-bottom: 5.5rem; }
}

/* ---------- nameplate (development record) ---------- */
.nameplate-band { position: relative; z-index: 2; margin-top: -3.5rem; }
.nameplate {
  position: relative; color: var(--white); border-radius: 4px; padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3.5vw, 2.75rem);
  background:
    radial-gradient(circle at 14px 14px, #8da4c2 0 3px, #2d4669 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 14px) 14px, #8da4c2 0 3px, #2d4669 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at 14px calc(100% - 14px), #8da4c2 0 3px, #2d4669 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #8da4c2 0 3px, #2d4669 3.5px 5px, transparent 5.5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, rgba(255, 255, 255, 0) 2px 5px),
    linear-gradient(160deg, #183d6b 0%, var(--navy-900) 60%, var(--navy-950) 100%);
  border-top: 4px solid var(--orange);
  box-shadow: var(--shadow);
}
.nameplate-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: #cfdcee;
  font: 700 .8125rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1.25rem;
}
.nameplate-title span { color: var(--navy-950); background: var(--orange); padding: .2rem .55rem; border-radius: 3px; letter-spacing: .1em; }
.nameplate-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.nameplate-grid > div { padding: .25rem 1.25rem .25rem 0; }
.nameplate-grid > div + div { border-left: 1px solid rgba(255, 255, 255, .16); padding-left: 1.5rem; }
.nameplate dt { font-size: .875rem; color: #b9c9df; margin-bottom: .2rem; }
.nameplate dd { margin: 0; font-size: 1.05rem; color: #e8eef7; line-height: 1.25; }
.nameplate .figure { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1.05; color: var(--white); font-variant-numeric: lining-nums tabular-nums; margin-bottom: .1rem; }
@media (max-width: 899px) {
  .nameplate-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.25rem; }
  .nameplate-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 479px) {
  .nameplate-grid > div { padding-right: .5rem; }
  .nameplate-grid > div + div { padding-left: 1rem; }
  .nameplate-grid > div:nth-child(3) { padding-left: 0; }
  .nameplate dt { font-size: .8125rem; }
  .nameplate dd { font-size: .95rem; }
}
@media (max-width: 300px) {
  .nameplate-grid { grid-template-columns: 1fr; }
  .nameplate-grid > div + div { border-left: 0; padding-left: 0; }
}

/* ---------- sections & layouts ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-alt { background: var(--paper-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 900px) {
  .split-text { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split-media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .split-resource { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }
}

/* home: paths */
.path-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0 clamp(1.5rem, 3vw, 3rem); }
.path { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 2rem 0; border-top: 2px solid var(--navy-900); }
.path-num { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--orange-ink); padding-top: .2rem; font-variant-numeric: tabular-nums; }
.path h3 { font-size: 1.4rem; margin-bottom: .55rem; }
.path p { color: var(--muted); }
@media (min-width: 1000px) {
  .path-list { grid-template-columns: repeat(3, 1fr); }
  .path { grid-template-columns: 1fr; gap: .75rem; }
}

/* mission band */
.mission-band { display: grid; background: var(--navy-900); color: var(--white); }
.mission-media { min-height: 280px; position: relative; }
.mission-media picture, .mission-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mission-media img { object-fit: cover; }
.mission-text { padding: clamp(3rem, 7vw, 6rem) var(--gutter); max-width: 760px; }
.mission-quote { margin: 0 0 2rem; position: relative; }
.mission-quote p { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.35; color: var(--white); margin: 0; }
.mission-quote-lg p { font-size: clamp(1.6rem, 3.2vw, 2.6rem); max-width: 30ch; }
@media (min-width: 900px) {
  .mission-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .mission-media { min-height: 560px; }
  .mission-text { align-self: center; padding-left: clamp(3rem, 6vw, 6rem); }
}
.mission-panel { background: var(--navy-900); padding-block: clamp(3.5rem, 8vw, 6rem); color: var(--white); }
.mission-band, .mission-panel, .site-footer, .page-head-dark, .join-card-dark, .nameplate { --focus: var(--orange); }

/* field photos */
.field-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; margin-bottom: 2.25rem; }
.field-head .section-title { margin-bottom: 0; }
.field-note { color: var(--muted); max-width: 26rem; margin: 0; font-size: 1rem; }
.field-grid { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); }
.field-grid figure { margin: 0; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.field-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.field-grid figure:hover img { transform: scale(1.035); }
@media (min-width: 900px) {
  .field-grid { grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; height: clamp(520px, 52vw, 680px); }
  .field-a { grid-row: span 2; }
  .field-grid img { aspect-ratio: auto; }
  .field-grid picture { height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .field-grid img { transition: none; } .field-grid figure:hover img { transform: none; } }

/* CTA band */
.cta { background: var(--sky-50); border-top: 1px solid #d6e2f2; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem 4rem; }
.cta-inner > div { max-width: 46rem; }
.cta-inner p { color: var(--muted); }
.cta-note { font-size: 1rem; border-left: 3px solid var(--orange); padding-left: 1rem; margin-bottom: 0; }

/* ---------- inner page heads ---------- */
.page-head { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); background:
  radial-gradient(120% 140% at 100% 0%, rgba(44, 106, 185, .10) 0%, rgba(44, 106, 185, 0) 55%), var(--paper);
  border-bottom: 1px solid var(--line); }
.page-head-dark { background:
  radial-gradient(90% 120% at 100% 0%, rgba(44, 106, 185, .45) 0%, rgba(44, 106, 185, 0) 60%),
  linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: var(--white); border-bottom: 4px solid var(--orange); }
.page-head-dark .page-title { color: var(--white); }

/* about */
.definition { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.45; color: var(--navy-900); border-left: 4px solid var(--orange); padding-left: 1.1rem; }
.definition dfn { font-style: italic; font-weight: 700; }
.framed-figure { margin: 0; max-width: 34rem; }
.framed-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); }
.framed-tall img { aspect-ratio: 3 / 4; }
.framed-figure figcaption { font-size: .9375rem; color: var(--muted); margin-top: .9rem; padding-left: .9rem; border-left: 3px solid var(--orange); line-height: 1.5; }
.join-head { max-width: 56rem; margin-bottom: 2.5rem; }
.join-lead { font-size: clamp(1.15rem, 1.7vw, 1.3rem); }
.join-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .join-grid { grid-template-columns: 1fr 1fr; } }
.join-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); }
.join-card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.join-card-dark { background: var(--navy-900); color: #e4ecf6; border-color: var(--navy-900); }
.join-card-dark h3 { color: #ffd39a; }
.join-big { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; color: var(--navy-900); font-weight: 650; }
.lifecycle { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; counter-reset: step; }
.lifecycle li { counter-increment: step; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--white); padding: .35rem .8rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; }
.lifecycle li::before { content: counter(step); font: 700 .75rem/1 var(--font-body); color: var(--orange); margin-right: .45rem; vertical-align: .15em; }

/* projects */
.facts-layout { display: grid; gap: clamp(2rem, 5vw, 4.5rem); margin-top: 1.5rem; }
@media (min-width: 960px) { .facts-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.spec-table { margin: 0; border-top: 2px solid var(--navy-900); }
.spec-table > div { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.spec-table dt { font-weight: 700; color: var(--navy-900); }
.spec-table dd { margin: 0; color: var(--ink); }
@media (max-width: 559px) { .spec-table > div { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 1.25rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: .6rem; bottom: .6rem; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 1.75rem 2.5rem; display: grid; gap: .15rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); border: 3px solid var(--blue-700); }
.timeline-done::before { background: var(--orange) !important; border-color: var(--orange-ink) !important; }
.timeline-when { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: 1.2rem; }
.timeline-what { color: var(--ink); }
.timeline-src { font-size: .9rem; color: var(--muted); }
.doc-card { display: flex; gap: 1.5rem; align-items: flex-start; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); max-width: 56rem; }
.doc-icon { flex: none; width: 64px; height: 80px; border-radius: 4px; background: var(--navy-900); color: var(--white); font: 700 .9rem/1 var(--font-body); letter-spacing: .08em; display: grid; place-items: end center; padding-bottom: .8rem; position: relative; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.doc-icon::after { content: ""; position: absolute; top: 0; right: 0; width: 28%; height: 22%; background: var(--orange); }
.doc-title { font-size: 1.35rem; }
@media (max-width: 559px) { .doc-card { flex-direction: column; gap: 1rem; } .doc-icon { width: 48px; height: 60px; padding-bottom: .55rem; font-size: .75rem; } }
.doc-body p { color: var(--muted); }
.footnotes { margin-top: 2.5rem; font-size: .9375rem; color: var(--muted); max-width: 56rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.footnotes ol { padding-left: 1.25rem; margin: 0; }
.fn-ref a { font-weight: 700; padding: 0 .15em; }
.fn-back { margin-left: .25rem; }

/* VPPA */
.compare { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.compare-item { border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); border: 1px solid var(--line); }
.compare-accent { background: var(--navy-900); border-color: var(--navy-900); }
.compare-label { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--navy-900); margin-bottom: .3rem; }
.compare-text { margin: 0; color: var(--muted); font-size: 1.15rem; }
.compare-accent .compare-label { color: var(--white); }
.compare-accent .compare-text { color: #dbe6f3; }
.compare-arrow { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); justify-self: center; position: relative; }
.compare-arrow::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-top: 3px solid var(--navy-950); border-right: 3px solid var(--navy-950); transform: translateX(-3px) rotate(45deg); }
@media (max-width: 799px) { .compare-arrow::after { transform: translateY(-3px) rotate(135deg); } }

/* resources */
.resource-head { max-width: 56rem; margin-bottom: 2.25rem; }
.resource-sub { font-size: 1.2rem; color: var(--muted); }
.callout { background: #fff6e8; border: 1px solid #f3d7ad; border-left: 5px solid var(--orange); border-radius: var(--radius); padding: 1.35rem 1.5rem; margin-bottom: 2rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-title, .notice-title { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8125rem; color: var(--orange-ink); margin-bottom: .5rem; }
.meter-figure { margin: 0 0 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: inline-block; max-width: 100%; }
.meter-figure img { border-radius: 3px; }
.meter-figure figcaption { font-size: .9375rem; color: var(--muted); margin-top: .7rem; max-width: 379px; }
.numbered { padding-left: 0; list-style: none; counter-reset: n; margin: 0 0 1.5rem; }
.numbered li { counter-increment: n; position: relative; padding: .7rem 0 .7rem 3rem; border-bottom: 1px solid var(--line); }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: .65rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy-900); color: var(--white); font: 700 .95rem/2rem var(--font-body); text-align: center; }
.download-panel { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue-700); border-radius: var(--radius); padding: 1.6rem; font-size: 1rem; }
@media (min-width: 900px) { .download-panel { position: sticky; top: 1.5rem; } }
.download-title { font-size: 1.2rem; margin-bottom: .4rem; }
.download-name { color: var(--muted); }
.download-terms { font-size: .9375rem; color: var(--muted); margin-top: 1rem; }
.license { font-size: .9375rem; }

/* links */
.link-list { list-style: none; margin: 0; padding: 0; max-width: 60rem; border-top: 2px solid var(--navy-900); }
.link-item { padding: 1.75rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .1rem; }
.link-title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0; }
.link-title a { text-decoration: none; color: var(--navy-900); }
.link-title a::after { content: "\2197"; font-family: var(--font-body); font-size: .8em; color: var(--orange-ink); margin-left: .4rem; display: inline-block; transition: transform .2s ease; }
.link-title a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.link-title a:hover::after { transform: translate(2px, -2px); }
.link-url { font-size: .9375rem; color: var(--muted); margin: 0 0 .5rem; }
.link-url span { color: var(--muted); }
.link-item p:last-child { margin: 0; max-width: 62ch; }

/* contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 960px) {
  .contact-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2.5rem; }
  .contact-layout .notice { grid-column: 2; grid-row: 1; position: sticky; top: 1.5rem; }
  .contact-layout .contact-form { grid-column: 1; grid-row: 1; }
}
.notice { border: 1px solid #f3d7ad; border-left: 5px solid var(--orange); background: #fff6e8; border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.notice p:last-child { margin: 0; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); }
.form-hint { color: var(--muted); font-size: 1rem; }
.req-mark { color: var(--danger); font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); font-size: .95em; }
.field-row { display: grid; gap: 0 1.5rem; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; color: var(--navy-900); }
.field > input, .field > textarea {
  display: block; width: 100%; min-height: 48px; padding: .65rem .85rem;
  font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--white);
  border: 1px solid #7d7f85; border-radius: 4px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field > textarea { resize: vertical; min-height: 10rem; line-height: 1.5; }
.field > input:hover, .field > textarea:hover { border-color: var(--navy-800); }
.field > input:focus-visible, .field > textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy-800); }
.field > [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-hint { font-size: .9375rem; color: var(--muted); margin: .35rem 0 0; }
.field-error { color: var(--danger); font-weight: 600; font-size: 1rem; margin: .4rem 0 0; display: flex; gap: .4rem; }
.field-error::before { content: "!"; flex: none; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--danger); color: var(--white); font: 700 .8rem/1.2rem var(--font-body); text-align: center; margin-top: .2rem; }
.field-error[hidden] { display: none; }
.captcha-field { margin-top: .25rem; }
.captcha-label { font-weight: 700; margin: 0 0 .4rem; color: var(--navy-900); }
altcha-widget {
  display: block; max-width: 22rem;
  --altcha-border-radius: 4px; --altcha-border-color: #7d7f85; --altcha-border-width: 1px;
  --altcha-checkbox-border-color: #5f636b; --altcha-checkbox-outline-color: var(--blue-700);
  --altcha-color-base: var(--white); --altcha-color-base-content: var(--ink);
  --altcha-color-primary: var(--blue-700); --altcha-color-primary-content: var(--white);
  --altcha-color-success: var(--success); --altcha-color-success-content: #ffffff; --altcha-color-error: var(--danger); --altcha-max-width: 22rem;
}
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form-privacy { margin: 0; font-size: .9375rem; color: var(--muted); max-width: 30rem; }
.button[aria-disabled="true"] { opacity: .7; cursor: progress; }
.error-summary { border: 2px solid var(--danger); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 1.5rem; background: #fdf1f0; }
.error-summary-title { font-family: var(--font-body); font-size: 1.1rem; color: var(--danger); margin-bottom: .4rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--danger); font-weight: 600; }
.form-status { border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; font-weight: 600; }
.form-status.is-success { border: 2px solid var(--success); background: #eef8f1; color: var(--success); }
.form-status.is-error { border: 2px solid var(--danger); background: #fdf1f0; color: var(--danger); }
.form-status p { margin: 0; }
.form-status p + p { margin-top: .5rem; font-weight: 400; color: var(--ink); }

/* status pages */
.status-page { text-align: left; }
.status-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4.5rem, 14vw, 8rem); line-height: 1; color: var(--blue); margin: 0 0 .5rem; letter-spacing: -.03em; }
.status-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--success); margin-bottom: 1.5rem; position: relative; }
.status-mark::after { content: ""; position: absolute; left: 22px; top: 16px; width: 14px; height: 26px; border-right: 4px solid var(--white); border-bottom: 4px solid var(--white); transform: rotate(45deg); }
.nf-links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0; max-width: 30rem; border-top: 2px solid var(--navy-900); }
.nf-links a { display: flex; min-height: 48px; align-items: center; font-weight: 600; border-bottom: 1px solid var(--line); text-decoration: none; }
.nf-links a::after { content: "\2192"; margin-left: auto; color: var(--orange-ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #c9d6e6; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 1rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1.2fr; } }
.footer-logo { display: inline-block; border-radius: 8px; overflow: hidden; }
.footer-logo img { width: 104px; }
.footer-tagline { font-family: var(--font-head); font-style: italic; margin-top: 1rem; color: #dfe7f1; max-width: 18rem; }
.footer-heading { font: 700 .8125rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #ffd39a; margin-bottom: 1rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.footer-nav a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-note p { max-width: 26rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.4rem; font-size: .9375rem; color: #a9b9cd; }
.footer-legal p { margin: 0; }

/* ---------- reveal on scroll (only when JS is running and motion is OK) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header .site-nav, .nav-toggle, .skip-link, .button-row, .hero-media, .mission-media, .field-grid, .contact-form { display: none !important; }
  .hero, .mission-band, .mission-panel, .site-footer, .page-head-dark, .nameplate { background: none !important; color: #000 !important; }
  .hero-title, .mission-quote p, .nameplate .figure, .page-head-dark .page-title { color: #000 !important; text-shadow: none; }
  .hero { min-height: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
