/* ---------------------------------------------------------------------------
   nus.dev — Broadsheet
   Ink on paper, one monospace face, rules instead of boxes, and one colour on
   screen: the signal. Tokens mirror docs/DESIGN.md; change them there first.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/IBMPlexMono-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/Newsreader-Italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}

/* --- tokens: paper (light) ------------------------------------------------ */

:root {
  --paper:     #ffffff;
  --ink:       #141414;
  --tint:      rgba(20, 20, 20, 0.06);
  --hot:       rgba(20, 20, 20, 0.12);
  --dim:       #68645c;
  --rule:      var(--hot);
  --muted:     var(--dim);
  --page:      #ffffff;
  --scrim:     rgba(255, 255, 255, 0.55);

  /* the Space's signal — the one colour on screen. Swappable at runtime. */
  --signal:    #c8102e;
  --on-signal: #ffffff;

  /* terminal palette, paper theme (ANSI 0-15, first eight) */
  --ansi-red:    #b3261e;
  --ansi-green:  #2e7d32;
  --ansi-yellow: #9a6b00;
  --ansi-blue:   #1f5fbf;
  --ansi-teal:   #1a7f8a;

  /* rules */
  /* The app's metric table, verbatim: crates/render/src/theme.rs, mod metric. */
  --hair:      1px;      /* HAIRLINE  */
  --struct:    1.5px;    /* STRUCTURE */
  --float:     2px;      /* FLOATING  */
  --band:      6px;      /* BAND      */
  --strip:     30px;     /* TOP_STRIP */
  --side-w:    248px;    /* SIDEBAR   */
  --row-h:     32px;     /* ROW_H     */
  --foot-h:    44px;     /* FOOT_H    */
  --split-w:   520px;    /* SPLIT     */
  --palette-w: 600px;    /* PALETTE   */
  --preview-h: 52px;     /* PREVIEW_H */
  --hard:      8px;      /* SHADOW    */

  --mono:  'Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  --measure: 66ch;
  --gutter:  clamp(18px, 5vw, 56px);
  --shell:   1180px;
  --mast:    46px;   /* masthead height; grows when the nav wraps */

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 90ms;
  --t-base: 160ms;
  --t-slow: 220ms;

  color-scheme: light;
}

/* --- tokens: ink (dark) --------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='paper']) {
    --paper:  #141414;
    --ink:    #ece7da;
    --tint:   rgba(236, 231, 218, 0.07);
    --hot:    rgba(236, 231, 218, 0.14);
    --dim:    #8a857a;
    --scrim:  rgba(0, 0, 0, 0.5);

    --ansi-red:    #e0574c;
    --ansi-green:  #7ac77f;
    --ansi-yellow: #e5b94a;
    --ansi-blue:   #6ea3ef;
    --ansi-teal:   #6fd0da;

    color-scheme: dark;
  }
}

:root[data-theme='ink'] {
  --paper:  #141414;
  --ink:    #ece7da;
  --tint:   rgba(236, 231, 218, 0.07);
  --hot:    rgba(236, 231, 218, 0.14);
  --dim:    #8a857a;
  --scrim:  rgba(0, 0, 0, 0.5);

  --ansi-red:    #e0574c;
  --ansi-green:  #7ac77f;
  --ansi-yellow: #e5b94a;
  --ansi-blue:   #6ea3ef;
  --ansi-teal:   #6fd0da;

  color-scheme: dark;
}

/* --- base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  font-variant-ligatures: contextual;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
[hidden] { display: none !important; }

::selection { background: var(--ink); color: var(--paper); }

/* --- type ----------------------------------------------------------------- */

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.cap {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(30px, 6vw, 46px); }
h2 { font-size: clamp(22px, 3.4vw, 28px); }
h3 { font-size: 17px; }
h4 { font-size: 15px; }

p { margin: 0 0 1em; max-width: var(--measure); }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--hot);
  transition: text-decoration-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
a:hover { text-decoration-color: var(--signal); color: var(--signal); }
a:focus-visible {
  outline: var(--float) solid var(--signal);
  outline-offset: 2px;
  text-decoration: none;
}

strong { font-weight: 600; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--tint);
  padding: 0.1em 0.35em;
}

pre {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  border: var(--hair) solid var(--ink);
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--tint);
  margin: 0 0 1.4em;
}
pre code { background: none; padding: 0; font-size: inherit; }

hr {
  border: 0;
  border-top: var(--struct) solid var(--ink);
  margin: 2.4em 0;
}

blockquote {
  margin: 0 0 1.4em;
  padding-left: 16px;
  border-left: var(--float) solid var(--signal);
  color: var(--dim);
}

/* --- shell ---------------------------------------------------------------- */

.band {
  height: var(--band);
  background: var(--signal);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background var(--t-base) var(--ease);
}

.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --- masthead (the app's 30px top strip, at web scale) -------------------- */

.masthead {
  position: sticky;
  top: var(--band);
  z-index: 39;
  background: var(--paper);
  border-bottom: var(--struct) solid var(--ink);
}

.masthead__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--mast);
  /* Chrome hugs the window, so the header keeps its own tight gutter rather
     than lining up with the content measure. */
  padding-inline: clamp(10px, 1.4vw, 18px);
}

.mark {
  display: flex;
  align-items: center;
  flex: none;
  padding: 4px;
  border: var(--hair) solid transparent;
  line-height: 0;
}
.mark img { display: block; width: 26px; height: 26px; }
.mark:hover { border-color: var(--ink); }
.mark:focus-visible { outline: var(--float) solid var(--signal); outline-offset: 1px; }

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.wordmark:hover { color: inherit; }
.wordmark__sub {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
}

/* Icons in the chrome; the name is for screen readers and for narrow widths,
   where the nav has a row of its own and the room to spell itself out. */
.nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  padding: 7px 9px;
  border: var(--hair) solid transparent;
  color: inherit;
  line-height: 0;
}
.nav a svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.nav a:hover { border-color: var(--ink); color: inherit; }
.nav a[aria-current='page'] { background: var(--ink); color: var(--paper); }
.nav a:focus-visible { outline: var(--float) solid var(--signal); outline-offset: 1px; }

.nav__name {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Narrow: the nav drops to its own ruled row and the icons get their names
   back, rather than the whole strip squeezing past the viewport. */
@media (max-width: 760px) {
  :root { --mast: 84px; }
  .masthead__in { flex-wrap: wrap; height: auto; gap: 0; }
  .mark { margin-block: 6px; }
  .controls { margin-inline-start: auto; padding-block: 9px; }
  .nav {
    order: 3;
    flex: 0 0 100%;
    min-width: 0;
    margin-inline-start: 0;
    border-top: var(--hair) solid var(--ink);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 9px 10px; }
  .nav a:first-child { padding-left: 0; }
  .nav__name {
    position: static;
    width: auto; height: auto;
    clip-path: none;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1;
  }
}

/* controls cluster: theme + signal, mirroring the app's status cluster */
.controls { display: flex; align-items: center; gap: 8px; }

.iconbtn {
  appearance: none;
  background: none;
  border: var(--hair) solid transparent;
  color: inherit;
  font: inherit;
  padding: 5px 7px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 0;
}
.iconbtn:hover { border-color: var(--ink); }
.iconbtn:focus-visible { outline: var(--float) solid var(--signal); outline-offset: 1px; }
.iconbtn svg { width: 15px; height: 15px; fill: currentColor; }

.signalpick { display: flex; gap: 0; border: var(--hair) solid var(--ink); }
.signalpick button {
  appearance: none;
  border: 0;
  width: 15px;
  height: 15px;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform var(--t-fast) var(--ease);
}
.signalpick button:hover { transform: scale(1.25); z-index: 1; }
.signalpick button[aria-pressed='true']::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: var(--float) solid var(--paper);
}
.signalpick button:focus-visible { outline: var(--float) solid var(--ink); outline-offset: 1px; z-index: 2; }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 18px;
  border: var(--float) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  cursor: pointer;
  font-family: var(--mono);
}
.btn:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: var(--float) solid var(--signal); outline-offset: 3px; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }

