/* RCG Solutions — one stylesheet for every page. Tokens first, then the
   primitives, then the components, then the two responsive breakpoints. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

:root {
  --navy: #050533;
  --navy-accent: #111e5f; /* the lighter navy: headline clause and every dark CTA fill */
  --on-navy: #edf1f7;
  --on-navy-muted: #a9b3c6;
  --bg: #ffffff;
  --alt: #f6f4ee;
  --ink: #050533;
  --body: #2c2b26;
  --muted: #5b574c;
  --rule: #dce1e7;
  --teal: #0d698b;
  --teal-dark: #094f69;
  --lift: #2ca5d6;
  --lift-hover: #59bde4;
  --mark: #c97b12;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Eleven type sizes. Every heading, paragraph and label in the sheet reads
     one of these; a new size is a change to the system, not to one rule. */
  --fs-display: clamp(2.3rem, 1.7rem + 2.4vw, 3.6rem);   /* a page head */
  --fs-hero: clamp(2.5rem, 1.4rem + 3.4vw, 3.9rem);      /* the home hero */
  --fs-headline: clamp(1.9rem, 1.5rem + 1.8vw, 2.8rem);  /* a section head */
  --fs-band: clamp(1.5rem, 1.2rem + 1.3vw, 2.15rem);     /* the navy band */
  --fs-title-lg: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); /* a block title */
  --fs-title: 1.2rem;   /* a card title */
  --fs-body: 17px;      /* prose, ledes, section intros */
  --fs-small: 15px;     /* card copy, lists, notes */
  --fs-label: 12px;     /* buttons, eyebrows, section labels */
  --fs-label-sm: 11px;  /* metadata, statuses, the floor */
  --fs-input: 16px;     /* fields, so iOS does not zoom on focus */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
.wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 56px);
}
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.tabular { font-variant-numeric: tabular-nums; }
/* body copy only: headings break on purpose, and `pretty` would move those breaks */
p, li { text-wrap: pretty; }
/* a greedy fill leaves an 11-35%-wide last line on 18 headings; balance evens
   the rag. The hero is hand-broken into spans, so it is untouched. */
h1, h2, h3 { text-wrap: balance; }

/* ---------- one-row header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  /* opaque: at 95% the page heading ghosted through under the brand block */
  background: var(--bg);
  border-bottom: 1.5px solid var(--ink);
}
.hdr-in { display: flex; align-items: center; gap: clamp(24px, 3.4vw, 48px); height: 94px; }
/* 8px of vertical padding on the mark: a 26px-tall logo is a 26px tap target */
.brand { display: inline-flex; align-items: center; gap: 10px; padding-block: 9px; color: var(--ink); text-decoration: none; }
/* the practice's own mark: an R whose leg leaves as an arrow. Never redrawn in CSS. */
.brand-mark { display: block; width: auto; height: 26px; }
.brand-name {
  font-size: var(--fs-title); line-height: 0.9; color: var(--ink); font-weight: 800; letter-spacing: -0.04em;
  border-left: 1px solid var(--rule); padding-left: 12px; white-space: nowrap;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a {
  display: inline-block;
  font-size: var(--fs-small); font-weight: 500; color: var(--body); text-decoration: none; white-space: nowrap;
  padding: 10px 0; border-bottom: 2px solid transparent;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--mark); }
.nav .cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; background: var(--navy-accent); color: var(--bg); border: 1px solid var(--navy-accent);
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.07em; text-transform: uppercase;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 130ms var(--ease);
}
.nav .cta:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.nav .cta:active { transform: scale(0.97); }

/* ---------- hero copy primitives ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.headline {
  font-size: var(--fs-display);
  font-weight: 700; letter-spacing: -0.042em; line-height: 0.94; color: var(--ink);
}
.headline span { display: block; }
.headline span + span { margin-top: 0.06em; }
.headline + .lede { margin-top: 28px; }
.eyebrow + .headline { margin-top: 0; }
/* two-tone headline: navy body, one step lighter on the closing clause */
.headline em { font-style: normal; color: var(--navy-accent); }
.lede {
  margin-top: 24px; font-size: var(--fs-body);
  line-height: 1.6; color: var(--body); max-width: 46ch;
}
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
/* the unit, under the hero CTAs: the four facts a CAD manager needs before he reads
   anything else, set in mono because three of the four are not words */
