/* GENERATED COPY — edit the original at the site root, then run `npm run build`. */
/* ===========================================================================
   BinaryEgo — shared design system.

   Theme-agnostic: every accent shade is derived from --accent / --accent-2 via
   color-mix, so a product theme sets three tokens and inherits everything else.
   Pair this with exactly one theme file (css/binaryego.css, machina/css/…).

   No external fonts, no external anything — pages are self-contained.
   =========================================================================== */

:root {
  --bg:        #07080a;
  --bg-alt:    #0b0d11;
  --panel:     #101319;
  --panel-2:   #151922;
  --line:      rgba(255, 255, 255, .085);
  --line-2:    rgba(255, 255, 255, .16);

  --ink:       #eceef2;
  --ink-2:     #9aa3b0;
  --ink-3:     #626c7a;

  /* Neutral placeholders. A theme file overrides the three below; everything
     else in this sheet is a color-mix of them, so one override retints the
     whole page. An unthemed page still renders — just monochrome. */
  --accent:    #8b93a1;
  --accent-2:  #b6bcc7;
  --on-accent: #0a0b0d;

  --accent-dim: color-mix(in srgb, var(--accent) 14%, transparent);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

/* --------------------------------------------------- page-wide graph ----- */

/* Fixed behind everything. Content sits on z-index 1; the body colour paints
   underneath, so the canvas never needs to clear to an opaque fill. */
.bg-graph { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.nav, main, .footer { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- nav ---- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.is-stuck {
  background: rgba(7, 8, 10, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto;
  height: 68px; display: flex; align-items: center; gap: 32px;
}
/* Wordmark only up here — the tagline is unreadable at nav size. The crop is
   margin-trimmed, so this width shows bigger letterforms than the full mark
   did at the same number. */
.nav__brand img { width: 128px; height: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  letter-spacing: .01em; position: relative; padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right .28s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { right: 0; }
.nav__cta { margin-left: 4px; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--sm { padding: 8px 16px; font-size: 13.5px; }
.btn--primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 26px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn:active { transform: translateY(0); }

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

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 90px; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 22% 42%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 62%),
    linear-gradient(96deg, rgba(7,8,10,.94) 0%, rgba(7,8,10,.78) 34%, rgba(7,8,10,.12) 68%, transparent 88%),
    linear-gradient(180deg, rgba(7,8,10,.55) 0%, rgba(7,8,10,.28) 42%, var(--bg) 97%);
}
/* Proposition on the left, mark floating on the right over the live graph.
   Stats span the full width underneath both. */
.hero__inner {
  position: relative;
  display: grid;
  /* The mark column is the wider one: `img { max-width: 100% }` would
     otherwise cap the mark below its clamp maximum on large screens. */
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  column-gap: 56px;
}
.hero__text { grid-column: 1; }
.hero__mark { grid-column: 2; justify-self: center; position: relative; will-change: transform; }
.hero .stats { grid-column: 1 / -1; }

/* A pool of light so the mark reads as suspended in front of the graph
   rather than pasted onto it. */
.hero__mark::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 130%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 17%, transparent), color-mix(in srgb, var(--accent) 5%, transparent) 45%, transparent 72%);
  pointer-events: none;
}

.hero__logo {
  position: relative;
  width: clamp(312px, 40.8vw, 576px);
  filter: drop-shadow(0 10px 46px rgba(0, 0, 0, .9)) drop-shadow(0 0 60px color-mix(in srgb, var(--accent) 22%, transparent));
  animation: mark-float 11s ease-in-out infinite;
}

@keyframes mark-float {
  0%, 100% { transform: translate3d(0, -11px, 0) rotate(-.5deg); }
  50%      { transform: translate3d(0, 13px, 0) rotate(.5deg); }
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(31px, 4.4vw, 54px);
  line-height: 1.08; letter-spacing: -.028em; font-weight: 750;
  max-width: 17ch;
}
.hero__title .accent { color: var(--accent); }

.hero__lede { margin: 0 0 38px; max-width: 60ch; font-size: clamp(16.5px, 1.5vw, 19.5px); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.stats {
  margin: 72px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.stat dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.stat dd { margin: 6px 0 0; font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.stat dd span { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }

/* Below the two-column threshold the mark leads again, above the headline. */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; column-gap: 0; }
  .hero__text, .hero__mark { grid-column: 1; }
  .hero__mark { order: -1; justify-self: start; margin-bottom: 44px; }
  .hero__logo { width: min(88%, 516px); }
}

@media (max-width: 760px) {
  .hero { min-height: auto; padding: 120px 0 70px; }
  .hero__mark { margin-bottom: 34px; }
  .hero__logo { width: min(94%, 408px); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 52px; }
}

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

/* Frosted rather than opaque, so the graph stays alive underneath the whole
   page. The blur lives on the section only — nesting backdrop filters on every
   card inside would stack and get expensive for no visual gain. */
.section {
  padding: 124px 0; position: relative;
  background: rgba(7, 8, 10, .58);
  backdrop-filter: blur(22px) saturate(115%);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
}
.section--alt {
  background: rgba(11, 13, 17, .74);
  border-block: 1px solid var(--line);
}

/* No backdrop-filter support: fall back to opaque, since a 58%-alpha panel
   over a live canvas would be unreadable. */
@supports not (backdrop-filter: blur(1px)) {
  .section { background: var(--bg); }
  .section--alt { background: var(--bg-alt); }
}

.eyebrow {
  margin: 0 0 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: "— "; color: var(--ink-3); }

.h2 {
  margin: 0 0 20px; font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12; letter-spacing: -.025em; font-weight: 750; max-width: 22ch;
}
.section__lede { margin: 0 0 56px; max-width: 68ch; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18.5px); }
.sub-h { margin: 84px 0 24px; font-size: 20px; letter-spacing: -.01em; font-weight: 700; }

@media (max-width: 760px) { .section { padding: 84px 0; } }

/* -------------------------------------------------------------- pillars -- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  padding: 30px 28px 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-alt));
  position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.pillar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.pillar:hover { border-color: var(--line-2); transform: translateY(-3px); }
.pillar:hover::before { transform: scaleX(1); }
.pillar__mark { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; margin-bottom: 16px; }
.pillar h3 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.015em; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

@media (max-width: 940px) { .pillars { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- cards -- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); display: flex; flex-direction: column;
  transition: border-color .28s var(--ease), background .28s var(--ease), transform .28s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--panel-2); transform: translateY(-3px); }
.card__icon { width: 42px; height: 42px; margin-bottom: 18px; color: var(--accent); }
.card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.card h3 { margin: 0 0 10px; font-size: 17.5px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; }
.card__n {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-dim); border-radius: 999px; padding: 3px 9px; letter-spacing: .04em;
}
.card p { margin: 0 0 18px; color: var(--ink-2); font-size: 14.8px; flex: 1; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; background: rgba(255,255,255,.02);
}

/* ---------------------------------------------------------------- split -- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split__text p { color: var(--ink-2); }
.split__text .section__lede { margin-bottom: 22px; }

.ticks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}
.ticks b { color: var(--ink); font-weight: 600; }
.ticks code, .split__text code { font-family: var(--mono); font-size: .88em; color: var(--accent-2); }

@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 44px; } }

/* ----------------------------------------------------------------- code -- */

.code { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0a0c10; }
.code__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.code__bar .dot:first-child { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.code__name { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.code pre { margin: 0; padding: 24px 22px; overflow-x: auto; }
.code code { font-family: var(--mono); font-size: 13.6px; line-height: 1.85; color: #d5dae3; }
.code .c { color: var(--ink-3); font-style: italic; }
.code .f { color: var(--accent-2); }
.code .n { color: #7fd1b9; }
.code .t { color: var(--accent); font-weight: 600; }

.caption { margin: 16px 2px 0; font-size: 13.5px; color: var(--ink-3); }

/* ----------------------------------------------------------------- trio -- */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); transition: border-color .28s var(--ease), transform .28s var(--ease);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.015em; line-height: 1.4; }
.tile__tag {
  display: inline-block; margin-right: 8px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 4px; padding: 2px 7px; vertical-align: 2px;
}
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; }

@media (max-width: 940px) { .trio { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- diagram -- */

.diagram {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 22px; margin-bottom: 64px; overflow-x: auto;
}
.diagram svg { width: 100%; min-width: 760px; height: auto; display: block; }

.d-col-label text { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; fill: var(--ink-3); }
.d-crate rect { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1; }
.d-crate text { font-family: var(--mono); font-size: 14px; fill: var(--ink); }
.d-crate .d-sub, .d-host .d-sub { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-3); }

.d-hub rect { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: var(--accent); stroke-width: 1.5; }
.d-hub text { font-family: var(--mono); font-size: 18px; fill: var(--accent); text-anchor: middle; }
.d-hub .d-sub { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-2); text-anchor: middle; }
.d-hub .d-abi {
  font-family: var(--mono); font-size: 11px; fill: var(--ink); letter-spacing: .18em; text-anchor: middle;
}

.d-host rect { fill: var(--panel-2); stroke: var(--line-2); }
.d-host text { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }

/* Not shipping yet — drawn open so it never reads as an available host. */
.d-host--planned rect { fill: none; stroke: var(--line); stroke-dasharray: 5 5; }
.d-host--planned text { fill: var(--ink-2); }
.d-host--planned .d-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .16em;
  fill: var(--ink-3); text-anchor: end;
}

.d-wire path { fill: none; stroke: var(--line-2); stroke-width: 1.4; }
.d-wire--dash path { stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-dasharray: 5 5; }

/* Current running through the wires. JS clones each solid wire into this
   overlay and sets --len from getTotalLength(), so one dash marches the path. */
.d-flow path {
  fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 11 var(--len);
  animation: wire-flow 2.6s linear infinite;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent-2) 75%, transparent));
}
@keyframes wire-flow {
  from { stroke-dashoffset: calc(var(--len) + 11px); }
  to   { stroke-dashoffset: 0; }
}
.d-note { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-3); text-anchor: middle; }

