/* Iowa Water Filtration Co.
   Visual world: the water quality report. Paper ground, ink type, oxide red
   reserved for readings over the federal limit. Self-hosted faces, no
   external requests. */

/* ---------------------------------------------------------------- faces */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-var.woff2") format("woff2-variations");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic-var.woff2") format("woff2-variations");
  font-weight: 400 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/fonts/plex-sans-var.woff2") format("woff2-variations");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: light;

  --paper:        #f7f4ed;
  --paper-tint:   #f0ebe0;
  --paper-deep:   #e7e0d1;
  --paper-pure:   #fdfbf7;

  --ink:          #1b1a16;
  --ink-soft:     #4b473d;
  --ink-faint:    #686354;
  --ink-ghost:    #928a78;

  --rule:         #d8d1c0;
  --rule-strong:  #bdb49e;

  --oxide:        #9c3a1a;   /* over the limit, and only that */
  --oxide-bright: #e2703f;   /* same job, on the ink ground */
  --survey-bright:#7fc2d4;   /* same, for the measured colour */
  --oxide-tint:   #f2e3dc;
  --survey:       #1d4f5c;   /* links, measured, under the limit */
  --survey-tint:  #dde8ea;

  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:    "Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 70ch;
  --page:    1180px;
  --col:     760px;

  --gut:   clamp(20px, 5vw, 56px);
  --lift:  0 1px 1px rgba(27,26,22,.04), 0 10px 30px -12px rgba(27,26,22,.18);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--rule-strong) var(--paper-tint);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.62;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ------------------------------------------- browser surfaces, themed */

::selection { background: var(--survey); color: var(--paper-pure); }
body { caret-color: var(--survey); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-tint); }
::-webkit-scrollbar-thumb {
  background: var(--rule-strong); border: 3px solid var(--paper-tint); border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-ghost); }

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

::marker { color: var(--ink-ghost); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

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

.skip {
  position: fixed; left: 50%; translate: -50% -140%; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper-pure);
  padding: .7rem 1.4rem; font-size: .9rem; font-weight: 500; text-decoration: none;
}
.skip:focus { translate: -50% 0; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: auto;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  font-weight: 400;
}
h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.022em;
  margin-top: 0;
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.22;
  letter-spacing: -.012em;
  font-weight: 500;
}

h4 {
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  letter-spacing: -.005em; color: var(--ink); margin: 0 0 .45em;
}

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-family: var(--display);
  font-size: clamp(1.26rem, 2.1vw, 1.56rem);
  line-height: 1.42;
  letter-spacing: -.012em;
  color: var(--ink-soft);
  max-width: 54ch;
}

a {
  color: var(--survey);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: color-mix(in oklab, var(--survey) 38%, transparent);
  transition: text-decoration-color .18s ease, color .18s ease;
}
a:hover { text-decoration-color: var(--survey); }

strong { font-weight: 600; }

/* measurement, not costume: only numbers and readings get mono */
.num, td.num, .reading {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

ul, ol { padding-left: 1.15em; max-width: var(--measure); margin: 0 0 1.15em; }
li { margin-bottom: .4em; }
li::marker { color: var(--ink-ghost); }

/* ------------------------------------------------- document furniture */

/* Figure and table labels. These carry real reference information. */
.label {
  font-family: var(--mono);
  font-size: .715rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .9rem;
  display: block;
}
.label .sep { color: var(--rule-strong); padding: 0 .5em; }

figcaption {
  font-family: var(--display);
  font-style: italic;
  font-size: .95rem;
  color: var(--ink-faint);
  max-width: 64ch;
  margin-top: 1rem;
}
caption .label { margin-bottom: .5rem; }

hr, .rule {
  border: 0; height: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.rule-strong { border-top-color: var(--rule-strong); }

/* ---------------------------------------------------------------- layout */

.page { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gut); }
.col  { max-width: var(--col); }

/* .col sitting on the same element as .page shrank the page box itself, and
   because .page is margin:0 auto the narrower box then centred, indenting the
   whole section ~220px against every other one. Keep the page box, constrain
   the children. */
.page.col { max-width: var(--page); }
.page.col > * { max-width: var(--col); }

section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--rule); }
.tint { background: var(--paper-tint); }
.deep { background: var(--paper-deep); }