.btn--fill { background: var(--ink); color: var(--paper); }
.btn--fill:hover { color: var(--paper); }

.btn--signal {
  background: var(--signal);
  color: var(--on-signal);
  border-color: var(--signal);
  text-transform: none;
  letter-spacing: 0;
}
.btn--signal:hover { color: var(--on-signal); }
.source-cta {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:11px 6px;
  font-size:12px;
  color:var(--ink);
  text-decoration:underline;
  text-underline-offset:5px;
}
.source-cta:hover { color:var(--signal); }

.btn--quiet { box-shadow: none; border-width: var(--hair); }
.btn--quiet:hover { box-shadow: 3px 3px 0 var(--ink); }

/* --- chips, labels, keys -------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 3px 9px;
  border: var(--hair) solid var(--ink);
  white-space: nowrap;
}
.chip--signal { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.chip--dim { color: var(--dim); border-color: var(--hot); }

kbd, .kbd {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border: var(--hair) solid var(--ink);
  background: var(--paper);
  white-space: nowrap;
}

.lamp {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--signal);
  flex: none;
}
.lamp--hollow { background: none; box-shadow: inset 0 0 0 2px var(--dim); }

/* --- sections ------------------------------------------------------------- */

.section { border-bottom: var(--struct) solid var(--ink); }
.section__in { max-width: var(--shell); margin: 0 auto; padding: clamp(40px, 7vw, 76px) var(--gutter); }
.section--tight .section__in { padding-block: clamp(28px, 4vw, 44px); }

.sectionhead {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
  border-bottom: var(--hair) solid var(--ink);
  padding-bottom: 9px;
}
.sectionhead h2 { flex: 1; }
.sectionhead .cap { color: var(--dim); }

.lede {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55;
  max-width: 60ch;
}

.dim { color: var(--dim); }

/* --- ledger: the ruled key/value rows the app uses everywhere -------------- */

.ledger { border-top: var(--hair) solid var(--ink); }
.ledger__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px 24px;
  padding: 14px 0;
  border-bottom: var(--hair) solid var(--ink);
  align-items: start;
}
.ledger__row > .cap { color: var(--dim); padding-top: 3px; }
.ledger__row p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .ledger__row { grid-template-columns: 1fr; gap: 6px; }
}

/* --- cards: neobrutal tiles, 2px edge + hard offset shadow ---------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Four cards sit 2×2 rather than 3 + an orphan. */
.grid--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .grid--quad { grid-template-columns: 1fr; } }

.card {
  border: var(--float) solid var(--ink);
  background: var(--paper);
  padding: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; max-width: none; }
.card svg { width: 17px; height: 17px; fill: var(--signal); flex: none; }

a.card { text-decoration: none; }
a.card:hover { color: inherit; }
a.card .card__more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--signal);
}

/* --- swatches ------------------------------------------------------------- */

.swatches { display: flex; flex-wrap: wrap; gap: 0; border: var(--hair) solid var(--ink); }
.swatch { flex: 1 1 96px; border-right: var(--hair) solid var(--ink); }
.swatch:last-child { border-right: 0; }
.swatch__chip { height: 56px; }
.swatch__name { padding: 7px 9px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; border-top: var(--hair) solid var(--ink); }
.swatch__hex { color: var(--dim); }

/* --- tables --------------------------------------------------------------- */

.tablewrap { overflow-x: auto; margin: 0 0 1.6em; border: var(--hair) solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 13px; border-bottom: var(--hair) solid var(--hot); vertical-align: top; }
th {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  border-bottom: var(--struct) solid var(--ink);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--tint); }
td code { background: none; padding: 0; }

/* --- lists ---------------------------------------------------------------- */

ul, ol { max-width: var(--measure); padding-left: 1.15em; margin: 0 0 1.3em; }
li { margin-bottom: 0.4em; }
li::marker { color: var(--signal); }

.bare { list-style: none; padding: 0; }
.bare li::marker { content: none; }

/* --- the window: a live reproduction of the app chrome -------------------- */

.win {
  border: var(--float) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.55;
  container-type: inline-size;
}

.win__band { height: var(--band); background: var(--signal); flex: none; transition: background var(--t-base) var(--ease); }

.win__strip {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--strip);
  padding: 0 14px;
  border-bottom: var(--struct) solid var(--ink);
  flex: none;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.win__strip .serif { font-size: 17px; }
.win__crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* When a browser pane has focus the crumb becomes the address field. */
.win__crumbfield {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  max-width: 340px;
  border: var(--hair) solid var(--ink);
  padding: 2px 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
}
.win__favi {
  width: 12px; height: 12px;
  display: grid; place-items: center;
  background: var(--signal);
  color: var(--on-signal);
  font-size: 8px;
  font-weight: 600;
  flex: none;
}

/* The status lamp: signal while loading, ink when live, hazard when local. */
.win__lamp { width: 7px; height: 7px; flex: none; background: var(--ink); }
.win__lamp--local {
  background: repeating-linear-gradient(-45deg, var(--signal) 0 2px, var(--ink) 2px 4px);
}

.win__dev {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-top: var(--hair) solid var(--ink);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: none;
}
.win__dev .grow { flex: 1; }
.win__spacer { flex: 1; }
.win__ctl { display: flex; gap: 12px; font-size: 12px; letter-spacing: 0; color: var(--dim); }

.win__body { display: flex; flex: 1; min-height: 0; }

.win__side {
  width: var(--side-w);
  flex: none;
  border-right: var(--struct) solid var(--ink);
  display: flex;
  flex-direction: column;
}

.win__spaces { display: flex; border-bottom: var(--struct) solid var(--ink); }
.win__space {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-right: var(--hair) solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.win__space:last-child { border-right: 0; }
.win__space--on { background: var(--ink); color: var(--paper); }
.win__space i { width: 8px; height: 8px; flex: none; }

/* Sidebar rows: ROW_H = 32, favicon or kind glyph, children under a rule. */
.win__row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--row-h);
  padding: 0 10px 0 calc(10px + var(--depth, 0) * 14px);
  border-bottom: var(--hair) solid var(--hot);
  font-size: 11px;
  position: relative;
}
.win__row--on { background: var(--tint); font-weight: 600; }
.win__row--on::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--signal);
}
.win__row--off { opacity: 0.6; }
.win__row[style*='--depth'] { border-left: var(--hair) solid var(--hot); }

.win__n { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 14px; color: var(--dim); }
.win__row--on .win__n { color: inherit; }
.win__title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__note {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  flex: none;
}

.win__ico { display: inline-flex; line-height: 0; flex: none; }
.win__ico svg { width: 13px; height: 13px; fill: currentColor; }
.win__ico.dim { opacity: 0.4; }