/* ------------------------------------------------------------ hood grid -- */

.hood-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.note {
  padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.note h3 { margin: 0 0 12px; font-size: 17.5px; letter-spacing: -.015em; }
.note p { margin: 0; color: var(--ink-2); font-size: 15px; }
.note b { color: var(--ink); }

@media (max-width: 940px) { .hood-grid { grid-template-columns: 1fr; } }

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

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.matrix { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--panel); }
.matrix th, .matrix td { text-align: left; padding: 14px 20px; font-size: 14.8px; border-bottom: 1px solid var(--line); }
.matrix thead th {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; background: var(--bg-alt);
}
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody tr:hover { background: var(--panel-2); }
.matrix code { font-family: var(--mono); font-size: 13px; color: var(--accent-2); }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill--ok { color: var(--accent); background: var(--accent-dim); }
.pill--wip { color: var(--ink-2); background: rgba(255,255,255,.06); }

/* ----------------------------------------------------------------- demo -- */

.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.demo .h2 { max-width: 16ch; }
.demo .section__lede { margin-bottom: 32px; }
.hint { margin: 16px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }

.demo__frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.demo__chrome { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.demo__stage {
  position: relative; aspect-ratio: 16 / 10; background: #06070a;
  display: grid; place-items: center;
}

/* Deliberately not a mock of the editor. Showing invented output next to a
   "launch" button would read as a screenshot of the real thing. */
.demo__placeholder { text-align: center; color: var(--ink-3); }
.demo__placeholder svg { width: 44px; height: 44px; margin: 0 auto 16px; opacity: .5; }
.demo__placeholder p {
  margin: 0; font-family: var(--mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
}

@media (max-width: 940px) { .demo { grid-template-columns: 1fr; gap: 44px; } }

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

.footer {
  border-top: 1px solid var(--line); padding: 56px 0 64px;
  background: rgba(7, 8, 10, .78);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
@supports not (backdrop-filter: blur(1px)) { .footer { background: var(--bg); } }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
/* Wordmark only, as in the nav. The tagline already sits in the line below. */
.footer__logo { width: 136px; opacity: .85; }
.footer__line { margin: 0; color: var(--ink-2); font-size: 15px; }
.footer__meta { margin: 0; color: var(--ink-3); font-size: 13px; font-family: var(--mono); }

/* ------------------------------------------------------------- reveals --- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .pillar, .tile { transition: none; }
  .hero__logo { animation: none; }
  .d-flow { display: none; }
}

/* ===========================================================================
   CATALOGUE COMPONENTS
   Used by the umbrella index; available to any page that wants a grid of
   projects. Nothing here names a colour — it all resolves through --accent.
   =========================================================================== */

/* Typographic logotype, for pages with no drawn mark. The two-tone split
   mirrors the original pixel mark, which sets the first word in the accent and
   the second in the secondary — so a theme's colour pair drives it directly. */
.nav__brand--type, .footer__brand {
  font-size: 19px; font-weight: 800; letter-spacing: -.022em; text-decoration: none;
}
.nav__brand--type span, .footer__brand span { color: var(--accent); }
.nav__brand--type b, .footer__brand b { color: var(--accent-2); font-weight: 800; }
.footer__brand { margin: 0; font-size: 21px; }
.nick { color: var(--accent); font-weight: 600; }
.footer__meta a { color: var(--ink-2); text-decoration: none; }
.footer__meta a:hover { color: var(--accent); }

/* Hero without a mark column. */
.hero--house { min-height: 90svh; }
.hero__inner--house { grid-template-columns: 1fr; }
.hero--house .hero__title { max-width: 21ch; margin-top: 4px; }
.hero--house .hero__lede { max-width: 64ch; }
.hero--house .hero__lede b { color: var(--ink); font-weight: 600; }

/* Star count. Inline by default; pinned when it sits directly in a card. */
.stars {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}
.stars svg { width: 12px; height: 12px; fill: currentColor; }
.sys > .stars { position: absolute; top: 26px; right: 24px; }

/* --- systems: the headline tier --- */

.systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sys {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
  transition: border-color .28s var(--ease), transform .28s var(--ease), background .28s var(--ease);
}
.sys::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 75%);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.sys:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--panel-2); transform: translateY(-3px); }
.sys:hover::before { transform: scaleX(1); }

