/* binarius.ai — landing page
   White paper and emerald. Pictures are drawn by js/bits.js out of 0 and 1;
   this file only lays out text and gives each picture its box. */

@font-face {
  font-family: "Ubuntu Sans";
  src: url("../fonts/UbuntuSans-var.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu Sans Mono";
  src: url("../fonts/UbuntuSansMono-var.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --ink: #062A20;
  --emerald: #059669;
  --emerald-deep: #047857;
  --mint: #34D399;
  --pale: #E6F2EC;
  --deep: #062A20;
  --muted: #3D5C51;
  --dim: #557166;
  --line: rgba(6, 42, 32, .12);
  --line-2: rgba(6, 42, 32, .24);
  --on-deep: #F3FBF7;
  --on-deep-muted: rgba(230, 242, 236, .74);
  --on-deep-line: rgba(230, 242, 236, .16);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 6vw, 86px);
  --sans: "Ubuntu Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Ubuntu Sans Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
i, em { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(52, 211, 153, .38); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); }

/* ---------- pictures ---------- */
.bit { position: relative; display: block; }
.bit canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* No scripts, or nothing could be drawn: a picture is a quiet block of digits. */
.bit::before {
  content: "0110100110010110100101100110100110010110011010010110100110010110011010011001011010010110011010010110100110010110100101100110100101101001100101100110100110010110011010010110100110010110100101100110100110010110011010010110100110010110";
  position: absolute; inset: 0; overflow: hidden;
  font: 700 10px/1.12 var(--mono); letter-spacing: .14em; word-break: break-all;
  color: var(--emerald); opacity: .32;
}
.bit[data-theme="dark"]::before { color: var(--mint); opacity: .4; }
.js .bit::before { content: none; }
.js.bits-none .bit:not(.is-live)::before { content: "0110100110010110100101100110100110010110011010010110100110010110011010011001011010010110011010010110100110010110100101100110100101101001100101100110100110010110011010010110100110010110100101100110100110010110011010010110100110010110"; }
.bit[data-bit="context"] { min-height: 76px; }
.rule { height: 12px; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.24px; font-weight: 500; line-height: 1.2;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.idx { display: inline-flex; letter-spacing: .04em; font-weight: 700; color: rgba(6, 42, 32, .3); }
.idx .on { color: var(--emerald); }

.h1 {
  font-size: clamp(2.35rem, 4.5vw, 4rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -.034em;
  text-wrap: balance;
}
.h1 span { display: block; }
.h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  font-weight: 320; line-height: 1.06; letter-spacing: -.026em;
  text-wrap: balance;
}
.h3 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); font-weight: 340; line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; }
.lede { font-size: 16.5px; line-height: 1.62; color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.link { color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .18s, color .18s; }
.link:hover { border-color: var(--emerald); color: var(--emerald-deep); }
.ext { white-space: nowrap; }
.ext::after { content: "\2197\FE0E"; display: inline-block; margin-left: .32em; font-size: .86em; line-height: 1; opacity: .7; }
.tag {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: none; padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.tag--pro { border-color: var(--emerald); color: var(--emerald-deep); background: rgba(5, 150, 105, .08); }
.status {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--mono); font-size: 11.4px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.status::before { content: "0"; font-size: 10.5px; letter-spacing: 0; width: 16px; height: 16px; border-radius: 4px; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, transform .16s ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--emerald-deep); }
.btn--line { border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { min-height: 38px; padding: 9px 16px; font-size: 12px; }
.btn--lg { min-height: 52px; padding: 16px 28px; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);          /* solid: what scrolls under it must not show through */
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.mark { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--deep); overflow: hidden; }
.brand-text { display: grid; gap: 3px; line-height: 1; min-width: 0; }
.wm { font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.wm b { font-weight: 700; }
.wm i { color: var(--emerald-deep); font-weight: 500; }
.by { font-family: var(--mono); font-size: 9.6px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a { font-size: 12.4px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 0; transition: color .16s; }
.nav a:hover { color: var(--ink); }
.byte { width: 62px; height: 12px; flex: none; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; flex: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 50%; width: 16px; height: 1.5px; background: var(--ink); transform: translateX(-50%); content: ""; }
.menu-btn span { top: 50%; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 5vw, 68px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 13.2px; color: var(--muted); transition: border-color .16s;
}
.pill:hover { border-color: var(--emerald); }
.pill b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; background: var(--pale); color: var(--emerald-deep); padding: 4px 9px; border-radius: 999px; }
.chev { width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.credit { font-size: 13.4px; color: var(--dim); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.credit a { color: var(--ink); border-bottom: 1px solid var(--line-2); }

.stage { background: var(--deep); border-radius: 28px; overflow: hidden; color: var(--on-deep); display: grid; grid-template-rows: 1fr auto; }
.stage-art { aspect-ratio: 1 / .94; width: 100%; touch-action: pan-y; }
.stage figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  padding: 14px 22px 16px; border-top: 1px solid var(--on-deep-line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-muted);
}
.stage figcaption b { color: var(--on-deep); font-weight: 600; letter-spacing: .06em; text-transform: none; font-size: 12.5px; margin-right: 4px; }
.stage .hint { color: var(--mint); }

.hero .rule { margin-top: clamp(36px, 5vw, 64px); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 26px 0 clamp(36px, 5vw, 60px); }
.facts li { display: grid; gap: 4px; padding: 4px 22px; border-left: 1px solid var(--line); align-content: start; }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts b { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 340; letter-spacing: -.02em; line-height: 1.15; }
.facts span { font-size: 13.4px; color: var(--muted); line-height: 1.45; }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 8vw, 112px) 0; }
.sec-head { display: grid; gap: 18px; max-width: 880px; margin-bottom: clamp(28px, 4vw, 44px); }
.panel { background: var(--pale); border-radius: 24px; }

/* ---------- editions ---------- */
.ed-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--pale); }
.switch .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--ink); transition: transform .32s var(--ease); }
.switch[data-on="1"] .thumb { transform: translateX(100%); }
.switch button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 8px 18px; font-size: 12.4px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.switch button[aria-pressed="true"] { color: var(--paper); }
.bitchip { font-family: var(--mono); font-size: 11px; letter-spacing: 0; width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1px currentColor; opacity: .8; }
.switch button[aria-pressed="true"] .bitchip { color: var(--mint); opacity: 1; }
.ed-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.6px; color: var(--muted); }

