/* Acme, site stylesheet v2.1: modern industrial, light, v3 colour illustrations.
   Hand-written. No JavaScript, no build step. Spec: brief/03-design-system.md */

/* Tokens ------------------------------------------------------------------ */
:root {
  --bg: #ffffff;
  --panel: #f2f4f6;
  --panel-2: #e4e8ec;
  --line: #d3d8de;
  --ink: #0d1117;
  --ink-2: #48515e;
  --ink-3: #68717d;
  --accent: #d23f0a;
  --dark: #11151b;
  --dark-2: #1c222b;
  --on-dark: #f2f4f6;
  --on-dark-2: #a9b2bd;
  --accent-on-dark: #ff6a33;

  --f-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --pad: 32px;
  --gap: 24px;
  --band-y: clamp(56px, 8vw, 112px);
  --radius: 4px;
  --measure: 62ch;
}

/* Reset and base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--f-head); color: var(--ink); text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.25rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.02em; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -.015em; }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.005em; }

/* Body text links are underlined so they read without colour */
p a, li a, dd a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p a:hover, li a:hover, dd a:hover { color: var(--accent); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 16px;
  font-family: var(--f-head); font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* Type helpers ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--f-mono); font-weight: 500; font-size: .75rem; line-height: 1.3;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink);
}
.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; color: var(--ink-2);
  max-width: var(--measure);
}
.mono { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .02em; }
.muted { color: var(--ink-2); }
.note-line { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-3); }

/* Layout: container, bands, 12-column grid --------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.band { padding: var(--band-y) 0; background: var(--bg); }
.band--panel { background: var(--panel); }
.band--dark { background: var(--dark); color: var(--on-dark); }
.band--tight { padding-top: calc(var(--band-y) * .6); padding-bottom: calc(var(--band-y) * .6); }
.band:not(.band--panel):not(.band--dark) + .band:not(.band--panel):not(.band--dark) { border-top: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.s-3 { grid-column: span 3; }
.s-4 { grid-column: span 4; }
.s-5 { grid-column: span 5; }
.s-6 { grid-column: span 6; }
.s-7 { grid-column: span 7; }
.s-8 { grid-column: span 8; }
.s-12 { grid-column: span 12; }

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
* + .block { margin-top: clamp(48px, 6vw, 80px); }

/* Section heading: eyebrow, h2, optional line */
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 52rem; }
.sec-head p:not(.eyebrow) { color: var(--ink-2); max-width: var(--measure); }
.sec-head--row { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--gap); }
.sec-head--row > :not(.btn) { grid-column: 1; }
.sec-head--row > .btn { grid-column: 2; grid-row: 1 / span 3; align-self: end; }

/* Header -------------------------------------------------------------------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand__mark { font-family: var(--f-head); font-weight: 800; font-size: 1.375rem; letter-spacing: .02em; line-height: 1; }
.brand__sub { font-family: var(--f-head); font-weight: 600; font-size: .95rem; color: var(--ink-2); line-height: 1; }
.nav ul { display: flex; gap: 26px; }
.nav a {
  display: block; padding: 6px 0;
  font-family: var(--f-head); font-weight: 600; font-size: .95rem; color: var(--ink-2);
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: color 120ms, border-color 120ms;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }

/* Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-block; padding: 14px 22px; border-radius: var(--radius);
  font-family: var(--f-head); font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 120ms, color 120ms, border-color 120ms;
}
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.btn--secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 10px 16px; font-size: .9rem; }
.band--dark .btn--primary:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero (home) --------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero .grid { align-items: center; }
.hero__text > * + * { margin-top: 24px; }
.hero__text .btn-row { margin-top: 36px; }
.hero h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.025em; }
/* Dark picture panel: the hero, and the same picture on the force-feedback page.
   Background is the SVG's own charcoal, so the image reads as one block with its captions. */
.hero__fig, .fig.fig--dark { background: var(--dark); border: 0; border-radius: var(--radius); overflow: hidden; padding: 0; }
.hero__fig img, .fig.fig--dark img { width: 100%; aspect-ratio: 1200 / 520; }
.hero__caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 0 16px; border-top: 1px solid var(--dark-2); }
.hero__caps li { padding: 0 10px; font-family: var(--f-mono); font-size: .75rem; line-height: 1.4; color: var(--on-dark-2); text-align: center; }
.fig.fig--dark figcaption { padding: 0; border-top: 0; }

/* Fact strip: three cells divided by 1px lines */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 2px solid var(--ink); }
.strip > div { padding: 24px 28px 0 0; }
.strip > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.strip h3 { margin-bottom: 8px; }
.strip p { color: var(--ink-2); max-width: 34ch; }

/* Tiles --------------------------------------------------------------------- */
.tiles { row-gap: var(--gap); }
.tile {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); background-clip: padding-box;
  border: 1px solid transparent; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color 120ms, background-color 120ms;
}
.band--panel .tile:not(.tile--dark):not(.tile--outline) { background-color: var(--bg); }
.tile:hover { border-color: var(--ink); }
/* The picture is a colour block flush to the tile's top, left and right edges */
.tile__fig { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px 3px 0 0; }
.tile__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.tile__body p { color: var(--ink-2); max-width: 46ch; }
.tile .tag { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); }
.tile--lg h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }

