/* Stealth: an experimental system for 3D Print on Campus.
   Monochrome on a true black ground, sharp machined edges, hairline seams instead of boxes.
   Archivo carries every word: expanded and uppercase for the hero alone, normal width elsewhere.
   IBM Plex Mono carries measured values only (mm, g, h, rates, totals); labels stay in sentence case.
   The only colour is the H2D photo's own glow and the status green when the machine is free. */
:root {
  /* scale: 4px base, a 1.25 type ratio */
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 160px;
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.125rem; --text-xl: 1.375rem; --text-2xl: 1.75rem; --text-3xl: 2.25rem;
  --text-hero: clamp(2.5rem, 4.8vw, 5rem); --text-section: clamp(2rem, 2.4vw + 1rem, 3.25rem); --text-title: 1.125rem; --text-lead: clamp(1.0625rem, 0.4vw + 0.95rem, 1.3125rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 900ms;
  --container: 1440px; --gutter: 48px; --gap-columns: 24px; --section-gap: 160px;
  --z-raised: 10; --z-sticky: 200; --z-sticky-nav: 300;
  --nav-height: 64px;

  /* stealth palette */
  --void: #000000; --graphite: #0e0f11; --carbon: #17191c; --seam: #26292e; --seam-strong: #3a3e45; --seam-field: #646a73; --ash: #8a8f98; --fog: #b7bbc2; --bone: #ecedee; --signal: #6fe3a1; --caution: #e8c46a; --fault: #ff7a6b;

  --color-paper: var(--void); --color-paper-2: var(--graphite); --color-paper-3: var(--carbon);
  --color-ink: var(--bone); --color-ink-2: var(--fog); --color-muted: var(--ash);
  --color-rule: var(--seam); --color-edge: var(--seam-strong);
  --color-accent: var(--bone); --color-accent-ink: var(--void); --color-focus: var(--bone);
  --color-link: var(--bone); --color-ok: var(--signal); --color-warn: var(--caution); --color-error: var(--fault);
  --color-wash: rgb(236 237 238 / 0.04); --color-wash-ok: rgb(111 227 161 / 0.1); --color-wash-warn: rgb(232 196 106 / 0.1); --color-wash-error: rgb(255 122 107 / 0.1);
  --color-swatch-edge: rgb(236 237 238 / 0.25); --color-track: rgb(236 237 238 / 0.12); --color-scrim: rgb(0 0 0 / 0.72); --shade-86: rgb(0 0 0 / 0.86); --shade-20: rgb(0 0 0 / 0.2); --shade-0: rgb(0 0 0 / 0);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif; --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif; --font-outlier: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 2px; --radius-pill: 999px;

  /* names admin.html and the logo read: the logo goes monochrome here */
  --bg: var(--color-paper); --bg-2: var(--color-paper-2); --surface: var(--color-paper-2); --surface-2: var(--color-paper-3);
  --fg: var(--color-ink); --muted: var(--color-muted); --line: var(--color-rule); --line-strong: var(--color-edge);
  --accent: var(--bone); --accent-2: var(--fog); --brand-blue: var(--ash);
  --ok: var(--color-ok); --bad: var(--color-error); --display: var(--font-display); --body: var(--font-body); --mono: var(--font-outlier);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--seam-strong) var(--void); scroll-padding-top: calc(var(--nav-height) + var(--space-md)); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); font-weight: 400; font-stretch: 100%; line-height: 1.6; -webkit-font-smoothing: antialiased; font-synthesis: none; }