.sys__link { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 30px 26px 26px; text-decoration: none; }
.sys__head h3 { margin: 0; font-size: 23px; letter-spacing: -.022em; }
.sys__tagline {
  margin: 6px 0 0; font-family: var(--mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.sys__blurb { margin: 0; flex: 1; color: var(--ink-2); font-size: 15px; }
.sys__foot { display: flex; flex-direction: column; gap: 16px; }
.sys__go { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.sys__go span { display: inline-block; transition: transform .25s var(--ease); }
.sys:hover .sys__go span { transform: translateX(4px); }

/* --- items: foundation and tools --- */

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.item {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.item:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--panel-2); transform: translateY(-2px); }
.item__link { display: block; padding: 22px 22px 20px; text-decoration: none; }
.item h3 {
  margin: 0 0 9px; font-size: 16.5px; letter-spacing: -.012em;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.item:hover h3 { color: var(--accent); }
.item p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }

/* --- the long tail --- */

.more { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.more__list { list-style: none; margin: 0; padding: 0; }
.more__list li {
  display: flex; align-items: center; gap: 16px; padding: 0 22px;
  border-bottom: 1px solid var(--line); transition: background .2s var(--ease);
}
.more__list li:last-child { border-bottom: 0; }
.more__list li:hover { background: var(--panel-2); }
.more__list a { flex: 1; padding: 14px 0; text-decoration: none; font-size: 15px; }
.more__list b { font-weight: 600; }
.more__list li:hover b { color: var(--accent); }
.more__list span { color: var(--ink-3); font-size: 13.5px; }

@media (max-width: 940px) {
  .systems { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .more__list li { flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }
  .more__list a { padding-bottom: 4px; }
}

/* ===========================================================================
   VIDEO — facade, not an embed
   The markup that ships is a thumbnail and a button; js/site.js swaps in the
   real iframe on click. Nothing third-party loads until someone chooses to
   watch, so the page stays as fast as the rest of the site.
   =========================================================================== */

.videos { display: grid; gap: 20px; }
.videos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.vid {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  overflow: hidden;
  transition: border-color .28s var(--ease), transform .28s var(--ease);
}
.vid:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }

.vid__play {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; margin: 0; border: 0; background: #05060a; cursor: pointer; overflow: hidden;
}
.vid__play img {
  width: 100%; height: 100%; object-fit: cover; opacity: .78;
  transition: opacity .35s var(--ease), transform .6s var(--ease);
}
.vid:hover .vid__play img { opacity: 1; transform: scale(1.03); }

.vid__glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.vid__glyph svg { width: 58px; height: 58px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.65)); }
.vid__glyph circle { fill: color-mix(in srgb, var(--accent) 92%, transparent); }
.vid__glyph path { fill: var(--on-accent); }
.vid--featured .vid__glyph svg { width: 76px; height: 76px; }
.vid:hover .vid__glyph { transform: scale(1.08); }
.vid__play:focus-visible { outline-offset: -3px; }

.vid__meta { padding: 16px 18px 18px; }
.vid__meta h3 { margin: 0; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.4; }
.vid--featured .vid__meta { padding: 20px 22px 22px; }
.vid--featured .vid__meta h3 { font-size: 19px; }
.vid__meta p { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* Swapped in on click. */
.vid iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

.hint--foot { margin-top: 28px; max-width: 64ch; }
