/* IN FLOORINGS — the grit ladder */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the slab, coarse to polished */
  --g30: #3a3936;
  --g80: #4d4b47;
  --g200: #6c6963;
  --g400: #9a968e;
  --g800: #c5c1b9;
  --g3000: #e8e6e1;

  --ink: #191917;
  --ink-soft: #3c3b37;
  --ink-faint: #5c5a55;
  --chalk: #f1efea;
  --chalk-soft: #cfccc5;
  --chalk-faint: #aaa69e;

  --rule-dark: rgba(241, 239, 234, 0.18);
  --rule-light: rgba(25, 25, 23, 0.16);

  /* safety orange: actions only */
  --act: #ec6a2c;
  --act-deep: #d4581c;
  --act-ink: #1b0f08;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;

  --gutter: clamp(16px, 3.4vw, 52px);
  --max: 1440px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-color: var(--g400) var(--g30);
}

body {
  margin: 0;
  background: var(--g30);
  color: var(--chalk);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--act); color: var(--act-ink); }
img { height: auto; }
img, svg, canvas { display: block; max-width: 100%; }

a, button, input, select, textarea, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(236, 106, 44, 0.2);
}
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--act); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--act); color: var(--act-ink); padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 10px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------------ */
/* Header strip                                                       */
/* ------------------------------------------------------------------ */

.strip {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25, 25, 23, 0.94);
  border-bottom: 1px solid var(--rule-dark);
}
@supports (backdrop-filter: blur(8px)) {
  .strip { background: rgba(25, 25, 23, 0.82); backdrop-filter: blur(10px); }
}
.strip__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 64px; }
.wordmark {
  min-width: 0;
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2vw, 1.6rem);
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1;
}
.wordmark svg { width: 26px; height: 26px; flex: none; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: 8px 0;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--chalk-soft); text-decoration: none;
  transition: color 160ms var(--ease-out);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--act);
  transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out);
}
.nav__link:hover { color: var(--chalk); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--chalk); }
.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--rule-dark); color: var(--chalk);
  font: inherit; font-size: 0.9rem; font-weight: 600; padding: 10px 14px; min-height: 44px; cursor: pointer;
}
.menu-btn svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .strip .strip__cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 1px solid var(--rule-dark); display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding: 6px var(--gutter) 18px; }
  .nav__link { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule-dark); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--act); }
}

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 22px;
  background: var(--act); color: var(--act-ink);
  border: 0; border-radius: 0;
  font: inherit; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 220ms var(--ease-out); }