::selection { background: var(--bone); color: var(--void); }
:focus-visible { outline: 1px solid var(--color-focus); outline-offset: 3px; }
a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--seam-strong); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { font-size: var(--text-hero); font-weight: 500; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; max-width: 14ch; }
h2 { font-size: var(--text-section); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; max-width: 22ch; }
h3 { font-size: var(--text-title); font-weight: 500; letter-spacing: -0.005em; line-height: 1.3; max-width: 40ch; }
b, strong { font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
.muted { color: var(--color-muted); }
.nowrap { white-space: nowrap; }
.eyebrow { font-size: var(--text-sm); color: var(--color-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead { font-size: var(--text-lead); line-height: 1.55; max-width: 54ch; color: var(--color-ink-2); }
.note { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-md); max-width: 64ch; }

/* ---------- sections: a seam above each ---------- */
.section { padding-block: var(--section-gap) 0; }
.section > .wrap { position: relative; }
.section > .wrap::before { content: ""; position: absolute; top: 0; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); height: 1px; background: var(--color-rule); }
.section > .wrap { padding-top: var(--space-xl); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-lg) var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }
.section-head > div { display: grid; gap: var(--space-lg); }
.section-head p { color: var(--color-ink-2); max-width: 60ch; }
.section-head .aside { justify-self: end; text-align: right; font-size: var(--text-sm); color: var(--color-muted); }

main > .section:first-child { padding-top: var(--space-2xl); }
main > .section:first-child > .wrap::before { display: none; }
main > .section:first-child > .wrap { padding-top: 0; }
h1.title { font-size: clamp(2.25rem, 2.6vw + 1rem, 3.75rem); font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: -0.03em; line-height: 1.04; max-width: 22ch; }

/* ---------- home: the pages as plates ---------- */
#explore { padding-top: var(--space-3xl); }
#explore > .wrap::before { display: none; }
#explore > .wrap { padding-top: 0; }
.index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--color-rule); border: 1px solid var(--color-rule); }
.index-tile { display: grid; align-content: space-between; gap: var(--space-lg); min-height: 240px; padding: var(--space-lg); background: var(--void); color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.index-tile:hover { background: var(--graphite); }
.index-tile:focus-visible { outline: 1px solid var(--bone); outline-offset: -1px; }
.index-name { font-size: var(--text-xs); color: var(--color-muted); }
.index-line { font-size: var(--text-2xl); font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; max-width: 18ch; }
.index-tile:hover .index-name { color: var(--color-ink); }
/* Hairline figures in the tiles (assets/hairline): isometric line drawings that answer the pointer.
   The kernel's palette maps onto ours: plates fill with the tile's ground, one bright stroke in bone. */
.index-tile { --tile-ground: var(--void); }
.index-tile:hover { --tile-ground: var(--graphite); }
.tile-fig { position: relative; display: block; margin: calc(-1 * var(--space-sm)) calc(-1 * var(--space-sm)) 0; }
.tile-stage[data-hairline] { aspect-ratio: 16 / 11; --hairline-plate: var(--tile-ground); --hairline-hi: var(--bone); --hairline-edge: var(--seam-field); --hairline-mid: var(--seam-strong); --hairline-lo: var(--seam); --hairline-stroke: 1; }
.tile-read { position: absolute; top: var(--space-xs); right: var(--space-sm); font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-ink-2); font-variant-numeric: tabular-nums; }

/* ---------- controls: one white primary, everything else a seam ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-edge); border-radius: var(--radius); background: transparent; color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); letter-spacing: 0.01em; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { border-color: var(--bone); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 1px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--bone); border-color: var(--bone); color: var(--void); }
.btn-primary:hover { background: var(--fog); border-color: var(--fog); color: var(--void); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 40px; padding: 0 var(--space-md); }

/* ---------- header: nothing but the mark, the routes and one action ---------- */
.header { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-scrim); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--color-rule); }
.header .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-md); min-height: var(--nav-height); }
.header .wrap > .btn { grid-column: -2; justify-self: end; }
.brand { display: flex; align-items: center; justify-self: start; color: var(--color-ink); text-decoration: none; }
/* the wordmark: 3DPOC in Michroma, thickened with an outline in its own colour to stand in for Eurostile Bold Extended */
.wordmark { font-family: "Michroma", "Eurostile Extended", "Helvetica Neue", Arial, sans-serif; font-size: 1em; line-height: 1; letter-spacing: 0.01em; color: var(--color-ink); -webkit-text-stroke: 0.06em currentColor; white-space: nowrap; }
/* the lockup: the wordmark over the full name in the same face, the name spaced out to the wordmark's width.
   Sizes are in em of the lockup, so the two stay matched when the wordmark shrinks on phones. */
