/* ==========================================================================
   Desert Diamonds Testing Services LLC
   Design system — "Clinical Instrument"

   Premise: a testing laboratory reads like calibrated equipment, not like a
   landing page. The vocabulary here is the datasheet — monospace for anything
   measured, hairline rules instead of shadows, square corners, spec tables
   instead of cards. Depth comes from rules and insets, never from elevation.

   Canvas is LIGHT on purpose: the brief asks for "light and polished".
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — warm bone paper, not blue-white */
  --paper: #f7f6f3;
  --paper-2: #ffffff;
  --paper-3: #efede8;

  /* Ink */
  --ink: #0e1013;      /* 17:1 on paper */
  --graphite: #23272c;
  --muted: #5a6067;    /* 5.6:1 on paper */
  --muted-2: #878d94;

  /* Rules — the primary structural device */
  --rule: #d9d6d0;
  --rule-2: #c4c0b8;
  --rule-3: #a9a49a;

  /* Accent — oxblood. Serious, unbright, never celebratory. 7.7:1 on paper. */
  --accent: #8c2f2a;
  --accent-700: #6e2421;
  --accent-300: #e0857e;   /* for dark surfaces only */
  --accent-wash: #f3e9e7;

  /* Dark readout panel — used sparingly, as an instrument display */
  --readout: #16191d;
  --readout-2: #1e2227;
  --readout-rule: #32373d;
  --readout-ink: #e7e4de;
  --readout-muted: #9aa1a9;

  --ok: #1f6b41;
  --warn: #8a5a12;

  /* Type — Plex reads as engineering documentation */
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --t--2: 0.6875rem;
  --t--1: 0.8125rem;
  --t-0: clamp(0.9375rem, 0.91rem + 0.14vw, 1rem);
  --t-1: clamp(1.0625rem, 1.01rem + 0.28vw, 1.1875rem);
  --t-2: clamp(1.25rem, 1.14rem + 0.55vw, 1.5rem);
  --t-3: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --t-4: clamp(1.875rem, 1.5rem + 1.9vw, 2.75rem);
  --t-5: clamp(2.375rem, 1.6rem + 3.8vw, 4.5rem);

  /* Space — an 8px instrument grid */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6.5rem;

  --band: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* No radii. No shadows. This is deliberate. */
  --radius: 0px;
  --radius-input: 2px;

  --container: 1240px;
  --narrow: 68ch;
  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 2rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--sans);
  font-size: var(--t-0);
  line-height: 1.6;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px; /* mobile action bar */
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: var(--t-5); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: var(--t-4); }
h3 { font-size: var(--t-2); }
h4 { font-size: var(--t-1); }

p, li { text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-700); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--s-6); } }
.container--narrow { max-width: var(--narrow); }

.band { padding-block: var(--band); }
.band--tight { padding-block: calc(var(--band) * 0.55); }

/* Every band is separated by a hairline, not by a color change. */
.band + .band { border-top: 1px solid var(--rule); }

.band--paper-2 { background: var(--paper-2); }
.band--paper-3 { background: var(--paper-3); }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }

.measure { max-width: var(--narrow); }
.measure-center { max-width: var(--narrow); margin-inline: auto; }
.text-center { text-align: center; }

.sr-only {
  position: absolute;
  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: var(--s-4);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  font-family: var(--mono);
  font-size: var(--t--1);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   4. The instrument vocabulary
   -------------------------------------------------------------------------- */

/* Monospace metadata. Used for anything measured, coded, or scheduled. */
.meta {
  font-family: var(--mono);
  font-size: var(--t--2);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta--accent { color: var(--accent); }

/* Section header: a mono index number, a rule, then the heading. */
.head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
  padding-top: var(--s-4);
  border-top: 2px solid var(--ink);
}
.head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
}
.head h2 { max-width: 22ch; }
.head p { max-width: 62ch; color: var(--muted); }

