/* Bodax Heros: a Helvetica-style grotesque (TeX Gyre Heros, GUST Font License), the face of the
   "Bodax" wordmark on bodax.com. Maker logos keep their own lettering. */
@font-face { font-family: "Bodax Heros"; src: url("fonts/heros-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodax Heros"; src: url("fonts/heros-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodax Heros"; src: url("fonts/heros-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* steel */
  --steel-0: #0e1012;
  --steel-1: #16191c;
  --steel-2: #1f2327;
  --steel-3: #2a2f34;
  --steel-4: #3a4047;
  --text: #ecebe7;
  --text-2: #aeb2b7;
  --line: rgba(236, 235, 231, 0.14);
  --line-strong: rgba(236, 235, 231, 0.32);
  /* safety yellow: the one signal colour */
  --signal: #f2b705;
  --ink: #15171a;

  --gutter: clamp(16px, 3.3vw, 48px);
  --col-gap: clamp(12px, 1.6vw, 24px);
  --header-h: 64px;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 3.4vw, 3rem);
  --step-4: clamp(3.25rem, 8vw, 7rem);

  /* the blue of the bodax.com header */
  --blue-0: #041d2d;
  --blue-1: #07344f;
  --blue-2: #0b4f73;
  --blue-3: #1676a6;
  --blue-line: rgba(212, 230, 240, 0.22);
  --blue-text: #d4e6f0;

  --font: "Bodax Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--steel-1);
  /* brushed steel: fine horizontal grain over a soft sheen */
  background-image:
    url("img/grain-dark.png"),
    linear-gradient(180deg, var(--steel-2), var(--steel-1) 40%, var(--steel-1));
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--signal);
  scrollbar-color: var(--steel-4) var(--steel-0);
}

::selection { background: var(--signal); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 50; background: var(--signal); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* display voice: the Bodax wordmark's grotesque, bold, sentence case, set tight */
.section-title, .plate__name, .owner__name, .makers__grid .name, .spares__title, .about__cols h3, .legal h1, .legal h2 {
  font-weight: 700; letter-spacing: -0.022em;
}

/* riveted nameplate: four rivets in the corners */
.nameplate {
  --rivet: radial-gradient(circle, #7d848b 0 2px, #2b3035 2.5px, transparent 3.5px);
  background:
    var(--rivet) left 8px top 8px / 8px 8px no-repeat,
    var(--rivet) right 8px top 8px / 8px 8px no-repeat,
    var(--rivet) left 8px bottom 8px / 8px 8px no-repeat,
    var(--rivet) right 8px bottom 8px / 8px 8px no-repeat,
    linear-gradient(180deg, #2a2f34, #1f2327);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ---------- header ---------- */

.masthead {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  display: flex; align-items: center; gap: var(--col-gap); padding: 0 var(--gutter);
  background: rgba(14, 16, 18, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead__mark { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.03em; line-height: 1; text-decoration: none; display: flex; align-items: baseline; gap: 12px; }
.masthead nav { margin-left: auto; }
.masthead nav ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.masthead nav a {
  text-decoration: none; font-weight: 650; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent; color: var(--text-2);
}
.masthead nav a:hover { color: var(--text); border-bottom-color: var(--signal); }
.masthead__call {
  display: inline-flex; align-items: center; gap: 10px; margin-left: clamp(8px, 2vw, 28px);
  background: var(--signal); color: var(--ink); padding: 10px 16px; text-decoration: none; font-weight: 750; font-size: 0.9375rem;
}
.masthead__call:hover { background: #ffd23a; }
.masthead__call svg { width: 16px; height: 16px; flex: none; }
.masthead__menu {
  display: none; align-items: center; gap: 10px; margin-left: auto; padding: 9px 14px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line-strong);
  font: inherit; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.masthead__menu:hover { border-color: var(--text); }
.masthead nav { order: 1; }
.masthead__search { order: 2; }
.masthead__menu { order: 2; }
.masthead__call { order: 3; }
.masthead__search {
  display: inline-flex; align-items: center; gap: 10px; margin-left: clamp(14px, 2vw, 30px); padding: 9px 14px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line-strong);
  font: inherit; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.masthead__search svg { width: 16px; height: 16px; flex: none; }
.masthead__search:hover, .masthead__search[aria-expanded="true"] { border-color: var(--text); }
.masthead__find {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 31;
  background: rgba(14, 16, 18, 0.98); border-bottom: 1px solid var(--line-strong); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
  padding: 16px var(--gutter) 18px;
}
.masthead__find[hidden] { display: none; }
.masthead__find input { display: block; width: 100%; max-width: 760px; font: inherit; font-size: 1.125rem; color: var(--text); background: var(--steel-2); border: 1px solid var(--line-strong); padding: 14px 16px; border-radius: 0; -webkit-appearance: none; appearance: none; }
.masthead__find input::placeholder { color: #8f949a; }
.masthead__find input:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: transparent; }
.find__results { list-style: none; margin: 8px 0 0; padding: 0; max-width: 760px; max-height: min(60vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.find__results:empty { display: none; }
.find__results a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.find__results a:hover .find__what, .find__results a:focus-visible .find__what, .find__results a.is-first .find__what { color: var(--signal); }
.find__what { flex: 1 1 auto; min-width: 0; }
.find__what mark { background: none; color: inherit; font-weight: 750; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.find__maker { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; white-space: nowrap; color: var(--text-2); }
.find__maker .chip { width: 10px; height: 10px; background: var(--c); box-shadow: 0 0 0 1px rgba(236, 235, 231, 0.5); }
.find__hint { color: var(--text-2); font-size: var(--step--1); padding: 12px 0 0; border: 0; }
.find__none { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 760px; }
.find__none[hidden] { display: none; }
.masthead__menu-bars { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.masthead__menu[aria-expanded="true"] .masthead__menu-bars { transform: rotate(45deg); box-shadow: 0 0 0 currentColor, 0 0 0 currentColor; }
.masthead__menu[aria-expanded="true"] .masthead__menu-bars::after { content: ""; display: block; width: 16px; height: 2px; background: currentColor; transform: rotate(90deg); }

/* ---------- hero: the blue header of bodax.com, rebuilt ---------- */

.hero { position: relative; min-height: min(calc(100svh - var(--header-h)), 940px); display: grid; overflow: hidden; background: var(--blue-1); }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 29, 45, 0.9) 0%, rgba(4, 29, 45, 0.72) 42%, rgba(7, 52, 79, 0.5) 62%, rgba(4, 29, 45, 0.78) 100%),
    linear-gradient(0deg, rgba(4, 29, 45, 0.8), transparent 40%);
}
.hero__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap);
  align-items: center; padding: clamp(36px, 7vh, 88px) var(--gutter) clamp(32px, 6vh, 64px);
}
.hero__main { grid-column: 1 / 7; }
.hero__title { font-size: clamp(5.5rem, 13.5vw, 12.5rem); font-weight: 400; line-height: 0.82; letter-spacing: -0.045em; margin-left: -0.055em; color: #f4f8fa; }
.hero__tagline { display: grid; justify-items: start; gap: 18px; margin-top: 22px; font-size: var(--step-3); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; color: var(--blue-text); }
.hero__tagline::before { content: ""; width: 3.6em; height: 3px; background: var(--signal); }
.hero__lede { max-width: 31em; margin-top: 26px; font-size: var(--step-1); line-height: 1.45; color: #e2edf3; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn--ghost { border-color: var(--blue-line); }

.hero__side { grid-column: 8 / -1; display: grid; gap: 14px; align-self: end; }
/* the switchboard drawing, on a deep-blue plate; anatomy tones re-inked from --c and --fg like the maker plates */
.hero__fig.iso {
  --c: #062c44; --fg: #e8f2f8;
  --anatomy-paper: var(--c); --anatomy-card: var(--c);
  --anatomy-face: color-mix(in srgb, var(--c) 90%, #fff); --anatomy-top: color-mix(in srgb, var(--c) 86%, #fff);
  --anatomy-shade-0: color-mix(in srgb, var(--c) 72%, #000); --anatomy-shade-1: color-mix(in srgb, var(--c) 80%, #000);
  --anatomy-shade-2: color-mix(in srgb, var(--c) 88%, #000); --anatomy-shade-3: color-mix(in srgb, var(--c) 95%, #000);
  --anatomy-lit-top: color-mix(in srgb, var(--c) 62%, var(--fg)); --anatomy-lit-shade: color-mix(in srgb, var(--c) 78%, var(--fg));
  --anatomy-hi: var(--fg); --anatomy-mid: color-mix(in srgb, var(--fg) 62%, transparent); --anatomy-lo: color-mix(in srgb, var(--fg) 38%, transparent);
  --anatomy-faint: color-mix(in srgb, var(--fg) 20%, transparent); --anatomy-lit: var(--fg);
  --anatomy-halo: #01101a; --anatomy-halo-opacity: 0.6; --anatomy-dot: var(--fg); --anatomy-weight: 1px;
  margin: 0; padding: 14px 16px 12px; background: color-mix(in srgb, var(--c) 92%, transparent); color: var(--fg);
  border: 1px solid var(--blue-line); box-shadow: 0 24px 50px rgba(1, 12, 20, 0.45);
}
.hero__svg { display: block; width: 100%; height: auto; overflow: visible; outline-offset: 6px; }
.hero__svg [data-jack] { cursor: pointer; }
.hero__chip { stroke: var(--anatomy-hi); stroke-width: 0.8px; vector-effect: non-scaling-stroke; }
.hero__lamp { --anatomy-lit-top: #ffd23a; --anatomy-lit-shade: #f2b705; --anatomy-lit: #fff3c4; }
.hero__glow { fill: #f2b705; opacity: 0.45; filter: blur(5px); }
.hero__svg:focus-visible { outline: 2px solid var(--signal); }
.hero__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-top: 6px; font-size: var(--step--1); line-height: 1.35; }
.hero__hint { color: color-mix(in srgb, var(--fg) 62%, transparent); }
.hero__readout { font-weight: 700; color: var(--fg); text-decoration: none; min-height: 1.35em; }
.hero__readout[href]:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.hero__readout-state { color: var(--signal); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; margin-right: 4px; }
.hero__readout-what { font-weight: 400; color: color-mix(in srgb, var(--fg) 62%, transparent); margin-left: 4px; }
.hero .owner { background: linear-gradient(180deg, rgba(7, 52, 79, 0.92), rgba(4, 29, 45, 0.92)); border-color: var(--blue-line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 2px solid var(--signal); cursor: pointer; font: inherit; font-weight: 750;
  padding: 14px 24px; background: var(--signal); color: var(--ink); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9375rem;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn:hover { background: #ffd23a; border-color: #ffd23a; }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--text); }

.owner { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 20px 22px; align-items: center; }
.owner__photo { position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--steel-3); box-shadow: 0 0 0 1px var(--line-strong); overflow: hidden; display: grid; place-items: center; }
.owner__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.owner__photo span { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--text-2); }
.owner__name { font-size: 1.5rem; line-height: 1.05; }
.owner__role { color: var(--text-2); font-size: 0.9375rem; margin-top: 6px; }
.owner__call { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 750; text-decoration: none; color: var(--signal); }
.owner__call svg { width: 16px; height: 16px; }
.owner__mail { display: block; margin-top: 4px; font-size: 0.9375rem; color: var(--text-2); }

/* ---------- sections ---------- */

.section { padding: clamp(64px, 9vw, 128px) var(--gutter); border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); }
.section-title { font-size: var(--step-4); line-height: 0.95; }
.section-intro { font-size: var(--step-1); color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.section-intro a { color: var(--text); text-decoration-color: var(--signal); }

/* makers: a board of nameplates */
.makers__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.makers__head .section-intro { max-width: 26em; }
.makers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.makers__grid li { display: grid; }
.makers__grid a {
  display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; align-items: baseline;
  padding: 24px 24px 22px; min-height: 108px; text-decoration: none; color: var(--ink);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
/* brushed stainless sheet: fine horizontal grain, a soft diagonal sheen, a bright cut edge and the next sheet showing below */
.makers__grid .nameplate {
  --rivet: radial-gradient(circle, #f4f5f6 0 1px, #8b9196 1.6px, #5d6267 2.6px, transparent 3.4px);
  background:
    var(--rivet) left 9px top 9px / 8px 8px no-repeat,
    var(--rivet) right 9px top 9px / 8px 8px no-repeat,
    var(--rivet) left 9px bottom 9px / 8px 8px no-repeat,
    var(--rivet) right 9px bottom 9px / 8px 8px no-repeat,
    linear-gradient(115deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 30%, rgba(40, 44, 48, 0.28) 52%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.45) 100%),
    url("img/brushed-steel.jpg") center / cover #c3c7cb;
  border: 1px solid #5c6166;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 3px 0.5px -1px #b9bec2,
    0 4px 0.5px -1px #3b3f43,
    0 7px 1px -2px #a3a8ad,
    0 12px 22px rgba(0, 0, 0, 0.45);
}
.makers__grid a:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 3px 0 -1px #b9bec2, 0 4px 0 -1px #3b3f43, 0 7px 0 -2px #a3a8ad, 0 18px 28px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--signal); }
.makers__grid .chip { width: 12px; height: 12px; background: var(--c); align-self: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35); margin: 0; }
.makers__grid .name { font-size: 1.375rem; line-height: 1.05; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.makers__grid .what { grid-column: 2; margin-top: 8px; font-size: var(--step--1); color: #2f3337; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* machine-type index */
.types { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.types__head { max-width: 46rem; margin-bottom: clamp(24px, 3vw, 36px); }
.types__head .section-intro { margin-top: 14px; }
.types__search { position: relative; margin-top: 22px; }
.types__search svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: #8f949a; pointer-events: none; }
.types__search input { width: 100%; font: inherit; font-size: 1.125rem; color: var(--text); background: var(--steel-2); border: 1px solid var(--line-strong); padding: 16px 16px 16px 50px; border-radius: 0; -webkit-appearance: none; appearance: none; }
.types__search input::placeholder { color: #8f949a; }
.types__search input:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: transparent; }
.types__result { min-height: 1.4em; margin-top: 10px; font-size: var(--step--1); color: var(--text-2); }
.types__none { margin-top: 4px; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.types__none[hidden] { display: none; }
.types__list { columns: 2 380px; column-gap: clamp(28px, 4vw, 64px); }
.types__group { break-inside: avoid; margin-bottom: 26px; }
.types__group summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 0 10px; border-bottom: 1px solid var(--line-strong); color: var(--signal); font-size: var(--step--1); font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.types__group summary::-webkit-details-marker { display: none; }
.types__count { color: var(--text-2); font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.types__count::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.2s var(--ease-out); }
.types__group:not([open]) .types__count::after { transform: translateY(0) rotate(-45deg); }
.types__group ul { list-style: none; margin: 0; padding: 0; }
.types__group li a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.types__group li a:hover .types__what, .types__group li a:focus-visible .types__what { color: var(--signal); }
.types__what { flex: 1 1 auto; min-width: 0; }
.types__maker { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; white-space: nowrap; color: var(--text-2); }
.types__maker .chip { width: 10px; height: 10px; background: var(--c); box-shadow: 0 0 0 1px rgba(236, 235, 231, 0.5); }
.types__group li[hidden] { display: none; }
.types__group mark { background: none; color: var(--signal); font-weight: 750; }
.chip { display: inline-block; width: 10px; height: 10px; background: var(--c); margin-right: 8px; vertical-align: 0; }

/* ---------- plates: one per maker, in the maker's own colour ---------- */

.plate {
  --fg-2: color-mix(in srgb, var(--fg) 95%, var(--c));
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 28px;
  align-items: center;
  background-color: var(--c);
  background-image: url("img/grain-plate.png");
  color: var(--fg);
  padding: clamp(56px, 6vw, 96px) var(--gutter) clamp(32px, 4vw, 56px);
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}
.plate__text { grid-column: 1 / 6; }
.plate .fig, .plate .gallery { grid-column: 7 / -1; min-width: 0; }
.plate__name { font-size: clamp(2.75rem, 5.4vw, 5rem); line-height: 0.95; margin-top: 0; text-wrap: balance; }
.plate__logo { margin-top: 0; }
.plate__site { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 14px; color: inherit; text-decoration: none; position: relative; }
.plate__visit {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 0;
  font-family: var(--font); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2;
  border-bottom: 2px solid color-mix(in srgb, var(--fg) 45%, transparent); transition: border-color 200ms var(--ease-out);
}
.plate__site .ext { width: 15px; height: 15px; flex: none; transition: transform 200ms var(--ease-out); }
.plate__site:hover .plate__visit, .plate__site:focus-visible .plate__visit { border-bottom-color: var(--fg); }
.plate__site:hover .ext, .plate__site:focus-visible .ext { transform: translate(2px, -2px); }
.plate__site:hover img { opacity: 0.88; }
.plate__logo img { height: clamp(60px, 7vw, 104px); width: auto; max-width: min(100%, 520px); object-fit: contain; object-position: left center; }
.plate__logo--group img { height: clamp(44px, 4.6vw, 64px); max-width: 240px; }
#ferroman-name img { height: clamp(48px, 5.4vw, 80px); } /* a wide wordmark: same visual weight as the others, link icon stays beside it */
.knock-light img { filter: brightness(0) invert(1); }
.knock-dark img { filter: brightness(0); }
/* one quiet line under the logo: what the maker makes */
/* what the maker makes: large, bold, one category per line */
.plate__line { margin-top: 22px; font-size: clamp(1.5rem, 2.3vw, 2.125rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; color: var(--fg); }
.plate__line span { display: block; }
.plate__name .plate__site { align-items: flex-start; }
.plate__ask {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 13px 20px;
  font-weight: 700; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  background: var(--signal); color: var(--ink); border: 2px solid var(--signal);
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.plate__ask:hover { background: var(--signal-bright, #ffd23a); border-color: var(--signal-bright, #ffd23a); }
/* on the light maker colours (yellow, orange, green) yellow would vanish: the button turns ink */
.plate[style*="--fg:#15171a"] .plate__ask { background: var(--ink); color: var(--signal); border-color: var(--ink); }
.plate[style*="--fg:#15171a"] .plate__ask:hover { background: #2a2d31; border-color: #2a2d31; }
.plate__ask svg { width: 16px; height: 16px; }
.plate :focus-visible { outline-color: var(--fg); }

.fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.fig figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--fg-2); letter-spacing: 0.04em; }

/* photo gallery per maker: a filmstrip you swipe (touch), drag (mouse) or step through (buttons, arrow keys) */
.gallery { position: relative; }
.gallery__track {
  --h: clamp(240px, 24vw, 420px);
  display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gallery__track:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.gallery__slide { flex: 0 0 auto; height: var(--h); scroll-snap-align: start; background: #fff; }
.gallery__slide img { height: 100%; width: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.gallery--single .gallery__track { cursor: default; }
.gallery--single .gallery__slide { width: 100%; }
.gallery--single .gallery__slide img { width: 100%; object-fit: cover; }
.gallery__bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: var(--step--1); color: var(--fg-2); }
.gallery__count { font-weight: 700; color: var(--fg); letter-spacing: 0.06em; min-width: 4.5em; }
.gallery__hint { color: var(--fg); }
.gallery__btn[data-dir="-1"] { margin-left: auto; }
.gallery__btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), opacity 200ms;
}
.gallery__btn svg { width: 18px; height: 18px; }
.gallery__btn:hover:not(:disabled) { background: var(--fg); color: var(--c); }
.gallery__btn:disabled { opacity: 0.35; cursor: default; }

/* the machine at work: a line drawing driven by scroll position (--p, set in app.js) */
.plate__anim { grid-column: 1 / -1; margin-top: clamp(8px, 2vw, 24px); color: var(--fg); overflow: hidden; padding-top: 16px; }
.anim { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.anim .thin { stroke-width: 1.6; opacity: 0.7; }
.anim .heavy { stroke-width: 5; }
.anim .solid, .anim .spark { fill: currentColor; stroke: none; }
.anim .blade { fill: currentColor; fill-opacity: 0.16; }
.anim .code { fill: currentColor; stroke: none; font: 700 16px var(--font); text-anchor: middle; }
/* motion lives inside each SVG (native SVG animation, tools/machines.py); app.js only starts and pauses it */
.anim .butt { stroke-linecap: butt; }
.anim .code.small { font-size: 12px; font-weight: 600; }
.anim .flow { stroke-width: 6; stroke-dasharray: 0.5 22; }
.anim .flow.wavy, .anim .flow.airflow { stroke-width: 2.5; stroke-dasharray: 26 18; }
.anim .flow.wire, .anim .flow.feedmarks { stroke-width: 2; stroke-dasharray: 3 21; opacity: 0.8; }
.anim .flow.wire { stroke-dasharray: 3 63; }
.anim .tube { stroke-width: 16; }
.anim .tube-core { stroke: var(--c); stroke-width: 8; }

/* plates without photography */
.plate-pair { display: grid; grid-template-columns: 1fr 1fr; }
.plate-pair .plate { align-items: start; }
.plate-pair .plate__text { grid-column: 1 / -1; }
.plate-pair .gallery { grid-column: 1 / -1; margin-top: 8px; }

/* ---------- spare parts ---------- */

.spares { background: var(--steel-2); }
.spares__title { grid-column: 1 / 7; font-size: var(--step-4); line-height: 0.95; }
.spares__text { grid-column: 7 / -1; align-self: end; }
.spares__text p { font-size: var(--step-1); line-height: 1.45; max-width: 32em; text-wrap: pretty; }
.spares__how { grid-column: 7 / -1; margin-top: 16px; color: var(--text-2); max-width: 36em; }
.spares__how p + p { margin-top: 0.6em; }
.spares__how a:not(.btn) { color: var(--text); text-decoration-color: var(--signal); }
.spares__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.spares__actions .btn svg { width: 18px; height: 18px; }

/* ---------- about ---------- */

.about__lead { grid-column: 1 / 9; }
.about__lead .statement { font-size: var(--step-2); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; margin-top: 28px; max-width: 26em; text-wrap: balance; color: #d6d5d1; }
.about__cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); margin-top: clamp(40px, 6vw, 72px); }
.about__cols > div { grid-column: span 4; border-top: 2px solid var(--signal); padding-top: 18px; }
.about__cols h3 { font-size: 1.5rem; line-height: 1.1; margin-bottom: 12px; }
.about__cols p { color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.about__cols p + p { margin-top: 0.8em; }
.about__cols .btn { margin-top: 22px; }
.about__owner { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; padding: 22px; border-top: 0 !important; }
.about__owner .owner__photo { border-radius: 50%; aspect-ratio: 1; }
.about__owner h3 { margin-bottom: 6px; }
.about__owner p { color: var(--text-2); }

/* ---------- contact / back cover ---------- */

.contact { background: var(--steel-0); }
.contact .section-title { grid-column: 1 / -1; }
.contact__card { grid-column: 1 / 5; margin-top: 40px; }
.contact__card address { font-style: normal; font-size: var(--step-1); line-height: 1.5; }
.contact__card dl { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 10px; font-size: var(--step-1); }
.contact__card dt { color: var(--text-2); }
.contact__card dd { margin: 0; font-weight: 700; }
.contact__card .is-minor { font-size: var(--step-0); font-weight: 400; color: var(--text-2); }
.form__back { grid-column: 1 / -1; justify-self: start; color: var(--text); font-weight: 650; text-decoration-color: var(--signal); }
.form__back[hidden] { display: none; }
.form__status .btn { margin-top: 12px; background: var(--ink); color: var(--signal); border-color: var(--ink); }
.contact__card a { text-decoration-color: var(--signal); }
.form { grid-column: 6 / -1; margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); row-gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }
.field label .req { color: var(--signal); }
.field .hint { font-size: var(--step--1); color: var(--text-2); }
.field input, .field textarea { font: inherit; color: var(--text); background: var(--steel-2); border: 1px solid var(--line-strong); padding: 13px 14px; border-radius: 0; }
.form__trap { display: none; }
.field textarea { min-height: 150px; resize: vertical; overflow: hidden; }
.field input::placeholder, .field textarea::placeholder { color: #8f949a; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: transparent; }
.field[data-invalid] input { border-color: #ff7a5c; box-shadow: inset 0 0 0 1px #ff7a5c; }
.field .error { display: none; color: #ff9b84; font-size: 0.9375rem; font-weight: 600; }
.field[data-invalid] .error { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__note { font-size: 0.9375rem; color: var(--text-2); max-width: 30em; }
.form__status { grid-column: 1 / -1; display: none; background: var(--signal); color: var(--ink); padding: 14px 16px; font-weight: 600; }
.form__status.is-visible { display: block; }

.colophon { background: var(--steel-0); color: var(--text-2); padding: 28px var(--gutter) 36px; display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; font-size: var(--step--1); line-height: 1.7; border-top: 1px solid var(--line); }
.colophon strong { color: var(--text); }
.colophon a { color: var(--text); text-decoration-color: var(--signal); }
.colophon__legal { text-align: right; }
@media (max-width: 640px) {
  .about__owner { grid-template-columns: 64px 1fr; } .colophon__legal { text-align: left; } }
.form__note a { color: inherit; }

/* privacy statement page */
.legal { max-width: 46rem; }
.legal h1 { font-size: var(--step-4); line-height: 0.95; }
.legal .updated { margin-top: 18px; color: var(--text-2); }
.legal h2 { font-size: 1.75rem; line-height: 1.05; margin: 44px 0 12px; }
.legal p, .legal li { color: #d6d5d1; max-width: 68ch; }
.legal p + p { margin-top: 0.8em; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-top: 0.6em; }
.legal li + li { margin-top: 0.35em; }
.legal a { color: var(--text); text-decoration-color: var(--signal); }

/* ---------- thumb index (signature) ---------- */

.thumbs {
  position: fixed; right: 0; top: calc(var(--header-h) + 12px); bottom: 12px; z-index: 20;
  display: flex; flex-direction: column; justify-content: center; gap: 2px; pointer-events: none;
  opacity: 0; transform: translateX(12px); visibility: hidden;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms;
}
/* hidden tabs are also out of reach: no invisible keyboard stops, no invisible click strip */
.thumbs.is-visible { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.thumbs a {
  pointer-events: auto; display: flex; align-items: center; justify-content: flex-end;
  height: clamp(22px, 3.6vh, 36px); width: 14px; overflow: hidden; white-space: nowrap; margin-left: auto;
  background: var(--c); color: var(--fg); text-decoration: none; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  outline-offset: -3px; box-shadow: -1px 0 0 rgba(0, 0, 0, 0.4); transition: width 260ms var(--ease-out);
}
.thumbs a span { padding: 0 12px; opacity: 0; transition: opacity 160ms; }
.thumbs a:hover, .thumbs a:focus-visible { width: 180px; }
.thumbs a[aria-current="true"] { width: 26px; }
.thumbs a:hover span, .thumbs a:focus-visible span { opacity: 1; }
.thumbs a[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--fg), 0 2px 10px rgba(0, 0, 0, 0.4); }

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__title { animation: rise 900ms var(--ease-out) 100ms both; }
  .js .hero__photo img { animation: settle 1600ms var(--ease-out) both; }
}
@keyframes rise { from { transform: translateY(0.12em); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .masthead__menu { display: inline-flex; margin-left: 8px; }
  .masthead__search { order: 1; margin-left: auto; }
  .masthead nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: rgba(14, 16, 18, 0.98); border-bottom: 1px solid var(--line-strong); padding: 4px var(--gutter) 18px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
  }
  .masthead nav.is-open { display: block; }
  .masthead nav ul { flex-direction: column; gap: 0; }
  .masthead nav a { display: block; padding: 15px 0; font-size: 1rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .masthead nav li:last-child a { border-bottom: 0; }
  .masthead__call { margin-left: 10px; }
  .makers__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
  .hero__main { grid-column: 1 / -1; }
  .hero__side { grid-column: 1 / -1; margin-top: 40px; grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .makers__grid { grid-template-columns: repeat(2, 1fr); }
  .types__group li a { padding: 9px 0; gap: 12px; }
  .types__maker { font-size: 0.9375rem; }
  .plate__text, .plate .fig, .plate .gallery { grid-column: 1 / -1; }
  .plate-pair { grid-template-columns: 1fr; }
  .spares__title, .spares__text, .spares__how { grid-column: 1 / -1; }
  .spares__text { margin-top: 24px; }
  .about__lead { grid-column: 1 / -1; }
  .about__cols > div { grid-column: 1 / -1; margin-top: 28px; }
  .contact__card, .form { grid-column: 1 / -1; }
  .thumbs { display: none; }
}

@media (max-width: 640px) {
  .gallery__track { --h: 230px; }
  .gallery__hint { display: none; }
  :root { --header-h: 56px; }
  .masthead__call { padding: 9px 12px; font-size: 0.875rem; }
  .masthead__search { padding: 9px 11px; }
  .masthead__search span { display: none; }
  .masthead__menu { padding: 9px 12px; }
  .hero { min-height: 0; }
  .hero__photo, .hero__photo img { height: 62vh; bottom: auto; object-position: 22% 30%; }
  .hero::after { background: linear-gradient(0deg, var(--blue-1) 38%, rgba(7, 52, 79, 0.82) 70%, rgba(4, 29, 45, 0.45)); }
  .hero__inner { padding-top: 26vh; }
  .hero__fig { padding: 8px 8px 10px; }
  .hero__actions .btn { width: 100%; }
  .owner { grid-template-columns: 64px 1fr; padding: 16px 18px; }
  .hero__cap { padding: 0 6px; }
  .hero__lede { font-size: 1.125rem; margin-top: 20px; }
  .hero__tagline { font-size: 1.75rem; margin-top: 18px; gap: 14px; }
  /* all 18 makers on one phone screen: low plates, small rivets, tight board */
  .makers { padding-top: 36px; padding-bottom: 40px; }
  .makers__head { margin-bottom: 14px; gap: 6px; }
  .makers .section-title { font-size: 2.4rem; }
  .makers__head .section-intro { font-size: 0.9375rem; line-height: 1.45; }
  .makers__grid { grid-template-columns: 1fr 1fr; gap: 7px 8px; }
  .makers__grid a { min-height: 40px; padding: 5px 10px 5px 12px; grid-template-columns: 8px 1fr; column-gap: 8px; align-items: center; align-content: center; }
  .makers__grid .nameplate {
    background-position: left 4px top 4px, right 4px top 4px, left 4px bottom 4px, right 4px bottom 4px, 0 0, center;
    background-size: 6px 6px, 6px 6px, 6px 6px, 6px 6px, auto, cover;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.25),
      0 2px 0.5px -1px #b9bec2, 0 3px 0.5px -1px #3b3f43, 0 6px 12px rgba(0, 0, 0, 0.4);
  }
  .makers__grid .chip { width: 8px; height: 8px; }
  .makers__grid .name { font-size: 1rem; line-height: 1.02; }
  .makers__grid .what { display: none; } /* the category is on each maker's own section and in the machine table */
  .form { grid-template-columns: 1fr; }
  .contact__card dl { grid-template-columns: 1fr; row-gap: 2px; }
  .contact__card dd { margin-bottom: 10px; }
}

@media (max-width: 420px) {
  .masthead__call span { display: none; }
  .masthead__call { padding: 10px 12px; }
}

/* the privacy page keeps its two links visible at every width */
.masthead nav.nav--simple { display: block; position: static; background: none; border: 0; padding: 0; box-shadow: none; margin-left: auto; }
.masthead nav.nav--simple ul { flex-direction: row; gap: 18px; }
.masthead nav.nav--simple a { padding: 6px 0; border: 0; font-size: 0.8125rem; }
@media (max-width: 640px) { .nav--simple + .masthead__call { display: none; } }

/* short phones (iPhone SE and the like): drop the intro line above the board so all 18 makers still fit one screen;
   the machine-type link is also in the menu */
@media (max-width: 640px) and (max-height: 620px) {
  .makers { padding-top: 24px; }
  .makers__head { margin-bottom: 12px; }
  .makers__head .section-intro { display: none; }
  .makers .section-title { font-size: 2.1rem; }
  .makers__grid { gap: 6px 8px; }
  .makers__grid a { min-height: 38px; }
}

/* the narrowest phones (320px): logo, search, menu and call still on one line */
@media (max-width: 359px) {
  .masthead { gap: 8px; }
  .masthead__mark { font-size: 1.5rem; }
  .masthead__search { padding: 8px 9px; }
  .masthead__menu { padding: 8px 10px; margin-left: 6px; gap: 8px; }
  .masthead__call { margin-left: 6px; padding: 9px 10px; }
}
/* the mobile number, second to the office line */
.owner__mobile { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--text-2); text-decoration: none; }
.owner__mobile small { font-size: inherit; opacity: 0.8; }
.owner__mobile:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--signal); }
.contact__note { display: block; font-size: var(--step--1); color: var(--text-2); margin-top: 2px; }
