/* ==========================================================================
   Alex Website Automations — "Drawing Set", Rev B
   Display: Bricolage Grotesque (opsz axis) · Text: DM Sans · Data: system mono

   The site is a technical drawing set. White sheet, blue ink, everything
   measured and numbered. Structure comes from rules, numerals and spacing —
   never from cards, icons, shadows or imagery. Blue is ink, not decoration:
   the only blue things are load-bearing. One red exists and it means what red
   means on a drawing — this is a correction.

   Committed light theme. There is deliberately no dark mode: inverting a white
   sheet with blue ink produces a cyanotype, which is the blueprint pastiche
   this direction exists to avoid.
   ========================================================================== */

/* ---- Faces. Two files, self-hosted, no network request ------------------ */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;          /* real axis range, verified in fvar        */
  font-style: normal;
  font-display: swap;
  /* NO font-stretch descriptor: this file has NO wdth axis. */
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* ---- Grounds --------------------------------------------------------- */
  --sheet:        #FFFFFF;
  --sheet-2:      #F1F5FC;
  --blue-wash:    #E4EDFB;
  --blue-deep:    #0A2E7A;

  /* ---- Ink ------------------------------------------------------------- */
  --ink:          #0A1E38;
  --ink-2:        #4A5C75;
  --blue:         #1449C4;
  --redline:      #A6321B;

  /* ---- Ink on deep bands. --blue is BANNED here (1.65:1) ---------------- */
  --on-deep:      #A9BEE6;
  --border-deep:  #8AA4D6;
  --rule-deep:    #3A5FA6;
  --redline-deep: #F0A48E;

  /* ---- Lines. Three weights, three jobs, never interchanged ------------- */
  --rule-hair:    #D9E4F5;   /* setting-out grid, tick caps. decorative     */
  --rule:         #B4C8E4;   /* dividers, row separators. decorative        */
  --border:       #6E86A8;   /* REAL control edges. 3.72:1, clears 1.4.11   */

  /* ---- Geometry -------------------------------------------------------- */
  --radius:       0;
  --stroke:       1px;
  --stroke-live:  2px;
  --focus-w:      3px;
  --focus-off:    2px;
  --shadow:       none;      /* exists so nobody invents one                */

  /* ---- Spacing. 4px base, ten steps, nothing outside them --------------- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;

  /* ---- Containers ------------------------------------------------------ */
  --wrap:       1280px;
  --wrap-prose: 68ch;
  --wrap-lede:  52ch;
  /* Wide enough for the marginalia to read as a sentence rather than a
     one-word-per-line column. The section index sits at its left edge. */
  --datum:      208px;
  --gutter:     24px;
  --strip-h:    40px;
  --header-h:   72px;

  /* ---- Motion. One duration, one easing -------------------------------- */
  --dur:        140ms;
  --ease:       cubic-bezier(0.2, 0, 0.1, 1);
  --dur-reveal: 260ms;

  /* ---- Z-index. Five steps. Nothing else declares z-index -------------- */
  --z-base:   0;
  --z-raised: 1;
  --z-sticky: 20;
  --z-panel:  40;
  --z-skip:   60;

  /* ---- Type scale. Solved between a 375px floor and a 1440px ceiling ---- */
  --t--2: clamp(0.8125rem, 0.7915rem + 0.09vw, 0.875rem);  /* 13 → 14 data  */
  --t--1: clamp(0.875rem,  0.854rem  + 0.09vw, 0.9375rem); /* 14 → 15 caption*/
  --t-0:  clamp(1.0625rem, 1.018rem  + 0.19vw, 1.1875rem); /* 17 → 19 body  */
  --t-1:  clamp(1.25rem,   1.184rem  + 0.28vw, 1.4375rem); /* 20 → 23 lede  */
  --t-2:  clamp(1.4375rem, 1.327rem  + 0.47vw, 1.75rem);   /* 23 → 28 h3    */
  --t-3:  clamp(1.75rem,   1.53rem   + 0.94vw, 2.375rem);  /* 28 → 38 h4    */
  --t-4:  clamp(2.125rem,  1.729rem  + 1.69vw, 3.25rem);   /* 34 → 52 h2    */
  --t-5:  clamp(2.625rem,  1.877rem  + 3.19vw, 4.75rem);   /* 42 → 76 h1    */
  /* The figure size is bounded by the longest string it ever sets —
     "$500 — $700 AUD" in tabular mono — which must fit 375px less margins. */
  --t-6:  clamp(2rem,      0.504rem  + 6.385vw, 6.25rem); /* 32 → 100 fig  */

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-text:    "DM Sans", ui-sans-serif, system-ui, -apple-system,
                  "Segoe UI", sans-serif;
  --font-data:    ui-monospace, SFMono-Regular, "SF Mono", Menlo,
                  "Cascadia Mono", "Segoe UI Mono", "Roboto Mono",
                  "Liberation Mono", monospace;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

