@font-face { font-family: 'Instrument Sans'; src: url(fonts/instrument-sans-regular.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #111417;
  --panel: #192024;
  --panel-2: #1f272c;
  --ink: #ece7dc;
  --muted: #a7afb1;
  --accent: #f08a64;
  --accent-hover: #f7a283;
  --rule: #3a4449;
  --glass: #111417e0;
  --glass-line: #ece7dc55;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; padding-top: var(--bar-h); color: var(--ink); font-family: var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; }
a, button, input, select { outline-offset: 5px; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); }
button, a { transition: color .2s, background .2s, border-color .2s; }
button:hover:not(:disabled) { color: var(--accent); }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar: copied from the landing-page-exploration skill (house-style.css) ---------- */
:root {
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-2: color-mix(in srgb, var(--ink) 26%, transparent);
  --bar-h: 72px;
}
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.bar-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.bar-home {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 500 12px / 1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.bar-logo { width: 20px; height: 20px; fill: var(--ink); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.bar-slash, .bar-section { color: var(--muted); }
.bar-home:hover .bar-section { color: var(--ink); }
.bar-title {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-left: 18px;
  border-left: 1px solid var(--line-2);
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 400 26px / 44px 'Instrument Serif', serif;
}
.bar-title em { color: var(--accent); }
.bar-actions { display: flex; align-items: center; gap: 6px; }
.bar-action {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 999px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 500 13px / 1 var(--mono); letter-spacing: 0.06em;
}
.bar-action svg {
  width: 16px; height: 16px; fill: currentColor; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.bar-action:hover { color: var(--ink); border-color: var(--line-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.bar-how { border-color: var(--line-2); }
.bar-make { margin-left: 6px; background: var(--accent); color: var(--bg); }
.bar-make:hover { color: var(--bg); background: var(--accent-hover); border-color: transparent; }
.bar { padding-top: env(safe-area-inset-top, 0px); }

/* ---------- layout ---------- */
.wrap { max-width: 1480px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 56px); }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.eyebrow .edition { margin-left: 28px; color: var(--muted); }


/* ---------- ledger ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-top: 40px; margin-bottom: 18px; }
.section-head h2 { margin: 8px 0 0; font: 400 clamp(32px, 3.2vw, 48px)/1 var(--serif); letter-spacing: -.02em; }
.section-head p.note { margin: 0; max-width: 58ch; font-size: 13px; line-height: 1.55; color: var(--muted); }
.ledger-scroll { overflow-x: auto; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
table.ledger { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.ledger th { text-align: left; font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ledger td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td.model { white-space: nowrap; }
.ledger td.model b { font-weight: 600; }
.ledger td.model span { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.ledger .idx { color: var(--muted); width: 28px; }
.barcell { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; min-width: 190px; }
.barcell .v { text-align: right; }
.track { height: 8px; background: var(--panel-2); position: relative; }
.track i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.track.t i { background: var(--ink); opacity: .7; }
.ledger th.sort { cursor: pointer; }
.ledger th.sort:hover, .ledger th[aria-sort] { color: var(--ink); }
.ledger th[aria-sort="ascending"]::after { content: ' ↑'; color: var(--accent); }
.ledger th[aria-sort="descending"]::after { content: ' ↓'; color: var(--accent); }

/* ---------- explorer ---------- */
.explorer { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding-block: 28px 56px; border-bottom: 1px solid var(--rule); }
.rail { position: sticky; top: calc(var(--bar-h) + 20px); align-self: start; max-height: calc(100dvh - var(--bar-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.rail h3 { margin: 22px 0 6px; font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.rail h3:first-child { margin-top: 0; }
.rail ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rail li { border-bottom: 1px solid var(--rule); }
.rail button { width: 100%; display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: baseline; padding: 10px 4px; text-align: left; }
.rail button .n { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail button .t { font-size: 13px; line-height: 1.3; }
.rail button .s { grid-column: 2; font-size: 10px; color: var(--muted); margin-top: 3px; }
.rail button[aria-current="true"] .t, .rail button[aria-current="true"] .n { color: var(--accent); }
.rail-select.gsel { display: none; }

.stagehead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; }
.stagehead .tests { margin: 0; max-width: 72ch; font-size: 15px; line-height: 1.55; color: var(--ink); }
.source { width: 168px; }
.source button { display: block; width: 100%; padding: 0; border: 1px solid var(--rule); background: var(--panel); }
.source button:hover { border-color: var(--accent); }
.source img { display: block; width: 100%; height: 124px; object-fit: contain; }
.source p { margin: 6px 0 0; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.brief { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 22px; }
.panel { border: 1px solid var(--rule); background: var(--panel); padding: 18px 20px; }
.panel .lbl { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.panel p.body { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.panel p.prompt { margin: 0; font: 13px/1.65 var(--mono); color: var(--ink); white-space: pre-wrap; }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid var(--rule); font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--ink); }
.copy:hover { border-color: var(--accent); }

.stagetop { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: end; justify-content: space-between; }
.stagetop h1 { margin: 8px 0 0; font: 400 clamp(30px, 3vw, 46px)/1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#gridHint { margin: 10px 0 12px; }
.details { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--rule); }
.details .tests { margin-top: 10px; }
.seg { display: inline-flex; border: 1px solid var(--rule); }
.seg button { min-height: 40px; padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.hint { font-size: 11px; color: var(--muted); }
label.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); font-size: 13px; cursor: pointer; }
label.check input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; border: 1px solid var(--rule); background: var(--panel); display: flex; flex-direction: column; min-width: 0; container-type: inline-size; }
.tile:hover { border-color: var(--line-2); }
.tile .media { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: var(--ar, 1 / 1); background: #0b0d0f; overflow: hidden; cursor: zoom-in; }
.tile .media img, .tile .media .tiled { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tiled { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tiled img { position: static !important; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .meta { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--rule); }
.tile .meta .k { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile .meta .nm { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; text-wrap: balance; }
.tile .meta .nm small { display: block; font-weight: 400; font-size: 10px; color: var(--muted); margin-top: 3px; }
.tile .meta .cost { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .meta .cost small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.pick { position: absolute; top: 8px; right: 8px; z-index: 2; min-height: 30px; padding: 0 10px; border: 1px solid var(--glass-line); border-radius: 4px; background: var(--glass); backdrop-filter: blur(10px); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.pick[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--glass)); }
.badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 5px 8px; border: 1px solid var(--glass-line); border-radius: 4px; background: var(--glass); font: 11px/1 var(--mono); color: var(--ink); }
/* Narrow tiles: the seam badge and + Compare no longer fit on one row, so the badge drops below it. */
@container (max-width: 250px) { .badge { top: 46px; } }

/* compare */
.compare { border: 1px solid var(--rule); background: var(--panel); }
.cmp-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--rule); }
.gsel { position: relative; display: inline-flex; align-items: center; }
.gsel select { appearance: none; min-height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel-2); color: var(--ink); font: 600 13px var(--sans); }
.gsel::after { content: ''; position: absolute; right: 13px; width: 7px; height: 7px; border-right: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.gsel .tag { margin-right: 8px; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.swap { min-height: 40px; min-width: 40px; border: 1px solid var(--rule); display: inline-grid; place-items: center; }
.cmp-body { padding: 12px; }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side figure { margin: 0; }
.side .frame, .slider .frame { position: relative; width: 100%; aspect-ratio: var(--ar, 1 / 1); background: #0b0d0f; overflow: hidden; }
.side .frame img, .side .frame .tiled, .slider .frame img, .slider .frame .tiled { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.side figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px 0; font-size: 12px; }
.side figcaption span { color: var(--muted); font-variant-numeric: tabular-nums; }
.slider { max-width: min(100%, calc((100dvh - var(--bar-h) - 140px) * var(--arn, 1))); margin: 0 auto; }
.slider .frame { cursor: ew-resize; touch-action: pan-y; user-select: none; }
.slider .top { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.slider .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.slider .handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); border: 2px solid var(--accent); border-radius: 50%; background: var(--glass); }
.slider .lab { position: absolute; top: 10px; z-index: 2; padding: 6px 9px; border: 1px solid var(--glass-line); border-radius: 4px; background: var(--glass); font-size: 12px; font-weight: 600; pointer-events: none; }
.slider .lab.l { left: 10px; } .slider .lab.r { right: 10px; }
.slider input[type=range] { width: 100%; margin: 12px 0 2px; accent-color: var(--accent); }

/* lightbox */
dialog.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #07090a; color: var(--ink); }
dialog.lb::backdrop { background: #07090af2; }
.lb-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; border-bottom: 1px solid var(--line); }
.lb-top .ttl { min-width: 0; }
.lb-top .ttl b { font: 400 24px/1.1 var(--serif); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-top .ttl span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tools { display: flex; gap: 6px; align-items: center; }
.tool { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--glass-line); border-radius: 4px; background: var(--glass); }
.tool.w { width: auto; padding: 0 12px; font-size: 12px; font-weight: 600; }
.lb-view { position: relative; overflow: hidden; cursor: grab; touch-action: none; }
.lb-view.dragging { cursor: grabbing; }
.lb-view .content { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.lb-view .content img { display: block; width: 100%; height: 100%; }
.lb-view .content .tiled { width: 100%; height: 100%; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-bottom { padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lb-bottom kbd, .hint kbd { display: inline-block; min-width: 18px; padding: 1px 4px; border: 1px solid var(--rule); border-radius: 3px; font: 10px/14px var(--mono); text-align: center; color: var(--ink); }

/* how dialog */
/* How dialog: copied from the landing-page-exploration skill (house-style.css) */
/* ---------- How it was made: dialog#how (film + chapters, steps, notes, downloads) ---------- */
dialog.modal-how {
  width: min(1180px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0 clamp(18px, 3vw, 36px) clamp(18px, 3vw, 36px);
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); color: var(--ink);
}
dialog.modal-how::backdrop { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(6px); }
.kicker { margin: 0; font: 500 12px / 1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.modal-top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; padding: clamp(18px, 3vw, 36px) 0 10px; background: var(--bg);
}
.modal-close {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
  font: 500 13px / 1 var(--mono); color: var(--ink);
}
.modal-close:hover { border-color: var(--accent); }
.how-title { margin: 0; font: 400 clamp(38px, 5vw, 64px) / 1 'Instrument Serif', serif; }
.how-title em { color: var(--accent); }
.how-lede { margin: 16px 0 28px; max-width: 820px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.how-film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.how-chapters { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.how-chapters::-webkit-scrollbar { display: none; }
.how-chapters button {
  flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap;
}
.how-chapters button:hover, .how-chapters button[aria-current='true'] { border-color: var(--accent); color: var(--ink); }
.how-chapters small { font: 500 11px / 1 var(--mono); color: var(--accent); }
.how-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.how-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.step-n { font: 400 36px / 1 'Instrument Serif', serif; color: var(--accent); }
.how-steps h3 { margin: 0 0 8px; font: 400 25px / 1.1 'Instrument Serif', serif; }
.how-steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.with { margin-top: 10px !important; font: 400 12.5px / 1.7 var(--mono) !important; color: var(--ink) !important; }
.with span { margin-right: 6px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.with span:not(:first-child) { margin-left: 10px; }
.how-notes {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-top: 28px; padding: 26px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: 15px; color: var(--muted);
}
.how-notes .kicker { margin-bottom: 12px; }
.how-notes ul { margin: 0; padding-left: 18px; }
.how-notes li + li { margin-top: 6px; }
.how-notes .big { margin: 0 0 8px; font: 400 44px / 1 'Instrument Serif', serif; color: var(--ink); }
.how-downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.how-downloads .card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); color: var(--muted); text-decoration: none;
}
.how-downloads .card:hover { border-color: var(--accent); }
.card-type { margin: 0; font: 500 11px / 1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.how-downloads .card h3 { margin: 0; font: 400 24px / 1.05 'Instrument Serif', serif; color: var(--ink); word-break: break-word; }
.how-downloads .card b { margin-top: auto; padding-top: 10px; font: 500 14px / 1 var(--mono); color: var(--ink); }
.how-downloads .card-make { background: var(--accent); border-color: var(--accent); }
.how-downloads .card-make .card-type, .how-downloads .card-make h3, .how-downloads .card-make b { color: var(--bg); }
.how-downloads .card-make:hover { background: var(--accent-hover); }
.how-film video { max-height: 62dvh; object-fit: contain; }

.foot { border-top: 1px solid var(--rule); padding-block: 22px 40px; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .explorer { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .brief { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .how-notes { grid-template-columns: 1fr 1fr; }
  .how-notes > div:first-child { grid-column: 1 / -1; }
  .bar-brand, .bar-slash { display: none; }
  .bar-section { color: var(--ink); }
  .bar-how span { display: none; }
  .bar-how::after { content: 'How'; }
}
@media (max-width: 820px) {
  :root { --bar-h: 108px; }
  .bar { height: auto; min-height: var(--bar-h); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .bar-id { justify-content: space-between; gap: 12px; min-height: 44px; }
  .bar-home { padding: 0; }
  .bar-title { font-size: 22px; border-left: 0; padding-left: 0; }
  .bar-id > .bar-home { flex: none; }
  .bar-actions { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr) minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 6px; }
  .bar-action { justify-content: center; text-align: center; white-space: normal; line-height: 1.15; padding: 0 6px; border-color: var(--line); font-size: 12px; letter-spacing: 0; gap: 6px; }
  .bar-action svg { width: 14px; height: 14px; flex: 0 0 auto; }
  .bar-make { margin-left: 0; }
  .bar-how span { display: inline; }
  .bar-how::after { content: none; }
    .explorer { grid-template-columns: 1fr; }
  .rail { display: none; }
  .rail-select.gsel { display: flex; margin-bottom: 18px; }
  .rail-select select { width: 100%; }
  .stagehead { grid-template-columns: 1fr; }
  .source { width: 140px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-steps, .how-downloads, .how-notes { grid-template-columns: 1fr; }
  .how-notes > div:first-child { grid-column: auto; }
}
@media (max-width: 560px) {
  .bar-home .bar-brand { font-size: 11px; }
  .bar-action svg { display: none; }
  .bar-action { font-size: 12px; padding: 0 4px; white-space: nowrap; }
  .bar-how span { display: none; }
  .bar-how::after { content: 'How it\2019s made'; }
}
@media (max-width: 380px) {
  .bar-how::after { content: 'How'; }
  .bar-make .arrow { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  :root { --bar-h: 60px; }
  .bar { flex-direction: row; align-items: center; padding-top: 0; padding-bottom: 0; }
  .bar-home { min-width: 44px; justify-content: center; padding: 0; }
  .bar-home .bar-brand, .bar-home .bar-slash, .bar-home .bar-section { display: none; }
  .bar-actions { display: flex; }
  .bar-action { padding: 0 10px; }
}
@media (max-width: 480px) {
  .eyebrow { font-size: 10px; }
  .grid { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* ---------- shared site footer (runtime mounts its links in [data-exploration-controls]) ---------- */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/IBMPlexMono-normal-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/IBMPlexMono-normal-500.woff2) format('woff2'); }
:root {
  --exploration-footer-bg: #0c0f11;
  --exploration-footer-ink: #ece7dc;
  --exploration-footer-border: #ece7dc29;
}
.noscript { padding-block: 40px; font-size: 15px; color: var(--muted); }
.site-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 22px clamp(16px, 4vw, 56px); border-top: 1px solid var(--line); background: var(--exploration-footer-bg); font: 400 12px/1.4 var(--mono); color: var(--muted); }
.site-foot .foot-id { letter-spacing: .1em; text-transform: uppercase; }
.site-foot .foot-pdf { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.site-foot .foot-pdf:hover { color: var(--accent); }
.site-foot [data-exploration-controls] { margin-left: auto; }
@media (max-width: 820px) { .site-foot [data-exploration-controls] { margin-left: 0; width: 100%; } }