.hero-terms {
  display: flex; flex-wrap: wrap; align-items: baseline; margin-top: 26px;
  font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
}
.hero-terms span + span::before { content: "·"; margin: 0 11px; color: var(--rule); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; background: var(--navy-accent); color: var(--bg); border: 1px solid var(--navy-accent);
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 130ms var(--ease);
}
.btn:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.btn:active { transform: scale(0.97); }
.btn-ghost {
  display: inline-flex; align-items: center; padding: 15px 22px;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), transform 130ms var(--ease);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-ghost:active { transform: scale(0.97); }

/* ---------- drawing ---------- */





/* ========== C1 — full bleed with left veil ========== */
.hero--bleed {
  position: relative; overflow: hidden; background: var(--bg);
  min-height: clamp(560px, 74vh, 760px);
  border-bottom: 1.5px solid var(--ink);
}
/* The drawing sits in the content column, not against the window: same measure and the
   same gutter as .wrap, so its right edge lands on the same line as the copy's left edge
   and the brand above it. It used to be inset:0, which put the callout labels 25-38px from
   the scrollbar and made the drawing read as wallpaper rather than a plate. */
.hero-stage {
  position: absolute; inset-block: 0; left: 50%; transform: translateX(-50%);
  width: calc(min(1240px, 100%) - 2 * clamp(24px, 5vw, 56px));
  z-index: 0;
}
.hero-stage svg { display: block; width: 100%; height: 100%; }
/* the phone figure; a media query below swaps it in for the wide one */
.hero-stage svg + svg { display: none; }
.hero-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(255,255,255,0.35) 60%, rgba(255,255,255,0) 78%);
}
.hero--bleed .hero-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  /* the hero is the first screen, and the claims strip below it is the wedge: 88px of
     air above and below is enough to make the drawing breathe, and 124px was enough
     to push the three claims under a 900px fold */
  min-height: clamp(520px, 72vh, 720px);
  padding-block: clamp(60px, 5.4vw, 72px);
}
/* the copy stacks: eyebrow, headline, lede, buttons — never side by side */
.hero--bleed .hero-copy {
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: 34rem;
}

/* ========== C2 — split sheet ========== */






/* ========== C3 — copy, then stage as a band ========== */








/* ========== C4 — framed sheet ========== */















@media (max-width: 980px) {
  .hero-split, .sheet-top, .sheet-bottom { grid-template-columns: 1fr; }
  .sheet-copy { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .sheet-notes { border-right: 0; border-bottom: 1px solid var(--rule); }
  .nav { gap: 0; }
  .nav a:not(.cta) { display: none; }
  .hero--bleed .hero-inner > * { max-width: 100%; }
}

.sec { padding: clamp(76px, 9vw, 120px) 0; border-bottom: 1px solid var(--rule); }
.sec--alt { background: var(--alt); }
.sec-label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.15em; text-transform: uppercase;
}
.sec-label b { color: var(--mark); font-weight: 600; }
.sec-label span { color: var(--teal); }
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 22px 64px; align-items: end; margin-bottom: clamp(42px, 5vw, 64px); }
.sec-head h2 { font-size: var(--fs-headline); font-weight: 600; line-height: 1.06; letter-spacing: -0.032em; }
.sec-head p { color: var(--muted); font-size: var(--fs-body); max-width: 46ch; }


/* ---- from sketch to steel: sticky figure, no JavaScript ---- */
.sec--pipe { border-bottom: 1px solid var(--rule); }
.pipe { display: flex; flex-direction: column; }
/* A drawing register: numbered stages, figure and caption side by side, a
   hairline closing each row. The
   figure used to be `position: sticky` at top 96px, but 364px of figure against
   a 209px caption leaves a zero scroll range — the effect never fired at any
   width, so it was removed rather than documented. */
.pipe-stage {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px); align-items: start;
  padding-block: clamp(22px, 2.8vw, 34px);
  border-top: 1px solid var(--rule);
}
.pipe-stage:first-child { border-top: 2px solid var(--ink); }
.pipe-fig { background: var(--bg); border: 1.4px solid var(--ink); }
.pipe-fig svg { display: block; width: 100%; height: auto; }
.pipe-num { display: block; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.12em; color: var(--mark); margin-bottom: 10px; }
/* the caption is short and the figure is 400px; centred, the white reads as
   alignment rather than as a hole under the text */
