/* ==========================================================================
   Install Tech — installtech.org
   Aesthetic: "Spec sheet." Warm appliance-enamel ground, graphite structure,
   one accent — the safety yellow of a spirit level's bubble vial. Archivo
   Black signage display against IBM Plex Sans body and IBM Plex Mono spec
   labels. Depth strategy: hairline borders only, never shadows.

   Every color pair below was verified with the frontend-design Prolog
   contrast door (nls_answer_fd/contrast_pass). Ratios are noted inline.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted, latin subset. Zero third-party requests.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo Black";
  src: url("../fonts/archivo-black-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-var.woff2") format("woff2-variations");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* --- Surfaces and ink (light: appliance enamel) --- */
  --enamel:      #f4f2ee;  /* page ground                                    */
  --panel:       #eae7e1;  /* recessed panel                                 */
  --ink:         #23282e;  /* primary text            13.27:1 on enamel      */
  --steel:       #5e6770;  /* secondary text           5.14:1 on enamel      */
  --gauge:       #7e8388;  /* form-control borders     3.42:1 (WCAG 1.4.11)  */
  --brushed:     #d5d2cc;  /* decorative hairline                            */

  /* --- The one accent: a spirit level's bubble vial --- */
  --vial:        #f2b705;  /* accent fill              8.16:1 with graphite  */
  --vial-ink:    #7a5900;  /* accent as text           5.76:1 on enamel      */

  /* --- Fixed dark surface, identical in both themes --- */
  --graphite:    #23282e;
  --graphite-up: #2e353d;  /* whisper-quiet raise, not a jump                */
  --on-graphite: #f4f2ee;  /*                         13.27:1 on graphite    */
  --steel-up:    #a0a8b0;  /*                          6.89:1 on graphite    */

  /* --- Spacing scale --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* --- Type --- */
  --face-display: "Archivo Black", "Arial Black", sans-serif;
  --face-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --face-spec: "IBM Plex Mono", ui-monospace, monospace;

  --size-spec:  0.75rem;
  --size-small: 0.875rem;
  --size-body:  1.0625rem;
  --size-lead:  clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --size-h3:    clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --size-h2:    clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  --size-h1:    clamp(2.75rem, 1.4rem + 5.6vw, 5.75rem);

  /* --- Structure --- */
  --measure: 68rem;
  --measure-prose: 38rem;
  --rule: 1px solid var(--brushed);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --enamel:  #1a1f24;
    --panel:   #232930;
    --ink:     #e8e5df;  /* 13.20:1 on night ground */
    --steel:   #a0a8b0;  /*  6.89:1 on night ground */
    --gauge:   #7e8388;
    --brushed: #333b44;
    --vial-ink: #f2b705; /*  9.12:1 on night ground */
    --graphite:    #12171c;
    --graphite-up: #1c2228;
  }
}

/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--enamel);
  color: var(--ink);
  font-family: var(--face-body);
  font-size: var(--size-body);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--vial);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   4. Primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
}
@media (min-width: 48rem) {
  .wrap { width: min(100% - 5rem, var(--measure)); }
}

.section { padding-block: var(--space-7); }
@media (min-width: 48rem) { .section { padding-block: var(--space-8); } }

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

.skip-link {
  position: absolute; inset-inline-start: var(--space-4); inset-block-start: -100%;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--vial); color: var(--graphite);
  font-family: var(--face-spec); font-size: var(--size-spec);
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { inset-block-start: var(--space-3); }

