/* ---------------------------------------------------------------
   Wignet — English showroom (website-wignet/)
   Editorial paper surface: tokens and primitives come from
   wignet.css (generated); this file owns page layout only.
   Never follows dark mode. E-paper previews keep a pure white
   bed and a full-ink frame.
   --------------------------------------------------------------- */

:root {
  --wrap: 1120px;
  --gutter: 28px;
  --section: 112px;
  --epaper-ink: #000;
  --epaper-bed: #fff;
}

* { box-sizing: border-box; }
/* No scroll-behavior: smooth. Browsers can switch it off (Chrome flag,
   Firefox pref, Windows animation setting); the script in index.html animates
   anchor jumps itself. scroll-padding still offsets the sticky header. */
html { scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--app-background);
  color: var(--foreground);
  font: 400 17px/1.6 var(--font-sans);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
a { color: inherit; }
code { font: 400 .9em var(--font-mono); }

h1, h2, h3 { font-weight: 550; letter-spacing: -.04em; margin: 0; }
h1 { font-size: clamp(2.8rem, 7.4vw, 5.6rem); line-height: 1; font-weight: 450; letter-spacing: -.06em; max-width: 16ch; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; margin-bottom: 48px; max-width: 22ch; }
h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 10px; }
p { margin: 0 0 1em; }
/* Line breaks: headings share their words evenly across lines; running text
   avoids a lone word on its last line. Browsers without text-wrap simply wrap
   as before. Two-sentence headings also break between sentences (.phrase). */
h2, h3, .kicker, .agent-tag, figcaption { text-wrap: balance; }
p, li, dd, .lead { text-wrap: pretty; }

.kicker {
  margin: 0 0 20px;
  color: var(--muted-foreground);
  font: 400 12px/16px var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--muted-foreground); max-width: 38em; }