.brand-lockup { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.23em; font-size: 22px; }
.wordmark-sub { font-family: "Michroma", "Eurostile Extended", "Helvetica Neue", Arial, sans-serif; font-size: 0.255em; line-height: 1; letter-spacing: 0.41em; margin-right: -0.41em; color: var(--color-ink); white-space: nowrap; }
.nav { display: flex; gap: var(--space-2xs); }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--bone); }
.hdr-end { grid-column: -2; justify-self: end; display: flex; align-items: center; gap: var(--space-lg); }
.hdr-status { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-xs); }
.hdr-status .live-text, .hdr-status #live-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hdr-status .avail-big { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0; }
.preview-banner { position: sticky; top: var(--nav-height); z-index: var(--z-sticky); background: var(--carbon); color: var(--color-ink); font-size: var(--text-sm); padding: var(--space-xs) var(--gutter); display: flex; gap: var(--space-sm); justify-content: center; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--color-rule); }

/* ---------- hero: a printed part in the dark beside the headline, a readout along the bottom edge ---------- */
.hero { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: calc(100dvh - var(--nav-height)); isolation: isolate; overflow: hidden; }
/* the print farm figure on the right, on a faint field of dots */
.hero-part { position: relative; width: 100%; max-width: 720px; margin: var(--space-3xl) 0 var(--space-xl); justify-self: end; align-self: center; }
.hero-part::before { content: ""; position: absolute; inset: calc(-1 * var(--space-3xl)) calc(-1 * var(--gutter)) calc(-1 * var(--space-xl)) 0; z-index: -1; background-image: radial-gradient(circle, var(--seam-strong) 1px, var(--shade-0) 1.5px); background-size: 14px 14px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 55% 55%, var(--void) 0%, var(--shade-0) 100%); mask-image: radial-gradient(ellipse 60% 55% at 55% 55%, var(--void) 0%, var(--shade-0) 100%); }
.hero-stage { width: 100%; }
.hero-stage[data-hairline] { --hairline-plate: var(--void); --hairline-hi: var(--bone); --hairline-edge: var(--seam-field); --hairline-mid: var(--seam-strong); --hairline-lo: var(--seam); --hairline-stroke: 1; animation: rise var(--dur-long) var(--ease-out) 320ms both; }
.hero-read { position: absolute; right: 0; bottom: 0; font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-ink-2); font-variant-numeric: tabular-nums; }

