@charset "utf-8";
/* ═══════════════════════════════════════════════════════════════════════════
   Localsmith Home Services
   1. Tokens   2. Reset   3. Type   4. Layout   5. Components
   6. Sections 7. Form    8. Motion 9. Responsive

   The drawing conventions carry the brand: hairlines, tick rules, crop marks
   at panel corners, dimension callouts, a monospaced display face. There is no
   hero photograph — the hero is a drawn section through a house.
   ═══════════════════════════════════════════════════════════════════════════ */

@import url("_lqip.css");

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Two signals, never more. Blue is the system; copper is the exception. */
  --blue:        #4a91e8;   /* 5.4:1 on blueprint */
  --blue-deep:   #14539e;   /* 6.5:1 on vellum    */
  --copper:      #ef8a4e;   /* 7.0:1 on blueprint */
  --copper-deep: #a1430e;   /* 5.4:1 on vellum    */

  /* Monospace sets wide, so the display steps run smaller than a serif would. */
  --t-display: clamp(2.15rem, 0.9rem + 4.4vw, 4.4rem);
  --t-h2:      clamp(1.65rem, 1.05rem + 2.1vw, 2.85rem);
  --t-h3:      clamp(1.1rem, 1rem + 0.45vw, 1.38rem);
  --t-lede:    clamp(1.04rem, 0.98rem + 0.34vw, 1.22rem);
  --t-body:    clamp(0.98rem, 0.95rem + 0.16vw, 1.05rem);
  --t-small:   0.78rem;
  --t-tiny:    clamp(0.72rem, 0.68rem + 0.12vw, 0.78rem);

  --shell: 84rem;
  --gut:   clamp(1.15rem, 0.5rem + 2.6vw, 3.25rem);
  --sec-y: clamp(4.5rem, 2.8rem + 7vw, 9.5rem);
  --rule:  1px;

  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Drafting grid. Two gradients at 90 degrees, one heavier line every fifth. */
  --grid-fine: 28px;
  --grid-bold: 140px;

  color-scheme: dark;
}

[data-ground="blueprint"] {
  --bg:      #0a1a2f;
  --raise:   #0f2439;
  --line:    #1e3a57;
  --line-2:  #2c5077;
  --ink:     #e8f0f8;
  --mute:    #93aac2;   /* 7.4:1 */
  --acc:     var(--blue);
  --on-acc:  #05101d;
  --acc-2:   var(--copper);
  --err:     #ff9f87;
  --ok:      #74d6b4;
  --grid-op: .055;
}
[data-ground="vellum"] {
  --bg:      #e9eef4;
  --raise:   #ffffff;
  --line:    #ccd8e4;
  --line-2:  #aabdd0;
  --ink:     #0d1b2a;
  --mute:    #4d6377;   /* 5.3:1 */
  --acc:     var(--blue-deep);
  --on-acc:  #f4f8fc;
  --acc-2:   var(--copper-deep);
  --err:     #a32b13;
  --ok:      #106b4f;
  --grid-op: .42;
}

/* ── 2. Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

@font-face {
  font-family: "Azeret Mono"; src: url("/assets/fonts/azeret-mono.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans"; src: url("/assets/fonts/public-sans.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

/* scroll-padding-top, not scroll-margin on each target: the nav is fixed, so
   without it every in-page link scrolls its heading to y=0 and straight under
   an opaque bar. Measured at 69-75px across this family. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: #0a1a2f;
  color: #e8f0f8;
  font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  line-height: 1.62;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--blue); color: #05101d; }

[hidden] { display: none !important; }

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

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

.skip {
  position: fixed; top: 0; left: 50%; translate: -50% -140%;
  z-index: 200; padding: .8rem 1.35rem;
  background: var(--blue); color: #05101d;
  font-family: "Azeret Mono", monospace; font-weight: 700;
  font-size: .82rem; letter-spacing: -.02em;
  transition: translate .25s var(--ease);
}
.skip:focus { translate: -50% 0; }

/* ── 3. Type ───────────────────────────────────────────────────────────── */
.h1, .h2, .h3, h1, h2, h3 {
  font-family: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; line-height: 1.04; letter-spacing: -.055em;
  text-wrap: balance;
}
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -.04em; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }

/* Every small label on the page is monospaced and tracked out — the one
   typographic move that makes the whole thing read as a drawing. */
.label {
  font-family: "Azeret Mono", monospace;
  font-size: var(--t-small); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute);
}
.label--acc { color: var(--acc); }
.tag {
  font-family: "Azeret Mono", monospace;
  font-size: var(--t-tiny); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.nowrap { white-space: nowrap; }
.sep { opacity: .45; padding-inline: .35em; }

.sec-head { max-width: 47rem; margin-bottom: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); }
.sec-head .h2 { margin-top: .95rem; }
.sec-head__lede { margin-top: 1.15rem; color: var(--mute); font-size: var(--t-lede); max-width: 38rem; }

/* ── 4. Layout ─────────────────────────────────────────────────────────── */
.shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto; padding-inline: var(--gut);
  position: relative; z-index: 2;
}

section[data-ground], .ticker, .foot {
  position: relative;
  background: var(--bg);
  color: var(--ink);
}

/* Drafting grid, above the ground and below the content. Deliberately NOT
   applied with `section > *` — that outranks position:absolute on the
   full-bleed media layers and drops them into normal flow. */
section[data-ground]::before, .foot::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--line) var(--rule), transparent var(--rule)),
    linear-gradient(to bottom, var(--line) var(--rule), transparent var(--rule));
  background-size: var(--grid-fine) var(--grid-fine);
  opacity: var(--grid-op);
}

/* A ruler between bands: one hairline with a tick every 56px. */
.rule-tick {
  position: relative; height: 9px;
  border-top: var(--rule) solid var(--line);
  background-image: linear-gradient(to right, var(--line) var(--rule), transparent var(--rule));
  background-size: 56px 5px; background-repeat: repeat-x;
}

/* Crop marks. Four L-brackets set just outside a panel's corners, the way a
   drawing is trimmed. This is the corner treatment everywhere — no radii. */
.crop { position: relative; }
.crop::before, .crop::after {
  content: ""; position: absolute; width: 11px; height: 11px;
  border: var(--rule) solid var(--acc); pointer-events: none;
}
.crop::before { top: -5px;  left: -5px;  border-right: 0; border-bottom: 0; }
.crop::after  { bottom: -5px; right: -5px; border-left: 0;  border-top: 0;  }

/* ── 5. Components ─────────────────────────────────────────────────────── */

/* Photography — one cool grade for every frame on the page, which is what
   stops a set of stock photographs looking like a set of stock photographs. */
.ph {
  position: relative; display: block; overflow: hidden;
  background-image: var(--lqip);
  background-size: cover; background-position: center;
  isolation: isolate;
}
.ph picture { display: block; width: 100%; height: 100%; }
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.72) contrast(1.08) brightness(.95);
  opacity: 0; transition: opacity .6s var(--ease), scale 1.2s var(--ease);
}
.ph img.is-loaded { opacity: 1; }
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(196deg, rgba(74,145,232,.26) 0%, rgba(74,145,232,0) 55%),
    linear-gradient(0deg,   rgba(10,26,47,.5)   0%, rgba(10,26,47,0)   58%);
  mix-blend-mode: soft-light;
}
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--door     { aspect-ratio: 16 / 10; }
.ph--classic  { aspect-ratio: 4 / 3; }

