/* Fonts stored locally (Archivo and JetBrains Mono, SIL Open Font License). No Google Fonts requests. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Shared styles for every page. Layout: a workshop bench. Product sits on the same grey "stage" as the renders; text runs beside it on paper. */
:root {
  --paper: #f1f0ee;
  --surface: #ffffff;
  --stage: #d3d1d1;
  --ink: #1c1a1a;
  --muted: #5d5858;
  --line: #d9d6d3;
  --red: #d4202a;
  --red-ink: #ffffff;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 6px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151414; --surface: #1e1c1c; --ink: #efedeb; --muted: #a9a3a1; --line: #2f2c2c;
    --red: #ec3a42; --red-ink: #ffffff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151414; --surface: #1e1c1c; --ink: #efedeb; --muted: #a9a3a1; --line: #2f2c2c;
  --red: #ec3a42; --red-ink: #ffffff; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head, 93px) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 850; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; font-stretch: 105%; }
p { margin: 0; }
a { color: inherit; }
.label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 0.98rem/1 var(--body); font-stretch: 108%;
  padding: 14px 22px; border-radius: var(--r); border: 2px solid var(--red);
  background: var(--red); color: var(--red-ink); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.small { padding: 10px 16px; font-size: 0.9rem; }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--paper); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.logo { display: block; width: 150px; height: auto; flex: none; }
.logo-link { display: block; flex: none; line-height: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { filter: invert(1) brightness(0.94); } }
:root[data-theme="dark"] .logo { filter: invert(1) brightness(0.94); }
header .logo { width: 83px; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 0.95rem; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--ink); }
nav.links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
nav.links a { padding-block: 6px; }
@media (max-width: 820px) { nav.links { gap: 16px; font-size: 0.9rem; } }
@media (max-width: 560px) { header.top .btn { display: none; } header .logo { width: 64px; } header.top .wrap { gap: 12px; } }

/* Hero / configurator */
.hero { padding-block: 40px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); gap: 44px; align-items: center; }
.hero-visual { display: grid; gap: 14px; min-width: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price strong { font-family: var(--display); font-stretch: 115%; font-size: 2.6rem; font-weight: 850; letter-spacing: -0.02em; }
.price span { color: var(--muted); font-size: 0.95rem; }
.stage { background: var(--stage); border-radius: var(--r); overflow: hidden; position: relative; }
.stage canvas, .stage img { display: block; width: 100%; height: auto; max-width: 100%; }
.stage .tag {
  position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: 0.72rem;
  background: rgba(28, 26, 26, 0.78); color: #f1f0ee; padding: 5px 9px; border-radius: 4px; letter-spacing: 0.04em;
}
.picker { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.picker-row { display: grid; gap: 8px; }
.picker-row header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.picker-row header b { font-weight: 700; font-size: 0.95rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid var(--line); background: var(--c); position: relative;
  box-shadow: inset 0 -6px 10px rgba(0,0,0,0.18), inset 0 4px 6px rgba(255,255,255,0.25);
}
.sw.sparkle { background-image: radial-gradient(circle at 30% 35%, rgba(255,255,255,0.9) 0 1px, transparent 1.5px), radial-gradient(circle at 65% 60%, rgba(255,255,255,0.8) 0 1px, transparent 1.5px), radial-gradient(circle at 45% 75%, rgba(255,255,255,0.7) 0 1px, transparent 1.5px), radial-gradient(circle at 72% 28%, rgba(255,255,255,0.8) 0 1px, transparent 1.5px); }
.sw[aria-pressed="true"] { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.carriage-row { grid-column: 1 / -1; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg button { font: 600 0.92rem/1.2 var(--body); padding: 11px 12px; border: 0; background: var(--paper); color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.picker .actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) { .picker { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .hero-grid { gap: 20px; }
  .hero-copy { display: contents; }
  .hero-copy > .label { order: 1; } .hero-copy > h1 { order: 2; } .hero-visual { order: 3; }
  .hero-copy > .lead { order: 4; } .hero-copy > .price { order: 5; } .hero-copy > .cta-row { order: 6; }
}
.picker .note { font-size: 0.82rem; color: var(--muted); }

/* Sections */
section.block { padding-block: 72px; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 720px; }

/* Parts */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 900px) { .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .parts { grid-template-columns: 1fr; } }
.part { display: grid; gap: 12px; align-content: start; min-width: 0; }
.part .stage img { aspect-ratio: 4 / 3; object-fit: contain; }
.part .qty { font-family: var(--mono); font-size: 0.78rem; color: var(--red); font-weight: 600; }
.part p { color: var(--muted); font-size: 0.95rem; }
.part.excluded .stage { background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--paper) 12px 24px); border: 2px dashed var(--line); display: grid; place-items: center; aspect-ratio: 4 / 3; }
.part.excluded .stage span { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-align: center; padding: 16px; }
.part.excluded .qty { color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.steps li { padding: 22px; display: grid; gap: 10px; align-content: start; border-left: 1px solid var(--line); min-width: 0; }
.steps li:first-child { border-left: 0; }
.steps .n { font-family: var(--mono); font-weight: 600; color: var(--red); font-size: 0.85rem; }
.steps p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3) { border-left: 0; } .steps li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li { border-left: 0; } .steps li + li { border-top: 1px solid var(--line); } }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.gallery .stage:first-child { grid-row: span 2; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .stage:first-child img { height: 100%; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } .gallery .stage:first-child { grid-row: auto; } }

/* Tracks callout */
.tracks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
@media (max-width: 860px) { .tracks { grid-template-columns: 1fr; } }
.tracks .copy { display: grid; gap: 16px; }
.tracks ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--red); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); margin-top: 10px; max-width: 68ch; }