.win__wait {
  background: var(--signal);
  color: var(--on-signal);
  padding: 1px 5px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: none;
}

/* A live folder under the tabs: GITHUB, PORTS, or one from rules.luau. */
.win__folder {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-top: var(--struct) solid var(--ink);
  border-bottom: var(--hair) solid var(--hot);
  background: var(--tint);
}
.win__foldern {
  flex: 1;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.win__fill { flex: 1; }

.win__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--foot-h);
  padding: 0 12px;
  border-top: var(--struct) solid var(--ink);
  flex: none;
}
.win__foot .win__ico svg { width: 14px; height: 14px; }
.win__sidefoot .grow { flex: 1; }

.win__panes { display: flex; flex: 1; min-width: 0; }

.win__pane { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.win__pane + .win__pane { border-left: var(--struct) solid var(--ink); flex: 0 0 300px; }

.win__panehead {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 14px;
  border-bottom: var(--hair) solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: none;
}
.win__panehead .grow { flex: 1; }
.win__panehead .dim { color: var(--dim); }

/* The terminal pane: a canvas the real VT core paints into. */
.win__term {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.win__term canvas { display: block; width: 100%; height: 100%; }

.win__termfall {
  padding: 16px 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}

/* Transport. Present only once the replay is live. */
.win__transport {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-top: var(--hair) solid var(--ink);
  flex: none;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.win[data-ready='true'] .win__transport { opacity: 1; }

.win__tbtn {
  appearance: none;
  background: none;
  border: var(--hair) solid var(--ink);
  color: inherit;
  font: inherit;
  font-size: 9px;
  line-height: 1;
  padding: 4px 7px;
  cursor: pointer;
  flex: none;
}
.win__tbtn:hover { background: var(--ink); color: var(--paper); }
.win__tbtn:focus-visible { outline: var(--float) solid var(--signal); outline-offset: 1px; }

.win__scrub {
  appearance: none;
  flex: 1;
  height: 12px;
  background: none;
  cursor: pointer;
  margin: 0;
  min-width: 0;
}
.win__scrub::-webkit-slider-runnable-track { height: var(--hair); background: var(--ink); }
.win__scrub::-moz-range-track { height: var(--hair); background: var(--ink); }
.win__scrub::-webkit-slider-thumb {
  appearance: none;
  width: 3px; height: 12px;
  background: var(--signal);
  border: 0; border-radius: 0;
  margin-top: -6px;
}
.win__scrub::-moz-range-thumb {
  width: 3px; height: 12px;
  background: var(--signal);
  border: 0; border-radius: 0;
}
.win__scrub:focus-visible { outline: var(--float) solid var(--signal); outline-offset: 2px; }

.win__transport .cap { font-size: 9px; flex: none; }

.win__url {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: var(--hair) solid var(--ink);
  flex: none;
  font-size: 11px;
}
.win__url .field {
  flex: 1;
  border: var(--hair) solid var(--ink);
  padding: 3px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.win__web {
  flex: 1;
  background: var(--page);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
}
.win__web i { display: block; background: #141414; }
.win__web .t { width: 62%; height: 15px; }
.win__web .l { width: 84%; height: 8px; opacity: 0.3; }
.win__web .l2 { width: 70%; height: 8px; opacity: 0.3; }
.win__web .cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 4px; }
.win__web .cells span { height: 58px; border: 1px solid #141414; }

/* the app's own width rule, applied to its portrait: no split under 900 */
@container (max-width: 900px) {
  .win__pane + .win__pane { display: none; }
  .win__side { width: 190px; }
}
/* Below this the sidebar is narrowed rather than scaled down: at miniature
   size a true-to-metric 248px column renders its rows too small to read, and
   an illegible sidebar argues for nothing. */
@container (max-width: 620px) {
  .win__side { width: 178px; }
  .win__row {
    height: 28px;
    font-size: 10px;
    gap: 6px;
    padding-left: calc(8px + var(--depth, 0) * 11px);
  }
  .win__space { padding: 5px 6px; font-size: 9px; }
  .win__note { font-size: 8px; }
  .win__folder { height: 23px; }
  .win__foot { height: 34px; }
  .win__foot .win__ico svg { width: 12px; height: 12px; }
}
@container (max-width: 400px) {
  .win__side { display: none; }
}

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

.hero__in {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 66px) var(--gutter) clamp(34px, 5vw, 56px);
}

.hero__title {
  font-size: clamp(31px, 8.2vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 17ch;
}
.hero__title em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0; }

.hero__lede { font-size: clamp(16px, 2.3vw, 20px); line-height: 1.5; max-width: 54ch; margin-bottom: 26px; }

.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  align-items: center;
}

.hero__win { margin-top: clamp(30px, 5vw, 52px); }
.hero__win .win { height: clamp(360px, 52vw, 520px); }

.hero__caption {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --- status strip --------------------------------------------------------- */

.status {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: var(--hair) solid var(--ink);
}
.status > div {
  flex: 1 1 190px;
  padding: 14px 16px;
  border-right: var(--hair) solid var(--ink);
}
.status > div:last-child { border-right: 0; }
.status dt { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
.status dd { margin: 0; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .status > div { border-right: 0; border-bottom: var(--hair) solid var(--ink); flex-basis: 100%; }
  .status > div:last-child { border-bottom: 0; }
}

/* --- keys table ----------------------------------------------------------- */

.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: 0; border: var(--hair) solid var(--ink); }
.keys > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: var(--hair) solid var(--hot);
  border-right: var(--hair) solid var(--hot);
}
.keys .k { flex: none; display: flex; gap: 4px; }
.keys .v { font-size: 13px; }

/* --- docs layout ---------------------------------------------------------- */

.doc { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 0; max-width: var(--shell); margin: 0 auto; }

.doc__nav {
  padding: 30px var(--gutter) 60px;
  position: sticky;
  top: calc(var(--band) + var(--mast));
  align-self: start;
  max-height: calc(100vh - var(--band) - var(--mast));
  overflow-y: auto;
}
.doc__nav h4 { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.doc__nav ul { list-style: none; padding: 0; margin: 0 0 24px; }
.doc__nav li { margin: 0; border-bottom: var(--hair) solid var(--hot); }
.doc__nav a {
  display: block;
  padding: 7px 0;
  font-size: 12.5px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc__nav a:hover { color: var(--signal); }
.doc__nav a[aria-current='page'] { font-weight: 600; color: var(--signal); }
.doc__nav .sub a { padding-left: 12px; font-size: 12px; color: var(--dim); }

/* scrollspy: the section currently in view */
.doc__nav a[data-here] { font-weight: 600; color: var(--signal); }
.doc__nav li:has(a[data-here]) { box-shadow: inset 2px 0 0 var(--signal); }
.doc__nav li:has(a[data-here]) a { padding-left: 10px; }

/* the rule between nav and body runs the full height of the longer column */
.doc__body {
  padding: 30px var(--gutter) 90px;
  min-width: 0;
  border-left: var(--struct) solid var(--ink);
}
.doc__body > h1 { margin-bottom: 8px; }
.doc__body h2 {
  margin: 2em 0 0.7em;
  padding-bottom: 8px;
  border-bottom: var(--struct) solid var(--ink);
  scroll-margin-top: calc(var(--band) + var(--mast) + 16px);
}
.doc__body h3 { margin: 1.7em 0 0.5em; scroll-margin-top: calc(var(--band) + var(--mast) + 16px); }
.doc__body h2:first-of-type { margin-top: 1.4em; }
.doc__body p, .doc__body li { font-size: 14.5px; }

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: var(--hair) solid var(--ink);
}

.doc__source { margin-left: auto; }

.anchor {
  float: left;
  margin-left: -0.85em;
  width: 0.85em;
  color: var(--signal);
  opacity: 0;
  text-decoration: none;
  font-weight: 400;
}
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .doc__nav {
    position: static;
    max-height: none;
    border-bottom: var(--struct) solid var(--ink);
    padding-bottom: 20px;
  }
  .doc__body { border-left: 0; }
  .doc__nav ul { margin-bottom: 14px; }
  .anchor { display: none; }
}

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

.foot { border-top: var(--struct) solid var(--ink); }
.foot__in {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--gutter) 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
}
.foot h4 { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 7px; }
.foot a { font-size: 13px; text-decoration-color: var(--hot); }

.foot__end {
  border-top: var(--hair) solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.foot__end > div {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.foot__end .grow { flex: 1; }

/* --- utility -------------------------------------------------------------- */

.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 0; }

/* hazard tape — the app's mark for anything local */
.tape {
  background: repeating-linear-gradient(
    -45deg,
    var(--signal) 0 8px,
    var(--ink) 8px 16px
  );
  height: var(--band);
}

/* ---------------------------------------------------------------------------
   Specification furniture. The app documents itself in ruled rows; so do we.
   Hierarchy by weight and case, never by colour — the signal is the exception.
   --------------------------------------------------------------------------- */

/* --- status: shipped · in flight · next ----------------------------------- */

.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 2px 7px;
  white-space: nowrap;
  border: var(--hair) solid var(--ink);
}
.st--in     { background: var(--ink); color: var(--paper); }
.st--flight { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.st--next   { color: var(--dim); border-color: var(--hot); }
.st--no     { color: var(--dim); border-color: var(--hot); text-decoration: line-through; }

/* --- source links: every claim points at the code -------------------------- */

.src {
  font-size: 11px;
  color: var(--dim);
  text-decoration-color: var(--hot);
  white-space: nowrap;
}
.src::before { content: '→ '; }

/* --- spec table ------------------------------------------------------------ */

.spec th:last-child, .spec td:last-child { text-align: right; white-space: nowrap; }
.spec td:first-child { font-weight: 600; white-space: nowrap; }
.spec td { vertical-align: baseline; }
.spec .note { color: var(--dim); }

/* --- matrix: what we have that they do not, and what we lack --------------- */

.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; white-space: normal; min-width: 180px; }
.matrix tbody td:not(:first-child) { font-weight: 600; font-size: 15px; }
.matrix .y { color: var(--ink); }
.matrix .n { color: var(--dim); opacity: 0.55; }
.matrix .p { color: var(--signal); }
.matrix thead th:not(:first-child) { min-width: 74px; }
.matrix caption {
  caption-side: bottom;
  text-align: left;
  padding: 10px 13px;
  font-size: 11.5px;
  color: var(--dim);
  border-top: var(--hair) solid var(--hot);
}

/* --- figures: the numbers, big ------------------------------------------- */

.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); border: var(--hair) solid var(--ink); }
.figs > div { padding: 16px 18px; border-right: var(--hair) solid var(--ink); }
.figs > div:last-child { border-right: 0; }
.figs b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.figs b small { font-size: 13px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.figs span { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-top: 7px; }
.figs em { display: block; font-style: normal; font-size: 11.5px; color: var(--dim); margin-top: 5px; }
@media (max-width: 760px) {
  .figs > div { border-right: 0; border-bottom: var(--hair) solid var(--ink); }
  .figs > div:last-child { border-bottom: 0; }
}

/* --- a denser ledger for specification rows ------------------------------- */

.ledger--tight .ledger__row { grid-template-columns: 168px 1fr; padding: 11px 0; }
.ledger--tight .ledger__row p { font-size: 14px; }
.ledger__row .st { margin-left: 8px; vertical-align: 1px; }
@media (max-width: 760px) {
  .ledger--tight .ledger__row { grid-template-columns: 1fr; }
}

/* --- inline sequence list (escape codes, env vars) ------------------------ */

.seq { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 4px; padding: 0; list-style: none; max-width: none; }
.seq li { margin: 0; }
.seq code {
  background: none;
  border: var(--hair) solid var(--hot);
  padding: 2px 6px;
  font-size: 12px;
  display: inline-block;
}
.seq code.off { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--hot); }