/* Any author `display` beats the UA stylesheet's [hidden] rule, so state
   toggled with the hidden attribute needs this or it renders anyway. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s5));
}

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-0);
  /* DM Sans defaults to opsz 9 — it must be set or body renders the small cut */
  font-variation-settings: "opsz" 18, "wght" 400;
  line-height: 1.62;
  font-variant-numeric: lining-nums;
  overflow-x: clip;              /* NOT hidden — hidden breaks sticky        */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }

::selection { background: var(--blue); color: var(--sheet); }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  position: fixed;
  left: var(--s4); top: var(--s4);
  z-index: var(--z-skip);
  background: var(--blue); color: var(--sheet);
  padding: var(--s3) var(--s5);
  font-family: var(--font-text);
  font-variation-settings: "opsz" 20, "wght" 600;
  text-decoration: none;
  outline: var(--focus-w) solid var(--ink);
  outline-offset: var(--focus-off);
}

/* ==========================================================================
   Type registers
   ========================================================================== */

/* Display: h1 and h2 ONLY. Nothing else uses Bricolage.
   opsz 20 at 42–76px is Bricolage's TEXT cut blown up to display size —
   blunter terminals, wider apertures, sturdier joins than the default
   opsz-96 cut every stock Bricolage headline uses. Do not change it to 96. */
h1, h2, .display {
  font-family: var(--font-display);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 20, "wght" 800;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--t-5); line-height: 0.94; letter-spacing: -0.030em; }
h2 { font-size: var(--t-4); line-height: 1.02; letter-spacing: -0.026em; }

/* the single colour shift permitted inside a heading */
h1 .op, h2 .op { color: var(--blue-deep); }
.band--deep h1 .op, .band--deep h2 .op { color: var(--on-deep); }

h3 {
  font-family: var(--font-text);
  font-variation-settings: "opsz" 32, "wght" 600;
  font-size: var(--t-2); line-height: 1.22; letter-spacing: -0.010em;
  color: var(--ink); margin: 0;
}
h4 {
  font-family: var(--font-text);
  font-variation-settings: "opsz" 32, "wght" 600;
  font-size: var(--t-1); line-height: 1.28; letter-spacing: -0.005em;
  color: var(--ink); margin: 0;
}

p { margin: 0 0 var(--s5); max-width: var(--wrap-prose); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--t-1); line-height: 1.45; letter-spacing: -0.005em;
  color: var(--ink-2); max-width: var(--wrap-lede);
  font-variation-settings: "opsz" 24, "wght" 400;
}
.band--deep .lede { color: var(--on-deep); }

.caption { font-size: var(--t--1); line-height: 1.5; color: var(--ink-2); }

/* Data register: the third voice. System mono, zero bytes.
   Floor is 13px at 0.08em — uppercase mono any smaller or looser fails to
   read. No sentence, CTA, error or heading is ever set in mono. */
.data {
  font-family: var(--font-data);
  font-size: var(--t--2);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink-2);
}
.data--lead { color: var(--ink); }
.band--deep .data { color: var(--on-deep); }
.band--deep .data--lead { color: var(--sheet); }

table, .num { font-variant-numeric: tabular-nums lining-nums; }

/* ==========================================================================
   Links
   ========================================================================== */

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease),
              text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--blue); }
a:focus-visible {
  outline: var(--focus-w) solid var(--blue);
  outline-offset: var(--focus-off);
}
.band--deep a { color: var(--sheet); text-decoration-color: var(--on-deep); }
.band--deep a:hover { color: var(--on-deep); }
.band--deep a:focus-visible { outline-color: var(--sheet); }

/* ==========================================================================
   Layout
   ========================================================================== */