/* Live status pip — the on-call indicator */
.pip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
}
.pip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(31, 107, 65, 0.16);
}

/* Hairline-framed panel. No radius, no shadow. */
.panel {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: var(--s-5);
}
.panel--accent { border-left: 3px solid var(--accent); }

/* Notice / caveat — a left rule, nothing else */
.notice {
  border-left: 3px solid var(--rule-3);
  padding: var(--s-2) 0 var(--s-2) var(--s-4);
  font-size: var(--t--1);
  color: var(--muted);
}
.notice strong { color: var(--ink); font-weight: 600; }
.notice--accent { border-left-color: var(--accent); }
.notice--warn { border-left-color: var(--warn); }

/* --------------------------------------------------------------------------
   5. Spec table — replaces the card grid
   -------------------------------------------------------------------------- */
.spec-wrap { overflow-x: auto; }

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t--1);
  min-width: 34rem;
}
.spec caption {
  text-align: left;
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: var(--s-3);
}
.spec th, .spec td {
  text-align: left;
  padding: var(--s-4) var(--s-4) var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.spec thead th {
  font-family: var(--mono);
  font-size: var(--t--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: var(--s-3);
}
.spec tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.spec td.num,
.spec .mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--graphite);
}
.spec tbody tr:hover { background: var(--paper-3); }
.spec tbody tr:last-child th,
.spec tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   6. Registry — the numbered service index (replaces service cards)
   -------------------------------------------------------------------------- */
.registry { border-top: 1px solid var(--rule-2); }

.registry__row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.25s cubic-bezier(.2,.7,.3,1);
}
@media (min-width: 880px) {
  .registry__row { grid-template-columns: 5rem 22rem 1fr auto; gap: var(--s-6); align-items: center; }
}

/* A rule sweeps in from the left on hover — the only "animation" here */
.registry__row::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(.2,.7,.3,1);
}
.registry__row:hover::before,
.registry__row:focus-within::before { width: 100%; }
@media (min-width: 880px) {
  .registry__row:hover,
  .registry__row:focus-within { padding-left: var(--s-4); }
}

.registry__no {
  font-family: var(--mono);
  font-size: var(--t--1);
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  padding-top: 0.25rem;
}
.registry__row:hover .registry__no { color: var(--accent); }