/* the subject column reads as the subject */
.matrix td:nth-child(2), .matrix th:nth-child(2) { background: var(--tint); }

/* ---------------------------------------------------------------------------
   The orbit.
   Two windows — the shell half and the page half — travelling an ellipse
   around the copy between them, the way the icon's band orbits the wordmark:
   tilted −24°, passing behind at the top and in front at the belly.
   The page never stops scrolling; the scene is pinned for one extra viewport.
   --------------------------------------------------------------------------- */

.orbit {
  --orbit-tilt: -24deg;
  position: relative;
}

/* The rail's height is the scroll distance the orbit is given. */
.orbit__rail { height: 240vh; }

.orbit__stage {
  position: sticky;
  top: calc(var(--band) + var(--mast));
  height: calc(100vh - var(--band) - var(--mast));
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1600px;
  perspective-origin: 50% 46%;
}

/* The copy sits at z = 0; the windows pass in front of it and behind it. */
.orbit__core {
  position: relative;
  z-index: 5;
  width: min(400px, 31vw);
  text-align: center;
  padding-inline: var(--gutter);
  transform: translateY(-4%);
}
.orbit__core h1 {
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.orbit__core h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}
.orbit__lede {
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.5;
  margin: 0 auto 22px;
  max-width: 44ch;
}
.orbit__acts { display: flex; flex-wrap: wrap; gap: 14px; align-items:center; justify-content: center; margin-bottom: 16px; }
.orbit__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  align-items: center;
}

/* The bodies in orbit. JS writes --x/--y/--z/--s/--o each frame. */
.orbit__body {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(500px, 36vw);
  margin-top: -11vw;
  transform-style: preserve-3d;
  /* Depth is real: translateZ against the stage's perspective. Scaling as
     well would magnify twice and throw the bodies off the viewport. */
  transform:
    translate3d(calc(var(--x, 0) * 1px - 50%), calc(var(--y, 0) * 1px), calc(var(--z, 0) * 1px));
  opacity: var(--o, 1);
  z-index: var(--zi, 1);
  will-change: transform, opacity;
}
.orbit__body .win { height: 22vw; min-height: 240px; max-height: 340px; }

/* A caption travels with each window, so neither is mistaken for a screenshot. */
.orbit__tag {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.orbit__tag b { font-weight: 600; color: var(--ink); }

/* Progress: how far through the orbit you are. */
.orbit__dial {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  z-index: 6;
}
.orbit__track { width: 120px; height: var(--hair); background: var(--hot); position: relative; }
.orbit__track i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--signal); }

/* --- no orbit: narrow, or reduced motion ---------------------------------- */