/* more space above a heading than below it */
.col > h2, .page > h2 { margin-top: 2.6em; }
.col > h2:first-child, .page > h2:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--paper) 93%, transparent);
  backdrop-filter: blur(10px) saturate(130%);
  border-bottom: 1px solid var(--rule);
}
.masthead-row {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: 66px;
}

.mark { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; margin-right: auto; }
.mark:hover { text-decoration: none; }
.mark-name {
  font-family: var(--display); font-size: 1.22rem; font-weight: 500;
  letter-spacing: -.022em; color: var(--ink); white-space: nowrap;
}
.mark-loc {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-faint); white-space: nowrap;
}

.masthead nav { display: flex; align-items: center; gap: 2px; }
.masthead nav a {
  font-size: .91rem; color: var(--ink-soft); text-decoration: none;
  padding: 7px 10px; white-space: nowrap;
}
.masthead nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.masthead nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.masthead nav a.btn { color: var(--paper-pure); }
.masthead nav a.btn:hover { color: var(--paper-pure); text-decoration: none; }

.tel {
  font-family: var(--mono); font-size: .92rem; font-weight: 500;
  color: var(--ink) !important; text-decoration: none; white-space: nowrap;
}
.tel:hover { text-decoration: underline; text-underline-offset: .2em; }

.burger {
  display: none; margin-left: auto; background: none;
  border: 1px solid var(--rule-strong); color: var(--ink);
  font: inherit; font-size: .86rem; padding: 7px 12px; cursor: pointer;
}
.burger:hover { border-color: var(--ink); }

@media (max-width: 1040px) {
  .masthead nav { display: none; }
  .burger { display: block; }
  .masthead.open nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; inset: 100% 0 auto; background: var(--paper);
    border-bottom: 1px solid var(--rule); padding: 6px var(--gut) 20px;
    box-shadow: var(--lift);
  }
  .masthead.open nav a { padding: 12px 0; font-size: 1rem; border-top: 1px solid var(--rule); }
  .masthead.open nav a:first-child { border-top: 0; }
  .masthead.open nav .btn { margin-top: 14px; text-align: center; }
}

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

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-size: .96rem; font-weight: 500;
  padding: 13px 20px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper-pure);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--survey); border-color: var(--survey); color: var(--paper-pure); text-decoration: none; }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-quiet:hover { background: transparent; color: var(--survey); border-color: var(--survey); }

.btn-sm { padding: 8px 14px; font-size: .88rem; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- opening */

.opening { padding: clamp(44px, 7vw, 76px) 0 clamp(40px, 6vw, 64px); }
.opening-grid {
  display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr);
  gap: clamp(32px, 5vw, 72px); align-items: end;
}
.opening h1 { max-width: 17ch; }
.opening .lede { margin-top: 1.1rem; }
.opening .actions { margin-top: 1.8rem; }
.opening-note {
  font-size: .86rem; color: var(--ink-faint); margin-top: 1.1rem; max-width: 42ch;
}

@media (max-width: 960px) {
  .opening-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
}

/* ---------------------------------------------------------------- figure 1 */

.fig {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  padding: clamp(18px, 2.6vw, 26px);
}
.fig .label { margin-bottom: 1.2rem; }
.chart { width: 100%; height: auto; overflow: visible; }