.sheet {
  width: min(100% - (2 * var(--s4)), var(--wrap));
  margin-inline: auto;
}
@media (min-width: 768px) {
  .sheet { width: min(100% - (2 * var(--s7)), var(--wrap)); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.band       { padding-block: clamp(4rem, 2.242rem + 7.5vw, 9rem); }
.band--tight{ padding-block: clamp(2.5rem, 1.797rem + 3vw, 4.5rem); }
.band + .band { border-top: var(--stroke) solid var(--rule); }
.band--alt  { background: var(--sheet-2); }
.band--deep { background: var(--blue-deep); color: var(--sheet); }
.band--deep h1, .band--deep h2, .band--deep h3, .band--deep h4 { color: var(--sheet); }
.band--deep p { color: var(--on-deep); }

/* The datum gutter. Not decoration: it carries the section index and the
   hanging marginalia. Appears at >=1024px only. */
.band__inner { display: block; }

@media (min-width: 1024px) {
  .band__inner {
    display: grid;
    grid-template-columns: var(--datum) minmax(0, 1fr);
    gap: var(--s7);
  }
  .datum {
    border-right: var(--stroke) solid var(--rule);
    padding-right: var(--s5);
    align-self: stretch;
  }
  .datum__i {
    position: sticky;
    top: calc(var(--header-h) + var(--s6));
    display: block;
  }
  .band--deep .datum { border-right-color: var(--rule-deep); }
}
@media (max-width: 1023px) {
  .datum { display: none; }
}

/* Setting-out grid. Hero band and SVG figure panels ONLY. */
.setout { position: relative; isolation: isolate; }
.setout::before {
  content: ""; position: absolute; inset: 0; z-index: var(--z-base);
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--rule-hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-hair) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.setout > * { position: relative; z-index: var(--z-raised); }
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid > * { grid-column: span 4 !important; }
  .setout::before {
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  }
}

/* ==========================================================================
   Device 1 — the sheet strip
   ========================================================================== */

.strip {
  min-height: var(--strip-h);
  background: var(--sheet);
  border-bottom: var(--stroke) solid var(--rule);
  display: flex;
  align-items: center;
}
.strip__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  white-space: nowrap;
  width: min(100% - (2 * var(--s4)), var(--wrap));
  margin-inline: auto;
}
@media (min-width: 768px) {
  .strip__inner { width: min(100% - (2 * var(--s7)), var(--wrap)); }
}
/* The strip sheds cells as it narrows rather than wrapping out of its rule:
   below 560px the revision cell goes, below 420px only the sheet number stays. */
.strip__b { display: none; }
@media (min-width: 560px) { .strip__b { display: block; } }
@media (max-width: 419px) {
  .strip__a { display: none; }
  .strip__inner { justify-content: flex-start; }
}

/* ==========================================================================
   Device 2 — hanging marginalia
   ========================================================================== */

.note {
  font-family: var(--font-text);
  font-variation-settings: "opsz" 14, "wght" 400;
  font-size: var(--t--1);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 100%;
  padding-top: var(--s3);
  border-top: var(--stroke) solid var(--rule);
  margin-top: var(--s5);
}
@media (max-width: 1023px) {
  .note {
    border-top: 0;
    border-left: var(--stroke-live) solid var(--rule);
    padding: 0 0 0 var(--s4);
    margin: var(--s5) 0;
    max-width: 46ch;
  }
}
.band--deep .note { color: var(--on-deep); border-color: var(--rule-deep); }

/* ==========================================================================
   Device 3 — the dimension rule
   ========================================================================== */

.dim { display: flex; align-items: center; gap: var(--s3); }
.dim::before, .dim::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--rule);
}
.dim__cap { flex: 0 0 1px; height: 9px; background: var(--rule); }
.dim__label { flex: 0 0 auto; }
.band--deep .dim::before, .band--deep .dim::after,
.band--deep .dim__cap { background: var(--rule-deep); }

/* The pricing headline: the one place the metaphor and the content do the
   same job. Tabular mono at figure size, sitting in a gap in the rule. */
