/* DRC Digital : site.css. The whole design system: tokens, base, header/footer, every component.
   Pages only write HTML. Reference and example markup: work/DESIGN.md.
   Direction: a job record, not a SaaS page. White sheet, graphite ink, one chalk-line red.
   Contrast (WCAG 2.x): ink 17.1:1, ink-2 11.8:1, ink-soft 7.4:1 on white (6.7:1 on concrete),
   red 5.7:1 on white, white on red 5.7:1, on-dark 15.5:1 and on-dark-soft 9.2:1 on graphite. */

:root {
  --white: oklch(1 0 0);                 /* #ffffff page */
  --concrete: oklch(0.962 0.004 255);    /* #f1f3f5 alternate section */
  --concrete-2: oklch(0.925 0.006 255);  /* #e4e6ea */
  --ink: oklch(0.225 0.014 255);         /* #171c22 text, rules */
  --ink-2: oklch(0.34 0.014 255);        /* #33383f secondary text */
  --ink-soft: oklch(0.45 0.014 255);     /* #50565d captions, labels */
  --line: oklch(0.86 0.008 255);         /* #cdd1d6 hairline dividers */
  --line-strong: oklch(0.62 0.012 255);  /* #81878d form-like borders, 3.6:1 */
  --red: oklch(0.535 0.19 29);           /* #c32b21 chalk-line red: CTA, marks */
  --red-deep: oklch(0.465 0.17 29);      /* #a31e16 hover, red text */
  --red-tint: oklch(0.955 0.022 29);     /* #ffebe8 flagged row */
  --graphite: oklch(0.225 0.014 255);    /* #171c22 closing band + footer */
  --on-dark: oklch(0.965 0.004 255);     /* #f2f4f6 */
  --on-dark-soft: oklch(0.80 0.01 255);  /* #b9bec4 */
  --on-dark-line: oklch(0.40 0.014 255); /* #43484f */
  --red-on-dark: oklch(0.75 0.13 29);    /* #f58c7e underline/marks on graphite */

  --font: 'Libre Franklin', 'Franklin Gothic Medium', 'Franklin Gothic', 'Helvetica Neue', Arial, sans-serif;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --t-md: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --t-lg: clamp(1.3125rem, 1.16rem + 0.7vw, 1.75rem);
  --t-xl: clamp(1.75rem, 1.38rem + 1.7vw, 2.75rem);
  --t-2xl: clamp(2.25rem, 1.6rem + 2.9vw, 3.75rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --wrap: 76rem;
  --measure: 66ch;
  --pad-y: clamp(3.5rem, 7vw, 6.5rem);
  --gap: clamp(2rem, 4vw, 4rem);
  --radius: 2px;
  --frame: 1.5px solid var(--ink);
  --rule: 3px solid var(--ink);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-head: 50;
  --z-skip: 100;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: var(--t-base); line-height: 1.6; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; line-height: 1.15; letter-spacing: -0.012em; text-wrap: balance; }
p, ul, ol, dl, dd, figure, table { margin: 0; }
p, li { text-wrap: pretty; }
strong { font-weight: 700; }
::selection { background: var(--red); color: var(--white); }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--radius); }
.band :focus-visible, .site-foot :focus-visible { outline-color: var(--on-dark); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: var(--gutter); top: -5rem; z-index: var(--z-skip); background: var(--ink); color: var(--on-dark); padding: 0.75rem 1rem; font-weight: 700; text-decoration: none; }
.skip:focus { top: 0.5rem; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.8rem 1.35rem; background: var(--red); color: var(--white); border: 0; border-radius: var(--radius); font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.18s, transform 0.18s var(--ease); }
.btn:hover { background: var(--red-deep); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.5rem; padding: 0.55rem 1rem; font-size: var(--t-sm); }
.btn--lg { min-height: 3.5rem; padding: 1rem 1.6rem; font-size: var(--t-md); white-space: normal; overflow-wrap: anywhere; }
.more { margin-top: 1rem; }
.more a, a.more { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 1px; }
.more a::after, a.more::after { content: "\2192" / ""; display: inline-block; margin-left: 0.4em; transition: transform 0.2s var(--ease); }
.more a:hover::after, a.more:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.email-plain { font-weight: 700; user-select: all; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: var(--z-head); background: var(--white); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; color: var(--ink); font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name span { font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 0.55rem 0.6rem; color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; text-decoration: none; }
.site-nav ul a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); }
.site-nav ul a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--red); }
.menu-btn { display: none; }
@media (max-width: 959px) {
  html.js .menu-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.9rem; background: var(--white); color: var(--ink); border: var(--frame); border-radius: var(--radius); font: inherit; font-weight: 700; cursor: pointer; }
  html.js .menu-btn::after { content: ""; width: 0.55rem; height: 0.55rem; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s var(--ease); }
  html.js .is-open .menu-btn::after { transform: translateY(2px) rotate(-135deg); }
  html.js .site-nav { display: none; }
  html.js .is-open .site-nav { display: grid; gap: 1rem; position: absolute; top: 100%; left: 0; right: 0; padding: 0.75rem var(--gutter) 1.5rem; background: var(--white); border-bottom: var(--frame); }
  html.js .is-open .site-nav ul { flex-direction: column; }
  html.js .is-open .site-nav ul a { padding: 0.8rem 0; font-size: var(--t-md); border-bottom: 1px solid var(--line); }
  html.js .is-open .site-nav ul a[aria-current="page"] { box-shadow: none; color: var(--red-deep); }
  html.js .is-open .site-nav .btn { justify-self: start; }
  html:not(.js) .head-row { flex-wrap: wrap; gap: 0.5rem 1rem; padding-block: 0.75rem; }
  html:not(.js) .site-nav { flex-basis: 100%; flex-wrap: wrap; gap: 0.5rem 1rem; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
  html:not(.js) .site-nav ul a { padding-inline: 0 0.75rem; }
  html:not(.js) .site-head { position: static; }
}