.editions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ed { background: var(--deep); color: var(--on-deep); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.ed-art { aspect-ratio: 1.72 / 1; width: 100%; border-bottom: 1px solid var(--on-deep-line); }
.ed-body { display: grid; gap: 10px; padding: 22px 24px 24px; align-content: start; justify-items: start; }
.ed .eyebrow { color: var(--on-deep-muted); }
.ed .tag { border-color: var(--on-deep-line); color: var(--on-deep-muted); }
.ed .tag--pro { border-color: var(--mint); color: var(--mint); background: rgba(52, 211, 153, .1); }
.ed-desc { color: var(--on-deep-muted); font-size: 14.6px; }
.pack { font-size: 12.6px; letter-spacing: .02em; color: var(--mint); min-height: 1.6em; }
.ed .status { color: var(--on-deep-muted); margin-top: 4px; }
.ed .status::before { box-shadow: inset 0 0 0 1px rgba(230, 242, 236, .4); color: var(--on-deep-muted); }

.after-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 24px; font-size: 14.4px; color: var(--muted); }
.note { margin-top: 28px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 8px; max-width: 760px; font-size: 14.4px; color: var(--muted); }

/* ---------- measured ---------- */
.measured-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 20px; }
.rig { font-family: var(--mono); font-size: 12.4px; letter-spacing: .06em; color: var(--dim); }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { position: relative; text-align: left; padding: 10px 0 16px; font-size: clamp(1.4rem, 2.5vw, 2.1rem); font-weight: 320; letter-spacing: -.024em; line-height: 1.1; color: rgba(6, 42, 32, .42); transition: color .2s; }
.tab:hover { color: var(--muted); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--emerald); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.tab[aria-selected="true"] .bar { transform: scaleX(1); }
.tabpanel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 52px); }
.js .tabpanel[hidden] { display: none; }
/* without scripts the three panels are simply stacked */
html:not(.js) .tabs { display: none; }
html:not(.js) .tabpanel + .tabpanel { margin-top: 18px; }
.tp-copy { display: grid; gap: 24px; }
.points { display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.ico { font-family: var(--mono); font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; background: var(--ink); color: var(--mint); margin-top: 2px; }
.ico.zero { background: transparent; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line-2); }
.points b { display: block; font-size: 15px; font-weight: 600; }
.points div span { font-size: 14.2px; color: var(--muted); }
.viz { display: grid; gap: 18px; min-width: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.row b { color: var(--ink); font-weight: 600; }
.row small { font-size: 1em; color: var(--dim); font-weight: 500; }
.session { min-width: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 11.4px; letter-spacing: .06em; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { font-weight: 700; color: var(--emerald); }
.legend i.k { color: var(--ink); }

.speed { gap: 26px; }
.speed-num { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.numeral { width: min(100%, 430px); aspect-ratio: 2.5 / 1; flex: 1 1 260px; }
.unit { display: grid; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
.unit b { font-family: var(--sans); font-size: 1.5rem; font-weight: 340; letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.pending { display: grid; border-top: 1px solid var(--line-2); }
.pending li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.4px; }
.pending .who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pending .val { font-size: 15px; font-weight: 600; color: var(--emerald-deep); }

.deltas { gap: 20px; }
.scale-cap { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.4px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.track { height: 22px; }
.axis { position: relative; height: 18px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.axis span { position: absolute; top: 0; white-space: nowrap; }
.axis span:last-child { transform: translateX(-12px); }

/* ---------- open core ---------- */
.oc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.oc-head { display: grid; gap: 18px; align-content: start; padding-right: clamp(0px, 2vw, 28px); }
.oc-head .h2 span { display: block; }
.card { border-radius: 22px; overflow: hidden; background: var(--white); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.card-art { aspect-ratio: 1.9 / 1; width: 100%; background: var(--pale); }
.card-body { display: grid; gap: 10px; padding: 22px 24px 24px; align-content: start; justify-items: start; }
.card-body h3 { font-size: 1.4rem; font-weight: 360; letter-spacing: -.02em; }
.card-body p { font-size: 14.6px; color: var(--muted); }
.card .go a { color: var(--ink); font-size: 12.6px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.card--pro { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.card--pro .card-art { background: transparent; border-bottom: 1px solid var(--on-deep-line); }
.card--pro .card-body p { color: var(--on-deep-muted); }
.card--pro .tag { border-color: var(--mint); color: var(--mint); }
.card--pro .go a { color: var(--on-deep); border-color: rgba(230, 242, 236, .4); }
.built { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14.4px; color: var(--muted); }
.built strong { color: var(--ink); font-weight: 600; }

/* ---------- newsletter ---------- */
.cta { position: relative; overflow: hidden; }
.cta-art { position: absolute; inset: 0; }
.cta-body { position: relative; display: grid; gap: 18px; justify-items: center; text-align: center; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px); }
.cta-body small { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--dim); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep); margin-top: clamp(24px, 4vw, 48px); }
.foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(28px, 4vw, 44px); }
.foot-brand { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); min-width: 0; }
.foot-robot { width: clamp(180px, 22vw, 300px); aspect-ratio: 1 / .98; flex: none; touch-action: pan-y; }
.foot-name { display: grid; gap: 10px; min-width: 0; }
.site-footer .wm { font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 300; letter-spacing: -.035em; }
.site-footer .wm b { font-weight: 500; }
.site-footer .wm i { color: var(--mint); font-weight: 300; }
.site-footer .by { color: var(--on-deep-muted); font-size: clamp(10.5px, 1vw, 12.5px); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.foot-cols h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-muted); margin-bottom: 12px; }
.foot-cols ul { display: grid; gap: 8px; }
.foot-cols a { font-size: 14.6px; color: var(--on-deep); transition: color .16s; }
.foot-cols a:hover { color: var(--mint); }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; padding-bottom: 26px; font-size: 12.6px; color: var(--on-deep-muted); }
.legal a { color: var(--on-deep); border-bottom: 1px solid var(--on-deep-line); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .oc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-head { grid-column: 1 / -1; max-width: 720px; }
  .byte { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-art { aspect-ratio: 1 / .9; }
  .editions { grid-template-columns: minmax(0, 1fr); }
  .ed-art { aspect-ratio: 2.1 / 1; }
  .tabpanel { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px var(--pad) 14px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13.4px; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .site-header .wrap { gap: 10px; min-height: 64px; }
  .mark { width: 40px; height: 40px; border-radius: 11px; }
  .wm { font-size: 17px; }
  .oc { grid-template-columns: minmax(0, 1fr); }
  .stage { border-radius: 22px; }
  .stage-art { aspect-ratio: 1 / 1; }
  .stage figcaption { padding: 12px 16px 14px; font-size: 10px; }
  .tabs { margin-bottom: 16px; }
  .tabpanel { padding: 22px 18px; }
  .foot-brand { flex-direction: column; align-items: flex-start; }
  .foot-robot { width: min(58vw, 230px); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-bar { flex-direction: column; align-items: stretch; }
  .switch { width: 100%; }
  .switch button { padding-inline: 8px; }
  .axis span:last-child { transform: translateX(-100%); margin-left: 16.667%; }
}
@media (max-width: 380px) {
  .site-header .wrap { gap: 8px; }
  .brand { gap: 9px; }
  .mark { width: 34px; height: 34px; border-radius: 9px; }
  .wm { font-size: 15.5px; }
  .menu-btn { width: 38px; height: 38px; }
  .btn--sm { padding: 9px 10px; letter-spacing: .06em; font-size: 11px; }
  .by { letter-spacing: .08em; font-size: 8.4px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .switch .thumb, .tab .bar { transition: none; }
}