.dim--figure { gap: var(--s5); }
@media (max-width: 767px) { .dim--figure { gap: var(--s3); } }
.dim--figure .dim__label {
  min-width: 0;
  font-family: var(--font-data);
  font-size: var(--t-6);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.band--deep .dim--figure .dim__label { color: var(--sheet); }

/* ==========================================================================
   Section header pattern — order and spacing locked
   ========================================================================== */

.sec-head { margin-bottom: var(--s6); }
.sec-head .dim { margin-bottom: var(--s5); }
.sec-head h2 { margin-bottom: var(--s5); }
.sec-head .lede { margin: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-text);
  font-variation-settings: "opsz" 20, "wght" 600;
  font-size: var(--t--1);
  letter-spacing: 0.01em;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: var(--radius);
  border: var(--stroke) solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn--primary { background: var(--blue); color: var(--sheet); border-color: var(--blue); }
.btn--primary:hover { background: var(--sheet); color: var(--blue); }
.btn--primary:active { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--sheet); }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--secondary:hover { background: var(--sheet-2); border-color: var(--ink); color: var(--ink); }
.btn--secondary:active { background: var(--blue-wash); border-color: var(--ink); }

.btn:focus-visible {
  outline: var(--focus-w) solid var(--blue);
  outline-offset: var(--focus-off);
}
.btn[aria-disabled="true"], .btn:disabled {
  background: var(--sheet-2); color: var(--ink-2);
  border-color: var(--border); cursor: not-allowed;
}

/* On a deep band --blue is banned (1.65:1) */
.band--deep .btn--primary { background: var(--sheet); color: var(--blue-deep); border-color: var(--sheet); }
.band--deep .btn--primary:hover { background: transparent; color: var(--sheet); }
.band--deep .btn--secondary { color: var(--sheet); border-color: var(--border-deep); }
.band--deep .btn--secondary:hover { background: rgba(255,255,255,.08); border-color: var(--sheet); color: var(--sheet); }
.band--deep .btn:focus-visible { outline-color: var(--sheet); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.header {
  position: sticky; top: 0;
  height: var(--header-h);
  background: var(--sheet);
  border-bottom: var(--stroke) solid var(--rule);
  z-index: var(--z-sticky);
  display: flex; align-items: center;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5);
  width: min(100% - (2 * var(--s4)), var(--wrap));
  margin-inline: auto;
}
@media (min-width: 768px) {
  .header__inner { width: min(100% - (2 * var(--s7)), var(--wrap)); }
}

/* Typographic lockup, no mark */
.lockup {
  display: inline-flex; align-items: center; gap: var(--s3);
  text-decoration: none; color: var(--ink);
}
.lockup:hover { color: var(--ink); }
.lockup__a {
  font-family: var(--font-display);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 20, "wght" 800;
  font-size: var(--t-1);
  letter-spacing: -0.02em;
  line-height: 1;
}
.lockup__bar { width: 1px; height: 20px; background: var(--rule); }
.lockup__n {
  font-family: var(--font-data);
  font-size: var(--t--2);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--ink-2);
}

.nav { display: none; }
@media (min-width: 768px) {
  .nav { display: flex; align-items: center; gap: var(--s5); }
}
.nav a {
  font-family: var(--font-text);
  font-variation-settings: "opsz" 20, "wght" 500;
  font-size: var(--t--1);
  color: var(--ink);
  text-decoration: none;
  padding-block: var(--s2);
  border-bottom: var(--stroke) solid transparent;
}
.nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.nav a.is-current { border-bottom-color: var(--blue); color: var(--blue); }

.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sheet);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle:focus-visible { outline: var(--focus-w) solid var(--blue); outline-offset: var(--focus-off); }
.nav-toggle__bars { position: relative; width: 18px; height: 9px; display: block; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--ink);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { bottom: 4px; }

.nav-panel {
  position: fixed;
  inset: calc(var(--header-h) + var(--strip-h)) 0 0 0;
  background: var(--sheet);
  z-index: var(--z-panel);
  overflow-y: auto;
  border-top: var(--stroke) solid var(--rule);
}
.nav-panel[hidden] { display: none; }
@media (min-width: 768px) { .nav-panel { display: none !important; } }
.nav-panel a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: var(--s3);
  min-height: 56px;
  padding: var(--s4) var(--s4);
  border-bottom: var(--stroke) solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  font-variation-settings: "opsz" 20, "wght" 500;
}
.nav-panel a:hover, .nav-panel a:focus-visible { background: var(--sheet-2); color: var(--blue); }
.nav-panel a.is-current { color: var(--blue); }
.nav-panel__cta { padding: var(--s5) var(--s4); }
body.nav-open { overflow: hidden; }

/* ==========================================================================
   Register rows — the card replacement
   ========================================================================== */