section { padding: var(--section) 0; }
.band { background: var(--background); border-block: 1px solid var(--border); }
.band--ink { background: var(--neutral-900); color: var(--neutral-50); border: 0; }
.band--ink .kicker { color: var(--neutral-400); }
.band--ink p { color: var(--neutral-200); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

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

.site-head { position: sticky; top: 0; z-index: 40; }
.site-head .wrap { max-width: none; }


/* ------------------------------------------------------------ hero */

.hero { padding-top: 96px; }
.hero h1 { margin-bottom: 28px; }
/* The heading keeps the height of its longest pair; the words sit at the
   bottom of it, next to the paragraph, and any spare room goes above. */
.rotor { max-width: none; display: flex; flex-direction: column; justify-content: flex-end; }
.rotor-line { display: block; }
.rotor-slot { color: var(--highlight); }
.rotor-slot.is-typing::after { content: ""; display: inline-block; width: .06em; height: .78em; margin-left: .05em; background: currentColor; animation: rotor-caret 1s steps(1) infinite; }
@keyframes rotor-caret { 50% { opacity: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Hero, full width: the text on the left, the 3D still life (wignets3d.js) on the right. */
.hero--split .wrap { max-width: none; padding-inline: clamp(var(--gutter), 4vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero--split h1 { font-size: clamp(2.6rem, 4.6vw, 5rem); }
/* The scene runs up under the sticky, translucent top bar (64 px and its
   1 px border); the text keeps its place. */
.hero--scene { --head: 65px; position: relative; overflow: hidden; margin-top: calc(-1 * var(--head)); padding-top: calc(96px + var(--head)); padding-bottom: calc(var(--section) / 3); }
/* The 3D scene is the section's backdrop; the text sits above it. */
.hero--scene .stage3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero--scene .wrap { position: relative; }
/* The empty area the objects stand in (wignets3d.js aims the camera at it). */
.hero-space { position: relative; min-width: 0; height: clamp(440px, 39vw, 620px); }
.stage-touch { position: absolute; inset: 0 0 126px; }
.stage-nav { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 12px; }
.stage-nav[hidden] { display: none; }
.stage-caption-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stage-message { position: absolute; inset: 0 0 126px; display: grid; place-items: center; pointer-events: none; }
.stage-message[hidden] { display: none; }
/* Without the 3D module (html.has-3d, set by the home page) the hero is a
   normal section: usual width, one column, not under the top bar. */
html:not(.has-3d) .hero--scene { margin-top: 0; padding-top: 96px; padding-bottom: var(--section); }
html:not(.has-3d) .hero--split .wrap { max-width: var(--wrap); padding-inline: var(--gutter); }
html:not(.has-3d) .hero-grid { grid-template-columns: 1fr; }
html:not(.has-3d) .hero--split h1 { font-size: clamp(2.8rem, 7.4vw, 5.6rem); }
html:not(.has-3d) .hero-space, html:not(.has-3d) .hero--scene .stage3d { display: none; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-space { height: clamp(430px, 100vw, 540px); }
}

.nots { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 28px 0 0; font: 400 14px/20px var(--font-mono); color: var(--muted-foreground); }
.nots li { text-decoration: line-through; text-decoration-color: var(--highlight); text-decoration-thickness: 1.5px; }
/* Title above, logos and names on one line, the note below; at the site's
   usual width even inside the full-width hero. */
.works { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 72px auto 0; padding-top: 24px; }
.works .kicker { margin: 0 0 16px; }
.works ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; font-weight: 550; letter-spacing: -.02em; }
.works li { display: inline-flex; align-items: center; gap: 8px; }
.works-logo { width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.works li a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.works li a:hover { color: var(--highlight); }
.works-note { margin: 14px 0 0; color: var(--muted-foreground); font-size: 14px; }

/* ------------------------------------------ e-paper preview frames */

.ep {
  aspect-ratio: 5 / 3;
  display: flex;
  flex-direction: column;
  padding: 5% 6%;
  background: var(--epaper-bed);
  color: var(--epaper-ink);
  border: 10px solid var(--neutral-900);
  font-family: var(--font-sans);
  container-type: inline-size;
  overflow: hidden;
}
.ep--inverse { background: var(--epaper-ink); color: var(--epaper-bed); }
.ep-head, .ep-foot { display: flex; justify-content: space-between; gap: 12px; font: 500 4.4cqw/1.2 var(--font-mono); letter-spacing: .06em; }
.ep-foot { margin-top: auto; padding-top: 3cqw; border-top: 2px solid currentColor; font-weight: 400; }
.ep-big { margin-top: 4cqw; font-size: 17cqw; line-height: .95; font-weight: 600; letter-spacing: -.05em; }
.ep-big small { font-size: .38em; letter-spacing: -.02em; font-weight: 500; }
.ep-big--md { font-size: 13cqw; }
.ep-big--xl { font-size: 30cqw; margin: auto 0; }
.ep-sub { margin-top: 2cqw; font: 400 4.4cqw/1.35 var(--font-mono); }
.ep-rows { display: grid; grid-template-columns: auto 1fr; gap: .6cqw 4cqw; margin: 3cqw 0 0; font: 400 4.6cqw/1.3 var(--font-mono); }
.ep-rows dd { margin: 0; }
.ep-rows--big { margin-top: 4cqw; font-size: 9cqw; font-family: var(--font-sans); font-weight: 600; letter-spacing: -.03em; }
.ep-rows--big dd { font-weight: 400; }

/* Colour Wignets: Spectra inks as the background. */
.ep--green { background: #2f7d4a; color: #f4f1e8; }
.ep--yellow { background: #e6b422; color: #1a1a1a; }
/* A colour Wignet raising an alert: the Spectra red ink, white text. */
.ep--alert { background: #b8312f; color: #f4f1e8; }
/* The family week: seven short lines. */
.ep-rows--week { gap: .3cqw 4cqw; margin-top: 2.5cqw; font-size: 3.7cqw; line-height: 1.25; }
.ep-rows--week dt { font-weight: 500; }
/* A recipe's steps, numbered. */
.ep-steps { margin: 1.5cqw 0 0; padding-left: 5cqw; font: 400 3.6cqw/1.3 var(--font-mono); }
.ep-steps li + li { margin-top: .2cqw; }
.ep--wide { aspect-ratio: 800 / 480; }
.ep--compact { aspect-ratio: 264 / 176; max-width: 340px; width: 100%; justify-self: center; border-width: 8px; }
.ep--compact .ep-big { font-size: 26cqw; margin: auto 0; }
.ep--compact .ep-head, .ep--compact .ep-foot { font-size: 7cqw; }
/* HDMI: a colour 1920 × 1080 screen in a thin bezel. Not e-paper, so the
   white-bed rule does not apply; colours stay in the palette (no signal blue,
   which is reserved for MCP/AI). */
.tv {
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 3cqw;
  padding: 4.5cqw 5cqw;
  /* Dawn at 06:31: ochre sun, coral sky, dark sea. */
  background:
    radial-gradient(38% 55% at 82% 8%, color-mix(in srgb, var(--ochre-300) 70%, transparent), transparent 70%),
    linear-gradient(180deg, var(--coral-700) 0%, var(--coral-900) 38%, var(--neutral-950) 78%);
  color: var(--neutral-50);
  border: 10px solid #0b0506;
  box-shadow: 0 0 0 1px var(--neutral-800);
  container-type: inline-size;
  overflow: hidden;
}
.tv-head { display: flex; justify-content: space-between; font: 400 2.4cqw/1 var(--font-mono); letter-spacing: .1em; color: var(--coral-100); }
.tv-body { display: grid; grid-template-columns: 5fr 6fr; gap: 5cqw; align-items: center; min-height: 0; }
.tv-big { font: 600 14cqw/.9 var(--font-sans); letter-spacing: -.05em; }
.tv-sub { margin-top: 1.4cqw; font: 400 2.5cqw/1.3 var(--font-mono); color: var(--ochre-200); }
.tv-rows { list-style: none; margin: 3.4cqw 0 0; padding: 0; display: grid; gap: 1.3cqw; font-size: 2.5cqw; }
.tv-rows li { display: flex; align-items: center; gap: 1.2cqw; color: var(--neutral-200); }
.tv-rows li::before { content: ""; width: 1.1cqw; height: 1.1cqw; flex: none; background: var(--neutral-500); }
.tv-rows li.is-window::before { background: var(--sage-400); }
.tv-rows li.is-tide::before { background: var(--ochre-400); }
.tv-rows b { margin-left: auto; font: 500 2.5cqw/1 var(--font-mono); color: var(--neutral-50); }
.tv-chart { margin: 0; }
.tv-chart figcaption { margin-bottom: 1.4cqw; font: 400 1.7cqw/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--coral-100); }
.tv-chart svg { display: block; width: 100%; height: auto; aspect-ratio: 400 / 180; }
.tv-window { fill: color-mix(in srgb, var(--sage-300) 30%, transparent); }
.tv-area { fill: color-mix(in srgb, var(--coral-400) 45%, transparent); }
.tv-line { fill: none; stroke: var(--coral-200); stroke-width: 3; vector-effect: non-scaling-stroke; }
.tv-now { stroke: var(--neutral-50); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.tv-tide { fill: var(--ochre-400); }
.tv-axis { display: flex; justify-content: space-between; margin-top: 1cqw; font: 400 1.6cqw/1 var(--font-mono); color: var(--neutral-400); }

/* Spectra 6: the same 800 × 480 bed, with the panel's own inks as accents. */
.ep-rows--inks dt { display: flex; align-items: center; gap: 2cqw; }
.ink { width: 2.4cqw; height: 2.4cqw; flex: none; }
.ink--red { background: #b8312f; }
.ink--yellow { background: #e6b422; }
.ink--green { background: #2f7d4a; }
.ep--spectra .ep-big small { color: #b8312f; }

/* LCD 1.54": 240 × 240 colour IPS, left-aligned cream on black with a coral
   small line, as the firmware draws it. */
.lcd {
  aspect-ratio: 1;
  max-width: 300px;
  width: 100%;
  justify-self: center;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  background: #000;
  color: #f7f2e8;
  border: 12px solid var(--neutral-900);
  border-radius: 14px;
  container-type: inline-size;
  overflow: hidden;
}
.lcd-head, .lcd-sub { font: 400 8cqw/1 var(--font-mono); letter-spacing: .06em; color: #d56668; }
.lcd-big { margin: 6cqw 0; font: 600 36cqw/.9 var(--font-sans); letter-spacing: -.05em; }

.surface-spec .seg { white-space: nowrap; }
.surface-spec { margin: 0 0 12px; font: 400 12px/16px var(--font-mono); letter-spacing: .08em; color: var(--foreground); }
.panel-text .surface-spec + .wg-chip { margin-top: 0; }

/* --------------------------------------------------------- screens */

.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.screen { margin: 0; }
.screen figcaption { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--muted-foreground); }
.screen figcaption b { display: block; margin-bottom: 6px; color: var(--foreground); font: 400 12px/16px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }

/* ------------------------------------------------------- by design */

.numbered { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.numbered li { counter-increment: n; padding: 28px 0 20px; border-top: 1px solid var(--border-strong); }
.numbered li::before { content: counter(n, decimal-leading-zero); display: block; margin-bottom: 14px; font: 400 12px/16px var(--font-mono); color: var(--highlight); letter-spacing: .14em; }
.numbered p { color: var(--muted-foreground); }
.statement { margin: 56px 0 0; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; font-weight: 450; letter-spacing: -.04em; }

/* ----------------------------------------------------------- setup */

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 18px; border: 1px solid var(--foreground); font: 500 13px/1 var(--font-mono); }
.steps p { color: var(--muted-foreground); font-size: 15px; }

.code {
  margin: 0;
  padding: 28px 32px;
  background: var(--neutral-900);
  color: var(--neutral-50);
  font: 400 14px/1.7 var(--font-mono);
  overflow-x: auto;
  white-space: pre;
}
.code-comment { color: var(--neutral-400); }
.code--light { background: var(--muted-background); color: var(--foreground); border: 1px solid var(--border); padding: 20px 24px; font-size: 13px; }
.code--light .code-comment { color: var(--muted-foreground); }
.code--api { background: var(--neutral-950); border: 1px solid var(--neutral-800); font-size: 13px; }

/* -------------------------------------------------------- platform */

.surfaces { margin-bottom: 72px; }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border-strong); margin-bottom: 32px; }
.tabs button {
  appearance: none;
  margin: 0 0 -1px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--muted-foreground);
  font: 400 12px/16px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}
.tabs button:hover { color: var(--foreground); }
.tabs button[aria-selected="true"] { color: var(--foreground); background: var(--background); border-color: var(--border-strong); border-bottom-color: var(--background); }
.tabs button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ring); }
.panel { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: start; min-height: 360px; }
.panel[hidden] { display: none; }
.panel-text p { color: var(--muted-foreground); margin-top: 20px; }
.panel-text .wg-chip { margin: 0; }
.surfaces-note { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--border-strong); color: var(--muted-foreground); max-width: 46em; }
.surfaces-note b { display: block; color: var(--foreground); font-weight: 550; margin-bottom: 4px; }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 0; }
.specs div { padding: 24px 0; border-top: 1px solid var(--border-strong); }
.specs dt { margin-bottom: 10px; font: 400 12px/16px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.specs dd { margin: 0; color: var(--muted-foreground); font-size: 15px; line-height: 1.55; }

/* ------------------------------------------------------ mcp, split */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
/* Grid items default to min-width: auto, so a <pre> would widen its column
   (and the page) instead of scrolling inside itself. */
.split > *, .panel > *, .columns > *, .screens > *, .addresses > *, .agents > * { min-width: 0; }
.h2--wide { max-width: none; text-wrap: balance; }
.split h2 { margin-bottom: 28px; }
.band--ink code { color: var(--neutral-50); }
#mcp .code { margin-top: 8px; }
.mcp-text { padding-top: 36px; }

/* ---------------------------------------------------------- agents */

.hero--page { padding-bottom: 56px; }
.maker-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.maker-filter button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border-strong); background: transparent; color: var(--muted-foreground); font: 500 14px/20px var(--font-sans); cursor: pointer; }
.maker-filter button:hover { color: var(--foreground); }
.maker-filter button[aria-pressed="true"] { background: var(--foreground); border-color: var(--foreground); color: var(--background); }
.maker-filter button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ring); }
.maker-filter .works-logo { width: 16px; height: 16px; }
.agent[hidden], .more-list li[hidden], .more[hidden] { display: none; }
.steps--five { grid-template-columns: repeat(5, 1fr); }
.build-note { max-width: 46em; margin: 32px 0 0; color: var(--muted-foreground); }
.hero--page h1 { max-width: none; font-size: clamp(2.4rem, 5.4vw, 4rem); }
/* A sentence moves to the next line whole; it only breaks inside when it cannot fit. */
.phrase { display: inline-block; text-wrap: balance; }
/* Hardware cards are design-system primitives; this page owns their grid. */
.hardware-group { margin-top: 56px; }
.hardware-group > .build-note { margin: 12px 0 24px; }
.hardware-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .hardware-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hardware-grid { grid-template-columns: minmax(0, 1fr); } }
.agents-lead { max-width: 46em; color: var(--muted-foreground); margin: 0 0 40px; }
.addresses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 0 0 56px; }
.addresses div { padding: 24px 0; border-top: 1px solid var(--border-strong); }
.addresses dt { margin-bottom: 10px; font: 400 12px/16px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.addresses dd { margin: 0; }
.addresses code { display: block; font-size: 13px; overflow-wrap: anywhere; }
.addresses p { margin: 10px 0 0; color: var(--muted-foreground); font-size: 15px; line-height: 1.55; }
.agents-caveat { max-width: 46em; margin: 0 0 24px; color: var(--muted-foreground); font-size: 15px; font-style: italic; }
.agents-caveat i { font-style: normal; }
.agents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.agent { padding: 28px; border: 1px solid var(--border-strong); background: var(--background); }
.agent--wide { grid-column: 1 / -1; }
.agent h3 { margin: 0; }
.agent-tag { margin: 6px 0 20px; font: 400 12px/16px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.agent ol { margin: 0; padding-left: 1.2em; color: var(--muted-foreground); font-size: 15px; }
.agent li + li { margin-top: 8px; }
.agent p { color: var(--muted-foreground); font-size: 15px; }
.agent li b, .agent p b { color: var(--foreground); font-weight: 550; }
.agent .code { margin: 0 0 16px; }
.agent code { overflow-wrap: anywhere; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; margin: 20px 0 0; align-items: start; }
.shots figure { margin: 0; }
.shots .shot--wide { grid-column: 1 / -1; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }
.shots figcaption { margin-top: 8px; font: 400 11px/14px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
.agent-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.more { margin: 56px 0 0; }
.more h3 { margin: 0 0 8px; }
.more > p { max-width: 46em; margin: 0 0 24px; color: var(--muted-foreground); font-size: 15px; }
.more-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.more-list li { min-width: 0; padding: 20px 0; border-top: 1px solid var(--border-strong); }
.more-list b { font-weight: 550; }
.more-list span { display: block; margin: 4px 0 10px; font: 400 11px/14px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.more-list p { margin: 0; color: var(--muted-foreground); font-size: 15px; line-height: 1.55; }
.more-list p b { color: var(--foreground); }
.more-list code { overflow-wrap: anywhere; }
.agents-foot { margin: 40px 0 0; color: var(--muted-foreground); max-width: 46em; font-size: 15px; }

/* ---------------------------------------------------- future proof */

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.columns p { color: var(--muted-foreground); }
.roadmap { list-style: none; padding: 0; margin: 72px 0 0; }
.roadmap li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--border-strong); }
.roadmap li:last-child { border-bottom: 1px solid var(--border-strong); }
.roadmap p { margin: 0; }
.roadmap .wg-chip { justify-self: start; }

/* ---------------------------------------------------- availability */

.sizes { margin: 0; }
.sizes div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border-strong); }
.sizes div:last-child { border-bottom: 1px solid var(--border-strong); }
.sizes dt { font: 400 12px/24px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); }
.sizes dd { margin: 0; color: var(--muted-foreground); }
.sizes dd b { display: block; color: var(--foreground); font-weight: 550; }

