/* ─────────────────────────────────────────────────────────────────────────────
   microscanr.com — the capability sheet's visual world, on the web.
   Deep instrument blue on a cold dark ground (docs/MICROscanR-Capability-Overview-v3.0.html).
   AMBER IS RESERVED for figures measured off the machine — it encodes provenance,
   it is not decoration. The site is dark by design: the specimens are photographed on
   black, and every splat viewer is black, so the page never flashes white around them.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --ground:   #0f1418;
  --surface:  #151b20;
  --sunken:   #1b2228;
  --ink:      #e4eaee;
  --ink-2:    #9aa8b3;
  --ink-3:    #74838e;
  --rule:     #26313a;
  --rule-2:   #33414c;
  --accent:   #7fb3e0;
  --accent-2: #a3ccef;
  --measure:  #d9a441;
  --you:      #d9a441;   /* the operator's steps — as in the workflow graphic */
  --auto:     #7fb3e0;   /* the machine's steps */

  --f-display: 'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --max: 74rem;
  /* ★ LAYOUT RULES (Huib, 10-20) — compact, still readable:
     · TWO COLUMNS when the text has paragraphs to split, or when one-column graphics beside it can be about as long;
     · FULL WIDTH when it sits directly above or below a full-width graphic that belongs to it;
     · never ONE column with empty space beside it, and never a width in between.
     --col = exactly one column of .two (gap 3rem); below the width where .two stacks, the full width. */
  --col: calc((min(100vw, var(--max)) - 2 * var(--pad) - 3rem) / 2);
  --pad: clamp(1rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--f-body); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