.chart .grid-line { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .axis      { stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .limit     { stroke: var(--oxide); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.chart .trace     { fill: none; stroke: var(--survey); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .trace-hot { fill: none; stroke: var(--oxide); stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .band-hot  { fill: var(--oxide); opacity: .07; }
.chart .tick-txt  { font-family: var(--mono); font-size: 11px; fill: var(--ink-faint); font-variant-numeric: tabular-nums; }
.chart .limit-txt { font-family: var(--mono); font-size: 10.5px; fill: var(--oxide); letter-spacing: .07em; font-weight: 500; }
.chart .peak-txt  { font-family: var(--mono); font-size: 11.5px; fill: var(--oxide); font-weight: 500; }
.chart .trace-ink { fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .dot       { fill: var(--oxide); }
.chart .dot-peak  { fill: var(--oxide); }
.chart .dot-ink   { fill: var(--ink); }
.chart .dot-cool  { fill: var(--survey); }
.chart .legend .trace,
.chart .legend .trace-ink { stroke-width: 2.4; }

/* ---------------------------------------------------------------- answer */

/* self-contained, quotable. tinted paper, hairline, no thick color bar */
.answer {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
  padding: clamp(22px, 3vw, 32px);
  margin: 0 0 2rem;
  max-width: 72ch;
}
.answer p { font-size: 1.06rem; max-width: none; }
.answer > .label { margin-bottom: 1rem; }

/* ---------------------------------------------------------------- specimen rows */

/* replaces the equal-card grid: a document's own list form */
.specimens { border-top: 1px solid var(--rule-strong); margin: 2.2rem 0 0; }
.specimen {
  display: grid; grid-template-columns: 7.5rem minmax(0,1fr) auto;
  gap: clamp(16px, 3vw, 40px); align-items: start;
  padding: clamp(22px, 3vw, 30px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit;
}
.specimen:hover { background: var(--paper-pure); }
.specimen:hover h3 { color: var(--survey); }
.specimen-key {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint);
  padding-top: .45rem;
}
.specimen h3 { margin-bottom: .35em; transition: color .18s ease; }
.specimen p { font-size: .97rem; color: var(--ink-soft); max-width: 58ch; margin: 0; }
.specimen-go { align-self: center; color: var(--ink-ghost); padding-top: .2rem; }
.specimen:hover .specimen-go { color: var(--survey); }
.specimen-go svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .specimen { grid-template-columns: 1fr auto; gap: 14px 20px; }
  .specimen-key { grid-column: 1 / -1; padding-top: 0; }
}

/* ---------------------------------------------------------------- tables */

.flush  { margin: 0; }
.spaced { margin-top: 2.4rem; }
.section-top { padding-top: clamp(56px, 10vw, 120px); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--paper-pure); margin: 2rem 0 1rem; max-width: 880px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 580px; }
caption {
  text-align: left; font-family: var(--display); font-style: italic;
  font-size: .95rem; color: var(--ink-faint); padding: 0 0 .9rem;
  max-width: 68ch;
}
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
thead th {
  font-family: var(--mono); font-size: .69rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid var(--rule-strong); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--paper-tint); }
td.num { white-space: nowrap; }

.flag {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .04em; white-space: nowrap;
}
.flag-hot { color: var(--oxide); }
.flag-ok  { color: var(--survey); }
.flag-hot::before, .flag-ok::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  margin-right: .5em; vertical-align: .08em; background: currentColor;
}

/* ---------------------------------------------------------------- record (timeline) */

.record { list-style: none; padding: 0; margin: 1.75rem 0 0; max-width: 820px; }
.record > li {
  display: grid; grid-template-columns: 9.5rem minmax(0,1fr);
  gap: clamp(14px, 2.5vw, 32px);
  padding: 1.5rem 0; border-top: 1px solid var(--rule);
  margin: 0;
}
.record > li:first-child { border-top: 1px solid var(--rule-strong); }
.record time {
  font-family: var(--mono); font-size: .77rem; font-weight: 500;
  letter-spacing: .04em; color: var(--ink-faint); padding-top: .3rem;
}
.record .hot time { color: var(--oxide); }
.record h3 { font-size: 1.14rem; margin-bottom: .3em; }
.record p { font-size: .96rem; color: var(--ink-soft); margin: 0; max-width: 60ch; }

@media (max-width: 640px) {
  .record > li { grid-template-columns: 1fr; gap: 6px; }
  .record time { padding-top: 0; }
}

/* ---------------------------------------------------------------- method */

.method { list-style: none; counter-reset: m; padding: 0; margin: 2.2rem 0 0; max-width: 820px; }
.method > li {
  counter-increment: m;
  display: grid; grid-template-columns: 3rem minmax(0,1fr); gap: clamp(14px,2.5vw,28px);
  padding: 1.4rem 0; border-top: 1px solid var(--rule); margin: 0;
}
.method > li:first-child { border-top: 1px solid var(--rule-strong); }
.method > li::before {
  content: counter(m, decimal-leading-zero);
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  color: var(--ink-ghost); padding-top: .32rem;
}
.method h3 { font-size: 1.12rem; margin-bottom: .3em; }
.method p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

/* ---------------------------------------------------------------- checks */

.checks { list-style: none; padding: 0; margin: 1.6rem 0; }
.checks li { display: flex; gap: .7em; align-items: baseline; }
.checks li svg { width: 13px; height: 13px; flex: none; color: var(--survey); translate: 0 .15em; }

/* ---------------------------------------------------------------- queries */

.queries { max-width: 820px; margin-top: 2rem; border-top: 1px solid var(--rule-strong); }
.queries details { border-bottom: 1px solid var(--rule); }
.queries summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1.15rem 2.6rem 1.15rem 0;
  font-family: var(--display); font-size: 1.14rem; font-weight: 500;
  letter-spacing: -.012em; color: var(--ink);
}
.queries summary::-webkit-details-marker { display: none; }
.queries summary:hover { color: var(--survey); }
.queries summary::after,
.queries summary::before {
  content: ""; position: absolute; right: 6px; top: 50%;
  background: var(--ink-faint); transition: transform .22s ease, background .18s ease;
}
.queries summary::after  { width: 13px; height: 1.5px; translate: 0 -50%; }
.queries summary::before { width: 1.5px; height: 13px; right: 11.75px; translate: 0 -50%; }
.queries details[open] summary::before { transform: scaleY(0); }
.queries summary:hover::after, .queries summary:hover::before { background: var(--survey); }
.queries .body { padding: 0 0 1.4rem; }
.queries .body p { font-size: .99rem; color: var(--ink-soft); max-width: 68ch; }

/* ---------------------------------------------------------------- closing */

.closing { background: var(--ink); color: var(--paper-tint); }
.closing h2 { color: var(--paper-pure); max-width: 24ch; }
.closing p { color: color-mix(in oklab, var(--paper-tint) 72%, transparent); max-width: 50ch; }
.closing .btn { background: var(--paper-pure); color: var(--ink); border-color: var(--paper-pure); }
.closing .btn:hover { background: var(--survey-tint); border-color: var(--survey-tint); color: var(--ink); }
.closing .btn-quiet { background: transparent; color: var(--paper-tint); border-color: color-mix(in oklab, var(--paper-tint) 36%, transparent); }
.closing .btn-quiet:hover { background: transparent; color: var(--paper-pure); border-color: var(--paper-pure); }
.closing a { color: var(--survey-tint); }
.closing .actions { margin-top: 2rem; }

/* ---------------------------------------------------------------- form */

.form-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,72px); align-items: start; }
@media (max-width: 880px) { .form-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .87rem; font-weight: 500; color: var(--ink); margin-bottom: .35rem; }
.field label .opt { font-weight: 400; color: var(--ink-faint); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 540px) { .pair { grid-template-columns: 1fr; gap: 0; } }