/* Spec label — mono, uppercase, tracked. The recurring caption voice. */
.spec {
  font-family: var(--face-spec);
  font-size: var(--size-spec);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.spec--accent { color: var(--vial-ink); }

h1, h2, h3 { font-weight: 400; line-height: 1.05; text-wrap: balance; }
h1 { font-family: var(--face-display); font-size: var(--size-h1); letter-spacing: -0.03em; }
h2 { font-family: var(--face-display); font-size: var(--size-h2); letter-spacing: -0.02em; }
h3 { font-family: var(--face-body); font-weight: 600; font-size: var(--size-h3); line-height: 1.3; }

p { text-wrap: pretty; }
.lead { font-size: var(--size-lead); color: var(--steel); max-width: var(--measure-prose); }

/* --------------------------------------------------------------------------
   5. SIGNATURE — the level vial
   A hairline brushed rule carrying a yellow bubble that sits dead center.
   -------------------------------------------------------------------------- */
.level {
  position: relative;
  height: 10px;
  border-block-start: var(--rule);
  margin-block: var(--space-7) 0;
}
.level::before {
  content: "";
  position: absolute;
  inset-block-start: -5px;
  inset-inline-start: 50%;
  translate: -50% 0;
  width: 42px; height: 9px;
  border-radius: 5px;
  background: var(--vial);
}
.level::after {
  content: "";
  position: absolute;
  inset-block-start: -5px;
  inset-inline-start: 50%;
  translate: -50% 0;
  width: 62px; height: 9px;
  border-inline: 1px solid var(--gauge);
}

/* --------------------------------------------------------------------------
   6. Header — transparent, sitting on the hero plate
   -------------------------------------------------------------------------- */
.hero-media {
  position: relative; isolation: isolate;
  background: var(--graphite); color: var(--on-graphite);
}

.masthead {
  position: absolute; inset-block-start: 0; inset-inline: 0; z-index: 3;
}
.masthead__bar {
  display: flex; align-items: center; gap: var(--space-4);
  min-height: 4.5rem;
}

.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.05em;
  font-family: var(--face-display);
  font-size: 1.25rem; letter-spacing: -0.02em;
  text-decoration: none; text-transform: uppercase;
  margin-inline-end: auto;
}
.wordmark__b { color: var(--vial-ink); }
.wordmark::after {
  content: ""; align-self: center;
  width: 18px; height: 6px; margin-inline-start: 0.5em;
  border-radius: 3px; background: var(--vial);
}
/* On the dark plate the wordmark inverts */
.hero-media .wordmark { color: var(--on-graphite); }
.hero-media .wordmark__b { color: var(--vial); }

.nav__list {
  display: flex; gap: var(--space-5);
  list-style: none; padding: 0; margin: 0;
}
.nav__link {
  font-family: var(--face-spec); font-size: var(--size-spec);
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel); text-decoration: none;
  padding-block: var(--space-2);
  border-block-end: 2px solid transparent;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--ink); border-block-end-color: var(--vial); }
.hero-media .nav__link { color: var(--on-graphite); }
.hero-media .nav__link:hover,
.hero-media .nav__link:focus-visible { color: var(--on-graphite); border-block-end-color: var(--vial); }

/* Mobile disclosure — native <details>, works with JavaScript disabled */
.nav-disclosure { position: relative; }
.nav-disclosure > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--face-spec); font-size: var(--size-spec);
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: var(--space-2) var(--space-3); white-space: nowrap;
  border: 1px solid var(--steel-up); border-radius: var(--radius);
  color: var(--on-graphite);
}
.nav-disclosure > summary::-webkit-details-marker { display: none; }
.nav-disclosure > summary::after {
  content: ""; width: 14px; height: 2px; background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}
.nav-disclosure[open] > summary::after { box-shadow: none; rotate: 45deg; }
.nav-disclosure__panel {
  position: absolute; inset-block-start: calc(100% + var(--space-3));
  inset-inline-end: 0; min-width: 14rem; z-index: 4;
  background: var(--enamel); color: var(--ink);
  border: var(--rule); border-radius: var(--radius);
  padding: var(--space-3);
}
.nav-disclosure__panel .nav__list { flex-direction: column; gap: 0; }
.nav-disclosure__panel .nav__link { display: block; padding: var(--space-3); border-block-end: 0; color: var(--steel); }
.nav-disclosure__panel .nav__link:hover { color: var(--ink); }

.nav--wide { display: none; }
@media (min-width: 56rem) {
  .nav--wide { display: block; }
  .nav-disclosure { display: none; }
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  font-family: var(--face-spec); font-size: var(--size-spec);
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease),
              border-color 160ms var(--ease);
}
.btn--vial { background: var(--vial); color: var(--graphite); border-color: var(--vial); }
.btn--vial:hover { background: color-mix(in srgb, var(--vial) 84%, var(--graphite)); }
.btn--outline { border-color: var(--gauge); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: var(--panel); }
.btn--ghost { border-color: var(--on-graphite); color: var(--on-graphite); background: transparent; }
.btn--ghost:hover { border-color: var(--on-graphite); background: rgb(255 255 255 / 0.08); }
.btn--block { width: 100%; }
.btn--lg { padding: var(--space-4) var(--space-6); }

/* The phone number is the primary object on this site, not a "Get Started" pair */
.tel {
  font-family: var(--face-display);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  letter-spacing: -0.02em; text-decoration: none;
  display: inline-block;
  border-block-end: 3px solid var(--vial);
  padding-block-end: 2px;
}
.tel:hover { background: var(--vial); }