/* ---------- sections and type ---------- */
.section { padding-block: var(--pad-y); }
.section--concrete { background: var(--concrete); }
.section h2, .h2 { font-size: var(--t-xl); font-weight: 800; letter-spacing: -0.02em; max-width: 24ch; }
.intro { margin-top: 1rem; max-width: var(--measure); color: var(--ink-2); font-size: var(--t-md); }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }
.prose h3 { margin-top: 2rem; font-size: var(--t-lg); }
.lead { margin-top: 1.25rem; max-width: 44ch; color: var(--ink-2); font-size: var(--t-md); line-height: 1.5; }
.fineprint { margin-top: 1.25rem; color: var(--ink-soft); font-size: var(--t-sm); }
.eyebrow { display: flex; align-items: baseline; gap: 0.75rem; color: var(--ink-2); font-size: var(--t-sm); font-weight: 650; }
.eyebrow::before { content: ""; flex: none; width: 2rem; height: 3px; background: var(--red); transform: translateY(-0.3em); }
.split { display: grid; gap: var(--gap); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split-head { position: sticky; top: 6.5rem; align-self: start; }
}

/* ---------- inner-page head ---------- */
.page-head { padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2.25rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; max-width: 20ch; }

/* ---------- home: hero + stage rail ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--pad-y); }
.hero-grid { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.hero h1 { margin-top: 1.25rem; font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.028em; line-height: 1.04; max-width: 19ch; }
.rail { padding: 1.5rem 1.5rem 1.1rem; background: var(--white); border: var(--frame); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px oklch(0.225 0.014 255 / 0.35); }
.rail-id { padding-bottom: 0.9rem; border-bottom: 1px solid var(--ink); font-size: var(--t-md); font-weight: 750; }
.rail ol { position: relative; list-style: none; margin: 0.35rem 0 0; padding: 0; }
.rail ol::before { content: ""; position: absolute; left: 7px; top: 1.6rem; bottom: 1.6rem; width: 2px; background: var(--red); transform-origin: top; }
.rail li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 0 0.95rem 2.1rem; font-size: var(--t-lg); font-weight: 750; letter-spacing: -0.015em; }
.rail li + li { border-top: 1px dashed var(--line); }
.rail li::before { content: ""; position: absolute; left: 1px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--red); }
.rail-note { margin-top: 0.4rem; padding-top: 0.75rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--t-xs); font-weight: 600; }
/* PO tally: one square per purchase order. on = done, short = paid short (red half) */
.tally { display: inline-flex; flex: none; gap: 4px; }
.tally i { display: block; width: 14px; height: 14px; border: 1.5px solid var(--ink); }
.tally .on { background: var(--ink); }
.tally .short { border-color: var(--red); background: linear-gradient(135deg, var(--red) 50%, var(--white) 50%); }