.pipe-copy { align-self: center; }
.pipe-copy h3 { font-size: var(--fs-title-lg); font-weight: 600; letter-spacing: -0.026em; line-height: 1.14; margin-bottom: 12px; }
.pipe-copy p { color: var(--body); font-size: var(--fs-body); max-width: 46ch; }

.offers-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.offer-col { border-top: 2px solid var(--ink); padding-top: 26px; display: flex; flex-direction: column; }
.offer-label { font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.offer-col h3 { font-size: var(--fs-title-lg); font-weight: 600; letter-spacing: -0.028em; line-height: 1.12; margin-bottom: 12px; }
.offer-for { color: var(--muted); font-size: var(--fs-small); margin-bottom: 18px; max-width: 40ch; }
.offer-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 9px; }
.offer-list li { position: relative; padding-left: 20px; color: var(--body); font-size: var(--fs-small); }
.offer-list li::before { content: "—"; position: absolute; left: 0; color: var(--mark); }
.offer-go {
  margin-top: auto; align-self: flex-start; gap: 8px;
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 4px;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.offer-go:hover { color: var(--teal); border-color: var(--teal); }
/* the sentence under a grid of offers, and the one link it ends on */
.offer-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-top: 26px; }
.offer-foot .offer-go { margin-top: 0; }