.tile--dark, .tile--outline { min-height: 260px; }
.tile--dark .tile__body, .tile--outline .tile__body { justify-content: flex-end; padding: 32px; gap: 14px; }
.tile--dark h3, .tile--outline h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.08; letter-spacing: -.015em; max-width: 18ch; }
.tile--dark { background: var(--dark); }
.tile--dark h3 { color: var(--on-dark); }
.tile--dark p { color: var(--on-dark-2); }
.tile--dark:hover { border-color: var(--accent-on-dark); }
.tile--outline { background: var(--bg); border: 2px solid var(--ink); }
.tile--outline p { color: var(--ink); }
.tile--outline:hover { background-color: var(--panel-2); }

/* Text tiles (notes index) */
.tile--text .tile__body { padding: 32px; gap: 14px; }
.tile--text h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }

/* Figure panel: the picture flush to the panel edges, legend and caption on a strip below */
.fig { background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.band--panel .fig { background: var(--bg); }
.fig img { width: 100%; aspect-ratio: 3 / 2; }
.fig--anim { align-self: start; }
.fig--anim img { aspect-ratio: 4 / 3; }
.fig--center { max-width: 620px; margin-left: auto; margin-right: auto; }
.fig figcaption { padding: 14px 20px 16px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.legend + figcaption { border-top: 1px solid var(--line); }

/* Legend: numbers match the discs drawn in the figure */
.legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; padding: 18px 20px; counter-reset: legend; }
.legend li { counter-increment: legend; display: flex; align-items: center; gap: 10px; font-size: .9375rem; line-height: 1.3; color: var(--ink); }
.legend li::before {
  content: counter(legend); flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--dark); color: #fff;
  font-family: var(--f-head); font-weight: 800; font-size: .8125rem; line-height: 1;
}

/* Facts grid ---------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts > div { border-top: 2px solid var(--ink); padding-top: 14px; }
.facts dt { font-family: var(--f-mono); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); margin-bottom: 10px; }
.facts dd { font-size: 1rem; line-height: 1.5; }
.facts dd + dd { margin-top: 8px; }
.facts .wide { grid-column: 1 / -1; }
.facts .wide dd { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.facts ul.dashes li { padding-left: 16px; position: relative; }
.facts ul.dashes li + li { margin-top: 6px; }
.facts ul.dashes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 2px; background: var(--ink); }

/* Short cells: h3 plus one sentence (home "When not to hire us", workshop "What we're not", money row) */
.cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cells > li, .cells > div { background: var(--bg); border-radius: var(--radius); padding: 24px; }
.band:not(.band--panel) .cells > li, .band:not(.band--panel) .cells > div { background: var(--panel); }
.cells h3 { font-size: 1.125rem; margin-bottom: 8px; }
.cells p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }

/* Steps --------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); counter-reset: step; }
.steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gap); }
.steps > li { border-top: 1px solid var(--line); padding-top: 16px; }
.steps .num { display: block; font-family: var(--f-head); font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: -.02em; color: var(--accent); margin-bottom: 14px; }
.steps--2 .num { font-size: 2rem; margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.steps .yd { margin-top: 14px; display: grid; gap: 6px; }
.steps .yd p { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); align-items: baseline; font-size: .9375rem; color: var(--ink); }
.steps .yd b { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); }

/* Points: decision cards ---------------------------------------------------- */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.points > li { border-left: 3px solid var(--ink); padding: 2px 0 2px 20px; }
.points h3 { margin-bottom: 8px; }
.points p { color: var(--ink-2); max-width: 54ch; }

/* Checklist ----------------------------------------------------------------- */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; }
.checks--1 { grid-template-columns: 1fr; }
.checks li { position: relative; padding-left: 28px; }
/* A drawn tick: two sides of a rotated box */
.checks li::before { content: ""; position: absolute; left: 4px; top: .22em; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Two text columns ---------------------------------------------------------- */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap) 64px; }
.cols h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.cols p { max-width: var(--measure); }
.cols p + p { margin-top: 12px; }

/* Page head (inner pages) --------------------------------------------------- */
.page-head { background: var(--panel); padding: clamp(48px, 7vw, 96px) 0 clamp(44px, 6vw, 80px); }
.page-head .wrap > * + * { margin-top: 20px; }
.page-head h1 { max-width: 20ch; }
.page-head .note-line { margin-top: 28px; }

/* Previous / next ----------------------------------------------------------- */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pager a { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--bg); transition: border-color 120ms; }
.pager a:hover { border-color: var(--ink); }
.pager .mono { display: block; text-transform: uppercase; letter-spacing: .09em; font-size: .7rem; color: var(--ink-3); margin-bottom: 6px; }
.pager strong { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; }
.pager .next { text-align: right; }