/* ---------- home: sound familiar ---------- */
.pains { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.pains li { position: relative; padding: 1.25rem 0 1.25rem 2.5rem; border-top: 1px solid var(--line); font-size: var(--t-md); line-height: 1.5; }
.pains li::before { content: ""; position: absolute; left: 0; top: 1.6rem; width: 1.15rem; height: 1.15rem; border: 2px solid var(--red); background: var(--white); }
.punch { margin-top: 2rem; max-width: 40ch; font-size: var(--t-lg); font-weight: 650; line-height: 1.35; letter-spacing: -0.01em; }

/* ---------- home: what we do (ruled schedule grid) ---------- */
.cells { display: grid; gap: 1px; margin-top: 2.5rem; background: var(--line); border-top: var(--rule); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cells { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cell { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem clamp(1rem, 2vw, 1.5rem) 1.5rem; background: var(--white); }
.cell h3 { font-size: var(--t-lg); letter-spacing: -0.015em; }
.cell p { color: var(--ink-2); }
.cell .more { margin-top: auto; padding-top: 0.5rem; }

/* ---------- sheets: job record + sample deliverables ---------- */
.sheet { background: var(--white); border: var(--frame); }
.sheet-head { display: grid; gap: 0.4rem; padding: 1.25rem clamp(1rem, 2.5vw, 1.5rem); border-bottom: 1px solid var(--ink); }
.sheet-title { font-size: var(--t-lg); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.sheet-sub { color: var(--ink-2); font-size: var(--t-sm); }
.sheet-sub .sep { padding-inline: 0.3em; color: var(--line-strong); }
.sheet-body { padding: 1.25rem clamp(1rem, 2.5vw, 1.5rem) 1.5rem; }
.sheet-foot { padding: 0.9rem clamp(1rem, 2.5vw, 1.5rem); border-top: 1px solid var(--ink); color: var(--ink-2); font-size: var(--t-sm); }
.fig { margin-top: 2.5rem; }
.fig figcaption, .sample figcaption, .fig-cap { margin-top: 0.75rem; color: var(--ink-soft); font-size: var(--t-sm); font-weight: 600; }
.record-body { display: grid; }
@media (min-width: 960px) { .record-body { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); } }
.record-body > .rtable { align-self: start; }
.record-body .rtable th:first-child, .record-body .rtable td:first-child { padding-left: clamp(1rem, 2.5vw, 1.5rem); }
.stage { display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; }
.rtable tr.is-flag > * { background: var(--red-tint); }
.rtable tr.is-flag td:last-child { color: var(--red-deep); font-weight: 700; }
.alloc { padding: 1.25rem clamp(1rem, 2.5vw, 1.5rem) 1.5rem; border-top: 1px solid var(--ink); background: var(--concrete); }
@media (min-width: 960px) { .alloc { border-top: 0; box-shadow: inset 1px 0 0 var(--ink); } }
.alloc-title { font-size: var(--t-md); font-weight: 750; line-height: 1.3; }
.alloc-tree { margin-top: 1rem; }
.alloc-bill { display: inline-block; padding: 0.55rem 0.85rem; background: var(--white); border: var(--frame); font-weight: 700; }
.alloc-split, .alloc-shares { position: relative; margin-left: 1rem; padding-left: 1.5rem; }
.alloc-split { padding-block: 0.6rem 0; color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; }
.alloc-split::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--red); }
.alloc-shares { list-style: none; display: grid; gap: 0.6rem; margin-top: 0; padding-top: 0.6rem; }
.alloc-shares li { position: relative; padding: 0.5rem 0.8rem; background: var(--white); border: 1.5px dashed var(--ink-soft); font-weight: 650; font-size: var(--t-sm); }
.alloc-shares li::before { content: ""; position: absolute; left: calc(-1.5rem - 1.5px); top: calc(-0.6rem - 1.5px); width: 2px; height: calc(100% + 1.2rem + 3px); background: var(--red); }
.alloc-shares li:last-child::before { height: calc(50% + 0.6rem + 2.5px); }
.alloc-shares li::after { content: ""; position: absolute; left: calc(-1.5rem - 1.5px); top: calc(50% - 1px); width: 1.5rem; height: 2px; background: var(--red); }
.alloc-foot { margin-top: 1rem; color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; }

/* ---------- tables (stack on small screens with data-label) ---------- */
.rtable { width: 100%; border-collapse: collapse; font-size: var(--t-sm); line-height: 1.5; }
.rtable th, .rtable td { padding: 0.85rem 1rem 0.85rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rtable thead th { padding-block: 0.7rem; color: var(--ink-soft); font-size: var(--t-xs); font-weight: 700; border-bottom: 1px solid var(--ink); }
.rtable tbody th { font-weight: 700; }
.rtable tbody tr:last-child > * { border-bottom: 0; }
.rtable--lg { font-size: var(--t-base); border-top: var(--rule); }
.rtable--lg th, .rtable--lg td { padding-block: 1.1rem; }
.rtable--lg tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.cap td:first-child { font-weight: 600; }
@media (min-width: 640px) { .cap td:first-child { width: 45%; } }
* + .rtable--lg, * + .table-scroll { margin-top: 2rem; }
.cap td:last-child { color: var(--ink-2); }
@media (max-width: 639px) {
  .rtable--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rtable--stack tr { display: block; padding: 0.9rem clamp(1rem, 2.5vw, 1.5rem); border-bottom: 1px solid var(--line); }
  .rtable.rtable--stack tbody tr > *, .rtable--stack th, .rtable--stack td, .record-body .rtable--stack td:first-child, .record-body .rtable--stack th:first-child { display: block; width: auto; padding: 0.15rem 0; border: 0; }
  .rtable--stack td[data-label]::before { content: attr(data-label); display: block; margin-top: 0.4rem; color: var(--ink-soft); font-size: var(--t-xs); font-weight: 700; }
  .rtable--lg.rtable--stack tr { padding-inline: 0; }
  .rtable--stack tr.is-flag { background: var(--red-tint); }
  .rtable--stack tr.is-flag > * { background: none; }
}

/* ---------- labels (text first; color only repeats it) ---------- */
.label { display: inline-block; padding: 0.3rem 0.65rem; border: 1.5px solid var(--ink); border-radius: var(--radius); font-size: var(--t-xs); font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; white-space: nowrap; }
.label.label--client { background: var(--red); border-color: var(--red); color: var(--white); }
.label.label--inhouse { background: var(--ink); color: var(--on-dark); }
.label.label--founder { background: var(--white); color: var(--ink); border-style: dashed; }
.label + h2, .label + h3 { margin-top: 0.9rem; }

/* ---------- home: why rows ---------- */
.why { margin-top: 2.5rem; border-top: var(--rule); }
.why-row { display: grid; gap: 0.75rem 3rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .why-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .why-row--plain > p { grid-column: 2; } }
.why-row h3 { font-size: var(--t-lg); letter-spacing: -0.015em; }
.why-row p { max-width: var(--measure); color: var(--ink-2); }
.why-row--plain { border-bottom: 0; }
.why-row--plain p { color: var(--ink); font-size: var(--t-md); font-weight: 650; line-height: 1.45; }

/* ---------- proof cards (folder tab label) ---------- */
.proof-grid { display: grid; gap: 3.25rem 1.5rem; margin-top: 4rem; }
@media (min-width: 960px) { .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem clamp(1rem, 2.5vw, 1.5rem) 1.5rem; background: var(--white); border: var(--frame); }
.card > .label:first-child { position: absolute; top: 0; left: -1.5px; border-radius: var(--radius) var(--radius) 0 0; transform: translateY(-100%); }
.card h3 { font-size: var(--t-lg); letter-spacing: -0.015em; }
.card p { color: var(--ink-2); }
.card .more { margin-top: auto; padding-top: 0.5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0 3rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .faq--2up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qa { padding-block: 1.5rem 2.25rem; border-top: var(--rule); max-width: 46rem; }
.qa h3 { font-size: var(--t-md); line-height: 1.3; }
.qa p { margin-top: 0.75rem; color: var(--ink-2); }
.qa .more { margin-top: 1rem; }

/* ---------- closing band + footer (graphite zone) ---------- */
.band { padding-block: var(--pad-y); background: var(--graphite); color: var(--on-dark); }
.band-grid { display: grid; gap: 2rem var(--gap); align-items: end; }
@media (min-width: 960px) { .band-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.band h2 { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.028em; line-height: 1.05; max-width: 16ch; }
.band p { margin-top: 1rem; max-width: 46ch; color: var(--on-dark-soft); font-size: var(--t-md); line-height: 1.55; }
.band .actions { margin-top: 0; flex-direction: column; align-items: flex-start; gap: 1rem; }
.band .email-plain { margin: 0; color: var(--on-dark); font-size: var(--t-md); }
.band a:not(.btn), .site-foot a { color: var(--on-dark); text-decoration-color: var(--red-on-dark); }
.band a:not(.btn):hover, .site-foot a:hover { color: var(--white); }
.band .more a, .band a.more { border-bottom-color: var(--red-on-dark); }
.band ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.site-foot { padding-block: 3rem 2rem; background: var(--graphite); color: var(--on-dark-soft); border-top: 1px solid var(--on-dark-line); font-size: var(--t-sm); line-height: 1.6; }
.foot-grid { display: grid; gap: 2rem var(--gap); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); } }
.foot-brand { color: var(--on-dark); font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.01em; }
.foot-grid p + p { margin-top: 0.5rem; }
.foot-nav ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 0 2rem; }
.foot-nav a { display: inline-block; padding-block: 0.3rem; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--on-dark-line); }