.offers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.offer { background: var(--bg); border: 1px solid var(--ink); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.offer-tag { font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.offer h3 { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.02em; }
.offer-meta { font-family: var(--mono); font-size: var(--fs-label); color: var(--ink); background: var(--alt); padding: 7px 10px; border-left: 2px solid var(--mark); }
.offer p { color: var(--body); font-size: var(--fs-small); flex: 1; }
.offer-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 16px; border: 1px solid var(--ink);
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.offer-cta:hover { background: var(--navy-accent); color: var(--bg); }

/* The four ways to buy, stated as a schedule. Four cards each ending in a
   full-width button put five primaries in one viewport next to a sticky header
   CTA; a register states the same four shapes without competing with it. */
.schedule { border-top: 2px solid var(--ink); margin-top: clamp(28px, 3vw, 40px); }
.schedule-head, .schedule-row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) 250px 200px;
  gap: clamp(12px, 1.6vw, 22px);
}
.schedule-head {
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.schedule-row { padding: clamp(18px, 2vw, 26px) 0; border-bottom: 1px solid var(--rule); align-items: start; }
/* the same register with three columns: a project has a status where a purchasable
   thing has an action, and an empty action cell is a hole not a hierarchy */
.schedule--work .schedule-head, .schedule--work .schedule-row {
  grid-template-columns: 54px minmax(0, 1fr) 250px;
}
.schedule-n {
  font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.1em;
  color: var(--mark-text); padding-top: 3px;
}
.schedule-what h3 { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.018em; }
/* em, not ch: 62ch set 84 characters on the rendered lines, 30em sets 70 */
.schedule-what p { margin-top: 7px; color: var(--body); font-size: var(--fs-small); max-width: 30em; }
.schedule-basis {
  font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.06em;
  line-height: 1.55; text-transform: uppercase; color: var(--muted);
}
.offer-link {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; white-space: nowrap;
  min-height: 44px;
  font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 3px;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.offer-link:hover { color: var(--teal-dark); border-bottom-color: var(--teal); }

@media (max-width: 980px) {
  .schedule-head { display: none; }
  .schedule-row, .schedule--work .schedule-row { grid-template-columns: 44px minmax(0, 1fr); }
  .schedule-basis, .offer-link { grid-column: 2; }
}


/* auto-fit, not three fixed columns: the homepage carried three notes, then the audit
   card came off it, and the grid should not hold a hole open for a card that left */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.note {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); border: 1px solid var(--rule); padding: clamp(22px, 2.6vw, 30px);
  text-decoration: none; color: inherit;
  transition: border-color 150ms var(--ease);
}
.note:hover { border-color: var(--ink); }
.note-meta { font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.note h3 { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.018em; line-height: 1.26; }
.note p { color: var(--muted); font-size: var(--fs-small); flex: 1; }
.note-go { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; }

.closing { background: var(--navy); color: var(--on-navy); padding: clamp(60px, 7vw, 92px) 0; }
.closing-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 56px; }
.closing h2 { font-size: var(--fs-band); font-weight: 600; color: var(--bg); letter-spacing: -0.025em; line-height: 1.16; max-width: 34ch; }
.closing p { margin-top: 12px; color: var(--on-navy-muted); font-size: var(--fs-small); max-width: 54ch; }
.btn.lift { background: var(--lift); border-color: var(--lift); color: var(--navy); font-weight: 600; }
.btn.lift:hover { background: var(--lift-hover); border-color: var(--lift-hover); color: var(--navy); }

@media (max-width: 980px) {
  .sec-head, .offers-two, .offers, .notes-grid { grid-template-columns: minmax(0, 1fr); }
  .pipe-stage { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 700px) {
  /* stacked, a full-width figure sets its 9.5-unit notes under 11px — print plate
     scale, texture rather than evidence — so below this the caption carries the stage */
  .pipe-fig { display: none; }
}

/* ---------- §03 on the homepage: one issued sheet, and five stages named ----------
   The register itself — all five drawings — is /services/#how. Here one sheet stays,
   because a homepage that shows no artifact asks the reader to take the rest on
   trust, and this one is the artifact the audience recognises. */
/* 1.45fr, not 1.15: the sheet's own notes are 9.5 units in a 540 viewBox and below
   ~630px of figure they fall under the 11px floor the rest of the sheet keeps */
.strip-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 34px; }
.strip-fig { background: var(--bg); border: 1.4px solid var(--ink); }
.strip-fig svg { display: block; width: 100%; height: auto; }
.strip-side { min-width: 0; }
.strip-stages { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.strip-stages li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 3px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.strip-stages b { grid-row: span 2; padding-top: 2px; font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.1em; color: var(--mark-text); }
.strip-name { font-size: var(--fs-small); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.strip-note { grid-column: 2; color: var(--muted); font-size: var(--fs-label-sm); line-height: 1.55; }
.strip-link { margin-top: 18px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; }
.strip-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.strip-link a:hover { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 1180px) {
  /* stacked, capped at 640px: full width here would make the figure a 700px band and
     the section taller than the page it used to sit on; 640 keeps its notes at 11.3px */
  .strip-grid { grid-template-columns: minmax(0, 1fr); }
  .strip-fig { width: min(100%, 640px); justify-self: center; }
}
@media (max-width: 700px) {
  /* the same rule as the register's figures: under 11px a drawing is texture */
  .strip-fig { display: none; }
}

/* ---------- inner page heads, situations, package, exclusions ---------- */
/* ---- page head, quieter than the home hero ---- */
.head-sec { border-bottom: 1.5px solid var(--ink); background: var(--bg); position: relative; overflow: hidden; }
/* the head's padding bound the phone's first screen: at 390 it held 204px of air
   above the first field of a form. The floor is lower; the desktop value is the same. */
.head-grid { padding-block: clamp(56px, 13vw, 184px) clamp(40px, 10vw, 148px); }
.headline span + span { margin-top: 0.06em; display: block; }
.head-grid .eyebrow { margin-bottom: 30px; }
.head-grid .lede { max-width: 62ch; margin-top: 26px; }
/* the call line under the contact lede: a different voice, so it gets its own air */
.head-grid .form-note { max-width: 56ch; margin-top: 12px; }

/* ---- situations: You send / You get ---- */
.sit-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 14px; border: 1px solid var(--rule); }
.sit-pair > div { padding: 12px 14px; font-size: var(--fs-small); }
.sit-pair > div + div { border-left: 1px solid var(--rule); }
.sit-pair b { display: block; font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 5px; }
.sit-pair > div + div b { color: var(--mark-text); }

/* ---- what is not included ---- */
.excluded { border-top: 2px solid var(--ink); }
.excluded-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px 40px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.excluded-row dt { font-size: var(--fs-small); font-weight: 600; letter-spacing: -0.015em; }
.excluded-row dd { margin: 0; color: var(--muted); font-size: var(--fs-small); }

@media (max-width: 980px) {
  .sit-pair { grid-template-columns: minmax(0, 1fr); }
  .sit-pair > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .excluded-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ---------- rules, the standard, the tooling ---------- */
/* numbered rules */
.rules { border-top: 2px solid var(--ink); }
.rule { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.rule-n { font-family: var(--mono); font-size: var(--fs-label); color: var(--mark); letter-spacing: 0.1em; padding-top: 4px; }
.rule h3 { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.022em; line-height: 1.2; }
.rule p { color: var(--body); font-size: var(--fs-small); }
.rule .mech { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.04em; color: var(--teal); display: block; margin-top: 8px; }

/* the standard, in two columns of facts */
.std { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.std-block { border-top: 2px solid var(--ink); padding-top: 22px; }
.std-block h3 { font-size: var(--fs-title-lg); font-weight: 600; letter-spacing: -0.022em; margin-bottom: 12px; }
.std-block p { color: var(--body); font-size: var(--fs-small); }
/* the term is a label, so it stays mono at 11px; the value is a phrase and
   sets at body size in Archivo — mono never sets a sentence */
.std-list { list-style: none; padding: 0; margin: 16px 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--body); }
.std-list b { font-family: var(--mono); font-size: var(--fs-label-sm); color: var(--ink); font-weight: 500; }

/* tools with their limits */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool { background: var(--bg); border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tool-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.tool h3 { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.018em; }
.tool p { color: var(--body); font-size: var(--fs-small); flex: 1; }
.tool .limit { padding-top: 12px; border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--muted); }
.tool .limit b { color: var(--mark-text); font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 4px; }
/* three tool cards need ~180px each before a mono label or a long compound
   word sets the column width; below that the grid overflows the page */
@media (max-width: 980px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tools { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- skip link and focus ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 16px;
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px;
}

/* ---------- current page in the one-row header ---------- */
/* The five page slots, by the name the page declares for itself. Renaming a route
   without renaming it here costs the current-page mark silently: /work/ and
   /automation/ shipped this way for a day. */
[data-page="services"] .nav a[data-nav="services"],
[data-page="work"] .nav a[data-nav="work"],
[data-page="automation"] .nav a[data-nav="automation"],
[data-page="knowledge"] .nav a[data-nav="knowledge"],
[data-page="about"] .nav a[data-nav="about"] {
  /* the current page must not look like a hovered one: teal, not ink+amber */
  color: var(--teal); border-bottom-color: var(--teal);
}
/* The CTA is not styled for the contact page: a button that highlights itself and
   links to the page it sits on is a false affordance, and it also hid the rule
   above — a teal button is exactly what the mark looks like. */

/* ---------- footer ---------- */
.ftr { background: var(--alt); border-top: 1.5px solid var(--ink); padding-top: clamp(44px, 5vw, 64px); }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.1fr); gap: 32px 44px; padding-bottom: clamp(30px, 4vw, 44px); }
.ftr-brand p { margin-top: 14px; color: var(--muted); font-size: var(--fs-small); max-width: 32ch; }
.ftr-h {
  display: block; margin-bottom: 12px; font-family: var(--mono); font-size: var(--fs-label-sm);
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}
.ftr-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-small); }
.ftr-list a {
  display: inline-flex; align-items: center; min-height: 44px; }
/* small print: the promise, the country and the invoice, quieter than a link */
.ftr-list .ftr-note { color: var(--muted); }
.ftr a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 150ms var(--ease); }
.ftr a:hover { border-bottom-color: var(--mark); }
.colophon {
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between;
  border-top: 1px solid var(--rule); padding-block: 18px 22px;
  font-family: var(--mono); font-size: var(--fs-label-sm); color: var(--muted);
}

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea, .field select {
  font: inherit; font-size: var(--fs-input); color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule); border-bottom: 1.5px solid var(--ink);
  padding: 11px 12px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); }