.rec {
  display: grid;
  grid-template-columns: 88px 4fr 6fr 40px;
  gap: var(--gutter);
  align-items: start;
  min-height: 88px;
  padding-block: var(--s5);
  border-top: var(--stroke) solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.rec:last-of-type { border-bottom: var(--stroke) solid var(--rule); }
.rec__t { font-variation-settings: "opsz" 32, "wght" 600; font-size: var(--t-1); line-height: 1.28; }
.rec__b { color: var(--ink-2); max-width: 46ch; }
.rec__a { justify-self: end; color: var(--ink-2); }

.rec:hover, .rec:focus-visible {
  background: var(--sheet-2);
  border-top-color: var(--blue);
  border-top-width: var(--stroke-live);
  padding-top: calc(var(--s5) - 1px);
}
.rec:hover .rec__i, .rec:focus-visible .rec__i,
.rec:hover .rec__a, .rec:focus-visible .rec__a { color: var(--blue); }
.rec:focus-visible { outline: var(--focus-w) solid var(--blue); outline-offset: calc(var(--focus-off) * -1); }

@media (max-width: 767px) {
  .rec { grid-template-columns: 1fr auto; row-gap: var(--s3); min-height: 0; }
  .rec__i { grid-column: 1; }
  .rec__a { grid-column: 2; grid-row: 1; }
  .rec__t, .rec__b { grid-column: 1 / -1; }
}

/* Spec row — Services. Four columns, a different rhythm from .rec */
.spec {
  display: grid;
  grid-template-columns: 88px 1fr 1.35fr 220px;
  gap: var(--gutter);
  align-items: start;
  padding-block: var(--s6);
  border-top: var(--stroke) solid var(--rule);
}
.spec:last-of-type { border-bottom: var(--stroke) solid var(--rule); }
.spec__t { font-variation-settings: "opsz" 32, "wght" 600; font-size: var(--t-2); line-height: 1.2; }
.spec__t a { text-decoration-color: var(--blue); }
.spec__b { color: var(--ink-2); }
.spec__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.spec__list li {
  font-family: var(--font-data);
  font-size: var(--t--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.3;
}
@media (max-width: 1023px) {
  .spec { grid-template-columns: 88px 1fr; }
  .spec__b { grid-column: 2; }
  .spec__list { grid-column: 2; margin-top: var(--s2); }
}
@media (max-width: 767px) {
  .spec { grid-template-columns: 1fr; gap: var(--s3); }
  .spec__b, .spec__list { grid-column: 1; }
}

/* Revision register — Work. The pattern only this system could produce. */
.revs { border-top: var(--stroke) solid var(--rule); }
.rev-group { border-bottom: var(--stroke) solid var(--rule); padding-block: var(--s6); }
.rev {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--gutter);
  align-items: baseline;
  padding-block: var(--s2);
}
.rev__b { color: var(--ink-2); max-width: 62ch; }
.rev--current .rev__x { color: var(--redline); }
.rev--current .rev__b { color: var(--ink); }
.rev__tag { color: var(--redline); margin-left: var(--s3); }
.band--deep .rev--current .rev__x,
.band--deep .rev__tag { color: var(--redline-deep); }
.rev-group__id {
  display: grid; grid-template-columns: 88px 1fr; gap: var(--gutter);
  margin-top: var(--s4); padding-top: var(--s4);
  border-top: var(--stroke) solid var(--rule-hair);
}
@media (max-width: 767px) {
  .rev, .rev-group__id { grid-template-columns: 1fr; gap: var(--s1); }
}

/* Datum sequence — Process. Steps hung off the gutter rule. */
.seq { list-style: none; margin: 0; padding: 0; border-top: var(--stroke) solid var(--rule); }
.seq > li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--gutter);
  padding-block: var(--s5);
  border-bottom: var(--stroke) solid var(--rule);
  position: relative;
}
.seq > li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 1px;
  background: var(--blue);
}
.seq__t { font-variation-settings: "opsz" 32, "wght" 600; font-size: var(--t-1); margin-bottom: var(--s2); }
.seq__b { color: var(--ink-2); max-width: 58ch; }
@media (max-width: 767px) {
  .seq > li { grid-template-columns: 1fr; gap: var(--s2); }
}