/* The header call button collapses to one word on a narrow viewport */
.masthead__tel-short { display: inline; }
.masthead__tel-long { display: none; }
@media (min-width: 30rem) {
  .masthead__tel-short { display: none; }
  .masthead__tel-long { display: inline; }
}
@media (max-width: 26rem) {
  .masthead__bar { gap: var(--space-3); }
  /* The summary keeps its aria-label, so hiding the word costs no meaning */
  .nav-disclosure > summary > span { display: none; }
  .nav-disclosure > summary { gap: 0; }
}

/* --------------------------------------------------------------------------
   8. Hero — full-bleed photograph, centred type, header overlaid
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid; align-items: center;
  min-height: clamp(30rem, 84svh, 46rem);
  padding-block: calc(4.5rem + var(--space-8)) var(--space-9);
  text-align: center;
  overflow: hidden;
}

.hero__media, .band__media { position: absolute; inset: 0; z-index: 0; display: block; }
.hero__media img, .band__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
}

/* Scrim: dark enough for AA text, light enough to keep the photograph readable */
.hero__scrim, .band__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--graphite) 82%, transparent) 0%,
      color-mix(in srgb, var(--graphite) 72%, transparent) 38%,
      color-mix(in srgb, var(--graphite) 86%, transparent) 100%);
}

.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-block; margin: 0 0 var(--space-5);
  padding: 0.45em 0.9em;
  background: var(--vial); color: var(--graphite);
  border-radius: var(--radius);
}
.hero__title { color: var(--on-graphite); text-wrap: balance; }
.hero__sub {
  font-size: var(--size-lead); color: var(--on-graphite);
  max-width: 40rem; margin: var(--space-5) auto 0; text-wrap: pretty;
}
.hero__call {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  font-family: var(--face-spec); font-size: var(--size-spec);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-graphite); margin-block-start: var(--space-6);
}
.hero__call a {
  font-family: var(--face-display); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  letter-spacing: -0.02em; text-transform: none;
  display: inline-block;
  color: var(--on-graphite); text-decoration: none;
  border-block-end: 4px solid var(--vial); padding-block-end: 2px;
}
.hero__call a:hover { background: var(--vial); color: var(--graphite); }
.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-4); margin-block-start: var(--space-6);
}

/* --------------------------------------------------------------------------
   9. Trust row — a slim inline strip, not a card row
   -------------------------------------------------------------------------- */
.trust {
  border-block-start: var(--rule);
  padding-block: var(--space-4);
}
.trust__list {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6);
  list-style: none; padding: 0; margin: 0;
}
.trust__list li { display: flex; align-items: center; gap: var(--space-3); }
.trust__list li::before {
  content: ""; width: 2px; height: 12px; background: var(--vial);
}

/* --------------------------------------------------------------------------
   10. Section headers
   -------------------------------------------------------------------------- */
.section__head { margin-block-end: var(--space-6); }
.section__head .spec { display: block; margin-block-end: var(--space-3); }
.section__head h2 + .lead { margin-block-start: var(--space-4); }
.section__head--center {
  text-align: center;
  max-width: 46rem; margin-inline: auto;
}
.section__head--center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   11. Services — a spec-sheet table, not a three-card grid
   -------------------------------------------------------------------------- */
.specsheet {
  border-block-start: 2px solid var(--ink);
  /* tape-measure ticks along the top edge */
  background-image: repeating-linear-gradient(
    to right, var(--brushed) 0 1px, transparent 1px 12px);
  background-repeat: no-repeat;
  background-size: 100% 6px;
  background-position: 0 0;
  padding-block-start: var(--space-5);
}
.specsheet__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0;
}
@media (min-width: 48rem) {
  .specsheet__list { grid-template-columns: 1fr 1fr; column-gap: var(--space-8); }
}
.specsheet__row {
  display: grid; grid-template-columns: 2.5rem 1fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-block-end: var(--rule);
}
.specsheet__no {
  font-family: var(--face-spec); font-size: var(--size-spec);
  font-weight: 500; color: var(--vial-ink);
  padding-block-start: 0.35em;
}
.specsheet__row h3 { margin-block-end: var(--space-2); }
.specsheet__row p { font-size: var(--size-small); color: var(--steel); margin: 0; }

/* --------------------------------------------------------------------------
   12. About — photograph, headline, description. Three of them.
   -------------------------------------------------------------------------- */