input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper-pure); border: 1px solid var(--rule-strong);
  padding: 11px 13px; border-radius: 0;
}
input::placeholder, textarea::placeholder { color: var(--ink-ghost); }
input:focus, select:focus, textarea:focus {
  border-color: var(--survey); outline: 2px solid color-mix(in oklab, var(--survey) 22%, transparent); outline-offset: 0;
}
textarea { min-height: 112px; resize: vertical; }
.form-note { font-size: .83rem; color: var(--ink-faint); margin-top: 1rem; max-width: 50ch; }

/* ---------------------------------------------------------------- colophon */

.colophon { background: var(--paper-deep); border-top: 1px solid var(--rule-strong); padding: clamp(44px,6vw,68px) 0 28px; font-size: .93rem; }
.colophon-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: clamp(24px,4vw,44px); }
@media (max-width: 900px) { .colophon-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .colophon-grid { grid-template-columns: 1fr; } }

.colophon h3 {
  font-family: var(--mono); font-size: .69rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 1rem;
}
.colophon ul { list-style: none; padding: 0; margin: 0; }
.colophon li { margin-bottom: .55em; }
.colophon a { color: var(--ink-soft); text-decoration: none; }
.colophon a:hover { color: var(--survey); text-decoration: underline; text-underline-offset: .2em; }
.colophon p { font-size: .92rem; color: var(--ink-soft); max-width: 36ch; }