.orbit--flat .orbit__rail { height: auto; }
.orbit--flat .orbit__stage {
  position: static;
  height: auto;
  min-height: 0;
  perspective: none;
  overflow: visible;
  display: block;
  padding-block: clamp(30px, 6vw, 58px);
}
.orbit--flat .orbit__core {
  width: auto;
  max-width: var(--shell);
  margin: 0 auto clamp(28px, 5vw, 46px);
  transform: none;
}
.orbit--flat .orbit__body {
  position: static;
  width: min(var(--shell), 100%);
  margin: 0 auto clamp(24px, 4vw, 40px);
  transform: none;
  opacity: 1;
}
.orbit--flat .orbit__body .win { height: auto; max-height: none; }
.orbit--flat .orbit__body .win__term { height: clamp(280px, 40vw, 380px); }
.orbit--flat .orbit__dial { display: none; }

@media (max-width: 700px) {
  .orbit__rail { height: auto; }
  .orbit__stage {
    position: static; height: auto; min-height: 0;
    perspective: none; overflow: visible; display: block;
    padding-block: clamp(30px, 6vw, 58px);
  }
  .orbit__core { width: auto; margin: 0 auto clamp(26px, 5vw, 42px); transform: none; }
  .orbit__body {
    position: static; width: 100%;
    margin: 0 0 clamp(22px, 4vw, 36px);
    transform: none; opacity: 1;
  }
  .orbit__body .win { height: auto; max-height: none; }
  .orbit__body .win__term { height: clamp(260px, 52vw, 340px); }
  .orbit__dial { display: none; }
}

/* The hot edge: 6px of sidebar, which slides out when the pointer nears it. */
.win__edge {
  width: var(--band);
  flex: none;
  border-right: var(--hair) solid var(--hot);
  background: linear-gradient(var(--tint), var(--tint));
}

/* ---------------------------------------------------------------------------
   Panels — the surfaces the app draws, reproduced from the same tokens.
   Floating things get a 2px edge and a hard offset shadow; nothing blurs,
   nothing is rounded, nothing is translucent.
   --------------------------------------------------------------------------- */

.pnl {
  border: var(--hair) solid var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  overflow: hidden;
  min-height: 0;
}
.pnl--float { border-width: var(--float); box-shadow: var(--hard) var(--hard) 0 var(--ink); }

.pnl__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-bottom: var(--hair) solid var(--ink);
  flex: none;
}
.pnl__head .grow, .pnl__row .grow, .pnl__chips .grow { flex: 1; }

.pnl__cap {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dim);
  white-space: nowrap;
}
.pnl__head > .pnl__cap:first-of-type { color: var(--ink); font-weight: 600; }

.pnl__rows { display: flex; flex-direction: column; }
.pnl__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  height: 28px;
  border-bottom: var(--hair) solid var(--hot);
  white-space: nowrap;
  overflow: hidden;
}
.pnl__row:last-child { border-bottom: 0; }
.pnl__row--on { background: var(--ink); color: var(--paper); }
.pnl__row--on .pnl__cap { color: var(--paper); opacity: 0.7; }
.pnl__row--off { opacity: 0.6; }

.pnl__foot {
  padding: 7px 11px;
  border-top: var(--hair) solid var(--ink);
  flex: none;
}

/* ask */
.pnl__input {
  display: flex;
  gap: 8px;
  padding: 10px 11px;
  border-bottom: var(--hair) solid var(--ink);
  font-size: 12px;
}
.pnl__caret { color: var(--signal); font-weight: 600; }
.pnl__said { padding: 10px 11px; line-height: 1.55; color: var(--dim); }
.pnl__said code { font-size: 10px; }

.pnl__block { border-top: var(--hair) solid var(--ink); }
.pnl__code {
  padding: 9px 11px;
  font-size: 11px;
  white-space: pre;
  overflow-x: auto;
  border-left: var(--float) solid var(--signal);
}
.pnl__code .k { font-weight: 600; }
.pnl__code .f { color: var(--ansi-blue); }
.pnl__code .s { color: var(--ansi-green); }

.pnl__chips {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px 9px;
}
.pnl__chip {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border: var(--hair) solid var(--ink);
}
.pnl__chip:first-child { background: var(--ink); color: var(--paper); }

/* rules */
.pnl__src {
  margin: 0;
  border: 0;
  background: none;
  font-size: 10.5px;
  line-height: 1.6;
  padding: 11px;
}
.pnl__src .c  { color: var(--dim); }
.pnl__src .k  { color: var(--ansi-red); }
.pnl__src .fn { font-weight: 600; }
.pnl__src .s  { color: var(--ansi-green); }
.pnl__src .n  { color: var(--ansi-blue); }

/* tiles */
.pnl__tiles { display: flex; gap: var(--struct); background: var(--ink); padding: var(--struct); flex: 1; min-height: 132px; }
.pnl__tilecol { display: flex; flex-direction: column; gap: var(--struct); flex: 1; }
.pnl__tile { flex: 1; background: var(--paper); position: relative; min-height: 40px; }
.pnl__tilelab {
  position: absolute;
  left: 8px; top: 7px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* peek */
.pnl--peek { position: relative; min-height: 210px; }
.pnl__under { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.pnl__underline { height: 8px; background: var(--ink); opacity: 0.18; }
.pnl__underline.s { width: 62%; }
.pnl__scrim { position: absolute; inset: 0; background: var(--scrim); }
.pnl__peekwin {
  position: absolute;
  inset: 26px 18px 18px;
  border: var(--float) solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  display: flex;
  flex-direction: column;
}
.pnl__web { flex: 1; background: var(--page); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pnl__web i { display: block; background: #141414; }
.pnl__web .t { width: 56%; height: 11px; }
.pnl__web .l { width: 88%; height: 6px; opacity: 0.3; }
.pnl__web .l2 { width: 70%; height: 6px; opacity: 0.3; }

/* compact */
.pnl--compact { flex-direction: row; min-height: 176px; }
.pnl__rail {
  width: 48px;
  flex: none;
  border-right: var(--hair) solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
}
.pnl__rail .win__ico svg { width: 15px; height: 15px; }
.pnl__rail .win__ico.on { color: var(--signal); }
.pnl__sq { width: 13px; height: 13px; background: var(--signal); flex: none; }
.pnl__railbody { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 9px; }

/* the gallery */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(292px, 1fr)); gap: 26px; }
.panel { display: flex; flex-direction: column; gap: 12px; }
.panel__note { display: flex; flex-direction: column; gap: 5px; }
.panel__note h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.panel__note h3 svg { width: 15px; height: 15px; fill: var(--signal); flex: none; }
.panel__note p { margin: 0; font-size: 13px; line-height: 1.5; max-width: none; color: var(--dim); }
.panel__note .src { align-self: flex-start; }

/* Caps in a panel footer is content, not a chrome label: let it wrap. */
.pnl__foot .pnl__cap { white-space: normal; line-height: 1.55; }
.pnl__src { overflow-x: auto; }
.pnl__head .pnl__cap:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pnl__row .pnl__cap { flex: none; }

/* --- panels: the teaser grid on the home page ------------------------------ */

.teaser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border: var(--hair) solid var(--ink);
}
.teaser__i {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-right: var(--hair) solid var(--hot);
  border-bottom: var(--hair) solid var(--hot);
  text-decoration: none;
  min-width: 0;
}
.teaser__i:hover { background: var(--tint); color: inherit; }
.teaser__i svg { width: 16px; height: 16px; fill: var(--signal); flex: none; }
.teaser__i b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.teaser__i span {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

/* --- panels page: one large panel, its explanation beside it -------------- */

/* The panels want more room than the reading measure allows. */
body.panels-page { --shell: 1320px; }

.panelrow {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding-block: clamp(26px, 4vw, 44px);
  border-bottom: var(--hair) solid var(--ink);
}
.panelrow:last-child { border-bottom: 0; }
.panelrow:nth-child(even) .panelrow__art { order: 2; }

.panelrow__art { min-width: 0; }
.panelrow__say { min-width: 0; }
.panelrow__say h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  margin-bottom: 12px;
}
.panelrow__say h3 svg { width: 19px; height: 19px; fill: var(--signal); flex: none; }
.panelrow__chord {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  white-space: nowrap;
}
.panelrow__say > p { font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; max-width: 54ch; }

.spec { list-style: none; padding: 0; margin: 0 0 14px; max-width: none; }
.spec li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  border-top: var(--hair) solid var(--hot);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.spec li svg { width: 14px; height: 14px; fill: var(--dim); flex: none; margin-top: 3px; }
.spec li code { font-size: 11.5px; }

.sectionhead__n {
  color: var(--dim);
  font-weight: 500;
  margin-right: 12px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .panelrow { grid-template-columns: 1fr; gap: 20px; }
  .panelrow:nth-child(even) .panelrow__art { order: 0; }
}

/* --- panel internals ------------------------------------------------------ */

/* palette: the serif prompt word, then what you typed */
.pnl__prompt {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: var(--struct) solid var(--ink);
  font-size: 14px;
}
.pnl__prompt .serif { font-size: 19px; }
.pnl__typed { flex: none; }
.pnl__bar { width: 2px; height: 15px; background: var(--signal); align-self: center; }

/* ask: the context the question carries with it */
.pnl__ctx {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 11px;
  border-bottom: var(--hair) solid var(--hot);
}
.pnl__ctx .pnl__cap { border: var(--hair) solid var(--hot); padding: 2px 6px; }

.pnl__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pnl__chip svg { width: 11px; height: 11px; fill: currentColor; flex: none; }

.pnl__code .c { color: var(--dim); }

/* atlas: the icon's band completes an orbit as the panel rises */
.pnl__atlashead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: var(--struct) solid var(--ink);
}
.pnl__atlashead img { display: block; flex: none; }
.pnl__atlast { font-size: 14px; font-weight: 600; margin-bottom: 2px; }