/* the machine photo on machine.html: wide, sinking into black at the edges */
.machine-photo { position: relative; margin: 0 0 var(--space-2xl); }
.machine-photo .ph { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.machine-photo img, .machine-photo svg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.machine-photo .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--void) 0%, var(--shade-0) 18%, var(--shade-0) 82%, var(--void) 100%), linear-gradient(0deg, var(--void) 0%, var(--shade-0) 30%); }
.machine-photo figcaption { position: absolute; right: 0; top: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); z-index: 1; }
.hero-frame { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); align-items: end; }
.hero-copy { display: grid; gap: var(--space-lg); justify-items: start; padding-block: var(--space-2xl) var(--space-xl); }
.hero .lead { max-width: 36ch; }
.hero h1 { font-size: clamp(2.5rem, 3.4vw + 0.75rem, 4.5rem); font-weight: 300; font-stretch: 100%; text-transform: none; letter-spacing: -0.04em; line-height: 1.02; max-width: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-sm); }
.dm-line { font-size: var(--text-sm); color: var(--color-muted); max-width: 52ch; }
.dm-line a { color: var(--color-ink); }
.hero h1, .hero .lead, .hero .cta-row { animation: rise var(--dur-long) var(--ease-out) both; }
.hero .lead { animation-delay: 120ms; }
.hero .cta-row { animation-delay: 220ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* the readline: availability first, then the four figures, between seams */
.readline { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border-top: 1px solid var(--color-rule); }
.panel { padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-right: 1px solid var(--color-rule); }
.panel-inner { display: grid; gap: var(--space-2xs); }
.panel-inner > div:last-child { display: grid; gap: var(--space-3xs); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }
.live { display: inline-flex; align-items: center; gap: var(--space-xs); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ok); box-shadow: 0 0 0 3px var(--color-wash-ok); }
.live.stale i { background: var(--color-warn); box-shadow: 0 0 0 3px var(--color-wash-warn); }
.avail-big { font-size: var(--text-xl); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.avail-big.free { color: var(--color-ok); }
.avail-big.busy { color: var(--color-warn); }
.avail-big.unknown { color: var(--color-ink-2); }
.avail-sub { font-size: var(--text-sm); color: var(--color-ink-2); }
.avail-sub b { color: var(--color-ink); }
.stamp { font-size: var(--text-xs); color: var(--color-muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: grid; align-content: space-between; gap: var(--space-lg); padding: var(--space-lg); min-width: 0; }
.fact + .fact { border-left: 1px solid var(--color-rule); }
.fact b { font-family: var(--font-outlier); font-weight: 400; font-size: var(--text-md); line-height: 1.3; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.fact span { font-size: var(--text-xs); color: var(--color-muted); }

/* ---------- intro ---------- */
.intro { padding-top: var(--space-3xl); }
.intro .lead { font-size: clamp(1.375rem, 1vw + 1rem, 2rem); line-height: 1.35; letter-spacing: -0.015em; max-width: 34ch; color: var(--color-ink); }
.stock.wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-2xl); }
.stock-label { font-size: var(--text-sm); color: var(--color-ink); }
.stock-count { font-size: var(--text-sm); color: var(--color-muted); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.sw { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--color-swatch-edge); position: relative; flex: none; }
.sw.low::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-warn); border: 2px solid var(--color-paper); }

/* ---------- estimator: an instrument, the readout beside it ---------- */
.est { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.drop { display: grid; gap: var(--space-xs); align-content: center; justify-items: start; min-height: 220px; padding: var(--space-xl); border: 1px dashed var(--seam-field); border-radius: var(--radius); background: var(--graphite); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.drop.over, .drop:hover { border-color: var(--bone); background: var(--carbon); }
.drop input { display: none; }
.drop strong { font-size: var(--text-xl); font-weight: 400; letter-spacing: -0.015em; line-height: 1.25; max-width: 26ch; }
.drop span { color: var(--color-muted); font-size: var(--text-sm); max-width: 56ch; }
.drop .fname { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-ink); overflow-wrap: anywhere; }
.field { display: grid; gap: var(--space-xs); min-width: 0; align-content: start; }
.field label { font-size: var(--text-xs); color: var(--color-muted); }
select, input:not([type]), input[type="password"], input[type="number"], input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="datetime-local"], textarea { width: 100%; min-height: 48px; padding: 0 var(--space-sm); border: 1px solid var(--seam-field); border-radius: var(--radius); background: var(--carbon); color: var(--color-ink); font: inherit; font-size: var(--text-md); outline: 1px solid transparent; outline-offset: 2px; transition: border-color var(--dur-short) var(--ease-out); }
select:hover, input[type="number"]:hover, input[type="text"]:hover, input[type="email"]:hover, input[type="tel"]:hover, input[type="url"]:hover, textarea:hover { border-color: var(--fog); }
select:focus-visible, input:focus-visible, textarea:focus-visible { border-color: var(--bone); outline-color: transparent; }
select:disabled, input:disabled { opacity: 0.4; cursor: not-allowed; }
::placeholder { color: var(--ash); opacity: 1; }
textarea { min-height: 120px; padding-block: var(--space-sm); resize: vertical; }
.opts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-lg); }
.opts .field { grid-column: span 3; }
.opts .field:first-child { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); margin-top: var(--space-lg); }
.check { position: relative; display: block; padding-block: var(--space-sm); padding-left: calc(var(--space-lg) + var(--space-xs)); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; position: absolute; left: 0; top: var(--space-sm); width: 18px; height: 18px; margin: 0; border: 1px solid var(--seam-field); border-radius: var(--radius); background: var(--carbon); cursor: pointer; }
.check input:hover { border-color: var(--bone); }
.check input:checked { background: var(--bone); border-color: var(--bone); box-shadow: inset 0 0 0 3px var(--carbon); }
.field.locked, .check.locked { opacity: 0.4; }
.locked-note { color: var(--color-ink-2); }
.exact-badge { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.exact-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted); }
.exact-badge.on { color: var(--color-ok); }
.exact-badge.on::before { background: var(--color-ok); }