b, strong { font-weight: 600; }
figure { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section.wrap { padding-top: clamp(4.5rem, 10vw, 8rem); }

/* ── Top bar ──────────────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule);
}
.bar-in { max-width: var(--max); margin: 0 auto; padding: 0.7rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { color: var(--ink); text-decoration: none; white-space: nowrap; flex: none; }
/* Huib's logo (V2, transparent: its "scan" layers take the background's tone) — 2026-10-06 */
.wordmark .logo { display: block; height: 1.6rem; width: auto; }
.wordmark.small .logo { display: inline-block; height: 1.05rem; vertical-align: -0.15em; }
nav { display: flex; gap: clamp(0.8rem, 1.6vw, 1.4rem); overflow-x: auto; scrollbar-width: none; }
nav a {
  font-family: var(--f-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
nav a:hover { color: var(--accent-2); }
/* ⓘ On a narrow screen the bar keeps the entries a newcomer needs first; the page itself scrolls through all. */
@media (max-width: 1000px) { nav a[href="#who"], nav a[href="#workflow"] { display: none; } }
@media (max-width: 760px)  { nav a[href="#scan"], nav a[href="#software"], nav a[href="#about"] { display: none; } }
@media (max-width: 460px)  { nav a[href="#machine"] { display: none; } }

/* ── Type ─────────────────────────────────────────────────────────────────── */
/* the SECTION title: larger than a graphic's title (.g-title, 1.25 rem), mixed case (Huib, 10-20) */
.eyebrow {
  font-family: var(--f-display); font-size: clamp(1.45rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.2;
  color: var(--accent); margin: 0 0 0.7rem;
}
h1, h2, h3, h4 { font-family: var(--f-display); text-wrap: balance; }
h2 { font-size: clamp(1.15rem, 2.4vw, 1.67rem); font-weight: 600; line-height: 1.13;
  letter-spacing: -0.01em; margin: 0 0 1.4rem; max-width: 48rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.45rem; letter-spacing: 0.01em; }
h4 { font-size: 1.02rem; font-weight: 600; margin: 0 0 0.4rem; letter-spacing: 0.02em; }
p { margin: 0 0 1rem; }
.col { max-width: var(--col); color: var(--ink-2); }
.col b { color: var(--ink); }
.col.full { max-width: none; }   /* a text that runs the full width of the page (Huib, 10-13) */
@media (max-width: 900px) { :root { --col: 100%; } }
.small { font-size: 0.9rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: var(--col); }
.m, .mono { font-family: var(--f-mono); font-weight: 500; }
.m { color: var(--measure); font-size: 0.93em; white-space: nowrap; }
.sub-h { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: clamp(3.5rem, 7vw, 5rem) 0 1rem; }
.mini-h { font-size: 1.2rem; color: var(--accent-2); margin: 3rem 0 1rem; letter-spacing: 0.03em; }
.feat-h { font-size: 1.3rem; color: var(--ink); }
.thesis { border-left: 3px solid var(--measure); padding: 0.4rem 0 0.4rem 1.2rem; color: var(--ink); font-size: 1.12rem; line-height: 1.5; }
.note { border-left: 2px solid var(--rule-2); padding-left: 1.1rem; margin-top: 1.8rem; }
.fig-note { color: var(--ink-2); font-family: var(--f-display); font-size: 1.02rem; line-height: 1.45; text-align: center; margin: 0.7rem auto 0; }   /* a caption under the video: as .graphic figcaption */

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.contact-mail { font-family: var(--f-mono); font-size: 1.25rem; color: var(--accent-2); margin-top: 1.4rem; user-select: all; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.2rem; border-radius: 3px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: #0b1216; text-decoration: none; border: 1px solid var(--accent); cursor: pointer;
}
.btn:hover { background: var(--accent-2); color: #0b1216; }
.btn.ghost { background: transparent; color: var(--accent-2); border-color: var(--rule-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--ink); }

/* ══ The stage: carousel, logo over it, subtitle ═════════════════════════════
   Every picture is one 2:1 canvas padded with black (media/carousel), so the stage never changes height.
   On a wide screen the stage is capped in height and the black padding is what gets trimmed. */
.stage { position: relative; overflow: hidden; background: #000;
  height: min(100vw / 2, 82vh); min-height: 20rem; }
.slides { display: flex; height: 100%; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.slide { flex: 0 0 100%; height: 100%; position: relative; cursor: pointer; }
.slide:not([data-open]):not([data-href]) { cursor: default; }   /* a picture with no 3D model on the page */
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute; right: var(--pad); bottom: 1.1rem; font-size: 0.85rem; color: var(--ink-2);
  font-family: var(--f-display); letter-spacing: 0.06em;
}
.slide figcaption i { color: var(--ink); }
/* the logo sits over the lower part of the picture, on a soft shade so the white "scan" always reads */
.stage::after { content: ''; position: absolute; inset: 45% 0 0 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); }
.stage-title { position: absolute; left: 0; right: 0; bottom: clamp(2.2rem, 7vh, 4.5rem); z-index: 2;
  display: flex; flex-direction: column; align-items: center; pointer-events: none; text-align: center; }
.stage-title h1 { margin: 0; width: 66.6%; }
.stage-logo { width: 100%; height: auto; filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.6)); }
.stage-sub { margin: clamp(0.6rem, 1.6vw, 1.2rem) 0 0; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.9rem); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); }
.stage-dots { position: absolute; left: var(--pad); bottom: 1.1rem; z-index: 3; display: flex; gap: 0.5rem; }
.stage-dots button { width: 2rem; height: 3px; padding: 0; border: 0; background: rgba(228, 234, 238, 0.3); cursor: pointer; }
.stage-dots button[aria-selected="true"] { background: var(--accent); }
.stage-dots button::before { content: ''; display: block; height: 1.4rem; margin-top: -0.7rem; } /* a bigger hit area */
@media (max-width: 640px) { .slide figcaption { display: none; } .stage { height: auto; aspect-ratio: 4 / 3; min-height: 0; } }

/* ── Introduction ─────────────────────────────────────────────────────────── */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem clamp(2rem, 5vw, 4rem);
  align-items: center; padding-top: clamp(3.5rem, 8vw, 6rem); }