/* stacks: the sidebar tree beside the file that colours it */
.pnl--split { flex-direction: row; }
.pnl__side {
  width: 44%;
  flex: none;
  border-right: var(--struct) solid var(--ink);
  display: flex;
  flex-direction: column;
}
.pnl__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pnl__row--child { padding-left: 26px; }
.pnl__row--grand { padding-left: 40px; }
.pnl__row--child, .pnl__row--grand { box-shadow: inset 1px 0 0 var(--hot); color: var(--dim); }

/* tiles: real content in each tile */
.pnl__tilelab {
  position: absolute;
  left: 8px; top: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.pnl__tilelab svg { width: 11px; height: 11px; fill: currentColor; }
.pnl__tileterm {
  position: absolute;
  left: 8px; right: 8px; top: 26px;
  font-size: 9px;
  line-height: 1.6;
  white-space: pre;
  overflow: hidden;
}
.pnl__tileterm .p { color: var(--signal); }
.pnl__tileterm .g { color: var(--ansi-green); }
.pnl__tileterm .d { color: var(--dim); }
.pnl__tileweb { position: absolute; left: 8px; right: 8px; top: 28px; }
.pnl__tileweb i { display: block; height: 6px; background: var(--ink); opacity: .22; margin-bottom: 5px; }
.pnl__tileweb i.s { width: 62%; }

/* peek and pip float over the page behind them */
.pnl__underline.w { width: 44%; height: 11px; opacity: .3; }

.pnl__pipwin {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 54%;
  border: var(--float) solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}
.pnl__pipband { height: 4px; background: var(--signal); }
.pnl__pipvideo {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.pnl__pipvideo svg { width: 26px; height: 26px; fill: var(--paper); opacity: .5; }
.pnl__pipfoot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-top: var(--hair) solid var(--ink);
}
.pnl__pipfoot .grow { flex: 1; }

/* compact: the hovered row's name, beside the column */
.pnl__rail .grow { flex: 1; }
.pnl__tip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  border: var(--hair) solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 5px 9px;
  font-size: 10px;
  margin-bottom: 4px;
}
.pnl__tip svg { width: 12px; height: 12px; fill: currentColor; }

@media (max-width: 620px) {
  .pnl--split { flex-direction: column; }
  .pnl__side { width: auto; border-right: 0; border-bottom: var(--struct) solid var(--ink); }
}

/* Downloads are a ledger: choices on the left, a verifiable record on the right. */
.small { font-size:13px; line-height:1.65; }
.download-workbench { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); border:2px solid var(--ink); box-shadow:8px 8px 0 var(--ink); }
.download-choice,.download-receipt { padding:clamp(22px,4vw,44px); min-width:0; }
.download-receipt { border-left:1px solid var(--ink); }
.channel-picker { border:0; margin:0 0 20px; padding:0; display:flex; gap:24px; flex-wrap:wrap; }
.channel-picker legend { font-size:12px; text-transform:uppercase; letter-spacing:.1em; margin-bottom:12px; }
.channel-picker label { cursor:pointer; display:flex; gap:9px; align-items:center; }
.channel-picker input { accent-color:var(--signal); width:17px; height:17px; }
.download-choice .row { gap:20px; font-size:13px; }
.download-primary { width:100%; justify-content:center; margin:16px 0 0; }
.download-status { min-height:3.3em; }
.download-receipt dl { margin:0; }
.download-receipt dl>div { padding:14px 0; border-bottom:1px solid var(--rule); display:grid; grid-template-columns:90px minmax(0,1fr); gap:12px; font-size:13px; }
.download-receipt dt { color:var(--muted); }
.download-receipt dd { margin:0; }
.download-receipt details { margin-top:24px; font-size:13px; }
.download-receipt summary { cursor:pointer; }
.download-hash { display:block; overflow-wrap:anywhere; margin:14px 0; font-size:12px; user-select:all; }
.text-button { padding:0; border:0; border-bottom:1px solid currentColor; background:none; color:inherit; font:inherit; cursor:pointer; }
.text-button:disabled { opacity:.55; cursor:wait; }
.install-steps { padding-left:22px; max-width:75ch; }
.install-steps li { padding:7px 0 7px 8px; }
[hidden] { display:none!important; }
:focus-visible { outline:2px solid var(--signal); outline-offset:5px; }
@media(max-width:720px) { .download-workbench {grid-template-columns:1fr;} .download-receipt {border-left:0;border-top:1px solid var(--ink);} }