.about { display: grid; gap: var(--space-7); }
@media (min-width: 44rem) { .about { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .about { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }

.about__item { display: grid; gap: var(--space-4); align-content: start; }
/* Line the photograph, the headline and the paragraph up across all three
   columns, so a one-line headline does not lift its paragraph out of step. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 44rem) {
    .about { grid-template-rows: auto auto auto; }
    .about__item { grid-row: span 3; grid-template-rows: subgrid; }
  }
}
.about__plate {
  border: var(--rule); background: var(--panel);
  aspect-ratio: 4 / 3; overflow: hidden;
}
.about__plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__item h3 { font-size: var(--size-h3); text-wrap: balance; }
.about__item p { color: var(--steel); margin: 0; font-size: var(--size-small); }

/* --------------------------------------------------------------------------
   13. Band — a graphite section over a photograph
   -------------------------------------------------------------------------- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--graphite); color: var(--on-graphite);
}
.band > .wrap { position: relative; z-index: 2; }
.band .lead, .band p { color: var(--steel-up); }
.band .spec { color: var(--steel-up); }
.band h2, .band h3 { color: var(--on-graphite); }

/* --------------------------------------------------------------------------
   14. Gallery — square photographs of finished work, with a spec caption
   -------------------------------------------------------------------------- */
.gallery { display: grid; gap: var(--space-5); }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery figure { margin: 0; display: grid; gap: var(--space-4); }
.gallery picture {
  display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border: var(--rule); background: var(--panel);
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: scale 600ms var(--ease);
}
@media (min-width: 62rem) {
  .gallery figure:hover img { scale: 1.03; }
}
.gallery figcaption { font-size: var(--size-small); }
.gallery figcaption b { display: block; font-weight: 600; }
.gallery figcaption span { color: var(--steel); }

/* --------------------------------------------------------------------------
   15. Reviews
   -------------------------------------------------------------------------- */
.reviews {
  display: grid; gap: var(--space-6);
  list-style: none; padding: 0; margin: 0;
}
@media (min-width: 48rem) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.reviews figure {
  margin: 0; padding-block-start: var(--space-4);
  border-block-start: 2px solid var(--vial);
  display: grid; gap: var(--space-3); align-content: start;
}
.reviews__head { color: var(--vial-ink); margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.reviews__rating { margin: 0; line-height: 0; }
/* --vial-ink, not --vial: the bright yellow measures 1.62:1 on the enamel
   ground and fails WCAG 1.4.11 for a graphic that carries meaning. The token
   flips to bright yellow in dark mode, where it measures 9.12:1. */
.stars { width: 5.75rem; height: auto; fill: var(--vial-ink); }
.reviews blockquote { margin: 0; }
.reviews blockquote p { font-size: var(--size-small); margin: 0; }
.reviews figcaption { color: var(--steel); }
.reviews cite { font-style: normal; color: var(--ink); }
.reviews time { display: block; margin-block-start: var(--space-1); }


/* --------------------------------------------------------------------------
   16. Contact — the banner carries the phone; the form sits on a light card
   -------------------------------------------------------------------------- */
.contact__grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 62rem) {
  .contact__grid { grid-template-columns: 1fr 1.05fr; gap: var(--space-8); }
}

.contact__info { display: grid; gap: var(--space-5); align-content: start; }
.contact__tel {
  font-family: var(--face-display);
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  letter-spacing: -0.02em; line-height: 1;
  color: var(--vial); text-decoration: none;
  justify-self: start;
  border-block-end: 3px solid var(--vial); padding-block-end: var(--space-2);
}
.contact__tel:hover { background: var(--vial); color: var(--graphite); }
.contact__note { max-width: var(--measure-prose); margin: 0; }

.contact__rows { margin: 0; padding: 0; border-block-start: 1px solid var(--graphite-up); }
.contact__rows div {
  display: grid; gap: var(--space-1);
  padding-block: var(--space-4);
  border-block-end: 1px solid var(--graphite-up);
}
@media (min-width: 30rem) {
  .contact__rows div { grid-template-columns: 9rem 1fr; gap: var(--space-4); align-items: baseline; }
}
.contact__rows dt {
  font-family: var(--face-spec); font-size: var(--size-spec);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-up);
}
.contact__rows dd { margin: 0; font-size: var(--size-small); color: var(--on-graphite); }
.contact__rows a { color: var(--vial); text-underline-offset: 3px; }

.next-up { border-block-start: 2px solid var(--vial); padding-block-start: var(--space-4); }
.next-up ol {
  margin: var(--space-3) 0 0; padding-inline-start: var(--space-5);
  display: grid; gap: var(--space-2);
  font-size: var(--size-small); color: var(--steel-up);
}

/* The form card — a light panel on the dark band, so every verified
   form-control contrast pair still holds. */
.card {
  background: var(--enamel); color: var(--ink);
  border: var(--rule); border-radius: var(--radius);
  padding: var(--space-6);
}
@media (min-width: 40rem) { .card { padding: var(--space-7); } }
.card__title {
  font-size: var(--size-h3); margin-block-end: var(--space-5);
  padding-block-end: var(--space-4); border-block-end: var(--rule);
}
.band .card p { color: var(--steel); }

.field { display: grid; gap: var(--space-2); margin-block-end: var(--space-5); }
.field label { font-family: var(--face-spec); font-size: var(--size-spec);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.field label .req { color: var(--vial-ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--size-body); color: var(--ink);
  background: var(--enamel);
  border: 1px solid var(--gauge); border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  transition: border-color 160ms var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1.15rem center, right 0.85rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: var(--space-8);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field__hint { font-size: var(--size-small); color: var(--steel); }
.field__error { font-size: var(--size-small); color: var(--vial-ink); font-weight: 600; }
.field__error:empty { display: none; }
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--vial-ink); border-width: 2px; }

.form__summary {
  display: none; border-inline-start: 3px solid var(--vial-ink);
  background: var(--panel); padding: var(--space-4);
  margin-block-end: var(--space-5);
}
.form__summary:not([hidden]) { display: block; }
.form__summary h3 { font-family: var(--face-body); font-weight: 600; font-size: var(--size-body); margin-block-end: var(--space-2); }
.form__summary ul { margin: 0; padding-inline-start: var(--space-5); font-size: var(--size-small); }
.form__status { margin-block-start: var(--space-4); font-size: var(--size-small); }
.form__status:empty { display: none; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.colophon {
  background: var(--graphite); color: var(--on-graphite);
  padding-block: var(--space-7);
  margin-block-start: var(--space-9);
}
.colophon a { color: var(--on-graphite); }
.colophon .wordmark { color: var(--on-graphite); }
.colophon .wordmark__b { color: var(--vial); }
.colophon__grid { display: grid; gap: var(--space-6); }
@media (min-width: 48rem) {
  .colophon__grid { grid-template-columns: 1fr auto; align-items: start; }
}
.colophon__meta { display: grid; gap: var(--space-3); }
.colophon__meta .spec { color: var(--steel-up); }
.colophon__links { display: flex; flex-wrap: wrap; gap: var(--space-5); list-style: none; padding: 0; margin: 0; }

/* --------------------------------------------------------------------------
   18. Legal pages
   -------------------------------------------------------------------------- */
.prose { max-width: var(--measure-prose); display: grid; gap: var(--space-5); }
.prose h2 { font-size: var(--size-h3); font-family: var(--face-body); font-weight: 600; margin-block-start: var(--space-5); }
.prose ul { padding-inline-start: var(--space-5); display: grid; gap: var(--space-2); }

/* --------------------------------------------------------------------------
   19. Motion — high-impact moments only, always opt-out aware
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* The vial settles level on load — the signature moment */
  .level::before { animation: vial-settle 1100ms var(--ease) both; }
  @keyframes vial-settle {
    0%   { translate: -320% 0; }
    70%  { translate: -20% 0; }
    100% { translate: -50% 0; }
  }

  /* Staggered reveal. Both paths are the SAME animation, so the only thing
     JavaScript changes is the delay. If the observer never runs — script
     blocked, slow, or failed — the 2.5s fallback delay still brings the
     content in. Content is never left permanently invisible. */
  @keyframes reveal-in {
    from { opacity: 0; translate: 0 12px; }
    to   { opacity: 1; translate: 0 0; }
  }
  .reveal        { animation: reveal-in 620ms var(--ease) 2500ms both; }
  .reveal.is-in  { animation: reveal-in 620ms var(--ease) var(--delay, 0ms) both; }

  .specsheet__row { transition: background-color 160ms var(--ease); }
  .specsheet__row:hover { background: var(--panel); }
}

/* Off-screen work the browser can skip */
.defer { content-visibility: auto; contain-intrinsic-size: auto 640px; }

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  .masthead, .nav-disclosure, .skip-link, form { display: none; }
  body { background: #fff; color: #000; }
  .band, .colophon, .card { background: #fff; color: #000; border: 1px solid #000; }
  .hero__media, .band__media, .hero__scrim, .band__scrim { display: none; }
  .hero { min-height: 0; padding-block: var(--space-6); }
  .hero__title, .hero__sub, .hero__call, .band h2, .band h3, .band p { color: #000; }
}