.field-hp { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }
/* No JavaScript runs on this page, so the browser's own constraint validation is
   the only inline check there is. :has() lets the label name the problem and the
   field edge switch from ink to amber; nothing is said before the first attempt. */
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--mark-text); border-bottom-color: var(--mark-text); }
.field:has(:user-invalid) label::after { content: " — check this"; color: var(--mark-text); }
/* a hint under a field, in the muted colour: same size as the error note, a different job */
.field-hint { display: block; font-size: var(--fs-small); color: var(--muted); }
/* the native file control keeps its own button and its own two strings — neither can
   be replaced without script — so it gets the sheet's type and colour and nothing else */
.field input[type=file] { padding: 9px 12px; font: inherit; font-size: var(--fs-small); color: var(--muted); }
.field input[type=file]::file-selector-button {
  font: inherit; font-size: var(--fs-small); color: var(--ink);
  background: var(--alt); border: 1px solid var(--rule);
  padding: 6px 10px; margin-right: 12px; cursor: pointer;
}
/* a sentence, so Archivo, not mono: mono never sets a sentence */
.field-note { display: block; font-size: var(--fs-small); color: var(--mark-text); }
/* the 500 page prints the typed message back so it cannot be lost */
.msg-copy {
  white-space: pre-wrap; margin-top: 10px; padding: 14px 16px; max-width: 62ch;
  background: var(--alt); border-left: 2px solid var(--mark); font-size: var(--fs-small); color: var(--ink);
}
.optional { font-family: var(--sans); font-size: var(--fs-label-sm); letter-spacing: 0; text-transform: none; color: var(--muted); }
/* the fragment the offer link carried: ':target' is the whole mechanism, because a
   published page runs no script and a static file cannot read a query string */