/* Plain fact list — used where a register would be too heavy */
.facts { list-style: none; margin: 0; padding: 0; }
.facts > li {
  display: grid; grid-template-columns: 1fr; gap: var(--s1);
  padding-block: var(--s4);
  border-top: var(--stroke) solid var(--rule);
  color: var(--ink-2);
}
.facts > li:last-child { border-bottom: var(--stroke) solid var(--rule); }
.facts strong {
  font-variation-settings: "opsz" 24, "wght" 600;
  color: var(--ink); font-weight: 600;
}
.band--deep .facts > li { border-color: var(--rule-deep); color: var(--on-deep); }
.band--deep .facts strong { color: var(--sheet); }

/* Spec table — the hero's right column. Real facts, not a fake dashboard. */
.spec-table { border: var(--stroke) solid var(--rule); border-collapse: collapse; width: 100%; }
.spec-table caption {
  text-align: left; padding: var(--s3) var(--s4);
  background: var(--blue-wash); border-bottom: var(--stroke) solid var(--rule);
}
.spec-table th, .spec-table td {
  text-align: left; padding: var(--s3) var(--s4);
  border-top: var(--stroke) solid var(--rule);
  font-size: var(--t--1); vertical-align: top;
}
.spec-table th {
  font-family: var(--font-data); font-size: var(--t--2);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 500; width: 40%;
}
.spec-table td { color: var(--ink); font-variation-settings: "opsz" 18, "wght" 500; }

/* ==========================================================================
   Plates — real screenshots of real builds, framed as drawings
   ========================================================================== */

.plate { margin: 0; }
.plate__head { display: flex; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s3); }
.plate__frame { border: var(--stroke) solid var(--rule); display: block; }
.plate__frame img { width: 100%; height: auto; display: block; }
.plate figcaption { margin-top: var(--s3); color: var(--ink-2); font-size: var(--t--1); }
.plate figcaption strong {
  display: block; color: var(--ink);
  font-variation-settings: "opsz" 24, "wght" 600; font-weight: 600;
}
.plates { display: grid; gap: var(--s7); }
@media (min-width: 640px) { .plates--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   FAQ — native details, zero JS
   ========================================================================== */

.faq { border-top: var(--stroke) solid var(--rule); }
.faq:last-of-type { border-bottom: var(--stroke) solid var(--rule); }
.faq summary {
  display: grid;
  grid-template-columns: 88px 1fr 24px;
  gap: var(--gutter);
  align-items: center;
  min-height: 64px;
  padding-block: var(--s4);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-top: var(--stroke-live) solid transparent;
  margin-top: -1px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq summary:focus-visible {
  background: var(--sheet-2);
  border-top-color: var(--blue);
}
.faq summary:hover .faq__n, .faq summary:focus-visible .faq__n { color: var(--blue); }
.faq summary:focus-visible { outline: var(--focus-w) solid var(--blue); outline-offset: -2px; }
.faq__q { font-variation-settings: "opsz" 32, "wght" 600; font-size: var(--t-1); line-height: 1.3; }

/* marker: two 1px rules forming a +, vertical hidden when open giving a − */
.faq__m { position: relative; width: 16px; height: 16px; justify-self: end; }
.faq__m::before, .faq__m::after {
  content: ""; position: absolute; background: var(--ink);
}
.faq__m::before { left: 0; top: 7.5px; width: 16px; height: 1px; }
.faq__m::after  { top: 0; left: 7.5px; height: 16px; width: 1px; }
.faq[open] .faq__m::after { display: none; }

.faq__a { padding: 0 0 var(--s6) 0; }
@media (min-width: 768px) {
  .faq__a { padding-left: calc(88px + var(--gutter)); padding-right: calc(24px + var(--gutter)); }
}
.faq__a p { color: var(--ink-2); max-width: 62ch; }
@media (max-width: 767px) {
  .faq summary { grid-template-columns: 56px 1fr 20px; gap: var(--s3); }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form { max-width: 62ch; }
.field { margin-bottom: var(--s6); }
.field__label {
  display: block;
  font-family: var(--font-data); font-size: var(--t--2);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); margin-bottom: var(--s2);
}
.field__hint { font-size: var(--t--1); color: var(--ink-2); margin: 0 0 var(--s2); }

input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], select, textarea {
  width: 100%;
  font-family: var(--font-text);
  font-variation-settings: "opsz" 18, "wght" 400;
  font-size: var(--t-0);          /* >=16px prevents iOS zoom-on-focus       */
  color: var(--ink);
  background: var(--sheet);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius);
  padding: 12px var(--s4);
  min-height: 48px;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
textarea { min-height: 168px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 22px center, right 16px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: var(--s8);
}
:is(input, select, textarea):hover { border-color: var(--ink); }
:is(input, select, textarea):focus-visible {
  outline: var(--focus-w) solid var(--blue);
  outline-offset: var(--focus-off);
  border-color: var(--blue);
}
:is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--redline); border-width: 2px;
}