.readout { position: sticky; top: calc(var(--nav-height) + var(--space-md)); display: grid; align-content: start; gap: var(--space-2xs); min-height: 420px; padding: var(--space-xl); border: 1px solid var(--color-rule); border-radius: var(--radius); background: var(--graphite); font-variant-numeric: tabular-nums; }
.readout .rlabel { font-size: var(--text-xs); color: var(--color-muted); }
.readout .big { font-family: var(--font-outlier); font-size: clamp(1.75rem, 1.4vw + 1rem, 2.5rem); line-height: 1.05; font-weight: 400; letter-spacing: -0.04em; margin-top: var(--space-sm); }
.readout .sub { color: var(--color-muted); font-size: var(--text-xs); }
.readout dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm) var(--space-md); margin: var(--space-lg) 0 0; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); }
.readout dt { color: var(--color-muted); }
.readout dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-family: var(--font-outlier); font-size: var(--text-sm); }
.readout .fit-ok { color: var(--color-ok); }
.readout .fit-bad { color: var(--color-error); }
.readout .empty { color: var(--color-ink-2); margin-top: var(--space-sm); line-height: 1.55; }
.readout:has(.empty)::after { content: "Est. weight\A Est. print time\A Breakdown"; display: block; margin-top: var(--space-lg); white-space: pre; font-size: var(--text-sm); color: var(--color-muted); line-height: 3; background-image: repeating-linear-gradient(180deg, transparent 0 calc(3em - 1px), var(--color-rule) calc(3em - 1px) 3em); }
.readout .actions { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.readout .progress { margin-top: var(--space-sm); height: 2px; background: var(--color-track); overflow: hidden; }
.readout .progress i { display: block; height: 100%; width: 40%; background: var(--bone); animation: slide 1.4s var(--ease-in-out) infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- materials: a grid of dark plates, the name low, the rate beside it ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--color-rule); border: 1px solid var(--color-rule); }
.materials { display: contents; }
.mat { display: grid; grid-template-rows: auto 1fr; background: var(--void); min-width: 0; }
.mat-media { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--space-md); min-height: 280px; padding: var(--space-lg); background: var(--graphite); }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-2xs); min-height: 22px; }
.pill { display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--space-xs); border: 1px solid var(--seam-strong); border-radius: var(--radius); color: var(--color-ink-2); font-size: var(--text-xs); }
.pill.accent { border-color: var(--bone); color: var(--color-ink); }
.mat-media .swatches { grid-row: 2; align-self: center; gap: var(--space-sm); }
.mat-media .sw { width: 32px; height: 32px; }
.mat-media .sw.r { width: 88px; height: 88px; margin: calc(var(--space-sm) * -1) 0; border: 0; border-radius: 0; }
.sw.r img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sw.r.low::after { right: 10px; top: 10px; }
.mat-foot { grid-row: 3; display: flex; justify-content: space-between; align-items: end; gap: var(--space-md); min-width: 0; }
.mat-foot > div { min-width: 0; }
.mat-media h3 { max-width: none; font-size: clamp(1.75rem, 1.6vw + 0.75rem, 2.5rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.mat-media .sub { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-xs); max-width: 28ch; }
.price { flex: none; font-size: var(--text-xs); white-space: nowrap; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.price b { font-family: var(--font-outlier); font-weight: 400; font-size: var(--text-xl); letter-spacing: -0.03em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.mat-body { display: grid; gap: var(--space-xs); align-content: start; padding: var(--space-md) var(--space-lg) var(--space-lg); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-3xs) var(--space-sm); }
.chip { font-size: var(--text-sm); color: var(--color-ink-2); }
.chip.accent { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--seam-strong); text-underline-offset: 0.25em; }
.byreq, .tag { font-size: var(--text-xs); color: var(--color-muted); }
.request { grid-column: span 2; display: grid; align-content: space-between; justify-items: start; gap: var(--space-xl); padding: var(--space-xl); background: var(--void); }
.request h3 { font-size: var(--text-2xl); font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; max-width: 20ch; margin-bottom: var(--space-sm); }
.request p { color: var(--color-muted); max-width: 52ch; }

/* ---------- machine ---------- */
.machine-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.machine { display: grid; gap: var(--space-lg); align-content: start; }
.machine-head { display: flex; align-items: center; gap: var(--space-md); }
.machine-head svg { width: 40px; height: 40px; color: var(--color-muted); flex: none; }
.machine h3 { font-size: var(--text-2xl); font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; }
.machine .model { font-size: var(--text-sm); color: var(--color-muted); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.spec { min-width: 0; }
.spec small { display: block; font-size: var(--text-xs); color: var(--color-muted); margin-bottom: var(--space-2xs); }
.spec b { font-family: var(--font-outlier); font-weight: 400; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.capgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--color-rule); }
.cap { display: grid; gap: var(--space-xs); padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-bottom: 1px solid var(--color-rule); min-width: 0; }
.cap:nth-child(even) { padding-left: var(--space-lg); border-left: 1px solid var(--color-rule); }
.cap small { display: block; font-size: var(--text-xs); color: var(--color-muted); }
.cap b, .cap b.sm { font-weight: 400; font-size: var(--text-lg); line-height: 1.35; letter-spacing: -0.01em; }
.cap b:not(.sm) { font-family: var(--font-outlier); letter-spacing: -0.02em; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.pricing-grid > div { min-width: 0; }
.pricing-grid h3, .order h3 { margin-bottom: var(--space-md); }
.pricing-side { position: sticky; top: calc(var(--nav-height) + var(--space-md)); padding: var(--space-xl); border: 1px solid var(--color-rule); border-radius: var(--radius); background: var(--graphite); }
.stack { display: grid; gap: var(--space-2xl); min-width: 0; }
.stack > div { min-width: 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.table th, .table td { padding: var(--space-md) 0; border-top: 1px solid var(--color-rule); text-align: left; vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 1px solid var(--color-rule); }
.table th { font-size: var(--text-xs); color: var(--color-muted); font-weight: 400; }
.table td.num { text-align: right; min-width: 10ch; padding-left: var(--space-md); font-family: var(--font-outlier); font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--color-ink); }
.table td small { color: var(--color-muted); display: block; font-size: var(--text-sm); margin-top: var(--space-3xs); }
.examples { display: grid; }
.ex { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); align-items: baseline; padding-block: var(--space-md); border-top: 1px solid var(--color-rule); }
.ex:last-child { border-bottom: 1px solid var(--color-rule); }
.ex small { color: var(--color-muted); display: block; font-size: var(--text-xs); margin-top: var(--space-3xs); }
.ex b { font-family: var(--font-outlier); font-weight: 400; font-size: var(--text-md); font-variant-numeric: tabular-nums; }

/* ---------- steps: a sequence, so numbered ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--color-rule); counter-reset: step; }
.step { counter-increment: step; display: grid; gap: var(--space-sm); align-content: start; padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; min-width: 0; }
.step + .step { padding-left: var(--space-lg); border-left: 1px solid var(--color-rule); }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); }
.step h3 { margin-top: var(--space-2xl); }
.step p { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- order ---------- */
.order { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.grid2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.grid2 .field:last-child { grid-column: 1 / -1; }
.grid3 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); }
.grid3 .field { grid-column: span 2; }
.grid3 .field:nth-child(-n+2) { grid-column: span 3; }
.form { display: grid; gap: var(--space-lg); min-width: 0; }
.form .checks { display: grid; gap: 0; margin-top: 0; }
.aside-box { display: grid; gap: var(--space-2xs); align-content: start; position: sticky; top: calc(var(--nav-height) + var(--space-md)); padding: var(--space-xl); border: 1px solid var(--color-rule); border-radius: var(--radius); background: var(--graphite); }
.aside-box h3 { max-width: none; font-size: var(--text-sm); margin: var(--space-md) 0 0; padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.aside-box h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.aside-box p { color: var(--color-muted); font-size: var(--text-sm); }
.aside-box .mono { font-family: inherit; }
.msg { border: 1px solid var(--color-rule); border-radius: var(--radius); padding: var(--space-md); font-size: var(--text-sm); background: var(--graphite); color: var(--color-ink); display: grid; gap: var(--space-xs); }
.msg.bad { border-color: var(--color-error); background: var(--color-wash-error); }
.msg.good { border-color: var(--color-ok); background: var(--color-wash-ok); }
.msg pre { margin: 0; white-space: pre-wrap; font-family: var(--font-outlier); font-size: var(--text-xs); line-height: 1.5; max-height: 260px; overflow: auto; background: var(--void); padding: var(--space-sm); border-radius: var(--radius); }
.req { color: var(--color-error); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--color-rule); border: 1px solid var(--color-rule); }
.gallery figure { margin: 0; background: var(--void); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--graphite); }
.gallery figcaption { font-size: var(--text-xs); color: var(--color-muted); padding: var(--space-sm) var(--space-md); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.faq-grid .section-head { display: block; margin-bottom: 0; position: sticky; top: calc(var(--nav-height) + var(--space-md)); }
.faq-grid .section-head .dm-line { margin-top: var(--space-lg); }
.faq-list { min-width: 0; border-bottom: 1px solid var(--color-rule); }
.faq details { border-top: 1px solid var(--color-rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; padding-block: var(--space-md); cursor: pointer; font-size: var(--text-lg); font-weight: 400; letter-spacing: -0.01em; line-height: 1.35; list-style: none; transition: color var(--dur-short) var(--ease-out); }
.faq summary:hover { color: var(--color-ink-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-outlier); font-size: var(--text-lg); color: var(--color-muted); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--color-muted); padding-bottom: var(--space-lg); max-width: 64ch; }
.faq details p a { white-space: nowrap; }

/* ---------- contact & footer ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 1px solid var(--color-rule); }
.contact > div { display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; min-width: 0; }
.contact > div + div { padding-left: var(--space-lg); border-left: 1px solid var(--color-rule); }
.contact h3 { margin-bottom: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); font-weight: 400; }
.contact p { color: var(--color-ink); }
.copyable { display: inline-flex; gap: var(--space-xs); align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.copy { min-height: 32px; padding: 0 var(--space-sm); font-size: var(--text-xs); border-radius: var(--radius); border: 1px solid var(--seam-strong); background: transparent; color: var(--color-ink); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.copy:hover { border-color: var(--bone); }
.copy:active { transform: translateY(1px); }
.footer { margin-top: var(--section-gap); padding-block: var(--space-xl); border-top: 1px solid var(--color-rule); font-size: var(--text-xs); color: var(--color-muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); justify-content: space-between; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }
.footer-links a { white-space: nowrap; color: var(--color-ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--color-ink); }

/* ---------- legal docs ---------- */
.doc { max-width: calc(70ch + 2 * var(--gutter)); padding-block: var(--space-2xl) var(--space-3xl); }
.doc h1 { font-size: clamp(2rem, 3vw + 1rem, 3.5rem); margin-bottom: var(--space-md); max-width: none; }
.doc h2 { font-size: var(--text-xl); letter-spacing: -0.015em; margin: var(--space-xl) 0 var(--space-xs); }
.doc p, .doc li { font-size: var(--text-md); line-height: 1.75; margin-block: var(--space-sm); color: var(--color-ink-2); }
.doc ul { padding-left: var(--space-lg); }
.draft { display: inline-block; font-size: var(--text-xs); border: 1px solid var(--color-warn); color: var(--color-warn); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius); margin-bottom: var(--space-md); }