.nap { font-style: normal; line-height: 1.75; margin-top: 1.1rem; color: var(--ink-soft); }
.nap .co { font-family: var(--display); font-size: 1.08rem; color: var(--ink); display: block; margin-bottom: .3rem; }
.nap .tel { font-size: 1rem; }

.colophon-base {
  margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid var(--rule-strong);
  display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-faint);
}

/* ---------------------------------------------------------------- crumbs + page head */

.crumbs { padding: 1.1rem 0 0; font-size: .82rem; color: var(--ink-faint); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45em; padding: 0; margin: 0; max-width: none; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .45em; color: var(--rule-strong); }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--survey); text-decoration: underline; text-underline-offset: .2em; }

.sheet-head { padding: clamp(28px,4vw,48px) 0 clamp(36px,5vw,56px); border-bottom: 1px solid var(--rule); }
.sheet-head h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 22ch; }
.sheet-head .lede { margin-top: 1rem; max-width: 60ch; }
.byline {
  margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .05em;
  color: var(--ink-faint); text-transform: uppercase;
  display: flex; flex-wrap: wrap; gap: .4em 1.6em;
}

/* ---------------------------------------------------------------- refs */

.refs { font-size: .88rem; color: var(--ink-faint); max-width: 74ch; }
.refs h3 {
  font-family: var(--mono); font-size: .69rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem;
}
.refs ol { max-width: none; padding-left: 1.4em; }
.refs li { margin-bottom: .5em; }
.stamp { font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); letter-spacing: .03em; }

/* ---------------------------------------------------------------- places */

.places { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 2rem 0 0; max-width: none; border-top: 1px solid var(--rule-strong); }
.places li { margin: 0; flex: 1 1 200px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.places a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1em;
  padding: 1rem 1.1rem 1rem 0; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-size: 1.1rem;
}
.places a:hover { color: var(--survey); background: var(--paper-pure); }
.places .util { font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); }
.places a:hover .util { color: var(--survey); }

/* ---------------------------------------------------------------- motion seats */

/* already-visible defaults: JS only enhances, nothing hides without it */
.m-rise { will-change: transform, opacity; }

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


/* ======================================================================
   DARK ZONES: the hero and the data act.
   Ink ground, paper type. The oxide band keeps its one job, marking
   readings over the federal limit.
   ====================================================================== */

.hero, .act { background: var(--ink); color: var(--paper-pure); position: relative; }
.hero *::selection, .act *::selection { background: var(--paper-pure); color: var(--ink); }