/* Order */
.order-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
form.order { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 650; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.combo-box { position: relative; }
.combo-box input { padding-right: 40px; }
.combo-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 38px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 0 4px 4px 0; }
.combo-toggle:hover { color: var(--ink); }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 264px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.combo-list li { padding: 8px 10px; border-radius: 3px; cursor: pointer; }
.combo-list li:hover { background: var(--paper); }
.combo-list li.active { background: var(--red); color: var(--red-ink); }
.combo-list li.combo-empty { color: var(--muted); cursor: default; background: none; font-size: 0.92rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.summary { display: grid; gap: 14px; position: sticky; top: 90px; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; }
.ticket dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.95rem; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.ticket .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1px solid var(--line); flex: none; }
.ticket .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; font-variant-numeric: tabular-nums; }
.ticket .total strong { font-family: var(--display); font-stretch: 112%; font-size: 1.6rem; }
#result { display: grid; gap: 12px; }
#result pre { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: 0.8rem; background: var(--paper); border: 1px solid var(--line); padding: 14px; border-radius: 4px; max-height: 280px; overflow: auto; }
.contact-line { font-size: 0.92rem; color: var(--muted); }
.contact-line b { color: var(--ink); user-select: all; }
.status { font-size: 0.85rem; color: var(--muted); min-height: 1.2em; }

footer { border-top: 1px solid var(--line); padding-block: 40px; }
footer .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
footer .social { display: flex; gap: 16px; font-weight: 600; flex-wrap: wrap; }
footer small { color: var(--muted); }

/* ---------- Home page ---------- */
.home-hero { padding-block: 40px 48px; }
.home-hero .grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 44px; align-items: center; }
.home-hero .copy { display: grid; gap: 20px; min-width: 0; }
.home-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
@media (max-width: 960px) { .home-hero .grid { grid-template-columns: 1fr; gap: 28px; } }
.specs { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.specs li { padding: 16px 18px; display: grid; gap: 2px; border-left: 1px solid var(--line); min-width: 0; }
.specs li:first-child { border-left: 0; }
.specs b { font-family: var(--display); font-stretch: 115%; font-size: 1.7rem; font-weight: 850; line-height: 1.1; }
.specs span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 720px) { .specs { grid-template-columns: 1fr 1fr; } .specs li:nth-child(3) { border-left: 0; } .specs li:nth-child(n+3) { border-top: 1px solid var(--line); } }