/* Buttons — square, with a drawn feel. No radius anywhere on this site. */
.btn {
  --pad: .78rem 1.35rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: var(--pad);
  font-family: "Azeret Mono", monospace;
  font-size: .8rem; font-weight: 700; letter-spacing: -.02em;
  border: var(--rule) solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), translate .28s var(--ease);
}
.btn--lg   { --pad: .98rem 1.7rem; font-size: .86rem; }
.btn--full { width: 100%; }
.btn--solid { background: var(--acc); color: var(--on-acc); }
.btn--solid:hover { background: var(--ink); color: var(--bg); }
.btn--line { border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--acc); color: var(--acc); }
.btn:active { translate: 0 1px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  border-bottom: var(--rule) solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav::before { content: none; }
.nav.is-stuck {
  background: color-mix(in oklab, #0a1a2f 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-2);
}
.nav__in { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2.2rem); min-height: 68px; }
.nav__links { display: flex; gap: clamp(.9rem, 1.8vw, 1.7rem); margin-inline: auto; }
.nav__links a {
  position: relative; padding-block: .35rem;
  font-family: "Azeret Mono", monospace;
  font-size: .76rem; font-weight: 500; letter-spacing: -.01em;
  color: var(--mute); transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--acc); scale: 0 1; transform-origin: right;
  transition: scale .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-here { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-here::after { scale: 1 1; transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: .45rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.brand__mark { width: 27px; height: 27px; color: var(--acc); flex: none; }
.brand__word {
  display: flex; flex-direction: column; line-height: 1;
  font-family: "Azeret Mono", monospace; font-weight: 700;
  font-size: 1.02rem; letter-spacing: -.06em;
}
.brand__sub {
  font-family: "Public Sans", sans-serif; font-size: .55rem; font-weight: 600;
  letter-spacing: .21em; text-transform: uppercase; color: var(--mute);
  margin-top: .32rem;
}

.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav__bar {
  display: block; width: 21px; height: 2px; background: var(--ink); margin-inline: auto;
  transition: translate .25s var(--ease), rotate .25s var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__bar:first-child { translate: 0 3.5px; rotate: 45deg; }
.nav__toggle[aria-expanded="true"] .nav__bar:last-child  { translate: 0 -3.5px; rotate: -45deg; }

.menu {
  display: flex; flex-direction: column;
  padding: .4rem var(--gut) 1.8rem;
  background: #0a1a2f; border-top: var(--rule) solid var(--line-2);
}
.menu a {
  padding: .95rem 0; border-bottom: var(--rule) solid var(--line);
  font-family: "Azeret Mono", monospace; font-size: .92rem; letter-spacing: -.03em;
}
.menu__cta { color: var(--blue); }

/* ── 6. Sections ───────────────────────────────────────────────────────── */

/* Hero — a drawn section through a house, not a photograph. */
.hero { padding-block: 7.5rem clamp(2.5rem, 1.5rem + 3vw, 4rem); overflow: hidden; }
.hero__grid {
  display: grid; gap: clamp(2.2rem, 1rem + 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}
.hero__h { font-size: var(--t-display); margin: 1.2rem 0 0; }
.hero__h em { font-style: normal; color: var(--acc); }
.hero__lede {
  margin-top: 1.4rem; max-width: 33rem;
  color: var(--mute); font-size: var(--t-lede);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.hero__aside { display: flex; flex-direction: column; min-width: 0; }

/* The drawing itself */
.dwg { position: relative; }
.dwg svg { width: 100%; height: auto; display: block; }
.dwg .dwg__paper { fill: var(--raise); stroke: var(--line-2); stroke-width: 1; }
.dwg .ln   { stroke: var(--line-2); stroke-width: 1.4; fill: none; }
.dwg .ln-2 { stroke: var(--line-2); stroke-width: 1; fill: none; opacity: .7; }
.dwg .dash { stroke: var(--line-2); stroke-width: 1; fill: none; stroke-dasharray: 5 4; opacity: .75; }
.dwg .hot  { stroke: var(--acc); stroke-width: 1.6; fill: none; }
.dwg .fillhot { fill: var(--acc); }
.dwg .dot  { fill: var(--bg); stroke: var(--acc); stroke-width: 1.6; }
.dwg .key  {
  fill: var(--acc); font-family: "Azeret Mono", monospace;
  font-size: 17px; font-weight: 700; text-anchor: middle;
}
.dwg .stamp {
  fill: var(--mute); font-family: "Azeret Mono", monospace;
  font-size: 13px; letter-spacing: .12em;
}

/* Linked callouts. Hovering or focusing a legend row, or a key in the drawing,
   sets data-on on the figure; everything keyed dims except the matching set,
   which switches to the copper exception colour. */
.dwg [data-k] { transition: opacity .25s var(--ease), stroke .25s var(--ease), fill .25s var(--ease); }
.dwg[data-on] [data-k] { opacity: .2; }
.dwg[data-on="A"] [data-k="A"], .dwg[data-on="B"] [data-k="B"], .dwg[data-on="C"] [data-k="C"],
.dwg[data-on="D"] [data-k="D"], .dwg[data-on="E"] [data-k="E"] { opacity: 1; stroke: var(--acc-2); }
.dwg[data-on="A"] .callout[data-k="A"] .dot, .dwg[data-on="B"] .callout[data-k="B"] .dot,
.dwg[data-on="C"] .callout[data-k="C"] .dot, .dwg[data-on="D"] .callout[data-k="D"] .dot,
.dwg[data-on="E"] .callout[data-k="E"] .dot { fill: var(--acc-2); stroke: var(--acc-2); }
.dwg[data-on="A"] .callout[data-k="A"] .key, .dwg[data-on="B"] .callout[data-k="B"] .key,
.dwg[data-on="C"] .callout[data-k="C"] .key, .dwg[data-on="D"] .callout[data-k="D"] .key,
.dwg[data-on="E"] .callout[data-k="E"] .key { fill: var(--bg); stroke: none; }
.dwg .callout { cursor: pointer; }
.legend a.is-lit { color: var(--ink); background: var(--raise); }
.legend a.is-lit .legend__k { color: var(--acc-2); }

.legend { display: grid; gap: 0; margin-top: 1.4rem; border-top: var(--rule) solid var(--line); }
.legend li { border-bottom: var(--rule) solid var(--line); }
.legend a {
  display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .8rem;
  padding: .62rem .1rem;
  font-size: .87rem; color: var(--mute);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.legend a:hover { color: var(--ink); background: var(--raise); }
.legend__k {
  font-family: "Azeret Mono", monospace; font-weight: 700;
  color: var(--acc); font-size: .82rem;
}
.legend__n { color: var(--ink); }
.legend a:hover .legend__n { color: var(--acc); }
.legend__c { font-family: "Azeret Mono", monospace; font-size: var(--t-tiny); color: var(--mute); }

/* Board — an illustrative week of open work, not a live feed. */
.board { margin-top: 2.4rem; border: var(--rule) solid var(--line); background: var(--raise); }
.board__h {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem;
  padding: .65rem .9rem; border-bottom: var(--rule) solid var(--line);
}
.board__rows { display: grid; }
.board__row {
  display: grid; grid-template-columns: 5.4rem 1fr auto; gap: .9rem; align-items: baseline;
  padding: .6rem .9rem; border-bottom: var(--rule) solid var(--line);
  font-size: .86rem;
}
.board__row:last-child { border-bottom: 0; }
.board__t { font-family: "Azeret Mono", monospace; font-size: .76rem; color: var(--acc-2); }
.board__r { color: var(--ink); }
.board__w { font-family: "Azeret Mono", monospace; font-size: var(--t-tiny); color: var(--mute); letter-spacing: .06em; }

/* Ticker */
.ticker {
  border-block: var(--rule) solid var(--line-2);
  padding-block: .72rem; overflow: hidden; white-space: nowrap;
}
.ticker__track { display: inline-block; animation: slide 52s linear infinite; }
.ticker span {
  font-family: "Azeret Mono", monospace;
  font-size: .76rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase;
  color: var(--mute); padding-inline: 1.1rem;
}
.ticker i { color: var(--acc-2); font-style: normal; font-size: .62rem; }
@keyframes slide { to { translate: -50% 0; } }

/* Split bands — the layout spine. One half bleeds to the viewport edge. */
.split { padding: 0; }
/* Split bands do not use .shell, so they need the raised layer themselves —
   without it the drafting grid overlay paints straight over the content. */
.split__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch; min-height: clamp(26rem, 46vw, 38rem);
}
.split__media { position: relative; }
.split__media .ph { position: absolute; inset: 0; height: 100%; }
.split__body {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
/* The outer edge of the text half lines up with the shell's content edge, so
   a split band and a normal section share one left (or right) margin instead
   of reading as two unrelated boxes. The inner edge sits close to the seam. */
.split--right .split__body {
  padding-left: clamp(1.15rem, 3.4vw, 4rem);
  padding-right: max(var(--gut), calc((100vw - var(--shell)) / 2 + var(--gut)));
}
.split--left .split__body {
  padding-right: clamp(1.15rem, 3.4vw, 4rem);
  padding-left: max(var(--gut), calc((100vw - var(--shell)) / 2 + var(--gut)));
}
.split__body > * { max-width: 36rem; }
.split__body .btn { align-self: flex-start; }
.split--left  .split__media { order: 2; }
.split__body .h2 { margin: .9rem 0 1.25rem; }
.split__body p { color: var(--mute); }
.split__body p + p { margin-top: .95rem; }

.ticks { display: grid; gap: .62rem; margin: 1.4rem 0 1.8rem; }
.ticks li { position: relative; padding-left: 1.55rem; color: var(--mute); font-size: .94rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border: 2px solid var(--acc); border-top: 0; border-right: 0;
  rotate: -45deg;
}

/* Where two sections share a ground, only one of them pays for the join —
   otherwise two full --sec-y paddings meet and leave a ~300px void. */
section[data-ground="vellum"] + section[data-ground="vellum"],
section[data-ground="blueprint"] + section[data-ground="blueprint"] { padding-top: 0; }

/* Trades */
.trades { padding-block: var(--sec-y); border-top: var(--rule) solid var(--line); }
.cards { display: grid; gap: clamp(1.6rem, 1rem + 2.4vw, 2.6rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; }
.card .ph { margin-bottom: 1.15rem; }
.card:hover .ph img { scale: 1.03; }
.card__k {
  display: flex; align-items: center; gap: .55rem;
  font-family: "Azeret Mono", monospace; font-size: var(--t-tiny); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--acc);
  margin-bottom: .5rem;
}
.card h3 { font-size: var(--t-h3); margin-bottom: .6rem; }
.card__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.card__body > p { color: var(--mute); font-size: .92rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
.chips li {
  padding: .26rem .56rem; border: var(--rule) solid var(--line-2);
  font-family: "Azeret Mono", monospace; font-size: var(--t-tiny);
  letter-spacing: -.01em; color: var(--mute);
}

/* Process — a dispatch clock rather than numbered steps. */
.process { padding-block: var(--sec-y); border-top: var(--rule) solid var(--line); }
.steps { border-top: var(--rule) solid var(--line-2); }
.step {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: clamp(1rem, 3vw, 2.6rem);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.1rem) 0;
  border-bottom: var(--rule) solid var(--line);
  transition: background .25s var(--ease);
}
.step:hover { background: var(--raise); }
.step__t {
  font-family: "Azeret Mono", monospace; font-size: 1.32rem; font-weight: 700;
  letter-spacing: -.05em; color: var(--acc-2); line-height: 1.1;
}
.step__d { display: block; font-size: var(--t-tiny); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-top: .35rem; font-weight: 500; }
.step__c { max-width: 45rem; }
.step__c h3 { font-size: var(--t-h3); margin-bottom: .55rem; }
.step__c p { color: var(--mute); }

/* Rates table */
.rates { padding-block: var(--sec-y); border-top: var(--rule) solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table caption { text-align: left; color: var(--mute); font-size: .86rem; padding-bottom: 1rem; }
.table th, .table td { text-align: left; padding: .85rem .9rem; border-bottom: var(--rule) solid var(--line); vertical-align: top; }
.table thead th {
  font-family: "Azeret Mono", monospace; font-weight: 700;
  font-size: var(--t-tiny); letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute); border-bottom-color: var(--line-2);
}
.table tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.table td { color: var(--mute); }
.table tbody tr:hover { background: var(--raise); }
.table__n { font-family: "Azeret Mono", monospace; color: var(--acc); white-space: nowrap; }

/* Standards band */
.band { position: relative; padding-block: var(--sec-y); overflow: hidden; }
.band__media { position: absolute; inset: 0; z-index: 0; opacity: .2; }
.band__media .ph, .band__media img { width: 100%; height: 100%; }
.band__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(92deg, #0a1a2f 26%, rgba(10,26,47,.82) 60%, rgba(10,26,47,.62) 100%);
}
.band__grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.band__head .h2 { margin: .9rem 0 1.2rem; }
.band__lede { color: var(--mute); font-size: var(--t-lede); max-width: 31rem; }
.band__lede a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.pledges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.pledges li { padding: 1.2rem 0; border-top: var(--rule) solid var(--line); }
.pledges li:nth-child(odd) { padding-right: 1.8rem; }
.pledges h3 { font-size: .92rem; margin-bottom: .34rem; letter-spacing: -.03em; }
.pledges p { font-size: .84rem; color: var(--mute); line-height: 1.54; }

/* Quotes */
.quotes { padding-block: var(--sec-y); border-top: var(--rule) solid var(--line); }
.quotes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: var(--rule) solid var(--line-2); }
.quote { border-bottom: var(--rule) solid var(--line); padding: 1.8rem clamp(1rem, 2vw, 2rem) 1.6rem 0; }
.quote + .quote { border-left: var(--rule) solid var(--line); padding-left: clamp(1rem, 2vw, 2rem); }
.quote blockquote p { font-size: 1.02rem; line-height: 1.55; letter-spacing: -.012em; }
.quote figcaption { display: flex; flex-direction: column; gap: .22rem; margin-top: 1.1rem; padding-top: .9rem; border-top: var(--rule) solid var(--line); }
.quote__who { font-family: "Azeret Mono", monospace; font-size: .78rem; font-weight: 700; letter-spacing: -.03em; }
.quote__where { font-size: .78rem; color: var(--mute); }

/* FAQ */
.faq { padding-block: var(--sec-y); border-top: var(--rule) solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.faq__list { border-top: var(--rule) solid var(--line-2); }
.faq details { border-bottom: var(--rule) solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.05rem 0; cursor: pointer; list-style: none;
  font-family: "Azeret Mono", monospace; font-size: .95rem; font-weight: 500; letter-spacing: -.04em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border: 2px solid var(--acc); border-left: 0; border-bottom: 0; rotate: 135deg;
  transition: rotate .25s var(--ease);
}
.faq details[open] summary::after { rotate: -45deg; }
.faq summary:hover { color: var(--acc); }
.faq__a { padding-bottom: 1.35rem; padding-right: clamp(0rem, 5vw, 4rem); }
.faq__a p { color: var(--mute); }
.faq__a p + p { margin-top: .8rem; }
.faq__a a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }

/* Contact */
.contact { padding-block: var(--sec-y); border-top: var(--rule) solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.contact__head .h2 { margin: .9rem 0 1.2rem; }
.contact__lede { color: var(--mute); font-size: var(--t-lede); max-width: 27rem; }
.contact__es { margin-top: 1rem; color: var(--mute); font-size: .88rem; }
.contact__direct { margin-top: 1.9rem; padding-top: 1.3rem; border-top: var(--rule) solid var(--line); display: flex; flex-direction: column; gap: .35rem; }
.contact__direct a {
  font-family: "Azeret Mono", monospace; font-size: .92rem; letter-spacing: -.04em; color: var(--acc);
  text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere;
}

/* ── 7. Form ───────────────────────────────────────────────────────────── */
/* Everything inside derives from the ground tokens. A component that hardcodes
   its own surfaces will fail contrast on whichever ground it did not expect. */
.form { background: var(--raise); border: var(--rule) solid var(--line-2); padding: clamp(1.3rem, 1rem + 1.8vw, 2.2rem); }

.seg { display: grid; grid-template-columns: 1fr 1fr; border: var(--rule) solid var(--line-2); margin-bottom: 1.7rem; }
.seg__btn {
  padding: .78rem .9rem; background: none; border: 0; cursor: pointer;
  font-family: "Azeret Mono", monospace; font-size: .78rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--mute); transition: background .25s var(--ease), color .25s var(--ease);
}
.seg__btn.is-on { background: var(--acc); color: var(--on-acc); }
.seg__btn:not(.is-on):hover { color: var(--ink); }

.form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: "Azeret Mono", monospace; font-size: var(--t-tiny); letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.field .opt { text-transform: none; letter-spacing: .01em; opacity: .8; }
.field input, .field textarea {
  width: 100%; padding: .72rem .85rem;
  background: var(--bg); border: var(--rule) solid var(--line-2); color: var(--ink);
  transition: border-color .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--mute) 88%, transparent); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--acc); }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field__err { font-size: .76rem; color: var(--err); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--err); }

.check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.check input { width: 1.5rem; height: 1.5rem; flex: none; margin-top: .25rem; accent-color: var(--acc); }
.check label { text-transform: none; letter-spacing: .01em; font-family: "Public Sans", sans-serif; font-size: .86rem; line-height: 1.5; color: var(--mute); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form button[type="submit"] { margin-top: 1.6rem; }
.form__status { margin-top: .95rem; font-size: .88rem; color: var(--ok); }
.form__status:empty { margin: 0; }
.form__status.is-bad { color: var(--err); }
.form__status a { color: inherit; text-decoration: underline; }
.form__fine { margin-top: 1rem; font-size: .77rem; color: var(--mute); line-height: 1.5; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.foot { padding-block: clamp(2.8rem, 2rem + 2.6vw, 4rem) 2.2rem; border-top: var(--rule) solid var(--line-2); }
.foot__top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.4rem;
  padding-bottom: 2rem; border-bottom: var(--rule) solid var(--line);
}
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-inline: auto; }
.foot__nav a { font-family: "Azeret Mono", monospace; font-size: .78rem; letter-spacing: -.03em; color: var(--mute); transition: color .25s var(--ease); }
.foot__nav a:hover { color: var(--ink); }
.foot__mail a {
  font-family: "Azeret Mono", monospace; font-size: .82rem; letter-spacing: -.04em; color: var(--acc);
  text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere;
}
.foot__eeo { margin-top: 2rem; max-width: 62rem; font-size: .76rem; line-height: 1.62; color: var(--mute); }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 2rem; padding-top: 1.3rem; border-top: var(--rule) solid var(--line);
  font-family: "Azeret Mono", monospace; font-size: var(--t-tiny); letter-spacing: .04em; color: var(--mute);
}

/* ── 8. Motion ─────────────────────────────────────────────────────────── */
/* Visible by default, so the page still reads if the script never runs. The
   script adds .js itself as its first statement, which is what opts in. */
.reveal { opacity: 1; translate: none; }
.js .reveal {
  opacity: 0; translate: 0 18px;
  transition: opacity .7s var(--ease), translate .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  .ticker__track { animation: none; }
  .ph img { opacity: 1; }
}

/* ── 9. Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__grid, .faq__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .band__lede, .contact__lede { max-width: 44rem; }
  .quotes__list { grid-template-columns: minmax(0, 1fr); }
  .quote + .quote { border-left: 0; padding-left: 0; }
  .split__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .split__media { min-height: 20rem; order: 0; }
  .split--left .split__media { order: 0; }
  .split__body { padding-inline: var(--gut); }
  .split__body > * { max-width: none; }
}

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav { background: color-mix(in oklab, #0a1a2f 92%, transparent); backdrop-filter: blur(12px); }
  .pledges { grid-template-columns: minmax(0, 1fr); }
  .pledges li:nth-child(odd) { padding-right: 0; }
}

@media (max-width: 720px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
  .card .ph { aspect-ratio: 16 / 11; }
  .step { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .form__fields { grid-template-columns: minmax(0, 1fr); }
  .field--wide { grid-column: auto; }
  .foot__nav { margin-inline: 0; width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  /* A table cannot usefully shrink below its columns; stack it into rows. */
  .table, .table tbody, .table tr, .table td, .table th, .table caption { display: block; width: auto; }
  .table tbody th { width: auto; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table tbody tr { border-bottom: var(--rule) solid var(--line-2); padding-block: .6rem; }
  .table tbody th { border: 0; padding-bottom: .2rem; }
  .table td { border: 0; padding-block: .18rem; }
  .table td::before {
    content: attr(data-th) " ";
    font-family: "Azeret Mono", monospace; font-size: var(--t-tiny);
    letter-spacing: .09em; text-transform: uppercase; color: var(--mute);
  }
}

@media (max-width: 420px) {
  .seg { grid-template-columns: minmax(0, 1fr); }
  .seg__btn + .seg__btn { border-top: var(--rule) solid var(--line-2); }
  .legend a { grid-template-columns: 1.6rem 1fr; row-gap: .1rem; }
  .legend__c { grid-column: 2; }
}

@media print {
  .nav, .ticker, .form, .skip, .band__media { display: none !important; }
  body, section[data-ground] { background: #fff !important; color: #000 !important; }
}