/* ---- hero ---- */
.hero {
  min-height: min(94svh, 880px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(96px, 16vh, 190px) 0 clamp(40px, 7vh, 76px);
  overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: clip; }
.hero-img { position: absolute; inset: -8% 0; will-change: transform; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(27,26,22,.88) 0%, rgba(27,26,22,.52) 34%,
                                rgba(27,26,22,.80) 74%, rgba(27,26,22,.96) 100%),
    linear-gradient(to right,  rgba(27,26,22,.90) 0%, rgba(27,26,22,.40) 62%,
                                rgba(27,26,22,.20) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-kicker {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--paper-tint); opacity: .78;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.9rem, 8.2vw, 6.4rem); line-height: .95;
  letter-spacing: -.021em; color: var(--paper-pure); margin: 0 0 1.1rem; text-wrap: balance;
}
.hero .lede { color: var(--paper-tint); max-width: 48ch; margin-bottom: 1.9rem; }
.hero-note { font-size: .88rem; color: var(--paper-tint); opacity: .72; margin-top: 1.3rem; max-width: 46ch; }
.btn-ghost {
  background: transparent; color: var(--paper-pure);
  border-color: color-mix(in oklab, var(--paper-pure) 42%, transparent);
}
.btn-ghost:hover {
  background: var(--paper-pure); color: var(--ink); border-color: var(--paper-pure);
}

.scroll-cue {
  position: relative; z-index: 1; margin: clamp(34px, 6vh, 64px) auto 0;
  width: 100%; max-width: var(--page); padding: 0 var(--gut);
  display: flex; align-items: center; gap: .8em;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper-tint); opacity: .6;
}
.scroll-cue i {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(var(--paper-tint), transparent);
}

/* ---- the data act: pinned, the trace draws as you scroll ---- */
.act { padding: 0; }
/* Was a 100svh pinned stage. It now sizes to its content and scrolls like
   any other section, so nothing holds the page still. */
.act-sticky { padding: clamp(56px, 9vh, 104px) 0; }
.act-inner { width: 100%; }
.act-head {
  display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 54px);
  align-items: flex-end; justify-content: space-between; margin-bottom: clamp(18px, 3vh, 34px);
}
.act .label { color: var(--paper-tint); opacity: .72; }
.act-tally { display: flex; align-items: baseline; gap: .7em; margin: 0; }
.act-tally b { align-self: baseline; }
.act-tally b {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(3.1rem, 8vw, 5.6rem); line-height: .82;
  color: var(--oxide-bright); font-variant-numeric: tabular-nums;
}
.act-tally span {
  font-size: clamp(.84rem, 1.5vw, .98rem); line-height: 1.38;
  color: var(--paper-tint); max-width: 30ch;
}
.act-fig { margin: 0; }
.act .chart { width: 100%; height: auto; max-height: 62svh; }
.act figcaption {
  font-family: var(--display); font-style: italic; font-size: clamp(.84rem, 1.4vw, .96rem);
  line-height: 1.5; color: var(--paper-tint); opacity: .76;
  max-width: 86ch; margin-top: 1.2rem;
}

/* chart, dark context */
.act .chart .grid-line { stroke: color-mix(in oklab, var(--paper-pure) 15%, transparent); }
.act .chart .axis      { stroke: color-mix(in oklab, var(--paper-pure) 32%, transparent); }
.act .chart .tick-txt  { fill: var(--paper-tint); opacity: .7; font-size: 21px; }
.act .chart .limit     { stroke: var(--oxide-bright); stroke-width: 2.5; }
.act .chart .limit-txt { fill: var(--oxide-bright); font-size: 20px; }
.act .chart .peak-txt  { fill: var(--oxide-bright); font-size: 24px; }
.act .chart .dot-peak  { fill: var(--oxide-bright); }
.act .chart .band-hot  { fill: var(--oxide-bright); opacity: .13; }
.act .chart .trace-ink { stroke: var(--paper-pure); stroke-width: 3.2; }
.act .chart .trace     { stroke: var(--survey-bright); stroke-width: 3.2; }
.act .chart .dot-ink   { fill: var(--paper-pure); }
.act .chart .dot-cool  { fill: var(--survey-bright); }
.act .chart .legend .trace,
.act .chart .legend .trace-ink { stroke-width: 4; }