/* A small independent publication, with the product taking the page. */
:root { --mast:58px; }
.masthead__in { max-width:1340px; margin:auto; padding-inline:var(--gutter); }
.mark { gap:9px; text-decoration:none; }
.mark .wordmark { font-size:29px; }
.nav__name { position:static; width:auto; height:auto; clip-path:none; font-size:12px; line-height:1.4; }
.controls { gap:12px; }
.front { padding:28px 0 0; }
.front__meta,.front__foot { display:flex; justify-content:space-between; gap:18px; font-size:11px; text-transform:uppercase; letter-spacing:.07em; }
.front__meta { border-bottom:1px solid var(--ink); padding-bottom:15px; }
.front__meta a { text-decoration:none; }
.front__intro { display:grid; grid-template-columns:1.25fr 1fr; gap:45px; align-items:end; padding:48px 0 44px; }
.front h1 { font-size:clamp(44px,6.3vw,78px); line-height:1.04; letter-spacing:-.075em; font-weight:500; }
h1 em,h2 em { font-family:var(--serif); font-weight:500; letter-spacing:-.035em; }
.front__aside { padding-bottom:5px; font-size:14px; }
.front__aside>.row { gap:20px; margin-top:25px; }
.front__fine { font-size:11px; margin:18px 0 0; color:var(--dim); }
.quiet-link { font-size:12px; }
.app-film { margin:0; border:2px solid var(--ink); box-shadow:8px 8px 0 var(--ink); background:var(--paper); }
.app-film__bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 15px; font-size:10px; text-transform:uppercase; letter-spacing:.08em; border-bottom:1px solid var(--ink); }
.signal-dot { width:7px;height:7px;background:var(--signal);display:inline-block;margin-right:7px; }
.app-film video { display:block; width:100%; height:auto; background:var(--tint); aspect-ratio:8/5; }
.app-film__caption { border-top:1px solid var(--ink); display:flex; justify-content:space-between; gap:18px; padding:16px 18px; align-items:center; }
.app-film figcaption { font-size:13px; }
.app-film figcaption span { display:block; font-size:10px; color:var(--dim); margin-top:5px; }
.film-toggle { font:inherit; font-size:12px; background:var(--paper);color:var(--ink);padding:10px 13px;border:1px solid var(--ink);cursor:pointer;white-space:nowrap; }
.film-toggle:hover {background:var(--ink);color:var(--paper);}
.film-error { padding:12px 18px; margin:0; }
.front__foot { padding:24px 0; font-size:10px; color:var(--dim); }
.work-notes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; margin-top:40px; }
.work-notes article { border-top:1px solid var(--ink);padding-top:15px; }
.note-number {font:italic 30px var(--serif);color:var(--signal);}
.work-notes h3 {margin:24px 0 14px;font-size:16px;line-height:1.5;}
.work-notes p,.work-notes a {font-size:13px;}
.personal-section {background:var(--tint);}
.personal-grid {display:grid;grid-template-columns:1fr 1fr;gap:60px;}
.personal-grid h2 {font-size:clamp(27px,4vw,44px);line-height:1.2;}
.personal-grid p {font-size:14px;}
.closing-note {text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px;}
.closing-note h2 {font:italic clamp(38px,5vw,62px) var(--serif);}
.closing-note p {margin:0;}
.maker-note {max-width:850px;}
.maker-note h1 {margin:25px 0 36px;font-size:clamp(38px,6vw,66px);}
.maker-note>p {font-size:15px;line-height:1.9;}
.maker-note .lede {font-size:19px;}
.maker-note .maker-signature {margin:36px 0;font:italic 28px var(--serif);}
.maker-signature span {font:11px var(--mono);color:var(--dim);}
@media(max-width:900px) { .signalpick {display:none;} .front__intro {gap:28px;} .front h1 {font-size:clamp(42px,6.7vw,62px);} }
@media(max-width:720px) { .front__intro,.personal-grid {grid-template-columns:1fr;gap:28px;} .front__intro {padding:35px 0;} .front h1 {font-size:clamp(39px,9vw,60px);} .front__meta,.front__foot {font-size:9px;flex-wrap:wrap;} .work-notes {grid-template-columns:1fr;gap:28px;} .work-notes h3 {margin:12px 0;} .app-film__caption {flex-direction:column;align-items:flex-start;padding:12px;} .app-film__bar {font-size:8px;padding:8px;} .front__aside {font-size:13px;} .front .btn {font-size:12px;} }
.feature-index {display:flex;gap:12px 26px;flex-wrap:wrap;margin-top:30px;font-size:12px;}
.product-shot {margin:32px 0 24px;}
.product-shot img {display:block;width:100%;height:auto;border:2px solid var(--ink);box-shadow:6px 6px 0 var(--ink);}
.product-shot figcaption {font-size:11px;color:var(--dim);margin:18px 0;}
.feature-pair {display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:35px 0;}
.feature-pair p {font-size:13px;}
.feature-pair strong {display:inline-block;margin-bottom:8px;}
.section[id] {scroll-margin-top:110px;}
@media(max-width:720px) {.feature-pair {grid-template-columns:1fr;gap:10px;}}
/* Restore the authored orbit; its windows are now recordings of the Mac app. */
.orbit__core {width:min(470px,36vw);padding-inline:20px;}
@media(max-width:1000px) {.orbit__core{width:min(470px,34vw);padding-inline:12px;} .orbit__core h1{font-size:clamp(26px,3.6vw,58px);} .orbit__lede{font-size:12px;} .orbit__body{width:min(500px,30vw);}}
.orbit__core h1 {font-size:clamp(34px,4vw,58px);letter-spacing:-.06em;line-height:1.06;}
.orbit__core>.cap {margin-bottom:20px;font-size:10px;}
.orbit__lede {font-size:13px;line-height:1.7;max-width:36ch;}
.orbit__body {width:min(500px,32vw);margin-top:0;opacity:1;transform:translate3d(calc(var(--x,0)*1px - 50%),calc(var(--y,0)*1px - 50%),calc(var(--z,0)*1px));}
.orbit__acts .btn {font-size:12px;padding:11px 14px;}
.orbit-film {margin:0;border:1.5px solid var(--ink);box-shadow:6px 6px 0 var(--ink);background:var(--paper);}
.orbit-film video {display:block;width:100%;height:auto;aspect-ratio:44/29;}
.orbit-film figcaption {padding:9px 11px;border-top:1px solid var(--ink);display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;}
.orbit-film .film-toggle {font-size:9px;padding:6px;border:0;}
.orbit__dial {font-size:10px;gap:16px;}
.orbit__dial a {margin-left:20px;}
.capture-note {display:flex;justify-content:space-between;gap:15px;padding-block:20px;font-size:10px;color:var(--dim);}
.orbit--flat .orbit__stage {padding-inline:var(--gutter);}
.orbit--flat .orbit__core {width:100%;max-width:600px;}
.orbit--flat .orbit__body {width:100%;max-width:800px;transform:none;}
.orbit--flat .orbit-film figcaption {font-size:12px;}
@media(max-width:700px) {.orbit__core{width:100%;max-width:600px;}.orbit__body{width:100%;max-width:800px;margin-inline:auto;}.capture-note{flex-direction:column;gap:6px;}}
@media(prefers-reduced-motion:reduce) {.orbit__rail{height:auto;}.orbit__stage{position:static;height:auto;min-height:0;display:block;padding:30px var(--gutter);perspective:none;}.orbit__body{position:static;width:100%;max-width:800px;transform:none;margin:24px auto;will-change:auto;}.orbit__core{width:100%;max-width:600px;margin:auto;transform:none;}.orbit__dial{display:none;}}
.nus-mark {display:block;width:33px;height:33px;flex:none;color:var(--ink);}
@font-face {font-family:'Silkscreen';src:url('../fonts/Silkscreen-Regular.ttf') format('truetype');font-display:swap;}
@font-face {font-family:'Bungee';src:url('../fonts/Bungee-Regular.ttf') format('truetype');font-display:swap;}
@font-face {font-family:'Rubik Mono';src:url('../fonts/RubikMonoOne-Regular.ttf') format('truetype');font-display:swap;}
.mark .wordmark {width:66px;min-height:34px;align-items:center;line-height:1;justify-content:flex-start;}
.download-intro .section__in {display:grid;grid-template-columns:1.3fr 1fr;gap:50px;align-items:end;padding-block:42px 36px;}
.download-intro h1 {font-size:clamp(40px,5.6vw,68px);letter-spacing:-.055em;line-height:1.07;}
.download-intro .lede {font-size:14px;line-height:1.9;margin:0 0 5px;max-width:39ch;}
.download-body>.section:first-child>.section__in {padding-top:36px;}
.download-workbench {box-shadow:7px 7px 0 var(--ink);grid-template-columns:1.25fr 1fr;}
.download-choice {position:relative;}
.download-choice::before {content:'01 / CHOOSE A BUILD';display:block;letter-spacing:.1em;font-size:10px;color:var(--dim);padding-bottom:22px;}
.channel-picker {display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--ink);margin-bottom:16px;}
.channel-picker legend {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;}
.channel-picker label {padding:13px 18px;justify-content:center;font-size:13px;}
.channel-picker label+label {border-left:1px solid var(--ink);}
.channel-picker label:has(input:checked) {background:var(--ink);color:var(--paper);}
.channel-picker input {width:13px;height:13px;accent-color:var(--signal);}
.download-receipt {background:var(--tint);}
.download-receipt>.cap {margin-bottom:15px;color:var(--dim);font-size:10px;letter-spacing:.1em;}
.download-receipt dl>div:first-child {display:block;border-top:1px solid var(--ink);padding:18px 0;}
.download-receipt dl>div:first-child dt {font-size:10px;margin-bottom:8px;text-transform:uppercase;}
.download-receipt dl>div:first-child dd {font-size:22px;line-height:1.3;letter-spacing:-.05em;}
.download-status {border-left:3px solid var(--signal);padding:8px 12px;background:var(--tint);margin:22px 0;min-height:0;}
.download-primary {background:var(--signal)!important;border-color:var(--signal)!important;color:var(--on-signal)!important;}
.download-section-label {margin-bottom:18px;}
@media(max-width:720px) {.download-intro .section__in,.download-workbench {grid-template-columns:1fr;gap:22px;}.download-workbench{gap:0;}.download-intro h1 {font-size:42px;}.download-intro .lede {font-size:13px;}.download-choice,.download-receipt{padding:22px;}}