.intro-photo img { max-height: 44rem; width: auto; margin: 0 auto; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .intro-photo img { max-height: 32rem; } }
.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; margin-top: 1.5rem; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); padding: 1.3rem 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; }
.kpi-h { font-family: var(--f-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.kpi .big { font-family: var(--f-mono); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.2; white-space: normal; }
/* ⓘ A measured figure is one value: never broken over two lines (Huib, 10-12 — "0.001° · 1.6 µm" wrapped).
   Sized so the longest one, 15 mono characters, fits its tile at every width; one tile per row on a phone. */
.kpi .big.m { white-space: nowrap; font-size: clamp(1.15rem, 2vw, 1.5rem); }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
.kpi span.big:not(.m) { font-family: var(--f-display); color: var(--ink); }
.kpi span:last-child { color: var(--ink-2); font-size: 0.9rem; }

/* ── For whom ─────────────────────────────────────────────────────────────── */
.who-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.2rem; }
/* ⓘ Twelve tiles: 4 × 3, 2 × 6 or 1 × 12 — always full rows, never a lonely last tile (Huib, 10-12). */
@media (max-width: 1000px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .who-grid { grid-template-columns: 1fr; } }
.who { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 1.3rem 1.3rem 1.2rem; position: relative; }
.who p { color: var(--ink-2); margin: 0; font-size: 0.95rem; }
.who-ico { color: var(--accent); font-size: 0.7rem; display: block; margin-bottom: 0.7rem; }

/* ── What can we scan ─────────────────────────────────────────────────────── */
.families { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.25rem; margin: 2.4rem 0; }
.family { border: 1px solid var(--rule); border-radius: 4px; padding: 1.5rem 1.5rem 1.2rem; background: var(--surface); }
.family.soft { border-top: 3px solid var(--measure); }
.family.hard { border-top: 3px solid var(--accent); }
.fam-tag { font-family: var(--f-display); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }
.soft .fam-tag { color: var(--measure); }
.hard .fam-tag { color: var(--accent); }
.fam-why { color: var(--ink-2); font-size: 0.95rem; }
.items { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; }
.items li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.2rem; align-items: baseline;
  padding: 0.6rem 0; border-top: 1px solid var(--rule); }
/* ⓘ Name left, note right — each wraps in its own column, the note never drops below the name (Huib, 10-12). */
.items span { text-align: right; }
.fn-ref { color: var(--accent-2); text-decoration: none; font-weight: 600; margin-left: 0.05em; }
.fam-note { margin: 1rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.85rem; }
.items b { color: var(--ink); font-weight: 600; }
.items span { color: var(--ink-3); font-size: 0.9rem; }

.graphic { margin: 1.5rem 0; }
.graphic img { width: 100%; border-radius: 4px; border: 1px solid var(--rule); }
/* a graphic's own title, above it in the page (a panel title inside a graphic is a shade darker: TITLE2 in make-graphics.py) */
.graphic .g-title { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--accent); margin: 0 0 0.8rem; text-wrap: balance; }
.graphic figcaption { color: var(--ink-2); font-family: var(--f-display); font-size: 1.02rem; line-height: 1.45; text-align: center; margin: 0.7rem auto 0; max-width: 48rem; }
.graphic.wide { max-width: 58rem; margin-left: auto; margin-right: auto; }   /* narrower than the page: centred (Huib, 10-20) */
.graphic.full { max-width: none; }   /* as wide as the blocks above it (Huib, 10-12) */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; margin: 0.7rem 0 0;
  font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink-2); }
.legend .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; display: inline-block; }
.legend .dot.scanned { background: var(--accent); }
.legend .dot.range { background: var(--ink-2); margin-left: 1.6rem; }
.legend a { color: var(--accent-2); }

.shape-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
@media (max-width: 760px) { .shape-pick { grid-template-columns: 1fr; } }
.pick { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: center; text-decoration: none;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 0.6rem 1rem 0.6rem 0.6rem; font-size: 0.95rem; }
.pick:hover { border-color: var(--accent); color: var(--ink); }
.pick img { border-radius: 3px; }
.pick b { color: var(--ink); }
.pick em { font-style: normal; color: var(--accent-2); white-space: nowrap; }