/* ---- masthead sitting over the hero image ---- */
.masthead.over {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  background: transparent; border-bottom-color: transparent;
}
.masthead.over .mark-name,
.masthead.over nav a,
.masthead.over .burger { color: var(--paper-pure); }
.masthead.over .tel { color: var(--paper-pure) !important; }
.masthead.over .mark-loc { color: var(--paper-tint); opacity: .7; }
.masthead.over .burger { border-color: color-mix(in oklab, var(--paper-pure) 40%, transparent); }
.masthead.over nav a.btn {
  background: var(--paper-pure); color: var(--ink); border-color: var(--paper-pure);
}
.masthead.over nav a.btn:hover { background: var(--survey-bright); border-color: var(--survey-bright); color: var(--ink); }
/* once scrolled past the hero it becomes the normal bar */
.masthead.over.stuck {
  position: fixed; background: color-mix(in oklab, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.3) blur(9px);
  border-bottom-color: var(--rule);
}
.masthead.over.stuck .mark-name,
.masthead.over.stuck nav a,
.masthead.over.stuck .burger { color: var(--ink); }
.masthead.over.stuck .tel { color: var(--ink) !important; }
.masthead.over.stuck .mark-loc { color: var(--ink-faint); opacity: 1; }
.masthead.over.stuck nav a.btn { background: var(--ink); color: var(--paper-pure); border-color: var(--ink); }
.masthead.over.stuck .burger { border-color: var(--rule-strong); }

/* ======================================================================
   PHOTOGRAPHY
   ====================================================================== */
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule); background: var(--paper-tint);
}
.shot figcaption {
  font-family: var(--display); font-style: italic; font-size: .9rem;
  color: var(--ink-faint); margin-top: .75rem; max-width: 52ch; line-height: 1.5;
}
.shot-wide { max-width: 760px; margin: 0 0 2.6rem; }
.split {
  display: grid; grid-template-columns: 1fr minmax(280px, 42%);
  gap: clamp(26px, 5vw, 64px); align-items: start;
}
.stat-row {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: 1.6rem;
  font-size: .9rem; color: var(--ink-faint);
}
.stat-row b {
  display: block; font-family: var(--display); font-weight: 500;
  font-size: 2.1rem; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums; margin-bottom: .18em;
}

/* ======================================================================
   MOTION HOOKS
   Nothing here hides content by default. JS adds .m-on to <html> first,
   so with JS off or reduced motion on, every element is already visible.
   ====================================================================== */
.m-on .r,
.m-on .m-rise { will-change: transform, opacity; }
.m-on .r { opacity: 0; transform: translateY(26px); }
.m-on .m-rise { opacity: 0; }

.specimen { transition: transform .32s cubic-bezier(.22,1,.36,1), border-color .32s ease, background .32s ease; }
.specimen:hover { transform: translateY(-5px); background: var(--paper-pure); }
.specimen:hover .specimen-go { transform: translateX(4px); }
.specimen-go { transition: transform .32s cubic-bezier(.22,1,.36,1); }

tbody tr { transition: background .18s ease; }
tbody tr:hover { background: var(--paper-tint); }

@media (prefers-reduced-motion: reduce) {
  .m-on .r, .m-on .m-rise { opacity: 1; transform: none; }
  .specimen, .specimen-go, tbody tr { transition: none; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .shot-wide { margin-bottom: 2rem; }
  .act .chart { max-height: none; }
  .act-head { gap: 16px; }
}

.credits { margin: 1.4rem 0 2.6rem; }
.credits dt {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 1.5rem;
}
.credits dd {
  margin: .4rem 0 0; font-size: .95rem; color: var(--ink-soft);
  max-width: 68ch; line-height: 1.6;
}