/* scroll-margin clears the opaque header the fragment scrolls under */
.intent-note { display: none; scroll-margin-top: 120px; }
.intent-note:target {
  display: block; margin-bottom: 22px; padding: 12px 0 12px 14px;
  border-left: 3px solid var(--mark-text); font-size: var(--fs-small); color: var(--body);
}
.intent-note em { font-style: normal; color: var(--ink); font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { font-size: var(--fs-small); color: var(--muted); max-width: 42ch; }
.contact-aside { display: grid; gap: 22px; border-left: 1px solid var(--rule); padding-left: clamp(16px, 2.4vw, 30px); }
.contact-aside h2 {
  font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 6px;
}
.contact-aside p { color: var(--body); font-size: var(--fs-small); }
.contact-aside a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.contact-aside a:hover { color: var(--teal-dark); }

/* ---------- prose: posts and privacy ---------- */
/* em, not ch: `ch` is the width of the zero glyph, so 66ch set ~88 characters
   per rendered line. 31em sets ~69. */
.prose { max-width: 31em; }
.prose h2 {
  font-size: var(--fs-title-lg); font-weight: 600;
  letter-spacing: -0.024em; line-height: 1.2; margin-top: 40px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.018em; margin-top: 28px; }
.prose p { color: var(--body); font-size: var(--fs-body); margin-top: 14px; }
.prose ul, .prose ol { margin-top: 14px; padding-left: 22px; display: grid; gap: 8px; }
.prose li { color: var(--body); font-size: var(--fs-body); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { color: var(--teal-dark); }
.post-back { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; }
.post-back a { color: var(--teal); text-decoration: none; }

@media (max-width: 980px) {
  .ftr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { border-left: 0; border-top: 1px solid var(--rule); padding: 22px 0 0; }
}
@media (max-width: 640px) {
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- home hero shell, situations, package ---------- */
.hero { position: relative; background: var(--bg); border-bottom: 1.5px solid var(--ink); }
.sits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.sit {
  background: var(--bg); border: 1px solid var(--ink); padding: clamp(22px, 3vw, 30px);
  display: flex; flex-direction: column; gap: 12px;
}
.sit-num {
  font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal);
}
.sit h3 { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.sit > p { color: var(--body); font-size: var(--fs-small); flex: 1; }
.deliverables { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.deliv {
  background: var(--bg); border: 1px solid var(--rule); border-top: 2px solid var(--ink);
  padding: clamp(22px, 3vw, 28px); display: flex; flex-direction: column; gap: 10px;
}
.deliv-top {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: var(--fs-label-sm); letter-spacing: 0.1em; text-transform: uppercase;
}
.deliv-tag { color: var(--mark-text); }
.deliv-ext { color: var(--muted); }
.deliv h3 { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.018em; line-height: 1.22; }
.deliv p { color: var(--body); font-size: var(--fs-small); }
.deliv-checks {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: var(--fs-label-sm); color: var(--muted);
}

@media (max-width: 980px) {
  .sits, .deliverables { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- hero: three lines of headline, and a veil that earns its name ---------- */
.hero--bleed .hero-copy { max-width: 40rem; }
.hero--bleed .headline { font-size: var(--fs-hero); line-height: 0.98; }
.hero--bleed .lede { max-width: 40ch; margin-top: 22px; }
.hero--bleed .ctas { margin-top: 24px; }

/* the three claims: a title strip under the hero, the way a sheet's field row sits
   under its title block — three cells, hairlines between, no card, no shadow */
.claims { border-bottom: 1px solid var(--rule); }
.claims-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.claim { padding-block: 22px; }
.claim + .claim { border-left: 1px solid var(--rule); padding-left: 24px; }
/* the wedge, stated as a field row: a numeral, a claim, one sentence of evidence.
   The titles are h2 and not <b>, because a page whose argument is three claims should
   say them in its outline, where a screen reader's heading list can hear them. */
.claim h2 {
  max-width: 26ch; font-size: var(--fs-title-lg); font-weight: 600;
  letter-spacing: -0.022em; line-height: 1.16; text-wrap: balance;
}
.claim-body { display: block; margin-top: 10px; max-width: 36ch; color: var(--muted); font-size: var(--fs-small); }

@media (max-width: 980px) {
  .claims-grid { grid-template-columns: minmax(0, 1fr); }
  .claim { padding-block: 20px; }
  .claim + .claim { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
}

/* under 980 a full-width drawing would set its 12-unit labels below 12px, and
   slicing it to fill the hero cut the callouts off. It becomes its own band with
   its own figure: two callouts at 22 units, 12.9px on a 390 viewport. */
@media (max-width: 980px) {
  .hero--bleed { display: flex; flex-direction: column; }
  .hero--bleed .hero-inner { order: 1; min-height: 0; padding-block: 56px 40px; width: 100%; margin-inline: 0; }
  .hero-stage { position: relative; order: 2; height: auto; left: auto; transform: none; width: auto; }
  .hero-stage svg { display: none; }
  /* full width on a phone, capped on a tablet so the band stays a band */
  .hero-stage svg + svg { display: block; max-height: 620px; margin-inline: auto; }
  .hero-stage::after { content: none; }
  .hero--bleed { min-height: 0; }
}

/* ---------- small screens: the nav links are hidden by an inherited prototype
   rule from when a menu toggle existed. There is no toggle here. ---------- */
@media (max-width: 980px) {
  .nav a:not(.cta) { display: block; }
  .nav { gap: 12px 22px; }
}
@media (max-width: 960px) {
  /* the header is static here, so the fragment needs no room above it */
  .intent-note { scroll-margin-top: 24px; }
  /* three rows — mark and name, five links, CTA — from where six links stop fitting
     beside the bold name in one row, which is well above the phone. The height has to
     go auto here: at 94px with a fixed height the wrapped rows ran out of the header
     and into its padding. And the reader only needs them at the top: sticky, those
     164px held 19% of an 844px viewport permanently on a page 9,000px tall. */
  .hdr { position: static; }
  .hdr-in { height: auto; padding-block: 14px; flex-wrap: wrap; gap: 12px 18px; }
  .nav { width: 100%; margin-left: 0; flex-wrap: wrap; gap: 10px 16px; }
  .nav .cta { width: 100%; justify-content: center; margin-top: 4px; }
}

/* page heads: a headline measure that stops a long title from running the page width */
.head-grid .headline { max-width: 26ch; }
.head-grid .lede { max-width: 58ch; }

/* ---------- contrast: the amber is a rule and a mark, not a text colour ----------
   #c97b12 is 3.3:1 on white, which is fine for a 1px rule and not fine for a
   label. The labels get the darker amber (5.99:1 on white, 5.44:1 on --alt). */
:root { --mark-text: #96520a; }
.sec-label b, .rule-n, .pipe-num, .deliv-tag, .tool .limit b, .sit-pair > div + div b { color: var(--mark-text); }

/* ---------- phone: five links on one line, then the button ----------
   At 390px the five labels wrap and orphan "About" on a row of its own, which
   makes the header 235px tall. 14px and a 12px gap fits all five inside a 342px
   content width, so the header is brand + one row of links + the button. */
@media (max-width: 760px) {
  .nav { gap: 0 12px; }
  .nav a:not(.cta) { font-size: 14px; }
  .nav .cta { margin-top: 10px; }
}
@media (max-width: 380px) {
  .nav a:not(.cta) { font-size: 13px; }
  .nav { gap: 0 9px; }
}

/* ---------- reduced motion: the press still changes colour, it just stops
   moving. Only the transform leaves the transition, so hover and active keep
   their 150ms colour change. ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav .cta, .btn { transition-property: background-color, border-color; }
  .btn-ghost { transition-property: background-color, color; }
  .nav .cta:active, .btn:active, .btn-ghost:active { transform: none; }
}