/* ── Specimen cards ───────────────────────────────────────────────────────── */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin-top: 2.2rem; }
/* ⓘ The list GROWS (Huib, 10-12). Rows of four (two on a tablet, one on a phone); a part-filled last row is
   CENTRED, so five cards read as 4 + 1 by design rather than a gap at the right. */
.cards > .card { flex: 0 1 calc((100% - 3 * 1.25rem) / 4); min-width: 0; }
@media (max-width: 1100px) { .cards > .card { flex-basis: calc((100% - 1.25rem) / 2); } }
@media (max-width: 600px)  { .cards > .card { flex-basis: 100%; } }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; padding: 0; border: 0; background: #000; cursor: pointer; display: block; width: 100%; }
.card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.5s ease, opacity 0.3s; }
.card-img:hover img { transform: scale(1.05); }
.card-img .badge {
  position: absolute; right: 0.6rem; bottom: 0.6rem; padding: 0.3rem 0.6rem; border-radius: 3px;
  background: rgba(11, 18, 22, 0.85); color: var(--accent-2); border: 1px solid var(--rule-2);
  font-family: var(--f-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card h3 { font-size: 1.25rem; margin: 0; }
.card h3 i { font-weight: 500; }
.card h3 i.sub { display: block; font-family: var(--f-body); font-size: 0.9rem; color: var(--ink-3); margin-top: 0.15rem; letter-spacing: 0; }
.card .kind { font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.card p.text { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.card .facts { margin: 0.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; font-size: 0.9rem; color: var(--ink-2); }
.card .facts .m { margin-right: 0.35rem; }
/* ★ VIEW IN 3D on one line across all cards (Huib, 10-12): the button area has the SAME height on every card —
   room for the size note and a two-line "Full detail" link — with the button at its top. Cards without
   full detail simply leave that room empty, so their button no longer drops lower. */
.card .actions { margin-top: auto; padding-top: 0.6rem; display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.45rem; min-height: 10rem; }
.card .actions .btn { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.card .actions .size { font-size: 0.8rem; color: var(--ink-3); }
.card .actions a.full { font-size: 0.85rem; }
.card .actions .more { font-size: 0.85rem; color: var(--ink-3); }

/* ── The machine ──────────────────────────────────────────────────────────── */
.machine { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .machine { grid-template-columns: 1fr; } .machine-photo { max-width: 26rem; margin: 0 auto; } }
.machine-photo img { max-height: 40rem; width: auto; margin: 0 auto; }   /* a cut-out: it stands on the page, no frame */
.two-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.5rem 3rem; margin-top: 3rem; }
.two-feature p { color: var(--ink-2); }
.two-feature > div { display: flex; flex-direction: column; }
.two-feature > div > .graphic { margin-top: auto; margin-bottom: 0; }   /* both graphics on one line, equal height */
.two-feature b { color: var(--ink); }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; margin-top: 2.5rem; align-items: end; }
@media (max-width: 760px) { .photo-row { grid-template-columns: 1fr 1fr; } .photo-row .ph { grid-column: 1 / -1; } }
.photo-row img { max-height: 30rem; width: auto; margin: 0 auto; }
.photo-row img.framed { border-radius: 4px; border: 1px solid var(--rule); }
/* calibration objects: photo + cut-out side by side; columns in the pictures' proportions so both are equally high */
.graphic.calib-row { display: grid; grid-template-columns: 2.165fr 1.134fr; gap: 1.25rem; align-items: center; }
.calib-row img.cutout { border: 0; }
.calib-row figcaption { grid-column: 1 / -1; }
@media (max-width: 760px) { .calib-row { grid-template-columns: 1fr; } .calib-row img.cutout { max-width: 70%; margin: 0 auto; } }

.shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.6rem; }
@media (max-width: 1000px) { .shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .shapes { grid-template-columns: 1fr; } }
.shapes img { width: 100%; border-radius: 4px; border: 1px solid var(--rule); }
.shapes figcaption { color: var(--ink-2); font-family: var(--f-display); font-size: 1.02rem; line-height: 1.45; text-align: center; margin-top: 0.7rem; }
.shapes figcaption b { color: var(--ink); }

.delicate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; margin-top: 4rem; align-items: center; }
@media (max-width: 860px) { .delicate { grid-template-columns: 1fr; } }
.delicate p { color: var(--ink-2); }
.ticks { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.7rem; color: var(--ink-2); }
.ticks li { padding-left: 1.4rem; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 2px; background: var(--accent); }
.ticks b { color: var(--ink); }

/* ── Specifications ───────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; margin-top: 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 38rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--f-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); background: var(--sunken); }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }
td.mono { color: var(--accent-2); white-space: nowrap; }
td.axis-name { color: var(--ink); font-family: var(--f-display); font-weight: 600; white-space: nowrap; }
td.axis-name .mono { color: var(--accent-2); margin-left: 0.35rem; font-size: 0.9em; }
.spec-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 0 3rem; margin-top: 2rem; }
.spec-list { margin: 0; display: grid; border-top: 1px solid var(--rule); align-content: start; }
.spec-list div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.spec-list div.spec-group { display: block; font-family: var(--f-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); padding: 0.9rem 0 0.6rem; }
@media (max-width: 640px) { .spec-list div { grid-template-columns: 1fr; gap: 0.2rem; } }
.spec-list dt { font-family: var(--f-display); font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.spec-list dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ── Software ─────────────────────────────────────────────────────────────── */
.sw-block { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.sw-head { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; margin-bottom: 1.6rem; }
.sw-num { font-family: var(--f-mono); font-size: 2.2rem; font-weight: 600; color: var(--accent); line-height: 1;
  border-top: 2px solid var(--accent); padding-top: 0.4rem; min-width: 2.4rem; }
.sw-head h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0; }
.sw-sub { color: var(--ink-3); margin: 0.3rem 0 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem 3rem; align-items: start; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem 2.5rem; margin-top: 2rem; }
.three p { color: var(--ink-2); margin: 0; font-size: 0.95rem; }
.three > div { border-top: 2px solid var(--accent); padding-top: 1rem; }
.two.top > div > .graphic:first-child, .two.top > .col > p:first-child, .two.top > .graphic { margin-top: 0; }   /* graphic and text start level (Huib, 10-13) */
.ui-shot { margin-top: 0.5rem; }   /* the robot interface opens its section, full width (Huib, 10-13) */
.three.stacked { grid-template-columns: 1fr; gap: 2.6rem; margin-top: 3.4rem; }   /* beside the graphics, one under the other (Huib, 10-13) */

/* ── Workflow ─────────────────────────────────────────────────────────────── */
.flow { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
@media (max-width: 1100px) { .flow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); } }
.flow li { counter-increment: step; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 1.1rem 1.1rem 1.2rem; }
.flow li.you { border-top: 3px solid var(--you); }
.flow li.auto { border-top: 3px solid var(--auto); }
.flow li::before { content: counter(step); font-family: var(--f-mono); font-weight: 600; font-size: 1.4rem; display: block; margin-bottom: 0.3rem; }
.flow li.you::before { color: var(--you); }
.flow li.auto::before { color: var(--auto); }
.flow h3 { font-size: 1.05rem; }
.flow p { color: var(--ink-2); font-size: 0.92rem; margin: 0; }
.who-tag { font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.duo-col { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 1.5rem; }
.duo-col.you { border-left: 3px solid var(--you); }
.duo-col.auto { border-left: 3px solid var(--auto); }
.duo-col.you .ticks li::before { background: var(--you); }
.duo-note { color: var(--ink-3); font-size: 0.9rem; margin: 1.2rem 0 0; }
.duo-note b { color: var(--ink-2); }
table.compare tr.us td { background: rgba(127, 179, 224, 0.07); color: var(--ink); }
table.compare tr.us td:first-child { font-family: var(--f-display); font-weight: 700; color: var(--accent-2); }
.sources { color: var(--ink-3); font-size: 0.82rem; margin-top: 0.8rem; }
.video { background: #000; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; max-width: 60rem; margin-left: auto; margin-right: auto; }
.video video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }

/* ── Placeholders — what still has to be photographed; removed one by one as the photos arrive ── */
.ph { border: 1px dashed var(--rule-2); border-radius: 4px; padding: 1.4rem 1.3rem; background: repeating-linear-gradient(
  -45deg, transparent 0 14px, rgba(127, 179, 224, 0.035) 14px 28px); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.ph.wide { max-width: 58rem; margin: 1.5rem auto 0; }
.ph-tag { font-family: var(--f-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--measure); margin-bottom: 0.5rem; }
.ph p { color: var(--ink-3); font-size: 0.92rem; margin: 0; }
.ph b { color: var(--ink-2); }

/* ── About, contact, footer ───────────────────────────────────────────────── */
/* About: the photo heads the first column, the paragraphs flow on through both (Huib, 10-21) */
.about-cols { columns: 2; column-gap: 3rem; }
.about-cols p, .about-photo { break-inside: avoid; }
.about-photo { margin: 0 0 1.2rem; }
.about-photo img { width: 100%; border-radius: 4px; border: 1px solid var(--rule); }
@media (max-width: 900px) { .about-cols { columns: 1; } }
.about-text p { color: var(--ink-2); margin: 0 0 1.1rem; }
.about-text p:first-child { color: var(--ink); font-size: 1.08rem; }
.about-text a { color: var(--accent-2); }
.contact { padding-bottom: 5rem; }
.foot { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--ink-3); font-size: 0.9rem; }
.foot p { margin: 0.3rem 0; }

/* ── The 3D viewer dialog ─────────────────────────────────────────────────── */
dialog#viewer {
  width: min(96vw, 1400px); height: min(92vh, 900px); max-width: none; max-height: none;
  padding: 0; border: 1px solid var(--rule-2); border-radius: 6px; background: #000; color: var(--ink);
  display: none; flex-direction: column; overflow: hidden;
}
dialog#viewer[open] { display: flex; }
dialog#viewer::backdrop { background: rgba(5, 8, 10, 0.85); backdrop-filter: blur(3px); }
@media (max-width: 640px) { dialog#viewer { width: 100vw; height: 100dvh; border-radius: 0; border: 0; } }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.9rem;
  background: var(--surface); border-bottom: 1px solid var(--rule); font-family: var(--f-display); font-weight: 600; letter-spacing: 0.04em; }
