/* Mitus Labs: machined steel. Light bead-blasted steel page that matches the studio renders,
   graphite type and bands, signal red (from the trackball / TrackPoint) used sparingly. */
:root {
  --bg: #ececec;            /* = render studio sweep and the social graphics, so product shots sit seamlessly */
  --bg-2: #f3f3f3;          /* raised panel */
  --bg-3: #dcdcdc;
  --steel: linear-gradient(180deg, #f6f7f8 0%, #dcdee1 48%, #cfd2d6 52%, #e4e6e8 100%);
  --graphite: #17191c;
  --graphite-2: #23262b;
  --line: rgba(23, 25, 28, 0.12);
  --text: #17191c;
  --muted: #555c65;
  --accent: #c8162d;
  --accent-rgb: 200, 22, 45;
  --display: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: 0.01em; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { color: var(--muted); }
b { color: var(--text); font-weight: 600; }

.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(23, 25, 28, 0.94);
  backdrop-filter: blur(12px); border-bottom: 1px solid #000;
}
.brand { font-family: var(--display); font-weight: 700; color: #f2f3f5; letter-spacing: 0.12em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 24px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.nav nav a { color: #a9afb7; }
.nav nav a:hover { color: #fff; text-decoration: none; }
.nav .brand { margin-right: auto; }
.nav > .btn.small { flex-shrink: 0; }
/* three-line menu button, only shown once the links no longer fit */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px;
  padding: 0 9px; background: none; border: 1px solid #33373c; border-radius: 8px; cursor: pointer; flex-shrink: 0;
}
.menu-toggle span { display: block; height: 2px; background: #e6e8eb; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* narrow windows: links move into a panel that drops down under the bar */
@media (max-width: 1080px) {
  .nav.wide .menu-toggle { display: flex; }
  .nav.wide nav { display: none; }
  .nav.wide.open nav { display: flex; }
}
@media (max-width: 760px) {
  .nav .menu-toggle { display: flex; }
  .nav nav { display: none; }
  .nav.open nav { display: flex; }
}
@media (max-width: 1080px) {
  .nav nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 6px clamp(16px, 4vw, 48px) 14px; background: #17191c;
    border-bottom: 1px solid #000; box-shadow: 0 18px 30px rgba(0, 0, 0, .35); font-size: 1rem;
  }
  .nav nav a { padding: 13px 0; border-top: 1px solid #2a2d31; }
  .nav nav a:first-child { border-top: 0; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  /* sub pages still fit their four links here, so keep them in the bar */
  .nav:not(.wide) nav { position: static; flex-direction: row; align-items: center; gap: 22px; padding: 0;
    background: none; border: 0; box-shadow: none; font-size: 0.92rem; }
  .nav:not(.wide) nav a { padding: 0; border: 0; }
}

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff !important;
  font-weight: 600; border: 1px solid var(--accent); transition: box-shadow .2s, transform .2s;
}
.btn:hover { text-decoration: none; box-shadow: 0 0 32px rgba(var(--accent-rgb), .35); transform: translateY(-1px); }
.btn.ghost { background: var(--steel); color: var(--text) !important; border-color: rgba(23,25,28,.22); box-shadow: inset 0 1px 0 #fff; }
.btn.ghost:hover { box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(0,0,0,.12); }
.btn.small { padding: 7px 14px; font-size: .85rem; }
/* greyed-out button while orders are closed */
.btn.is-off, .btn.is-off:hover { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; filter: grayscale(1); }

main > section { padding: clamp(56px, 9vw, 120px) clamp(16px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; color: var(--accent); margin: 0 0 12px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.note { font-size: .95rem; max-width: 680px; }
.meta { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin: -4px 0 10px; }

.hero { text-align: center; padding-top: clamp(48px, 8vw, 104px) !important; }
.hero-copy { max-width: 860px; margin: 0 auto; }
.hero .lede { max-width: 680px; margin-left: auto; margin-right: auto; }
.hero .hero-signup { margin-left: auto; margin-right: auto; }
.hero .chips { justify-content: center; }
/* hero with the spinning keyboards: video beside the copy on wide screens, above it on narrow ones */
.hero-spin video {
  display: block; width: 100%; height: auto; aspect-ratio: 1; background: var(--bg);
  /* fade the square's edges into the page so a slight colour difference never shows as a box */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
                      linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
              linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
/* phone: the video runs edge to edge (its faded edges blend into the page) */
.hero.with-spin .hero-spin { max-width: 480px; margin: -24px auto 8px; }
@media (max-width: 959px) { .hero.with-spin .hero-spin video { width: calc(100% + 32px); margin-left: -16px; } }
@media (min-width: 960px) {
  .hero.with-spin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
    align-items: center; text-align: left; padding-top: clamp(32px, 5vw, 64px) !important; }
  .hero.with-spin .hero-spin { order: 2; max-width: none; margin: 0; }
  /* a bit bigger than its column: spills into the gap and the page margin, which are empty */
  .hero.with-spin .hero-spin video { width: 124%; margin: 0 -12%; }
  .hero.with-spin { overflow-x: clip; }   /* the spill never makes the page scroll sideways */
  .hero.with-spin .hero-copy { margin: 0; }
  .hero.with-spin .lede, .hero.with-spin .hero-signup { margin-left: 0; }
  .hero.with-spin .chips { justify-content: flex-start; }
}
.lede { font-size: 1.12rem; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--mono); font-size: .75rem; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.split figure img { border-radius: var(--radius); }
figure { margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.steps { padding-left: 1.2em; color: var(--muted); }
.steps li { margin: 0 0 12px; }
.steps li::marker { color: var(--accent); font-family: var(--mono); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.card { background: var(--bg-2); box-shadow: inset 0 1px 0 #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(23,25,28,.35); box-shadow: inset 0 1px 0 #fff, 0 14px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card h3, .card p { padding: 0 18px; }
.card h3 { margin-top: 16px; }
.card p { font-size: .93rem; padding-bottom: 8px; }


.repair { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .93rem; }
.repair td { padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.repair td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.repair td:last-child { font-family: var(--mono); color: var(--text); white-space: nowrap; text-align: right; }

.layout { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 3vw, 32px); margin: 36px auto 12px; color: #1d2329; }
.layout img { width: 100%; }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; max-width: 900px; margin: 36px auto 0; }
.specs div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-top: 2px; }
.specs dd { margin: 0; color: var(--text); font-size: .95rem; }

.launch { text-align: center; background: var(--graphite); color: #f2f3f5; max-width: none !important;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.08), transparent 60%); }
.launch p { max-width: 520px; margin: 0 auto 28px; color: #a9afb7; }

.viewer { position: relative; margin: 36px auto 0; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #f4f5f6, var(--bg) 70%); border: 1px solid var(--line); }
.viewer model-viewer { width: 100%; height: clamp(340px, 58vw, 620px); --poster-color: transparent; background: transparent; }
.tier-switch { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px;
  background: rgba(23, 25, 28, .88); border-radius: 999px; }
.tier-switch button { font: 600 .82rem var(--sans); color: #a9afb7; background: transparent; border: 0; padding: 8px 14px;
  border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tier-switch button[aria-pressed="true"] { background: var(--steel); color: var(--text); }
.tier-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .tier-switch button { padding: 7px 10px; font-size: .76rem; } }

footer { padding: 32px 16px 48px; text-align: center; background: var(--graphite-2); border-top: 1px solid #000; }
footer p { color: #a9afb7; }
footer a { color: #f2f3f5; }
footer p { margin: 4px 0; font-size: .9rem; }
footer .small { font-size: .78rem; opacity: .7; }

@media (max-width: 960px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > div { order: 2; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 100px 1fr; }
  .repair td:first-child { white-space: normal; }
}

/* Slider: one panel, tabs underneath (attachments + electronics) */
.slider { max-width: 1040px; margin: 40px auto 0; }
.slides { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 #fff; overflow: hidden; }
.slide { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; animation: fade .35s ease; }
.slide[hidden] { display: none; }
.slide img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.slide figcaption { padding: 28px 64px 28px 28px; }
.slide figcaption p { margin: 0; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(23,25,28,.22); background: rgba(239,240,242,.9); color: var(--text); font: 600 1.4rem/1 var(--sans);
  cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.arrow:hover { border-color: var(--graphite); }
.arrow.prev { left: 12px; } .arrow.next { right: 12px; }
.slider-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 16px auto 0; padding: 4px;
  width: fit-content; max-width: 100%; background: var(--graphite); border-radius: 999px; }
.slider-tabs button { font: 600 .85rem var(--sans); color: #a9afb7; background: transparent; border: 0; padding: 8px 16px;
  border-radius: 999px; cursor: pointer; white-space: nowrap; }
.slider-tabs button[aria-selected="true"] { background: var(--steel); color: var(--text); }
.slider-tabs button:focus-visible, .arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Electronics: diagrams need the full width and must not be cropped */
.elec-model { margin: 40px 0 -24px; }
.specs-next { margin-top: 56px; }
.schem .slide { grid-template-columns: 1fr; background: #fff; }
.schem .slide img { aspect-ratio: auto; object-fit: contain; max-height: 640px; padding: clamp(8px, 2vw, 24px) clamp(8px, 4vw, 56px); }
.schem .slide a { display: block; cursor: zoom-in; }
.schem .slide figcaption { padding: 0 24px 20px; text-align: center; }
.schem .arrow { top: auto; bottom: 12px; transform: none; }
@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; }
  .slide figcaption { padding: 18px 20px 64px; }
  .arrow { top: auto; bottom: 12px; transform: none; }
  .slider-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .slider-tabs button { padding: 7px 11px; font-size: .78rem; }
}

/* Launch-list sign-up */
.signup[hidden] { display: none; }
.signup { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.signup input[type=email] { flex: 1; min-width: 0; padding: 12px 18px; border-radius: 999px; border: 1px solid #3a3f46;
  background: #0f1113; color: #f2f3f5; font: 1rem var(--sans); }
.signup input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.signup .btn { cursor: pointer; font: 600 1rem var(--sans); }
.signup .btn:disabled { opacity: .6; cursor: wait; }
.hp, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.launch .signup-msg { min-height: 1.6em; margin: 14px auto 0; font-size: .95rem; }
.launch .signup-msg.ok { color: #f2f3f5; font-weight: 600; }
.launch .signup-msg.err { color: #ff8a98; }
@media (max-width: 520px) { .signup { flex-direction: column; } }

/* Hero sign-up: email box right under the pitch */
.hero-signup { margin: 28px 0 0; max-width: 520px; }
.hero-signup input[type=email] { background: #fff; color: var(--text); border-color: rgba(23,25,28,.25); }
.hero-signup input[type=email]::placeholder { color: #8a9099; }
.hero .signup-msg { min-height: 1.4em; margin: 10px 0 0; font-size: .92rem; }
.hero .signup-msg.ok { color: var(--text); font-weight: 600; }
.hero .signup-msg.err { color: var(--accent); }
.cta-sub { font-size: .9rem; margin: 6px 0 24px; }
.cta-sub a { font-weight: 600; }

/* Policy pages */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) clamp(16px, 5vw, 32px) 64px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .2em; }
.doc h2 { font-size: 1.25rem; margin: 2em 0 .5em; }
.doc p, .doc li { color: var(--text); }
.doc .lead { font-size: 1.12rem; color: var(--muted); margin: 1.2em 0 0; }
.doc ul, .doc ol { padding-left: 1.3em; display: grid; gap: .45em; }
.doc li::marker { color: var(--accent); }
.doc .small { font-size: .85rem; color: var(--muted); }
.doc-help { margin-top: 3em; padding: 20px 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 0 1px 0 #fff; }
.doc-help h2 { margin: 0 0 .3em; }
.doc-help p { margin: 0; }
.foot-links { font-size: .9rem; }
.foot-links a { color: #f2f3f5; }
.launch .launch-contact { font-size: .9rem; margin-top: 18px; }
.launch .launch-contact a { color: #f2f3f5; text-decoration: underline; text-underline-offset: 3px; }

/* Builder in the pricing section: picture stays put on the left, choices scroll on the right. */
.builder .note { margin-bottom: 0; }
.build { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 24px clamp(24px, 4vw, 56px); margin-top: 44px; align-items: start; }
.build-left { position: sticky; top: 84px; display: grid; gap: 12px; }
.stage { position: relative; margin: 0; aspect-ratio: 16 / 8.2; border-radius: var(--radius); overflow: hidden; background: #b3b7bd; border: 1px solid var(--line); }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: 0; transition: opacity .45s ease; }
.stage-img.on { opacity: 1; }
.stage-links { margin: 8px 0 0; text-align: center; font-size: .9rem; }
.stage-links a[hidden] { display: none; }
.build-opts fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.build-opts fieldset[hidden] { display: none; }
.build-opts legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; font: 600 1.05rem var(--display); }
.build-opts legend span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--graphite); color: #f2f3f5; font: 600 .72rem var(--mono); }
.opts { display: grid; gap: 8px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 15px; cursor: pointer; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: inset 0 1px 0 #fff; transition: border-color .18s, box-shadow .18s, transform .18s; }
.opt:hover { border-color: rgba(23,25,28,.38); }
.opt input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--graphite); box-shadow: 0 0 0 1px var(--graphite), 0 10px 24px rgba(0,0,0,.09); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt-body { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.opt-body b { font-weight: 600; font-size: .97rem; }
.opt-body small { color: var(--muted); font-size: .8rem; }
.opt-body i { font-style: normal; }
.opt-body i[hidden] { display: none; }
.opt em { font: 500 .82rem var(--mono); color: var(--text); white-space: nowrap; text-align: right; }
.opt-body em { margin-top: 8px; text-align: left; color: var(--muted); }
.opt em.tbd { color: var(--muted); }
.soon { color: var(--accent); font-weight: 600; }   /* "Coming soon" in red */
.opt em s { display: block; text-decoration: none; color: var(--accent); font-size: .72rem; }
.swatch { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(23,25,28,.25); box-shadow: inset 0 2px 3px rgba(255,255,255,.35), inset 0 -2px 3px rgba(0,0,0,.2); }
.s-petg { background: linear-gradient(145deg, #ffffff, #e9e9e6 60%, #f4f4f2); }  /* white PETG */
.s-pacf { background: repeating-linear-gradient(45deg, #111213 0 2px, #1c1d1f 2px 4px); }  /* deep black nylon CF, fine weave */
.s-steel { background: linear-gradient(145deg, #e0e2e5, #a4a8ae 55%, #c9ccd0); }
.finish-notes { list-style: none; margin: 12px 0 0; padding: 0; color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.finish-notes li::before { content: "◆"; color: var(--accent); font-size: .55rem; margin-right: 7px; vertical-align: 2px; }
.build-sum { padding: 14px 18px; border-radius: var(--radius); background: var(--graphite); color: #f2f3f5; box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.sum-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sum-top > div { min-width: 0; flex: 1; }
.sum-name { margin: 0 0 6px; font-weight: 600; font-size: .95rem; line-height: 1.3; color: #f2f3f5; }
.sum-lines { list-style: none; margin: 0; padding: 0; color: #a9afb7; font-size: .78rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; }
.sum-price { margin: 0; color: #f2f3f5; font: 600 1.7rem/1.1 var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-price.tbd { font-size: 1.05rem; padding-top: 3px; color: #cfd2d6; }
.reserve-btn { width: 100%; font-family: inherit; }
.reserve-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(1); box-shadow: none; transform: none; }
.sum-fine a { color: inherit; text-decoration: underline; }
.build-cta .signup-msg { margin: 8px 0 0; }
.build-cta .signup-msg:empty { display: none; }
.sum-fine { margin: 10px 0 0; font-size: .74rem; line-height: 1.5; color: var(--muted); }
.from { margin-top: 12px; font-weight: 500; color: var(--text); }
.compare { margin: 40px auto 0; max-width: 820px; border-top: 1px solid var(--line); padding-top: 16px; }
.compare summary { cursor: pointer; font-weight: 600; text-align: center; color: var(--text); }
.compare-scroll { overflow-x: auto; margin-top: 14px; }
.compare table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare th, .compare td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.compare th { font: 500 .76rem var(--mono); color: var(--muted); padding-top: 16px; }
@media (max-width: 960px) {
  .build { grid-template-columns: minmax(0, 1fr); }
  .build-left { display: contents; }
  .build-stage { position: sticky; top: 67px; z-index: 5; order: 1; margin: 0 -4px; background: var(--bg); padding-bottom: 10px; }
  .build-opts { order: 2; }
  .stage-links { display: none; }
  /* price and Reserve sit in the normal flow (a floating price bar covered the options and the
     page above when scrolling back up) and slide over the pinned picture, so they never overlap */
  .build-sum { order: 3; position: relative; z-index: 6; padding: 10px 14px; box-shadow: 0 -24px 0 var(--bg); }
  .build-cta { order: 4; position: relative; z-index: 6; background: var(--bg); box-shadow: 0 -24px 0 var(--bg); padding-bottom: 12px; }
  .sum-lines { display: none; }
  .sum-name { margin: 0; align-self: center; }
  .sum-top { align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .stage-img, .opt { transition: none; } }

/* Mitus Bay details, shown under the attachment slider: four numbered cards */
.bay-how { margin-top: clamp(40px, 6vw, 72px); }
.bay-how h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.bay-steps { list-style: none; counter-reset: step; padding: 0; margin: 24px auto 0; max-width: 1100px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.bay-steps li { counter-increment: step; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; color: var(--muted); font-size: .95rem; }
.bay-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono);
  font-size: .78rem; color: var(--accent); margin-bottom: 8px; }
.bay-steps b { display: block; margin-bottom: 4px; }

/* Why Mitus: three problem cards under the hero */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.why-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 0 1px 0 #fff; padding: 22px 22px 20px; display: flex; flex-direction: column; }
.why-card p { margin: 0 0 14px; font-size: .97rem; }
.why-card .why-n { font: 600 .78rem var(--mono); color: var(--accent); margin-bottom: 10px; }
.why-card a { margin-top: auto; font-weight: 600; font-size: .92rem; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* FAQ: plain details/summary list, used on the home page and /faq/ */
.faq { max-width: 820px; margin: 32px auto 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font: 600 1.05rem var(--display); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 500 1.4rem var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; }
.faq-group { font: 600 .78rem var(--mono); letter-spacing: .18em; color: var(--accent); margin: 44px 0 4px; text-transform: uppercase; }

/* Journal: article list and article pages */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.post-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: inset 0 1px 0 #fff; transition: border-color .2s, transform .2s; }
.post-card:hover { text-decoration: none; border-color: rgba(23,25,28,.35); transform: translateY(-3px); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card div { padding: 18px 20px 20px; }
.post-card h2 { font-size: 1.3rem; margin: 6px 0 8px; }
.post-card p { margin: 0; font-size: .95rem; }
.post-meta { font: 500 .78rem var(--mono); color: var(--muted); letter-spacing: .04em; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }
.article { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) clamp(16px, 5vw, 32px) 64px; }
.article h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: .2em 0 .3em; }
.article h2 { font-size: 1.45rem; margin: 2em 0 .5em; }
.article p, .article li { color: var(--text); font-size: 1.06rem; line-height: 1.7; }
.article .lead { font-size: 1.2rem; color: var(--muted); }
.article ul, .article ol { padding-left: 1.3em; display: grid; gap: .4em; }
.article li::marker { color: var(--accent); }
.article figure { margin: 28px 0; }
.article figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.article figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.crumbs { font: 500 .8rem var(--mono); color: var(--muted); }
.crumbs a { color: var(--muted); }
.article-cta { margin-top: 3em; padding: 22px 24px; background: var(--graphite); color: #f2f3f5; border-radius: var(--radius); }
.article-cta h2 { margin: 0 0 .3em; font-size: 1.3rem; }
.article-cta p { color: #a9afb7; margin: 0 0 16px; font-size: 1rem; }
.related { margin-top: 2.5em; }
.related h2 { font-size: 1.1rem; }
.related ul { list-style: none; padding: 0; }
.note-box { padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 10px 10px 0; font-size: .95rem; }
/* small labels inside articles shouldn't pick up the article body size */
/* spec list inside an article page (Lagos, Minos): one column */
.article .specs { grid-template-columns: 1fr; max-width: none; margin: 16px 0 0; }
.article .specs div { grid-template-columns: 120px 1fr; }
.article-cta .btn + .btn { margin-left: 8px; }
.article .crumbs, .article .post-meta { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.article .eyebrow { font-size: .78rem; color: var(--accent); }
.article .lead { font-size: 1.2rem; color: var(--muted); }
.article .article-cta p { color: #a9afb7; font-size: 1rem; }
.article figure img, .post-card img { width: 100%; height: auto; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.article .faq details p { color: var(--muted); }
.article .faq-group { font-size: .78rem; color: var(--accent); }
.cta-sub a { white-space: nowrap; }   /* keep "See pricing →" together */

/* ---------- layer explorer (#layout, site/layers.js) ---------- */
.lx { --lx-accent: #17191c; margin: 32px auto 8px; max-width: 1180px; outline: none; }
.lx-intro { margin-left: auto; margin-right: auto; }
.lx-models { display: flex; justify-content: center; gap: 6px; margin-bottom: 22px; }
.lx-models button, .lx-ctl button {
  font: 600 .85rem var(--sans); color: var(--muted); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: color .2s, background .2s, border-color .2s;
}
.lx-models button[aria-pressed="true"] { color: #fff; background: var(--graphite); border-color: var(--graphite); }
.lx-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(16px, 3vw, 36px); align-items: start; }
.lx-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lx-steps li { border-left: 2px solid var(--line); padding: 2px 0 2px 16px; transition: border-color .3s; }
.lx-steps li.on { border-left-color: var(--c); }
.lx-steps button {
  all: unset; cursor: pointer; display: flex; align-items: baseline; gap: 10px; width: 100%;
  font: 600 1rem var(--display); color: var(--muted); padding: 6px 0; transition: color .2s;
}
.lx-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.lx-steps li.on button, .lx-steps button:hover { color: var(--text); }
.lx-steps b { font-weight: 600; color: inherit; }
.lx-n { font: 500 .72rem var(--mono); color: var(--muted); }
.lx-steps li.on .lx-n { color: var(--c); }
.lx-steps p { margin: 0; max-height: 0; opacity: 0; overflow: hidden; font-size: .94rem; transition: max-height .45s ease, opacity .35s ease, margin .3s; }
.lx-steps li.on p { max-height: 9em; opacity: 1; margin: 0 0 8px; }

.lx-stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 2.4vw, 26px); position: relative; overflow: hidden; }
.lx-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.lx-chip { font: 600 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: var(--lx-accent); padding: 5px 11px; border-radius: 999px; transition: background .35s; }
.lx-ctl { display: flex; gap: 6px; }
.lx-ctl button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; font-size: 1rem; color: var(--text); }
.lx-ctl button:hover { border-color: rgba(23,25,28,.3); }
[data-lx="play"] i { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
[data-lx="play"][data-on="0"] i { width: 0; height: 0; border: 6px solid transparent; border-left: 10px solid currentColor; border-right: 0; margin-left: 4px; }
.lx-svg { display: block; width: 100%; height: auto; overflow: visible; }
.lx-bar { height: 2px; background: var(--line); margin-top: 12px; border-radius: 2px; overflow: hidden; }
.lx-bar i { display: block; height: 100%; width: 0; background: var(--lx-accent); }

.lx-case { fill: #f4f4f3; stroke: rgba(23,25,28,.22); stroke-width: .5; }
.lx-bay polygon { fill: rgba(200,22,45,.06); stroke: rgba(200,22,45,.5); stroke-width: .5; stroke-dasharray: 2 1.5; transition: fill .4s; }
.lx-bay.on polygon { fill: rgba(176,138,18,.22); stroke: #b08a12; animation: lx-pulse 1.2s ease-in-out infinite; }
.lx-cap { transition: transform .25s ease; transform-box: fill-box; transform-origin: center; }
.lx-cap rect { fill: #fff; stroke: rgba(23,25,28,.38); stroke-width: .45; transition: fill .35s, stroke .35s; }
.lx-main { fill: #1d2329; font-weight: 600; transition: fill .3s, opacity .3s; }
.lx-sub { fill: var(--lx-accent); font-size: 2.6px; font-weight: 600; letter-spacing: .02em; }
.lx-key[data-state="lit"] rect { fill: color-mix(in srgb, var(--lx-accent) 11%, #fff); stroke: color-mix(in srgb, var(--lx-accent) 65%, #fff); }
.lx-key[data-state="dim"] .lx-main { opacity: .28; }
.lx-key[data-state="dim"] rect { stroke-opacity: .5; }
.lx-key[data-state="held"] rect { fill: var(--lx-accent); stroke: var(--lx-accent); }
.lx-key[data-state="held"] .lx-main, .lx-key[data-state="held"] .lx-sub { fill: #fff; }
.lx-key[data-state="held"] .lx-cap { transform: scale(.9); }
.lx-key.flip .lx-main, .lx-key.flip .lx-sub { animation: lx-flip .32s ease both; animation-delay: var(--d); }
@keyframes lx-flip { 0% { opacity: 1; transform: translateY(0); } 45% { opacity: 0; transform: translateY(-2px); }
  55% { opacity: 0; transform: translateY(2px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes lx-pulse { 50% { fill: rgba(176,138,18,.08); } }
.lx-key .lx-main, .lx-key .lx-sub { transform-box: fill-box; }
.lx-key[data-state="dim"].flip .lx-main { animation-name: lx-flip-dim; }
@keyframes lx-flip-dim { 0% { opacity: .28; } 45%, 55% { opacity: 0; } 100% { opacity: .28; } }

@media (max-width: 860px) {
  .lx-grid { grid-template-columns: 1fr; }
  .lx-stage { order: -1; position: sticky; top: 64px; z-index: 2; }
  .lx-steps li:not(.on) p { display: none; }
}
/* the halves stack on phones (layers.js), which makes the board too tall to stay pinned */
@media (max-width: 640px) {
  .lx-stage { position: relative; top: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-key.flip .lx-main, .lx-key.flip .lx-sub, .lx-bay.on polygon { animation: none; }
  .lx-cap, .lx-steps p { transition: none; }
}

/* ---------- firmware flasher (/flash/, tools/flasher.js) ---------- */
.fl h2 { display: flex; align-items: center; gap: 10px; }
.fl-n { font: 600 .8rem var(--mono); color: #fff; background: var(--accent); width: 24px; height: 24px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none; }
.fl-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.fl-row button { font: 600 .92rem var(--sans); color: var(--muted); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.fl-row button[aria-pressed="true"] { color: #fff; background: var(--graphite); border-color: var(--graphite); }
.fl-row button:focus-visible, .fl-install:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fl-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fl-go .btn { font-family: var(--sans); font-size: 1rem; }
.fl-install:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.fl-download[aria-disabled] { opacity: .45; pointer-events: none; }
.fl-status { font-weight: 600; min-height: 1.6em; }
.fl-status[data-kind="bad"] { color: var(--accent); }
.fl-status[data-kind="good"] { color: #0f7f3d; }
.fl-help { font-size: .95rem !important; color: var(--muted) !important; }
.fl.no-write .fl-install, .fl.no-write .fl-help-write, .fl:not(.no-write) .fl-help-nowrite { display: none; }
.fl[data-conn="wired"] .fl-only-wireless, .fl[data-conn="wireless"] .fl-only-wired { display: none; }
.fl[data-model="minos"] .fl-only-lagos, .fl[data-model="lagos"] .fl-only-minos { display: none; }
.fl[data-half="left"] .fl-only-right, .fl[data-half="right"] .fl-only-left { display: none; }
/* the reset-button step is for every wireless half without the Bluetooth button */
.fl[data-model="minos"][data-half="left"] .fl-only-other { display: none; }