/* --- the stats lead ------------------------------------------------------- */

.figs--lead { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); border-bottom: 0; }
.figs--lead b { font-size: 34px; }
.figs--lead > div { padding: 20px 18px 18px; border-bottom: var(--hair) solid var(--ink); }
.figs__note { margin-top: 14px; max-width: 78ch; }
@media (max-width: 620px) {
  .figs--lead { grid-template-columns: 1fr 1fr; }
  .figs--lead > div { border-bottom: var(--hair) solid var(--ink); }
  .figs--lead > div:nth-child(2n) { border-right: 0; }
}

/* --- download: the one-liners --------------------------------------------- */

.install-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 18px 0 12px; }
.install-lines .cap { display: block; margin-bottom: 8px; color: var(--dim); }
.install-lines pre { margin: 0; }

/* Swup owns page changes. The document wipes sideways; it never fades. */
#site-header,#site-footer{display:contents}
#main{overflow-x:clip}
.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}
html.is-changing [data-page-transition]{transition:transform 180ms var(--ease),clip-path 180ms var(--ease);clip-path:inset(0);transform:translateX(0);opacity:1}
html.is-animating [data-page-transition]{clip-path:inset(0 0 0 100%);transform:translateX(18px)}
html.is-leaving.is-animating [data-page-transition]{clip-path:inset(0 100% 0 0);transform:translateX(-18px)}
@media(prefers-reduced-motion:reduce){html.is-changing [data-page-transition]{transition:none!important;clip-path:none!important;transform:none!important}}

/* A directed desktop take and a readable phone cut share one player. */
.orbit-film--hero video {aspect-ratio:4/3;}
@media(max-width:700px){.orbit-film--hero video{aspect-ratio:4/5;}.orbit-film--hero figcaption{align-items:flex-start;}.orbit-film--hero .film-toggle{font-size:11px;white-space:nowrap;}}

/* --- the install command: the page's first beat ------------------------- */
.install-hero .section__in {padding-block:48px 40px;}
.install-hero h1 {font-size:clamp(40px,5.6vw,68px);letter-spacing:-.055em;line-height:1.07;margin:10px 0 18px;}
.install-hero .lede {font-size:15px;line-height:1.8;max-width:44ch;margin:0 0 30px;}
.install-hero__note {max-width:72ch;margin-top:30px;}
.cmd {max-width:100%;border:var(--float) solid var(--ink);box-shadow:8px 8px 0 var(--ink);background:var(--paper);}
.cmd__tabs {display:flex;border-bottom:var(--hair) solid var(--ink);}
.cmd__tabs button {font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:9px 16px;min-height:36px;background:none;color:var(--ink);border:0;border-right:var(--hair) solid var(--ink);cursor:pointer;}
.cmd__tabs button[aria-selected="true"] {background:var(--ink);color:var(--paper);}
.cmd__tabs button:focus-visible {outline:var(--float) solid var(--signal);outline-offset:-4px;}
.cmd__line {display:flex;align-items:center;gap:14px;padding:20px 18px 20px 22px;font-family:var(--mono);font-size:clamp(13px,1.45vw,17px);}
.cmd__line + .cmd__line {border-top:var(--hair) solid var(--ink);}
.cmd.is-tabbed .cmd__line + .cmd__line {border-top:0;}
.cmd__os {flex:none;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);width:9ch;}
.cmd.is-tabbed .cmd__os {display:none;}
.cmd__prompt {flex:none;color:var(--signal);font-weight:600;}
.cmd__line code {flex:1;min-width:0;background:none;padding:0;font-size:inherit;white-space:nowrap;overflow-x:auto;}
.copy {flex:none;display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 12px;font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;background:var(--paper);color:var(--ink);border:var(--struct) solid var(--ink);box-shadow:3px 3px 0 var(--ink);cursor:pointer;transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease);}
.copy svg {width:14px;height:14px;fill:currentColor;}
.copy:hover {transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--ink);}
.copy:active {transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink);}
.copy:focus-visible {outline:var(--float) solid var(--signal);outline-offset:3px;}
.copy.is-copied {background:var(--signal);color:var(--on-signal);border-color:var(--signal);}
#install .install-lines {grid-template-columns:minmax(0,1fr);max-width:100%;}
.codebox {position:relative;}
.codebox pre {margin:0;padding-right:104px;}
.codebox .copy {position:absolute;top:8px;right:8px;}
@media(max-width:560px) { .cmd__line {flex-wrap:wrap;padding:16px;align-items:flex-start;} .cmd__line code {flex-basis:calc(100% - 24px);white-space:normal;overflow-wrap:anywhere;} .cmd__os {width:auto;flex-basis:100%;} .cmd__line .copy {margin-left:auto;} .codebox pre {padding-right:16px;} .codebox .copy {position:static;margin:8px 0 0 auto;display:flex;width:max-content;} }