.registry__title {
  font-size: var(--t-2);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.registry__title a { color: inherit; text-decoration: none; }
.registry__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.registry__row:hover .registry__title { color: var(--accent); }

.registry__desc { color: var(--muted); font-size: var(--t--1); grid-column: 2 / -1; }
@media (min-width: 880px) { .registry__desc { grid-column: auto; margin: 0; } }

.registry__go {
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  display: none;
}
@media (min-width: 880px) { .registry__go { display: block; } }
.registry__row:hover .registry__go { color: var(--accent); }

/* --------------------------------------------------------------------------
   7. Readout — a dark instrument display. Used at most once per page.
   -------------------------------------------------------------------------- */
.readout {
  background: var(--readout);
  color: var(--readout-ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.readout h2, .readout h3 { color: #fff; }
.readout .meta { color: var(--readout-muted); }
.readout .meta--accent { color: var(--accent-300); }
.readout a { color: var(--accent-300); }
.readout .head { border-top-color: var(--readout-rule); }
.readout .head p { color: var(--readout-muted); }
.readout .notice { border-left-color: var(--accent-300); color: var(--readout-muted); }
.readout .lede { color: var(--readout-ink); }

/* Components authored for bone paper are reused inside this dark panel. Their
   default ink (#0e1013) sits at ~1.06:1 on #16191d — invisible. Everything the
   readout can contain has to be re-tinted here, not just the bit that broke. */
/* `.list-rule strong` is defined later in this file and ties on specificity,
   so it would win on source order. These two-class selectors settle it. */
.readout strong,
.readout .list-rule strong,
.readout .list-plain strong { color: #fff; }

/* The placeholder marker must keep its amber on dark, and `.readout .spec td`
   would otherwise out-specify it. */
.readout .spec .ph,
.readout .spec td.ph { color: #e8cf94; }

/* Numbered rule list */
.readout .list-rule li { border-bottom-color: var(--readout-rule); }
.readout .list-rule li::before { color: var(--readout-muted); }

/* Plain rule list */
.readout .list-plain li { border-bottom-color: var(--readout-rule); }
.readout .list-plain li::before { color: var(--accent-300); }

/* Key/value ledger */
.readout .ledger__row { border-bottom-color: var(--readout-rule); }
.readout .ledger__row:first-child { border-top-color: var(--readout-rule); }
.readout .ledger__k { color: var(--readout-muted); }
.readout .ledger__v { color: #fff; }

/* Spec + hours tables */
.readout .spec caption,
.readout .hours caption { color: var(--readout-muted); }
.readout .spec thead th {
  color: var(--readout-muted);
  border-bottom-color: var(--rule-3);
}
.readout .spec th,
.readout .spec td,
.readout .hours th,
.readout .hours td { border-bottom-color: var(--readout-rule); }
.readout .spec tbody th,
.readout .hours td { color: #fff; }
.readout .spec td,
.readout .spec .mono,
.readout .hours th { color: var(--readout-ink); }
.readout .spec tbody tr:hover { background: var(--readout-2); }

/* Partner slots */
.readout .slots { background: var(--readout-rule); border-color: var(--readout-rule); }
.readout .slots li { background: var(--readout-2); color: var(--readout-muted); }

/* auto-fit, so the tile count can change without touching the CSS */
.readout__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1px;
  background: var(--readout-rule);
  border: 1px solid var(--readout-rule);
}

.readout__cell {
  background: var(--readout);
  padding: var(--s-6) var(--s-5);
}
.readout__val {
  font-family: var(--mono);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.readout__key {
  margin-top: var(--s-3);
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--readout-muted);
}

/* --------------------------------------------------------------------------
   8. Buttons — square, mono label, 1px rule
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  font-family: var(--mono);
  font-size: var(--t--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn svg { flex: none; }

.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--on-dark { border-color: var(--readout-rule); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row--center { justify-content: center; }

/* Inline "go" link */
.go {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--t--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 2px;
  transition: border-color 0.16s ease;
}
.go:hover { border-bottom-color: var(--accent); }
.go::after { content: "\2192"; transition: transform 0.2s ease; }
.go:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   9. Masthead
   -------------------------------------------------------------------------- */
.strip {
  background: var(--ink);
  color: var(--readout-muted);
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.06em;
}
.strip__inner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 34px;
}
@media (min-width: 900px) { .strip__inner { display: flex; } }
.strip a { color: #fff; text-decoration: none; }
.strip a:hover { color: var(--accent-300); }
.strip .pip { color: #55c98a; }
.strip .pip::before { background: #55c98a; box-shadow: 0 0 0 3px rgba(85, 201, 138, 0.18); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-2);
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.brand__tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 420px) { .brand__tag { display: none; } }

.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--ink);
  cursor: pointer;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger .icon-close { display: none; }
.hamburger[aria-expanded="true"] .icon-close { display: block; }
.hamburger[aria-expanded="true"] .icon-menu { display: none; }

/* Nav: off-canvas on mobile, inline on desktop */
.nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 88vw);
  background: var(--paper);
  border-left: 1px solid var(--rule-2);
  padding: calc(var(--header-h) + var(--s-5)) var(--s-5) var(--s-8);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1);
  z-index: 110;
}
.nav.is-open { transform: translateX(0); }

.nav__list { list-style: none; padding: 0; margin: 0; }
.nav__list > li { border-bottom: 1px solid var(--rule); }

.nav__link {
  display: block;
  padding: var(--s-4) 0;
  font-family: var(--mono);
  font-size: var(--t--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav__link:hover { color: var(--accent); }
.nav__link[aria-current="page"] { color: var(--accent); }

.has-menu { position: relative; }
.has-menu__row { display: flex; align-items: center; justify-content: space-between; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle svg { transition: transform 0.2s ease; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--s-4) var(--s-4);
  border-left: 1px solid var(--rule-2);
}
.submenu[hidden] { display: none; }
.submenu a {
  display: block;
  padding: var(--s-3) 0;
  color: var(--muted);
  text-decoration: none;
  font-size: var(--t--1);
}
.submenu a:hover { color: var(--accent); }
.submenu a[aria-current="page"] { color: var(--accent); }

.header__cta { display: none; gap: var(--s-3); flex: none; }
@media (min-width: 1024px) { .header__cta { display: flex; } }
.header__cta .btn { min-height: 40px; padding: 0.5rem 1rem; }

.nav__cta { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
@media (min-width: 1024px) { .nav__cta { display: none; } }

/* The drawer lives INSIDE .site-header, which is `position: sticky; z-index: 100`
   and therefore opens a stacking context. That caps the drawer's own z-index:110
   at the header's level of 100. This overlay is a sibling of the header, so any
   z-index above 100 paints it OVER the drawer — dimming the menu and eating every
   click. It must stay below the header. Do not raise this above 99. */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 16, 19, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 95;
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

@media (min-width: 1024px) {
  .nav {
    position: static;
    width: auto;
    padding: 0;
    transform: none;
    overflow: visible;
    background: transparent;
    border: 0;
  }
  .nav__list { display: flex; align-items: center; gap: var(--s-2); }
  .nav__list > li { border: 0; }
  .nav__link { padding: var(--s-3); position: relative; }
  .nav__link::after {
    content: "";
    position: absolute;
    left: var(--s-3); right: var(--s-3);
    bottom: 4px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.24s cubic-bezier(.2,.7,.3,1);
  }
  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after { transform: scaleX(1); }

  .nav__toggle { width: 26px; height: 40px; }
  .submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 17rem;
    background: var(--paper-2);
    border: 1px solid var(--rule-2);
    padding: var(--s-2);
  }

  /* The 6px offset above is a dead zone that belongs to neither the nav item nor
     the submenu. Crossing it fires `mouseleave` on .has-menu, which closes the
     menu before the pointer arrives — visible on hover, impossible to click.
     This invisible bridge spans the gap and, being a descendant of .has-menu,
     keeps the pointer "inside" it the whole way down. */
  .submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -7px;      /* gap (6px) + the parent's 1px border */
    height: 7px;
  }
  .submenu a { padding: var(--s-3); }
  .submenu a:hover { background: var(--paper-3); }
  .nav-overlay { display: none; }
}

/* Mobile action bar */
.action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink);
  border-top: 1px solid var(--ink);
}
@media (min-width: 768px) { .action-bar { display: none; } }
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 58px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.action-bar a.is-primary { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   10. Hero — no image beside the headline. Type, rules, and a data ledger.
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(3rem, 1.5rem + 7vw, 7rem) 0;
  border-bottom: 1px solid var(--rule);
}
.hero__head {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 980px) {
  .hero__head { grid-template-columns: 1.35fr 1fr; gap: var(--s-8); align-items: end; }
}
.hero h1 { max-width: 15ch; }
.hero h1 .accent { color: var(--accent); }
.hero__lede {
  font-size: var(--t-1);
  color: var(--muted);
  max-width: 46ch;
}

/* A ledger of facts, set as a definition list with hairlines */
.ledger { display: grid; gap: 0; margin-top: var(--s-6); }
.ledger__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: baseline;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}
.ledger__row:first-child { border-top: 1px solid var(--rule); }
.ledger__k {
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger__v {
  font-family: var(--mono);
  font-size: var(--t--1);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Full-bleed technical figure below the fold-line.
   The image is a 2.5:1 band. The height cap keeps it from dominating the page
   if a replacement photo ships with a taller aspect ratio. */
.hero__figure { margin-top: var(--s-8); }
.hero__figure img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 640px) {
  .hero__figure img { max-height: 260px; }
}

.figure { border: 1px solid var(--rule); background: var(--paper-2); }
.figure img { width: 100%; }
.figure__cap {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Interior page header */
.page-head {
  padding-block: clamp(2rem, 1rem + 4vw, 4rem);
  border-bottom: 1px solid var(--ink);
}
.page-head h1 { font-size: var(--t-4); max-width: 20ch; }
.page-head .hero__lede { margin-top: var(--s-4); }

.crumbs { margin-bottom: var(--s-5); }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: 0; margin: 0;
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--rule-3); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* --------------------------------------------------------------------------
   11. Two-column prose / editorial split
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--s-6);
}
/* Let wide tables scroll inside .spec-wrap instead of widening the page. */
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
  .split--media-right > .split__media { order: 2; }
}
.split--sidenote { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split--sidenote { grid-template-columns: 16rem 1fr; gap: var(--s-8); }
}