.field__error {
  display: flex; gap: var(--s2); align-items: baseline;
  font-family: var(--font-text); font-size: var(--t--1);
  color: var(--redline); margin-top: var(--s2);
}
.field__error::before { content: "\2715"; }

.form__status { margin-top: var(--s5); font-size: var(--t--1); }
.form__status[data-tone="error"] { color: var(--redline); }
.form__status[data-tone="busy"]  { color: var(--ink-2); }

/* The only centred content on the site. */
.form-success {
  text-align: center;
  border: var(--stroke) solid var(--rule);
  padding: var(--s8) var(--s5);
  background: var(--sheet-2);
}
.form-success:focus-visible { outline: var(--focus-w) solid var(--blue); outline-offset: var(--focus-off); }
.form-success .data { margin-bottom: var(--s4); display: block; }

.fieldset { border: 0; margin: 0 0 var(--s7); padding: 0; }
.fieldset legend {
  padding: 0; margin-bottom: var(--s5);
  font-family: var(--font-data); font-size: var(--t--2);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  font-weight: 500;
}
.field-row { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Footer — a drawing title block, not a link farm
   ========================================================================== */

.footer { border-top: var(--stroke) solid var(--rule); padding-block: var(--s8) var(--s6); }
.title-block {
  display: grid;
  grid-template-columns: 1fr;
  border: var(--stroke) solid var(--rule);
}
@media (min-width: 768px)  { .title-block { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .title-block { grid-template-columns: repeat(4, 1fr); } }
.title-block > div {
  padding: var(--s5);
  border-top: var(--stroke) solid var(--rule);
}
.title-block > div:first-child { border-top: 0; }
@media (min-width: 768px) {
  .title-block > div { border-left: var(--stroke) solid var(--rule); }
  .title-block > div:nth-child(-n+2) { border-top: 0; }
  .title-block > div:nth-child(2n+1) { border-left: 0; }
}
@media (min-width: 1024px) {
  .title-block > div { border-top: 0; }
  .title-block > div:nth-child(2n+1) { border-left: var(--stroke) solid var(--rule); }
  .title-block > div:first-child { border-left: 0; }
}
.title-block dt { margin-bottom: var(--s2); }
.title-block dd {
  margin: 0;
  font-variation-settings: "opsz" 20, "wght" 500;
  font-size: var(--t--1);
  line-height: 1.45;
}
.footer-nav {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  align-items: center;
  margin-top: var(--s5); padding-top: var(--s5);
  border-top: var(--stroke) solid var(--rule);
}
.footer-nav a {
  font-family: var(--font-data); font-size: var(--t--2);
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
}
.footer-nav a:hover { color: var(--blue); }
.footer-nav a:focus-visible { outline: var(--focus-w) solid var(--blue); outline-offset: var(--focus-off); }
.footer-nav__end { margin-left: auto; }

/* ==========================================================================
   Motion — one transition, one reveal
   ========================================================================== */

.reveal { opacity: 1; }
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-reveal) var(--ease),
              transform var(--dur-reveal) var(--ease);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

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

/* ==========================================================================
   Utilities — spans only, no ad-hoc values
   ========================================================================== */

.stack       { display: grid; gap: var(--s5); align-content: start; }
.stack--wide { display: grid; gap: var(--s7); align-content: start; }
.mt-6 { margin-top: var(--s6); }
.mt-7 { margin-top: var(--s7); }
.mb-5 { margin-bottom: var(--s5); }
.mb-6 { margin-bottom: var(--s6); }
.measure { max-width: var(--wrap-prose); }

@media (min-width: 768px) {
  .c1-7  { grid-column: 1 / 8;  }
  .c1-8  { grid-column: 1 / 9;  }
  .c2-8  { grid-column: 2 / 9;  }
  .c1-5  { grid-column: 1 / 6;  }
  .c4-12 { grid-column: 4 / 13; }
  .c5-12 { grid-column: 5 / 13; }
  .c6-12 { grid-column: 6 / 13; }
  .c7-12 { grid-column: 7 / 13; }
  .c9-12 { grid-column: 9 / 13; }
  .c1-12 { grid-column: 1 / 13; }
}