.btn:hover { background: var(--act-deep); text-decoration: none; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.85rem; }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 220ms var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ */
/* Type                                                               */
/* ------------------------------------------------------------------ */

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
.display {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: 0.9; letter-spacing: -0.005em;
}
.h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 0.92;
}
.h3 { font-family: var(--text); font-weight: 750; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.2; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.55; max-width: 46ch; margin: 0; text-wrap: pretty; }
.prose p { max-width: 66ch; text-wrap: pretty; }
.code {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em;
  padding: 2px 8px 1px; border: 1.5px solid currentColor; line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.meta { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }

/* ------------------------------------------------------------------ */
/* Grit sections — the ground refines down the page                    */
/* ------------------------------------------------------------------ */

.grit {
  --bg: var(--g80);
  --fg: var(--chalk);
  --fg-soft: var(--chalk-soft);
  --rule: var(--rule-dark);
  position: relative;
  background-color: var(--bg);
  background-image: var(--tex, none);
  background-size: 360px 360px;
  color: var(--fg);
  padding-block: clamp(72px, 9vw, 140px);
  isolation: isolate;
}
.grit[data-grit="80"] { --bg: var(--g80); }
.grit[data-grit="200"] { --bg: var(--g200); --fg-soft: #f1efea; }
.grit[data-grit="400"] { --bg: var(--g400); --fg: var(--ink); --fg-soft: #1f1e1c; --rule: rgba(25, 25, 23, 0.24); }
.grit[data-grit="800"] { --bg: var(--g800); --fg: var(--ink); --fg-soft: var(--ink-soft); --rule: var(--rule-light); }
.grit[data-grit="1500"] {
  --bg: #d9d6cf; --fg: var(--ink); --fg-soft: var(--ink-soft); --rule: var(--rule-light);
  background-image: linear-gradient(112deg, transparent 0 66%, rgba(255,255,255,0.34) 66% 69%, transparent 69%), var(--tex, none);
  background-size: 100% 100%, 360px 360px;
}
.grit[data-grit="3000"] {
  --bg: var(--g3000); --fg: var(--ink); --fg-soft: var(--ink-soft); --rule: var(--rule-light);
  background-image: linear-gradient(112deg, transparent 0 54%, rgba(255,255,255,0.62) 54% 60%, transparent 60% 64%, rgba(255,255,255,0.45) 64% 65.5%, transparent 65.5% 80%, rgba(255,255,255,0.35) 80% 84%, transparent 84%), var(--tex, none);
  background-size: 100% 100%, 360px 360px;
}
.grit .lede, .grit .prose p { color: var(--fg-soft); }
.grit[data-grit="400"], .grit[data-grit="800"], .grit[data-grit="1500"], .grit[data-grit="3000"] { color-scheme: light; }

.grit__head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.grit__num {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(6rem, 15vw, 14rem); line-height: 0.78; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  opacity: 0.92;
}
.grit__num small {
  display: block; margin-top: 10px;
  font-family: var(--text); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.8;
}
.grit__title { display: grid; gap: 18px; }
.grit__head--plain { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grit__head--plain .grit__title { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
@media (max-width: 760px) { .grit__head--plain .grit__title { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .grit__head { grid-template-columns: 1fr; align-items: start; }
  .grit__num { font-size: clamp(5rem, 28vw, 8rem); }
}

/* ------------------------------------------------------------------ */
/* Hero slab                                                          */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: min(calc(100svh - 64px), 860px);
  display: grid;
  background: var(--g30);
  overflow: hidden;
  isolation: isolate;
}
.hero__slab { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; cursor: crosshair; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: stretch;
  padding-block: clamp(28px, 4vw, 56px);
}
.hero__raw { display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); pointer-events: none; }
.hero__raw .grit__num { color: var(--ink); font-size: clamp(7rem, 19vw, 17rem); }
.hero__hint { font-size: 0.9rem; font-weight: 650; color: var(--ink); max-width: 22ch; }
.hero__polished {
  align-self: center;
  justify-self: end;
  width: min(100%, 600px);
  color: var(--chalk);
  display: grid;
  gap: 22px;
}
.hero__polished .display { color: #fbfaf7; text-shadow: 0 2px 18px rgba(20, 19, 17, 0.45); }
.hero__polished .lede { color: #f1efea; text-shadow: 0 1px 10px rgba(20, 19, 17, 0.55); }
.hero__panel { position: relative; }
.hero__panel .slip { background: #ecebe7; color: var(--ink); padding: 14px 18px 18px; border-top: 4px solid var(--ink); }
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__raw { flex-direction: row; align-items: flex-end; gap: 16px; }
  .hero__hint { display: none; }
  .hero__raw .grit__num { font-size: clamp(5rem, 26vw, 9rem); }
  .hero__polished { justify-self: stretch; width: 100%; }
}

/* quote slip: the job ticket on the slab */
.slip { display: grid; gap: 0; }
.slip__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 6px; }
.slip__title b { font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.slip__title span { font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); }
.slip__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
@media (max-width: 520px) { .slip__row { grid-template-columns: 1fr; } .slip__row .btn { width: 100%; justify-content: space-between; } }

/* ------------------------------------------------------------------ */
/* Form fields (shared by slip and full docket)                        */
/* ------------------------------------------------------------------ */

.field { display: grid; gap: 2px; padding: 10px 0 8px; border-bottom: 1.5px solid var(--rule-light); min-width: 0; }
.field label, .field legend { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-faint); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; background: transparent; border: 0; border-radius: 0;
  padding: 4px 0 2px; color: var(--ink); font: inherit; font-size: 1.05rem; font-weight: 600;
  caret-color: var(--act); appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23191917' stroke-width='2'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 14px;
  padding-right: 24px; cursor: pointer;
}
.field select option { color: #111; background: #fff; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #55534d; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field:focus-within { border-bottom-color: var(--act); }
.field:focus-within label { color: var(--ink); }
fieldset.field { border-width: 0 0 1.5px; border-style: solid; border-color: var(--rule-light); margin: 0; min-width: 0; }
fieldset.field legend { float: left; width: 100%; }
.field[data-invalid] { border-bottom-color: #a3290f; }
.field__error { font-size: 0.82rem; font-weight: 650; color: #9a2410; }
.field__count { justify-self: end; font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.field__count[data-near] { color: #9a2410; }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #efede8 inset; -webkit-text-fill-color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Substrate picker (grit 80)                                          */
/* ------------------------------------------------------------------ */

.substrates { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(28px, 3vw, 40px); padding: 0; border: 0; }
.substrates legend { width: 100%; margin-bottom: 14px; font-weight: 700; font-size: 1rem; }
.pick { position: relative; }
.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.pick span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px;
  border: 1.5px solid var(--rule); font-weight: 650;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.pick:hover span { border-color: var(--fg); }
.pick input:checked + span { background: var(--act); border-color: var(--act); color: var(--act-ink); }
.pick input:focus-visible + span { outline: 2px solid var(--act); outline-offset: 3px; }

/* system rows: stamped codes, no cards */
.systems { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--rule); }
.sys {
  display: grid;
  grid-template-columns: 110px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: clamp(14px, 2.4vw, 36px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px) 0;
  border-bottom: 1.5px solid var(--rule);
  transition: opacity 260ms var(--ease-out), background-color 260ms var(--ease-out);
}
.sys__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(0,0,0,0.2); }
.sys__media img { width: 100%; height: 100%; object-fit: cover; }
.sys__name { display: grid; gap: 8px; justify-items: start; }
.sys__name a { text-decoration: none; }
.sys__name a:hover .h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.sys__desc { margin: 0; color: var(--fg-soft); font-size: 0.98rem; }
.sys__spec { margin: 0; display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 2px 12px; font-size: 0.88rem; }
.sys__spec dt { font-weight: 700; opacity: 0.75; }
.sys__spec dd { margin: 0; font-variant-numeric: tabular-nums; }
.systems.is-filtered .sys:not(.is-match) { opacity: 0.32; }
.systems.is-filtered .sys.is-match { background: rgba(236, 106, 44, 0.12); }
.pick-note { margin: 16px 0 0; font-size: 0.95rem; color: var(--fg-soft); min-height: 1.6em; }
@media (max-width: 960px) {
  .sys { grid-template-columns: 88px minmax(0, 1fr); }
  .sys__desc, .sys__spec { grid-column: 2; }
}

/* ------------------------------------------------------------------ */
/* Cure clock (grit 400)                                               */
/* ------------------------------------------------------------------ */

.clock { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.clock::before {
  content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 3px; background: var(--fg);
}
.clock li { position: relative; padding: 56px clamp(10px, 2vw, 28px) 0 0; }
.clock li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 3px; height: 27px; background: var(--fg);
}
.clock__t { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; text-transform: uppercase; }
.clock__what { margin: 10px 0 0; font-weight: 700; }
.clock__note { margin: 6px 0 0; color: var(--fg-soft); font-size: 0.95rem; max-width: 30ch; }
@media (max-width: 760px) {
  .clock { grid-template-columns: 1fr; }
  .clock::before { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .clock li { padding: 0 0 28px 28px; }
  .clock li::before { top: 12px; left: 0; width: 18px; height: 3px; }
}

/* ------------------------------------------------------------------ */
/* Comparison (grit 800)                                               */
/* ------------------------------------------------------------------ */

.versus-wrap { overflow-x: auto; }
.versus { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.versus th, .versus td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1.5px solid var(--rule); }
.versus thead th { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 2rem); text-transform: uppercase; border-bottom: 3px solid var(--fg); }
.versus tbody th { font-weight: 700; width: 22%; }
.versus td { color: var(--fg-soft); }
@media (max-width: 640px) {
  .versus thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .versus tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1.5px solid var(--rule); }
  .versus th, .versus td { border: 0; padding: 0; }
  .versus tbody th { grid-column: 1 / -1; width: auto; }
  .versus td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 700; color: var(--fg); }
}

/* ------------------------------------------------------------------ */
/* Area (grit 1500)                                                    */
/* ------------------------------------------------------------------ */

.area { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.suburbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.suburbs li { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 3.2rem); text-transform: uppercase; line-height: 1.05; }
.suburbs li.wider { color: var(--ink-faint); white-space: nowrap; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 18px; border-top: 3px solid var(--fg); }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1.5px solid var(--rule); margin: 0; }
.facts dt { font-weight: 700; font-size: 0.9rem; }
.facts dd { overflow-wrap: anywhere; }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* Close (grit 3000) — the full docket                                 */
/* ------------------------------------------------------------------ */

.close { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.docket { background: rgba(255, 255, 255, 0.55); padding: clamp(20px, 3vw, 40px); border-top: 4px solid var(--ink); color: var(--ink); }
.docket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.docket__head b { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.docket__head span { font-size: 0.82rem; font-weight: 600; color: var(--ink-faint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.docket__actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.docket__note { margin: 0; font-size: 0.85rem; color: var(--ink-faint); max-width: 38ch; }
.sent { margin-top: 16px; padding: 14px 16px; background: var(--ink); color: var(--chalk); font-size: 0.95rem; line-height: 1.5; }
.sent[hidden] { display: none; }
.sent a { color: inherit; }
.close--form { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.close > * { min-width: 0; }
@media (max-width: 960px) { .close, .close--form { grid-template-columns: 1fr; } }
@media (max-width: 460px) {
  .row2 { grid-template-columns: 1fr; }
  .docket__actions { flex-direction: column; align-items: stretch; }
  .docket .btn { width: 100%; justify-content: space-between; }
}

/* ------------------------------------------------------------------ */
/* Inner pages                                                        */
/* ------------------------------------------------------------------ */

.pagehead { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }
.pagehead__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
@media (max-width: 860px) { .pagehead__grid { grid-template-columns: 1fr; align-items: start; } }
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 32px 0 0; padding: 0; }
.jump a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--rule-dark); text-decoration: none; font-weight: 650; color: var(--chalk-soft);
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.jump a:hover { border-color: var(--act); color: var(--chalk); }
.jump .code { font-size: 0.85rem; padding: 0 6px; }

.system {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 72px);
  scroll-margin-top: 80px;
}
.system__side { display: grid; gap: 24px; align-content: start; }
.clock--mini { grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); }
.clock--mini::before { top: 18px; height: 2px; }
.clock--mini li { padding-top: 34px; }
.clock--mini li::before { top: 10px; height: 18px; width: 2px; }
.clock--mini .clock__t { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.clock--mini .clock__what { font-weight: 600; font-size: 0.92rem; margin-top: 6px; color: var(--fg-soft); }
.system__media { margin: 0; position: relative; }
.system__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.system__media figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--fg-soft); }
.system__body { display: grid; gap: 22px; align-content: start; }
.system__title { display: grid; gap: 14px; justify-items: start; }
.system__body .prose p { margin: 0; color: var(--fg-soft); }
.system__body .prose p + p { margin-top: 12px; }
.spec { margin: 0; display: grid; grid-template-columns: minmax(130px, auto) 1fr; border-top: 3px solid var(--fg); }
.spec dt, .spec dd { margin: 0; padding: 12px 0; border-bottom: 1.5px solid var(--rule); }
.spec dt { font-weight: 700; font-size: 0.92rem; padding-right: 16px; }
.spec dd { font-variant-numeric: tabular-nums; }
.system:target .spec { outline: 3px solid var(--act); outline-offset: 8px; }
@media (max-width: 860px) { .system { grid-template-columns: 1fr; } .spec { grid-template-columns: 1fr; } .spec dt { padding-bottom: 0; border-bottom: 0; } }
@media (max-width: 760px) { .clock--mini { grid-template-columns: 1fr; } .clock--mini li { padding: 0 0 18px 28px; } .clock--mini li::before { top: 12px; left: 0; width: 18px; height: 2px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--fg); }
.steps li { padding: 20px clamp(10px, 1.6vw, 24px) 0 0; }
.steps li + li { padding-left: clamp(10px, 1.6vw, 24px); border-left: 1.5px solid var(--rule); }
.steps b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.8rem); text-transform: uppercase; line-height: 1.05; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--fg-soft); font-size: 0.95rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 16px 0; border-left: 0; border-bottom: 1.5px solid var(--rule); }
}

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 960px) { .split, .split--wide { grid-template-columns: 1fr; } }
.photo { margin: 0; }
.photo img { width: 100%; object-fit: cover; }
.photo figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--fg-soft); }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--fg); }
.values > div { padding: 22px clamp(14px, 2vw, 32px) 0 0; }
.values > div + div { padding-left: clamp(14px, 2vw, 32px); border-left: 1.5px solid var(--rule); }
.values h3 { margin-bottom: 10px; }
.values p { margin: 0; color: var(--fg-soft); }
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; }
  .values > div, .values > div + div { padding: 18px 0; border-left: 0; border-bottom: 1.5px solid var(--rule); }
}

.faq { margin: 0; border-top: 3px solid var(--fg); }
.faq details { border-bottom: 1.5px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; transition: transform 220ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--fg-soft); max-width: 62ch; }

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.foot { background: var(--ink); color: var(--chalk-soft); padding-block: clamp(48px, 6vw, 80px) 28px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); }
.foot .wordmark { color: var(--chalk); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.foot__brand p { margin: 14px 0 0; max-width: 34ch; font-size: 0.95rem; }
.foot h2 { font-size: 0.85rem; font-weight: 700; color: var(--chalk); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--chalk); text-decoration: underline; }
.foot dl { margin: 0; display: grid; gap: 10px; }
.foot dt { font-size: 0.8rem; font-weight: 700; color: var(--chalk-faint); }
.foot dd { margin: 2px 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.foot__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--rule-dark);
  font-size: 0.82rem; color: var(--chalk-faint); font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

.lost { min-height: 60vh; display: grid; align-content: center; gap: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