.viewer-actions { display: flex; gap: 1rem; align-items: center; }
.viewer-actions a { font-size: 0.9rem; }
#viewer-levels { display: flex; gap: 1rem; }
.card .actions .download { margin-top: 0.4rem; font-size: 0.8rem; }
#viewer-close { background: none; border: 1px solid var(--rule-2); color: var(--ink-2); padding: 0.35rem 0.7rem; border-radius: 3px;
  font: inherit; font-size: 0.85rem; cursor: pointer; }
#viewer-close:hover { color: var(--ink); border-color: var(--accent); }
#viewer-frame { flex: 1; width: 100%; border: 0; background: #000; }

/* ── content.txt problems: shown under the cards so a typo is caught while previewing ── */
.content-problems { margin-top: 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--measure); border-radius: 4px;
  background: rgba(217, 164, 65, 0.08); color: var(--ink-2); font-size: 0.92rem; }
.content-problems b { color: var(--measure); }
.content-problems ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.card-img .no-photo { display: block; aspect-ratio: 3 / 2; background: var(--sunken); }

/* ── Magnifier: every photo and infographic can be enlarged (js/zoom.js — Huib, 2026-10-12) ── */
.zoom-wrap { position: relative; display: block; }
.zoom-wrap.fit { width: fit-content; max-width: 100%; margin: 0 auto; }   /* hug a centred cut-out photo */
.zoom-btn {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; width: 2.3rem; height: 2.3rem; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: zoom-in;
  background: rgba(11, 18, 22, 0.78); color: var(--accent-2); border: 1px solid var(--rule-2);
  opacity: 0.8; transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}