/* Article (notes) ----------------------------------------------------------- */
.article { max-width: 68ch; }
.article > * + * { margin-top: 18px; }
.article > :first-child { margin-top: 0; }
.article h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 48px; }
.article .fig { margin: 40px 0; }
.article-wide { max-width: 980px; }

/* Contact page and form ----------------------------------------------------- */
.big-contact { display: grid; gap: 4px; }
.big-contact a { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -.01em; text-decoration: none; }
.big-contact a:hover { color: var(--accent); }
.form { display: grid; gap: 20px; background: var(--panel); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.form label { display: block; font-family: var(--f-head); font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 120ms;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border: 2px solid var(--ink); padding: 11px 13px; }
.form .btn { justify-self: start; }

/* Contact band and footer (dark) -------------------------------------------- */
.contact-band .grid { align-items: end; }
.contact-band h2 { color: var(--on-dark); max-width: 14ch; }
.contact-band p { color: var(--on-dark-2); margin-top: 16px; max-width: 44ch; }
.contact-band .big-contact a { color: var(--on-dark); }
.contact-band .big-contact a:hover { color: var(--accent-on-dark); }
.contact-band .btn { margin-top: 28px; }
.site-footer { background: var(--dark); color: var(--on-dark-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--dark-2); }
.site-footer .brand { margin-right: 0; }
.site-footer .brand__mark { color: var(--on-dark); }
.site-footer .brand__sub { color: var(--on-dark-2); }
.site-footer p { font-size: .9375rem; flex: 1 1 320px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { font-family: var(--f-head); font-weight: 600; font-size: .95rem; color: var(--on-dark); text-decoration: none; transition: color 120ms; }
.site-footer nav a:hover, .site-footer nav a[aria-current] { color: var(--accent-on-dark); }
.band--dark + .site-footer .wrap { border-top-color: var(--dark-2); }
.site-footer--solo .wrap { border-top: 0; padding-top: 40px; }

/* Breakpoint 1024: grids go to 2 columns, hero stacks ----------------------- */
@media (max-width: 1024px) {
  .grid > [class*="s-"] { grid-column: span 12; }
  .tiles > .tile { grid-column: span 6; }
  .tiles > .tile--wide-md { grid-column: span 12; flex-direction: row; }
  .tiles > .tile--wide-md .tile__fig { flex: 0 0 50%; }
  .tiles > .tile--wide-md .tile__fig { border-radius: 3px 0 0 3px; }
  .tiles > .tile--wide-md .tile__body { justify-content: center; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > .half-md { grid-column: span 6; }
  .strip > div { padding-right: 20px; }
  .strip > div + div { padding-left: 20px; }
  .hero h1 { max-width: 16ch; }
  .facts, .facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells, .cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells--3 { grid-template-columns: 1fr; }
  .cells > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav ul { gap: 20px; }
  .site-header .wrap { gap: 20px; }
  .brand__sub { display: none; }
}

/* Breakpoint 720: one column, nav wraps under the wordmark ------------------ */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  body { font-size: 1rem; }
  .site-header .wrap { flex-wrap: wrap; gap: 0 16px; padding-top: 14px; }
  .brand__sub { display: inline; }
  .nav { order: 3; flex: 1 0 100%; margin-top: 10px; border-top: 1px solid var(--line); }
  .nav ul { justify-content: space-between; gap: 8px; }
  .nav a { padding: 12px 0 10px; }
  .tiles > .tile, .tiles > .tile--wide-md, .grid > .half-md { grid-column: span 12; }
  .tiles > .tile--wide-md { flex-direction: column; }
  .tiles > .tile--wide-md .tile__fig { flex: none; border-radius: 3px 3px 0 0; }
  .tiles > .tile--wide-md .tile__body { justify-content: flex-start; }
  .strip { grid-template-columns: 1fr; border-top: 0; margin-top: 40px; }
  .strip > div, .strip > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .strip > div:first-child { border-top: 2px solid var(--ink); }
  .hero__caps { padding: 12px 0 14px; }
  .hero__caps li { padding: 0 6px; font-size: .6875rem; }
  .facts, .facts--3, .facts--2, .cells, .cells--4, .steps, .steps--2, .points, .checks, .cols, .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .sec-head--row { grid-template-columns: 1fr; }
  .sec-head--row > .btn { grid-column: 1; grid-row: auto; justify-self: start; }
  .tile--dark, .tile--outline { min-height: 0; }
  .tile--dark .tile__body, .tile--outline .tile__body, .tile--text .tile__body { padding: 24px; }
  .fig figcaption { padding: 12px 14px 14px; }
  .legend { padding: 14px; gap: 10px 16px; }
}

@media (max-width: 480px) {
  .legend { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .brand__sub { display: none; }
  .nav ul { gap: 4px; }
  .nav a { font-size: .9rem; }
}

/* Small section heading inside a column (contact page) ---------------------- */
.h-small { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.005em; margin-bottom: 14px; }
