/* Great Lakes Wastewater — redesign
   Brand palette from greatlakeswastewater.com: indigo #2F4B93, sky #67ADEA,
   white, near-black #1B1B1B. Type: Barlow Condensed (display) + Barlow (body). */

/* self-hosted type (latin subsets, ~15KB each) */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2");
}

:root {
  --brand: #2f4b93;         /* GLW indigo, from the live site */
  --brand-deep: #24397a;    /* darker shade of the same hue */
  --brand-ink: #16244d;     /* deepest shade, footer ground */
  /* the page descends: each successive band of water sits deeper */
  --depth-2: #273e80;
  --depth-3: #1e3268;
  --sky: #67adea;           /* GLW light blue accent */
  --ink: #1b1b1b;           /* body text on white, from the live site */
  --muted: #4d5261;         /* secondary text on white */
  --tint: #e4ecfa;          /* secondary text on indigo, tinted from brand hue */
  --line: #dfe4f0;          /* hairlines on white, indigo-tinted */
  --line-brand: rgba(255, 255, 255, 0.22);
  --paper: #ffffff;
  --paper-2: #f4f6fb;       /* recessed surface, indigo-tinted */
  --error: #b3261e;         /* form validation errors */

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-rest: 0 1px 2px rgba(22, 36, 77, 0.06), 0 10px 30px rgba(22, 36, 77, 0.10);
  --shadow-lift: 0 2px 4px rgba(22, 36, 77, 0.08), 0 22px 48px rgba(22, 36, 77, 0.16);

  --radius: 14px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
  /* the ground revealed by mobile rubber-band overscroll: ink to match
     the footer below and the indigo header above (body stays white) */
  background: var(--brand-ink);
}

/* no stray decoration may ever widen the page; `clip` (unlike `hidden`)
   creates no scroll container, so position:sticky keeps working */
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

section[id] { scroll-margin-top: 5.5rem; }

::selection {
  background: var(--sky);
  color: var(--brand-ink);
}

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

.on-brand :focus-visible, .site-header :focus-visible { outline-color: #fff; }

/* inside the white form card the ring must be brand, not white-on-white */
.form-card :focus-visible { outline-color: var(--brand); }

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

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 9vw, 6.25rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: 0.02em; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

.on-brand .lede { color: #e8eefb; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out),
              color 160ms var(--ease-out), transform 160ms var(--ease-out),
              box-shadow 160ms var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-white {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 6px rgba(22, 36, 77, 0.25);
}
.btn-white:hover {
  background: var(--sky);
  color: var(--brand-ink);
  box-shadow: 0 10px 26px rgba(22, 36, 77, 0.35);
}

.btn-outline {
  background: rgba(22, 36, 77, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline:hover { border-color: #fff; background: rgba(22, 36, 77, 0.25); }

.btn-brand {
  background: var(--brand);
  color: #fff;
}
.btn-brand:hover { background: var(--brand-deep); box-shadow: 0 10px 26px rgba(22, 36, 77, 0.28); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out),
              box-shadow 240ms var(--ease-out);
}

.site-header.scrolled {
  background: var(--brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(22, 36, 77, 0.25);
}

/* header spans the full viewport so the logo and nav breathe on wide screens */
.site-header .wrap {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-link img { height: 2.7rem; width: auto; }

.logo-name {
  display: block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}

.logo-tag {
  display: block;
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--tint);
  margin-top: 0.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.9rem);
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--sky); text-decoration-thickness: 2px; }

.site-nav .nav-cta {
  color: var(--brand);
  background: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: 9px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out),
              transform 160ms var(--ease-out);
}
.site-nav .nav-cta:hover { background: var(--sky); color: var(--brand-ink); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-brand);
  border-radius: 9px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}

/* collapse to the menu before the logo and nav can crowd each other */
@media (max-width: 1080px) {
  .logo-link { gap: 0.6rem; }
  .logo-link img { height: 2.3rem; }
  .logo-name { font-size: 1.05rem; }
  .logo-tag { font-size: 0.55rem; letter-spacing: 0.2em; margin-top: 0.25rem; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--brand);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 40px rgba(22, 36, 77, 0.3);
    padding-bottom: 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.85rem var(--gutter);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .site-nav .nav-cta {
    margin: 0.75rem var(--gutter) 0;
    padding-block: 0.7rem;
    text-align: center;
    border-top: none;
  }
}

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

.hero {
  position: relative;
  background: var(--brand-ink);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* svh: mobile URL-bar collapse changes vh mid-scroll and makes the
     hero photo visibly resize; small-viewport units hold steady */
  min-height: min(88vh, 58rem);
  min-height: min(88svh, 58rem);
  /* pull the transparent sticky header's height back into the composition;
     over-pull slightly so a border/rounding sliver never shows as a white line */
  margin-top: -5rem;
  padding-top: 5rem;
}

.hero-tall { min-height: min(88vh, 58rem); min-height: min(88svh, 58rem); }
.hero-short { min-height: min(72vh, 46rem); min-height: min(72svh, 46rem); }

/* phones: pin hero heights to static rem (no viewport units at all) and
   drop the slow settle zoom — both read as "the photo resizes while I
   scroll" the moment anything else is moving */
@media (max-width: 700px) {
  .hero, .hero-tall { min-height: 34rem; }
  .hero-short { min-height: 28rem; }
  .hero-bg img { animation: none; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(55%) contrast(1.02);
  animation: settle 9s var(--ease-out) both;
}

/* brand duotone: indigo multiplied over the desaturated photo, then a
   legibility gradient toward the text side */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 36, 77, 0.88) 0%, rgba(22, 36, 77, 0.55) 55%, rgba(22, 36, 77, 0.18) 100%),
    linear-gradient(180deg, rgba(22, 36, 77, 0.35) 0%, rgba(22, 36, 77, 0) 30%, rgba(22, 36, 77, 0.25) 100%);
}