/* ---------------------------------------------------- product page */

.product { padding-top: 40px; }
.product-back { margin: 0 0 28px; font-size: 14px; }
.product-back a { color: var(--muted-foreground); text-decoration: none; }
.product-back a:hover { color: var(--foreground); }
.product-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.product-gallery { position: sticky; top: 24px; }
.product-main { display: block; width: 100%; padding: 0; border: 1px solid var(--border); background: var(--muted-background); cursor: zoom-in; aspect-ratio: 4 / 5; overflow: hidden; }
.product-main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product.is-out .product-main img { filter: grayscale(1); opacity: .55; }
.product-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.product-thumbs button { display: block; width: 100%; padding: 0; border: 1px solid var(--border); background: var(--muted-background); aspect-ratio: 1; overflow: hidden; cursor: pointer; opacity: .7; }
.product-thumbs button:hover { opacity: 1; }
.product-thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--foreground); outline-offset: 1px; }
.product-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin: 0 0 16px; text-transform: capitalize; }
.product-price { margin: 0 0 24px; font: 500 22px/1.3 var(--font-mono); }
.product-price span { display: block; margin-top: 4px; font: 400 12px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); }
.product-lead { margin: 0 0 28px; }
.product-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; margin-bottom: 32px; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.product-note { margin: -16px 0 32px; color: var(--muted-foreground); font-size: 15px; }
.product-info > p { line-height: 1.65; }
.product-h2 { margin: 40px 0 8px; font-size: 1.25rem; }
.product-specs { margin: 0; }
.product-specs div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.product-specs dt { color: var(--muted-foreground); }
.product-specs dd { margin: 0; }
.product-specs dd:only-child { grid-column: 1 / -1; }