.zoom-wrap:hover .zoom-btn, .zoom-btn:focus-visible { opacity: 1; }
/* A carousel that fades between pictures in one place (js/fade-carousel.js — Huib, 10-13). The first picture
   sets the size; the others lie over it. The magnifier opens the picture shown (js/zoom.js). */
.stage, .fade-car { touch-action: pan-y; user-select: none; -webkit-user-select: none; }   /* sideways = swipe (js/swipe.js) */
.fade-car { position: relative; cursor: grab; }
.fade-car:hover .zoom-btn { opacity: 1; }
.fade-car img { opacity: 0; transition: opacity 0.9s ease-in-out; }
.fade-car img.on { opacity: 1; }
.graphic .fade-car > img:not(:first-child) { position: absolute; inset: 0; z-index: 1; height: 100%; object-fit: contain; background: #17191c; pointer-events: none; }
.fade-dots { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.fade-dots button { width: 2rem; height: 3px; padding: 0; border: 0; background: rgba(228, 234, 238, 0.3); cursor: pointer; }
.fade-dots button[aria-current="true"] { background: var(--accent); }
.fade-dots button::before { content: ''; display: block; height: 1.4rem; margin-top: -0.7rem; }
.ui-shot figcaption { max-width: none; }
.fade-caps { display: grid; }   /* every caption in one cell: the box is as tall as the longest, nothing below moves */
.fade-caps > span { grid-area: 1 / 1; visibility: hidden; }
.fade-caps > span.on { visibility: visible; }   /* the caption as wide as the picture (Huib, 10-13) */
@media (prefers-reduced-motion: reduce) { .fade-car img { transition: none; } }
.zoom-btn:hover { color: var(--ink); border-color: var(--accent); }
dialog#zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink); overflow: hidden; }
dialog#zoom::backdrop { background: transparent; }   /* the solid frame occludes the page; no darkening needed (Huib, 10-12) */
.zoom-stage { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.8rem; padding: 1.5rem clamp(0.5rem, 2vw, 2rem); cursor: zoom-out; }
/* ★ The picture sits in a SOLID frame in the page's own ground colour, with a 1 px white rim (Huib, 10-12): a cut-out has no edges of its own,
   so without it the page showed through like a smear, and nothing said where the picture — and its ✕ — ended. */
.zoom-frame { position: relative; background: var(--ground); border: 1px solid #fff; cursor: default;
  padding: calc(var(--zw, 60vw) * 0.05); box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55); }   /* a margin of 5 % of the picture's width */
#zoom-img { display: block; width: var(--zw, 60vw); height: auto; }
dialog#zoom.flush .zoom-frame { padding: 0; }
dialog#zoom.flush #zoom-cap { padding: 0 1rem 0.9rem; }
#zoom-cap { margin: 0.9rem auto 0; max-width: var(--zw, 60vw); text-align: center; color: var(--ink-2); font-size: 0.92rem; }
#zoom-close { position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgba(21, 27, 32, 0.9); color: var(--ink); border: 1px solid var(--rule-2); font-size: 1.1rem; cursor: pointer; }
#zoom-close:hover { border-color: var(--accent); }

video.loop-film { display: block; width: 100%; height: auto; background: #151b20; }
/* focus stacking: the graphic and the film equally wide, narrow enough that the column ends with its text (Huib, 10-21) */
.graphic.fs-pair { width: 76%; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .graphic.fs-pair { width: 100%; } }
/* a SECTION card (the human anatomy section): a sign instead of a photograph, the same size as a photograph */
.section-card .card-img { display: grid; place-items: center; aspect-ratio: 3 / 2; background: #0b1216; }
.section-card .section-sign { width: 38%; height: 70%; color: var(--accent); transition: transform 0.5s ease; }
.section-card .card-img:hover .section-sign { transform: scale(1.05); }