.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head, 93px)); z-index: 8; background: var(--paper); border-block: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); }
.subnav a:hover { color: var(--ink); border-color: var(--ink); }

.feature { padding-block: 72px; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.feature:first-of-type { border-top: 0; }
.feature .grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.feature.flip .grid > .media { order: 2; }
@media (max-width: 900px) { .feature .grid { grid-template-columns: 1fr; gap: 24px; } .feature.flip .grid > .media { order: 0; } }
.feature .media { display: grid; gap: 14px; min-width: 0; }
.feature .media .main img { aspect-ratio: 4 / 3; object-fit: cover; }
.feature .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature .thumbs img { aspect-ratio: 4 / 3; object-fit: cover; }
.feature .text { display: grid; gap: 18px; min-width: 0; align-content: center; }
.feature .num { font-family: var(--mono); font-weight: 600; color: var(--red); font-size: 0.85rem; letter-spacing: 0.06em; }
.feature .text > p { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.details { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.details li { display: grid; grid-template-columns: minmax(110px, 0.42fr) 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.details li b { font-weight: 700; }
.details li span { color: var(--muted); }
@media (max-width: 420px) { .details li { grid-template-columns: 1fr; gap: 2px; } }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.options figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.options figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.options figcaption { display: grid; gap: 4px; }
.options figcaption b { font-weight: 750; }
.options figcaption span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }
.colorwall { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.colorwall div { display: grid; gap: 6px; font-size: 0.8rem; color: var(--muted); min-width: 0; }
.colorwall i { display: block; aspect-ratio: 1; border-radius: var(--r); background: var(--c); border: 1px solid var(--line); box-shadow: inset 0 -10px 18px rgba(0,0,0,0.16), inset 0 6px 10px rgba(255,255,255,0.18); }
@media (max-width: 640px) { .colorwall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cta-band { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band p { color: color-mix(in srgb, var(--paper) 75%, transparent); margin-top: 8px; }
.cta-band .btn.ghost { color: var(--paper); border-color: var(--paper); }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; padding: 28px; } }
.text-link { font-weight: 700; color: var(--red); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Gallery (customer builds) ---------- */
.builds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .builds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .builds { gap: 14px 10px; } .build figcaption { flex-direction: column; gap: 2px; } .build figcaption b { font-size: 0.88rem; line-height: 1.3; } }
.build { margin: 0; display: grid; gap: 10px; min-width: 0; }
.build button { display: block; padding: 0; border: 0; background: var(--stage); border-radius: var(--r); overflow: hidden; cursor: zoom-in; width: 100%; }
.build img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.build button:hover img { transform: scale(1.03); }
.build figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.build figcaption b { font-weight: 700; font-size: 0.98rem; }
.build figcaption span { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }
.builds-empty { padding: 40px; border: 2px dashed var(--line); border-radius: var(--r); color: var(--muted); text-align: center; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(10, 9, 9, 0.88); }
dialog.lightbox img { display: block; max-width: 100%; max-height: calc(94vh - 60px); margin-inline: auto; border-radius: var(--r); }
dialog.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; color: #f1f0ee; }
dialog.lightbox .bar div { display: flex; gap: 8px; }
dialog.lightbox button { font: 600 0.9rem/1 var(--body); background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; padding: 9px 14px; cursor: pointer; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 40px 72px; }
.legal .doc { max-width: 760px; display: grid; gap: 14px; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 1.35rem; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }
.legal .summary-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.legal a { color: var(--red); }
footer .legal-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; }
footer .legal-links a { color: var(--muted); }
.agree { font-size: 0.85rem; color: var(--muted); }

/* ---------- Keyboard navigation ---------- */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
main:focus { outline: none; }
.build button:focus-visible, .stage a:focus-visible { outline-offset: 3px; }
.sw:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.seg button:focus-visible { outline-offset: -3px; }