/* ---------- inner-page components ---------- */
/* bullet list, check list, numbered list, jump links, note */
.list { list-style: none; padding: 0; display: grid; gap: 0.75rem; max-width: var(--measure); }
.list > li { position: relative; padding-left: 1.5rem; }
.list > li::before { content: ""; position: absolute; left: 0.1rem; top: 0.6em; width: 0.45rem; height: 0.45rem; background: var(--red); }
* + .list { margin-top: 1rem; }
.checks { list-style: none; padding: 0; display: grid; gap: 0.9rem; max-width: var(--measure); }
.checks > li { position: relative; padding-left: 2.1rem; font-size: var(--t-md); line-height: 1.45; }
.checks > li::before { content: ""; position: absolute; left: 0.35rem; top: 0.12em; width: 0.5rem; height: 0.95rem; border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(45deg); }
* + .checks { margin-top: 1.5rem; }
.numbered { list-style: none; padding: 0; display: grid; gap: 1.1rem 3rem; counter-reset: n; }
.numbered > li { position: relative; padding-left: 2.9rem; counter-increment: n; }
.numbered > li::before { content: counter(n); position: absolute; left: 0; top: -0.1rem; display: grid; place-items: center; width: 2rem; height: 2rem; border: var(--frame); font-size: var(--t-sm); font-weight: 800; }
@media (min-width: 900px) { .numbered--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
* + .numbered { margin-top: 1.5rem; }
.jumps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.jumps a { display: inline-block; padding: 0.6rem 0.95rem; border: var(--frame); border-radius: var(--radius); color: var(--ink); font-size: var(--t-sm); font-weight: 650; text-decoration: none; }
.jumps a:hover { background: var(--ink); color: var(--on-dark); }
* + .note { margin-top: 2rem; }
.note { max-width: var(--measure); padding: 1.1rem 1.35rem; background: var(--concrete); border: 1px solid var(--line); color: var(--ink-2); }

/* service block: problem + how on the left, what you get on the right */
.svc { display: grid; gap: 2rem var(--gap); margin-top: 2rem; }
@media (min-width: 960px) { .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.svc h3 { padding-top: 0.75rem; border-top: 1px solid var(--ink); font-size: var(--t-sm); font-weight: 750; }
.svc h3 + * { margin-top: 0.75rem; }
.svc > div > * + h3 { margin-top: 2rem; }
.svc > div > :is(p, ul, ol) + p:not(.note, .more) { margin-top: 1rem; }

/* how-we-work steps: number + heading left, detail right, "You get" / "From your side" */
.steps { list-style: none; padding: 0; margin-top: 2.5rem; border-top: var(--rule); }
.step { display: grid; gap: 0.75rem 3rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.step h3 { font-size: var(--t-lg); letter-spacing: -0.015em; }
.step-n { display: block; margin-bottom: 0.35rem; color: var(--red); font-size: var(--t-xl); font-weight: 800; line-height: 1; }
.step p { max-width: var(--measure); color: var(--ink-2); }
.step-meta { display: grid; gap: 0.75rem; margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--concrete); max-width: var(--measure); }
.step-meta > div { display: grid; gap: 0.1rem 1.25rem; }
@media (min-width: 640px) { .step-meta > div { grid-template-columns: 8.5rem minmax(0, 1fr); } }
.step-meta dt { font-size: var(--t-sm); font-weight: 750; }
.step-meta dd { color: var(--ink-2); }

/* sample sheets: spec list, key-value identity, empty check boxes, coverage marks */
.samples { display: grid; gap: 3.5rem; margin-top: 3rem; }
.sample > h3 { margin-bottom: 1rem; font-size: var(--t-lg); }
.spec { list-style: none; padding: 0; counter-reset: s; }
.spec > li { padding-block: 0.9rem; border-top: 1px solid var(--line); }
.spec > li:first-child { border-top: 0; padding-top: 0; }
.spec ul, .spec ol { margin-top: 0.5rem; padding-left: 1.25rem; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; margin-top: 0.6rem; background: var(--line); border: 1px solid var(--line); }
.kv > div { padding: 0.5rem 0.75rem; background: var(--white); }
.kv dt { color: var(--ink-soft); font-size: var(--t-xs); font-weight: 700; }
.kv dd { font-weight: 700; }
.boxes { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.4rem; }
.box { display: inline-flex; align-items: center; gap: 0.5rem; }
.box::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; border: 1.5px solid var(--ink); background: var(--white); }
.st { white-space: nowrap; }
.st::before { content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.45rem; vertical-align: -0.05em; border: 1.5px solid var(--ink); }
.st--yes::before { background: var(--ink); }
.st--part::before { background: linear-gradient(135deg, var(--ink) 50%, var(--white) 50%); }
.st--no::before { border-color: var(--red); background: linear-gradient(to top right, var(--white) 43%, var(--red) 43% 57%, var(--white) 57%); }
.st--unk::before { border-style: dashed; border-color: var(--ink-soft); }
.matrix .type-row th, .matrix .type-row td { color: var(--ink-2); font-weight: 600; font-size: var(--t-xs); border-bottom: 1px solid var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 0.75rem; color: var(--ink-2); font-size: var(--t-xs); }
.table-scroll { overflow-x: auto; }

/* ---------- motion: opt-in only. The script adds html.motion (never without JS, never with
   reduced motion) and .in when a [data-seq] block enters view. Its .seq children then step in
   order: the job moving through its stages. Nothing else on the site animates on scroll. ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.motion .seq > * { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  html.motion [data-seq]:not(.in) .seq > * { opacity: 0; transform: translateX(-10px); }
  html.motion .seq > :nth-child(2) { transition-delay: 0.22s; }
  html.motion .seq > :nth-child(3) { transition-delay: 0.44s; }
  html.motion .seq > :nth-child(4) { transition-delay: 0.66s; }
  html.motion .rail ol::before { transition: transform 1.1s var(--ease) 0.1s; }
  html.motion .rail:not(.in) ol::before { transform: scaleY(0); }
}

/* ---------- print ---------- */
@media print {
  .site-head, .skip, .menu-btn, .band .btn, .rail { display: none !important; }
  body { font-size: 11pt; }
  .section, .band { padding-block: 1.25rem; }
  .band, .site-foot, .section--concrete, .alloc { background: none !important; color: #000; }
  .band p, .site-foot, .band .email-plain { color: #000; }
  [data-seq] *, .seq > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .sheet, .card, .qa { break-inside: avoid; }
}