@keyframes settle {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

.hero .wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(5rem, 11vw, 8.5rem);
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(22, 36, 77, 0.35);
}

.hero .lede { margin-bottom: 2.5rem; color: #dde6f7; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* the water line at the hero's foot, echoing the wave in the GLW mark */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: clamp(2.5rem, 7vw, 6rem);
}

/* hero content rises once on load, after the lines begin sounding */
.hero-rise > * {
  animation: rise 800ms var(--ease-out) both;
  animation-delay: 250ms;
}
.hero-rise > *:nth-child(2) { animation-delay: 370ms; }
.hero-rise > *:nth-child(3) { animation-delay: 490ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rise > * { animation: none; }
  .hero-bg img { animation: none; }
}

/* ---------- scroll reveals (lists only, staggered by JS) ----------
   Hidden states apply only under .js (set by an inline head script), so
   content stays visible when JavaScript is blocked or fails. */

/* reveals use the separate `translate` property so `transform` stays free
   for hover effects, and the transition list keeps transform/box-shadow
   (per-property delays: only the reveal is staggered, never the hover) */
.js [data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 650ms var(--ease-out) var(--reveal-delay, 0ms),
    translate 650ms var(--ease-out) var(--reveal-delay, 0ms),
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

.js [data-reveal].in {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* ---------- sections ---------- */

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

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.on-brand {
  background: var(--brand);
  color: #fff;
}

/* deeper water: later indigo sections darken as the page descends */
.on-brand.depth-2 { background: var(--depth-2); }
.on-brand.depth-3 { background: var(--depth-3); }

.section-tint { background: var(--paper-2); }

/* ---------- wave dividers: the water line at every boundary ----------
   background = the section above; the wave (currentColor) = the section below */
/* the svg overdraws 1px into both neighboring sections; fractional
   device-pixel rounding can otherwise expose the strip's backing color
   as a hairline seam (visible on phone DPR scaling) */
.wave-sep {
  height: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0;
  position: relative;
}

.wave-sep svg {
  width: 100%;
  height: calc(100% + 2px);
  margin-top: -1px;
  display: block;
}

.wave-sep.flip svg { transform: scaleX(-1); }

/* contour texture is reserved for the heroes: behind running text the
   lines read as noise (and undercut the AAA legibility target) */
.has-contours { position: relative; overflow: hidden; }

.has-contours > .wrap { position: relative; z-index: 1; }

/* ---------- brands ---------- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 2rem;
}

.brand-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-rest);
  display: flex;
  flex-direction: column;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

/* the whole card is the link target, not just the "Visit" line */
.brand-card .brand-link::before {
  content: "";
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.brand-card:hover, .brand-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.brand-card img {
  width: 100%;
  /* height:auto beats the height="" attribute hint so aspect-ratio governs */
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.brand-card-body {
  padding: 1.7rem 1.85rem 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.brand-card-body p { color: var(--muted); flex: 1; }

.brand-link {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand);
  align-self: flex-start;
  transition: color 140ms ease;
}
.brand-link::after {
  content: " \2192";
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
.brand-link:hover { color: var(--brand-deep); }
.brand-link:hover::after { transform: translateX(4px); }

/* ---------- services: the same ledger anatomy as Core Values ---------- */

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 21rem) minmax(0, 44rem);
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-block: 1.9rem;
  min-height: 7rem;
  border-top: 1px solid var(--line-brand);
}

.service-item:last-child { border-bottom: 1px solid var(--line-brand); }

.service-item h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); }

.service-item p { color: #e8eefb; }

@media (max-width: 880px) {
  .service-item { grid-template-columns: 1fr; row-gap: 0.5rem; }
}

/* ---------- about: the mission as a statement band ---------- */

/* ---------- values: compact split, a different form from the ledgers ---------- */

.values-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.values-split .section-head { margin-bottom: 0; }

.values-brief {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.values-brief p { color: var(--muted); max-width: 58ch; }

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

@media (max-width: 880px) {
  .values-split { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- about ---------- */

.about-statement {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.45;
  max-width: 44ch;
  color: #e8eefb;
  margin-top: 0.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.about-col h3 {
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-brand);
}

.about-col p, .about-col li { color: var(--tint); }

.about-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.about-col li strong { color: #fff; font-weight: 600; }

/* ---------- contact / forms ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 9px 0;
}

.skip-link:focus {
  left: 0;
}

.form-card {
  background: #fff;
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-rest);
}

.field { margin-bottom: 0.9rem; }

/* pair short fields to keep tall forms compact; minmax(0,1fr) stops
   non-wrapping content (long role names) from inflating its column */
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 1rem;
}

.form-row > .field { min-width: 0; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  caret-color: var(--brand);
  background: #fff;
  border: 1px solid #c6cede;
  border-radius: 9px;
  padding: 0.75rem 0.85rem;
  min-height: 44px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

/* custom dropdown: our own chevron, aligned inside the rounded box */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%232f4b93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.75rem;
  cursor: pointer;
}

.field ::placeholder { color: #6b7181; opacity: 1; }

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

/* custom file picker (the native control never matches the form) */
.file-field {
  position: relative;
  min-height: 44px;
}

.file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-btn {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
  background: #fff;
  border: 1px solid #c6cede;
  border-radius: 9px;
  padding: 0.6rem 1rem;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.file-btn:hover { border-color: var(--brand); }

.file-btn:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(103, 173, 234, 0.4);
}

.field.invalid .file-btn {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15);
}

/* the chosen filename sits on its own readable line under the button */
.file-name {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name.chosen { color: var(--ink); font-weight: 500; }

/* an empty filename leaves no phantom flex-gap next to the button */
.file-name:empty { display: none; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(103, 173, 234, 0.4);
}

/* custom inline validation, replacing the browser's native bubbles */
.field.invalid input,
.field.invalid select,
.field.invalid .dd-toggle {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15);
}

.field-error {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.4rem;
}

.field-error::before {
  content: "!";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  transform: translateY(2px);
}

/* custom dropdown (progressive enhancement over the native select) */
.dd { position: relative; }

.dd > select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dd-toggle {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: left;
  /* long option names ellipsize instead of wrapping and jumping the row height */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c6cede;
  border-radius: 9px;
  padding: 0.75rem 2.75rem 0.75rem 0.85rem;
  min-height: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%232f4b93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.dd-toggle:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(103, 173, 234, 0.4);
}

.dd-toggle.placeholder { color: #6b7181; }

.dd.open .dd-toggle {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(103, 173, 234, 0.4);
}

.dd-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  list-style: none;
  background: #fff;
  border: 1px solid #c6cede;
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  padding: 0.4rem;
  max-height: 16rem;
  overflow: auto;
}

.dd-list li {
  padding: 0.6rem 0.8rem;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink);
}

.dd-list li:hover,
.dd-list li.active { background: var(--paper-2); }

.dd-list li[aria-selected="true"] {
  font-weight: 600;
  color: var(--brand);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

/* success state: a real card with a checkmark, not a bare outline */
.form-success:focus { outline: none; }

.form-success {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-rest);
  max-width: 30rem;
}

.form-success::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17.5 19 7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  margin-bottom: 1.1rem;
}

.form-success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.form-success p:not(.form-success-title) { color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--brand-ink);
  color: var(--tint);
  padding-block: 3.5rem 2rem;
  position: relative;
}


.footer-mark {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.footer-mark img { height: 2.75rem; width: auto; }

.footer-mark span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.9rem;
}

.footer-col .tel-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--tint);
  text-decoration: none;
  /* a phone link is the one thing a phone user must be able to tap */
  padding-block: 0.7rem;
  margin-block: -0.25rem;
}
.footer-col .tel-link:hover { color: #fff; text-decoration: underline; }

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.15rem; }
.footer-col a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--tint);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

/* ---------- closing call band: the deepest water before the floor ---------- */

/* statement bands (quote, CTA, about) read centered */
.cta-band { text-align: center; }

.cta-band .lede { margin-inline: auto; }

.cta-band h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band .lede { margin-top: 0.75rem; }

.cta-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 4rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.cta-phone {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cta-phone span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8eefb;
}

.cta-phone a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.cta-phone a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--sky);
}

.cta-alt {
  margin-top: 2rem;
  color: #e8eefb;
}

.cta-alt a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 3px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.cta-alt a:hover {
  color: var(--sky);
  text-decoration-thickness: 2px;
}

/* ---------- careers page ---------- */

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

.quote-band blockquote {
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.12;
  max-width: 28ch;
  color: var(--brand);
  text-wrap: balance;
}

.quote-band cite {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1rem;
}

.role-row {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 44rem);
  column-gap: clamp(2rem, 4vw, 4rem);
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  align-items: center;
}

.role-row:last-of-type { border-bottom: 1px solid var(--line); }

.role-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.role-row p { color: var(--muted); }

.role-where {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.role-pay {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .role-row { grid-template-columns: 1fr; row-gap: 0.6rem; }
}

.roles-note {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 62ch;
}