.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: var(--t-3); }
.prose h3 {
  margin-top: var(--s-6);
  font-size: var(--t-1);
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.1rem; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--accent); }

.lede { font-size: var(--t-1); color: var(--graphite); }

/* Checklist without the checkmark-icon cliché — mono rules instead */
.list-rule { list-style: none; padding: 0; margin: 0; }
.list-rule li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}
.list-rule li::before {
  content: counter(li, decimal-leading-zero);
  counter-increment: li;
  font-family: var(--mono);
  font-size: var(--t--2);
  color: var(--muted-2);
  padding-top: 0.2rem;
}
.list-rule { counter-reset: li; }
.list-rule strong { color: var(--ink); }

/* Plain bullet list with a rule, no numbers */
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t--1);
}
.list-plain li::before {
  content: "—";
  color: var(--accent);
  margin-right: var(--s-3);
  font-family: var(--mono);
}

/* Chip row (service areas).
   A grid, not flex: flex sized every cell to its own text, so the underlines
   came out ragged and nothing lined up into columns. Equal tracks give the
   ruled-index look the rest of the page uses. */
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  column-gap: var(--s-6);
}
.chips li {
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}
.readout .chips li { color: var(--readout-muted); border-bottom-color: var(--readout-rule); }
.chips a { color: inherit; text-decoration: none; }
.chips a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   13. Accordion
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--rule-2); }