/* ---------- responsive ---------- */
@media (min-width: 60.01rem) { .table td.num { white-space: nowrap; } }
@media (max-width: 75rem) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .request { grid-column: span 1; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step:nth-child(4) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+4) { border-top: 1px solid var(--color-rule); }
  .readline { grid-template-columns: minmax(0, 1fr); }
  .panel { border-right: 0; border-bottom: 1px solid var(--color-rule); padding-right: 0; }
  .fact:first-child { padding-left: 0; }
  .nav a { padding-inline: var(--space-xs); }
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) { .index { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 60rem) {
  :root { --gutter: 24px; --section-gap: 96px; --nav-height: 0px; }
  .header { position: static; }
  .header .wrap { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; padding-block: var(--space-xs); }
  .nav { order: 3; grid-column: 1 / -1; overflow-x: auto; margin-inline: calc(-1 * var(--space-sm)); scrollbar-width: none; }
  .hero { min-height: 0; grid-template-rows: auto auto auto; }
  .hero-frame { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-part { order: -1; max-width: 440px; margin: var(--space-2xl) auto 0; justify-self: center; }
  .machine-photo .ph { aspect-ratio: 16 / 10; }
  .machine-photo img { object-position: 50% 70%; }
  .machine-photo figcaption { position: static; margin-top: var(--space-xs); }
  .hero-copy { padding-block: var(--space-lg) var(--space-xl); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--color-rule); }
  .pricing-grid, .order, .machine-grid, .faq-grid, .section-head, .est { grid-template-columns: minmax(0, 1fr); }
  .section-head .aside { justify-self: start; text-align: left; }
  .readout, .pricing-side, .aside-box, .faq-grid .section-head { position: static; }
  .readout { min-height: 0; }
  .est { display: flex; flex-direction: column; gap: var(--space-lg); }
  .est > div:first-child { display: contents; }
  .drop { order: 1; }
  .readout { order: 2; }
  .opts, .est .checks, .est .note { order: 3; margin-top: 0; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request { grid-column: 1 / -1; }
  .hdr-end { gap: var(--space-sm); }
}
@media (max-width: 40rem) {
  :root { --gutter: 16px; --section-gap: 72px; --gap-columns: 16px; }
  .steps, .specs, .capgrid { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--color-rule); }
  .step h3 { margin-top: var(--space-sm); }
  .cap:nth-child(even) { padding-left: 0; border-left: 0; }
  .contact > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-rule); }
  .opts .field, .grid3 .field, .grid3 .field:nth-child(-n+2) { grid-column: 1 / -1; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .brand-lockup { font-size: 19px; }
  .fact { padding: var(--space-md) var(--space-sm); }
  .fact:nth-child(odd) { padding-left: 0; }
  .fact b { font-size: var(--text-sm); }
  .mat-media { min-height: 200px; padding: var(--space-md); }
  .mat-media .sw { width: 22px; height: 22px; }
  .mat-media .sw.r { width: 56px; height: 56px; margin: calc(var(--space-2xs) * -1) 0; }
  .mat-media .swatches:has(.sw.r) { gap: var(--space-2xs); }
  .sw.r.low::after { right: 4px; top: 4px; }
  .mat-media h3 { font-size: var(--text-xl); }
  .mat-foot { flex-direction: column; align-items: start; gap: var(--space-xs); }
  .price b { font-size: var(--text-lg); }
  .mat-body { padding: var(--space-sm) var(--space-md) var(--space-md); }
  .drop, .readout, .pricing-side, .aside-box, .request { padding: var(--space-lg); }
  .table td { display: block; }
  .table td.num { text-align: left; padding: 0 0 var(--space-md); border-top: 0; white-space: nowrap; }
  .table tr:last-child td:not(.num) { border-bottom: 0; }
  .cta-row { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr); }
  #request-btn { width: 100%; }
  .index { grid-template-columns: minmax(0, 1fr); }
  .index-tile { min-height: 160px; gap: var(--space-xl); }
  .index-line { font-size: var(--text-xl); }
  .hdr-status { display: none; }
  main > .section:first-child { padding-top: var(--space-2xl); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