.product-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 12, .94); overflow: auto; overscroll-behavior: contain; }
.product-lightbox::backdrop { background: rgba(12, 12, 12, .94); }
.product-lightbox img { display: block; max-width: 100%; max-height: 100%; margin: auto; position: absolute; inset: 0; object-fit: contain; cursor: zoom-in; }
.product-lightbox.is-zoomed img { position: static; max-width: none; max-height: none; cursor: zoom-out; }
.lightbox-close, .lightbox-nav { position: fixed; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ---------------------------------------------------------- footer */

.site-foot { padding: 96px 0 48px; }
.foot-line { margin: 0 0 64px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; font-weight: 450; letter-spacing: -.06em; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--border-strong); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot-row nav a { color: var(--muted-foreground); text-decoration: none; }
.foot-row nav a:hover { color: var(--foreground); }
.foot-note { margin: 0 0 0 auto; color: var(--faint); font-size: 13px; }

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

@media (max-width: 960px) {
  .screens { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .panel, .split, .columns { grid-template-columns: 1fr; gap: 32px; }
  .addresses, .agents { grid-template-columns: 1fr; }
  .more-list { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 72px; }
  .hero { padding-top: 56px; }
  .screens, .steps, .specs, .numbered { grid-template-columns: 1fr; }
  .ep { border-width: 8px; }
  .code { padding: 20px; font-size: 12.5px; }
  .roadmap li { grid-template-columns: 1fr; gap: 8px; }
  .tabs button { padding: 10px 12px; }
  .foot-note { margin-left: 0; }
  .agent { padding: 20px; }
  .more-list { grid-template-columns: 1fr; }
  .agent .code { white-space: pre-wrap; overflow-wrap: anywhere; }
}

[tabindex="-1"]:focus { outline: none; }

/* Hardware sidebar and results placement; controls remain system primitives. */
#boards > .wrap { max-width: 1440px; --hardware-sidebar-width: 220px; --hardware-column-gap: 32px; }
.hardware-catalogue { display: grid; gap: var(--hardware-column-gap); align-items: start; margin-top: 40px; }
.hardware-results { display: grid; gap: 56px; min-width: 0; }
.hardware-results > .hardware-group { margin-top: 0; }
@media (min-width: 961px) {
  .hardware-catalogue:has(> .wg-hardware-filters:not([hidden])) { grid-template-columns: var(--hardware-sidebar-width) minmax(0, 1fr); }
  /* Keep all catalogue footnotes on the same left edge as the results. */
  .hardware-catalogue:has(> .wg-hardware-filters:not([hidden])) ~ .build-note { margin-left: calc(var(--hardware-sidebar-width) + var(--hardware-column-gap)); }
}
@media (min-width: 961px) and (max-width: 1279px) {
  .hardware-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hardware-group[hidden] { display: none; }