.accordion__item { border-bottom: 1px solid var(--rule); }

.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--s-5) 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-0);
  color: var(--ink);
  cursor: pointer;
  min-height: 60px;
}
.accordion__btn:hover { color: var(--accent); }

.accordion__icon {
  flex: none;
  width: 18px; height: 18px;
  position: relative;
  color: var(--muted);
}
.accordion__btn:hover .accordion__icon { color: var(--accent); }
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.accordion__icon::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.accordion__icon::after { top: 0; left: 8px; width: 1.5px; height: 18px; }
.accordion__btn[aria-expanded="true"] .accordion__icon::after { transform: rotate(90deg); opacity: 0; }

.accordion__panel { padding: 0 0 var(--s-5); max-width: 68ch; color: var(--muted); }
.accordion__panel[hidden] { display: none; }
.accordion__panel > * + * { margin-top: var(--s-3); }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }

.field label {
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.field .hint { font-size: var(--t--1); color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.req { color: var(--accent); }

.input, .select, .textarea {
  width: 100%;
  font: inherit;
  font-size: var(--t-0);
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-input);
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 150px; resize: vertical; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235a6067' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.input::placeholder, .textarea::placeholder { color: var(--muted-2); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.error {
  font-family: var(--mono);
  font-size: var(--t--2);
  color: var(--accent);
  letter-spacing: 0.04em;
  min-height: 1px;
}

.checkbox { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--t--1); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: var(--s-4); font-size: var(--t--1); border: 1px solid; }
.form-status[hidden] { display: none; }
.form-status--error { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-700); }
.form-status--ok { border-color: var(--ok); background: #eaf3ee; color: var(--ok); }

@media (min-width: 700px) {
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

/* Hours table */
.hours { width: 100%; border-collapse: collapse; font-size: var(--t--1); }
.hours caption {
  text-align: left;
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: var(--s-3);
}
.hours th, .hours td { text-align: left; padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.hours th { font-weight: 400; color: var(--graphite); }
.hours td {
  text-align: right;
  font-family: var(--mono);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* Contact list */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.contact-list li:first-child { border-top: 1px solid var(--rule); }
.contact-list h3 {
  font-family: var(--mono);
  font-size: var(--t--2);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.contact-list p, .contact-list address { font-style: normal; font-size: var(--t-1); color: var(--ink); }
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-list a:hover { color: var(--accent); }
.contact-list .fine { font-size: var(--t--1); color: var(--muted); margin-top: var(--s-2); }

/* Partner slots */
.slots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 700px) { .slots { grid-template-columns: repeat(4, 1fr); } }
.slots li {
  background: var(--paper-2);
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: var(--s-4);
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
}

/* --------------------------------------------------------------------------
   15. Placeholder marker
   -------------------------------------------------------------------------- */
.ph {
  background: repeating-linear-gradient(135deg, #fdf6e3, #fdf6e3 6px, #f7edd6 6px, #f7edd6 12px);
  box-shadow: inset 0 -1px 0 var(--warn);
  color: #5b3d08;
  padding: 0 3px;
  font-style: normal;
}
.readout .ph { background: #2a2415; color: #e8cf94; box-shadow: inset 0 -1px 0 #8a6b1f; }

.fine { font-size: var(--t--1); color: var(--muted); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--readout-muted);
  font-size: var(--t--1);
  padding-top: var(--s-8);
  border-top: 3px solid var(--accent);
}
.site-footer h2 {
  color: var(--readout-muted);
  font-family: var(--mono);
  font-size: var(--t--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer__grid { display: grid; gap: var(--s-7); padding-bottom: var(--s-7); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-6); } }

.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.site-footer a { color: #cfcdc8; text-decoration: none; }
.site-footer a:hover { color: #fff; border-bottom: 1px solid var(--accent-300); }
.site-footer .brand { color: #fff; }
.site-footer .brand__tag { color: var(--muted-2); }
.site-footer address { font-style: normal; }
.footer__blurb { margin-top: var(--s-4); max-width: 34ch; }
.footer__h2--spaced { margin-top: var(--s-6); }
.muted-dark { color: var(--muted-2); }
.gold-text { color: var(--accent-300); }

/* The hours table is authored for light surfaces; the footer is ink. */
.site-footer .hours th,
.site-footer .hours td { border-bottom-color: var(--readout-rule); }
.site-footer .hours th { color: #cfcdc8; }
.site-footer .hours td { color: #fff; }

.footer__social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.footer__social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--readout-rule);
  color: #cfcdc8;
}
.footer__social a:hover { background: #fff; color: var(--ink); border-color: #fff; }

.footer__legal {
  max-width: 74ch;
  font-size: var(--t--2);
  line-height: 1.6;
  color: var(--muted-2);
  padding-bottom: var(--s-5);
  font-family: var(--mono);
  letter-spacing: 0.01em;
}
.footer__bottom {
  border-top: 1px solid var(--readout-rule);
  padding-block: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: center;
  text-align: center;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.06em;
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* --------------------------------------------------------------------------
   17. 404
   -------------------------------------------------------------------------- */
.error-page { padding-block: var(--s-9); }
.error-page__code {
  font-family: var(--mono);
  font-size: clamp(3rem, 1.5rem + 9vw, 6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

@media print {
  .site-header, .site-footer, .action-bar, .nav-overlay, .strip { display: none !important; }
  body { padding: 0; color: #000; background: #fff; }
}
