/* ============================================================
   blankcollar.ai — Blank Collar master design system (dark-first)
   Manrope · PP Neue Machina (display) · JetBrains Mono · Newsreader.
   Duality: pink = human · lime = machine · mint = system.
   ============================================================ */

@font-face {
  font-family: 'PP Neue Machina';
  src: url('/assets/fonts/neue-machina-ultrabold.woff2') format('woff2');
  font-weight: 700 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PP Neue Machina';
  src: url('/assets/fonts/neue-machina-regular.woff2') format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark; /* dark-only site — dark form controls/scrollbars, no white flash on load */
  --bg: #000000;
  --bg-1: #141414;
  --bg-2: #141414;
  --bg-3: #1F1F1F;
  --line: rgba(255,255,255,0.12);
  --line-2: rgba(255,255,255,0.20);
  --ink: #F4F2EC;
  --ink-2: #CFCFCF;
  --ink-3: #8C8C8C;
  --muted: #8C8C8C;
  --muted-2: #5C5C5C;
  /* brand duality — pink=human · lime=machine · mint=system */
  --pink: #FF1F8F;
  --mint: #3CFFD0;
  --lime: #D6F41F;
  --ember: #FF4318;
  --brand-pink: #FF1F8F;
  --brand-lime: #D6F41F;
  --accent: #FF1F8F;
  --accent-ink: #000000;
  --pos: #3CFFD0;
  --warn: #D6F41F;
  --neg: #FF4318;
  --info: #FF1F8F;
  --pad-x: 32px;
  --radius: 0px;
  --radius-lg: 0px;
  --maxw: 1180px;
  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;
  --font-display: "PP Neue Machina", "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-serif: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--pink); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--radius); z-index: 200; }

/* ---------- Typography ---------- */
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-weight: 400; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.editorial-eyebrow {
  display: inline-block; padding: 3px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink);
}
.display {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.0;
  letter-spacing: -0.03em; font-weight: 800; margin: 0;
}
h1, .h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 800; margin: 0; }
h2, .h2 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 800; margin: 0; }
h3, .h3 { font-family: var(--font-display); font-size: 20px; line-height: 1.14; letter-spacing: -0.015em; font-weight: 700; margin: 0; }
.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-2); }
.tiny { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.muted { color: var(--muted); }
.italic-serif { font-family: var(--font-serif); font-style: italic; color: var(--ink-2); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: 96px 0; position: relative; }
/* Section divider: a hairline aligned to the content column (not full-bleed) and
   softly faded at both ends — reads as part of the grid, not a default edge-to-edge rule. */
.section::before, .footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100% - var(--pad-x) * 2, var(--maxw) - var(--pad-x) * 2);
  height: 1px; background: var(--line); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.section-tight { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head p { margin: 18px 0 0; }
.center { text-align: center; }
.center.section-head { margin-left: auto; margin-right: auto; }
.rule { border: 0; height: 1px; margin: 0; background: var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.grid > * { background: var(--bg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background .14s, border-color .14s, color .14s, transform .14s;
}
.btn:hover { background: var(--bg-2); border-color: var(--ink-2); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn .arrow { transition: transform .14s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Pills, dots, chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2);
  font-family: var(--font-mono);
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--muted-2); flex-shrink: 0; }
.dot.pos { background: var(--pos); } .dot.warn { background: var(--warn); }
.dot.neg { background: var(--neg); } .dot.info { background: var(--info); }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 currentColor; opacity:1 } 50%{ box-shadow: 0 0 0 4px transparent; opacity:.55 } }
.dot.live { background: var(--pos); color: var(--pos); animation: pulse 2s ease-in-out infinite; }
.kbd { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--muted); background: var(--bg-2); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11,11,12,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; height: 60px; padding: 0 var(--pad-x); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 20px; height: 20px; border: 1.5px solid var(--ink); position: relative; flex-shrink: 0; }
.brand-mark::after { content: ""; position: absolute; inset: 3px 3px auto auto; width: 5px; height: 5px; background: var(--ink); }
.brand-name { font-weight: 500; letter-spacing: -0.01em; font-size: 15px; }
.brand-name span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link { padding: 8px 12px; font-size: 14px; color: var(--ink-2); border-radius: var(--radius); transition: color .12s, background .12s; }
.nav-link:hover { color: var(--ink); background: var(--bg-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-ghost { font-size: 14px; color: var(--ink-2); padding: 8px 10px; }
.nav-ghost:hover { color: var(--ink); }

/* language switch — bordered mono pill with a lime globe, aligned to the
   blankcollar.university / theblankcollar.com / .ventures switcher. */
.lang-switch {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 11px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  transition: color .14s, border-color .14s, background .14s;
}
.lang-switch:hover, .lang-switch:focus-visible { color: var(--ink); border-color: var(--ink-2); background: var(--bg-2); }
.lang-switch svg { display: block; flex: 0 0 auto; stroke: var(--lime); }
.lang-switch .lang-full { display: none; }   /* desktop shows the code only */

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 64px; text-align: center; overflow: hidden; border: 0; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -10%; transform: translateX(-50%);
  width: 900px; height: 520px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(245,244,240,0.07), transparent 60%);
}
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.hero .lead { max-width: 660px; margin: 26px auto 0; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Product shot frame */
.shot { position: relative; max-width: 1080px; margin: 64px auto 0; padding: 0 var(--pad-x); }
.shot-frame {
  border: 1px solid var(--line-2); border-radius: 0; overflow: hidden;
  background: var(--bg-1);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.8), 0 0 0 1px rgba(245,244,240,0.02);
}
.shot-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.shot-frame img { width: 100%; height: auto; display: block; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:last-child { border-right: 0; }
.stat .label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.stat .v { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.stat .v .unit { color: var(--muted); font-size: 15px; margin-left: 3px; }
.stat .delta { font-family: var(--font-mono); font-size: 12px; }
.stat .delta.pos { color: var(--pos); } .stat .delta.neg { color: var(--neg); }

/* ---------- Feature cards ---------- */
.feature { padding: 32px; }
.feature .ic { width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 18px; color: var(--ink); }
.feature .num-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 14px; }
.feature h3 { margin-bottom: 10px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* split: text + visual */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-text { order: 2; }
.split-text .eyebrow { display: block; margin-bottom: 16px; }
.split-text h2 { margin-bottom: 18px; }
.split-text p { color: var(--ink-2); margin: 0 0 16px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.checklist li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pos); margin-top: 8px; flex-shrink: 0; }

/* ---------- Product mockups (built from design vocabulary) ---------- */
.mock { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); overflow: hidden; }
.mock-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-head .title { font-size: 13px; font-weight: 500; }
.goal-row { display: grid; grid-template-columns: 28px 1fr 84px 96px; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.goal-row:first-of-type { border-top: 0; }
.goal-row .gn { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.goal-row .gt { font-size: 13.5px; font-weight: 500; }
.goal-row .gs { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.progressbar { height: 4px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.progressbar > i { display: block; height: 100%; background: var(--ink); }
.goal-row .gdue { font-family: var(--font-mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; justify-content: flex-end; }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); }
.kcol { border-right: 1px solid var(--line); padding: 14px; min-height: 200px; }
.kcol:last-child { border-right: 0; }
.kcol-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px; margin-bottom: 8px; }
.tcard .tk { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); margin-bottom: 6px; }
.tcard .tt { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.tcard .tm { display: flex; align-items: center; gap: 6px; margin-top: 10px; }

/* sigil (generative agent mark, simplified) */
.sigil { width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); display: grid; place-items: center; flex-shrink: 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #C9C5B8, #8C8A82); color: #0B0B0C; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; flex-shrink: 0; }

/* ---------- Code / terminal ---------- */
.terminal { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); overflow: hidden; font-family: var(--font-mono); }
.terminal-bar { height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.terminal-bar .t { margin-left: 8px; font-size: 11px; color: var(--muted); }
.terminal pre { margin: 0; padding: 18px 20px; font-size: 13px; line-height: 1.7; color: var(--ink-2); overflow-x: auto; }
.terminal pre .c { color: var(--pos); } /* command */
.terminal pre .o { color: var(--muted); } /* output / comment */
.terminal pre .p { color: var(--info); } /* prompt symbol */

/* ---------- Persona cards ---------- */
.persona { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.persona .eyebrow { color: var(--ink-2); }
.persona h3 { font-size: 18px; }
.persona .who { font-size: 13px; color: var(--muted); }
.persona .goal { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--ink); line-height: 1.4; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { color: var(--ink-2); margin: 0 0 30px; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; position: relative; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-2); padding: 5px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-bottom .meta { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.footer-socials { display: flex; gap: 6px; }
.footer-socials a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.footer-socials a:hover { color: var(--ink); border-color: var(--line-2); }
.footer-socials svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Sub-page hero ---------- */
.page-hero { padding: 76px 0 40px; }
.page-hero .eyebrow { display: block; margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 18px; max-width: 16ch; }
.page-hero p { color: var(--ink-2); max-width: 640px; font-size: clamp(16px,1.6vw,18px); line-height: 1.55; margin: 0; }

/* ---------- Long-form / legal / prose ---------- */
.prose { max-width: 740px; }
.prose h2 { font-size: 22px; margin: 44px 0 14px; letter-spacing: -0.015em; }
.prose h3 { font-size: 17px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; line-height: 1.72; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ctable { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.ctable th, .ctable td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; }
.ctable th:last-child, .ctable td:last-child { border-right: 0; }
.ctable tbody tr:last-child td { border-bottom: 0; }
.ctable thead th { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; white-space: nowrap; }
.ctable tbody td:first-child { color: var(--ink); font-weight: 500; }
.ctable td.yes { color: var(--pos); } .ctable td.no { color: var(--muted-2); }
.ctable tbody tr:hover { background: var(--bg-1); }
.ctable .col-bc { background: rgba(184,255,90,0.04); color: var(--ink); }
.ctable thead .col-bc { color: var(--ink); }

/* ---------- Responsive ---------- */
.nav-burger { display: none; }
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-text { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --pad-x: 20px; }
  .nav-links, .nav-ghost { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .section { padding: 64px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Brand alignment layer — logo · brand colour · pattern · motion
   ============================================================ */
:root {
  --brand-pink: #FF1F8F;   /* the // mark — human */
  --brand-lime: #D6F41F;   /* the // mark — machine */
}

/* the real wordmark logo (// slashes + blankcollar/ai) */
.brand-logo { height: 22px; width: auto; display: block; }
.footer .brand-logo { height: 19px; opacity: .92; }

/* brand-colour accents, used sparingly on a monochrome base */
.accent-pink { color: var(--brand-pink); }
.accent-lime { color: var(--brand-lime); }
.slash { font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.06em; }
.slash .p { color: var(--brand-pink); } .slash .l { color: var(--brand-lime); }
.eyebrow .slash { margin-right: 9px; }
.nav-link { transition: color .12s, background .12s, box-shadow .16s; }
.nav-link:hover { box-shadow: inset 0 -2px 0 var(--brand-pink); }
.persona:hover .tiny, .segment-card:hover .segment-card-cta { color: var(--brand-pink); }
.footer-socials a:hover { border-color: var(--brand-pink); color: var(--brand-pink); }

/* Swiss-grid pattern — faint vertical 12-col rule, masked */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: .07;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 28%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 28%, #000, transparent 72%);
}
.hero::before, .hero::after { z-index: 0; }
.hero-inner, .hero .shot { position: relative; z-index: 1; }

/* a hairline brand rule you can drop between sections */
.brand-rule { height: 2px; border: 0; margin: 0; background: linear-gradient(90deg, var(--brand-pink), var(--brand-lime)); opacity: .85; }

/* ---------- Motion — pure CSS, ALWAYS ends visible (no JS dependency) ----------
   Content's default state is visible. When motion is allowed, blocks fade-up once
   on load. No IntersectionObserver, no opacity-0-until-JS — so nothing can ever be
   left hidden if a script is slow, blocked, or errors. */
@media (prefers-reduced-motion: no-preference) {
  .section-head, .grid, .split, .mock, .terminal,
  .stats, .cta-band, .table-wrap, .divide-band, .shot {
    animation: bcReveal .7s cubic-bezier(.2, .7, .2, 1) both;
  }
}
@keyframes bcReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* count-up numerals don't reflow */
.stat .v .num { font-variant-numeric: tabular-nums; }

/* ============================================================
   Finish-everything pass — carousel · os-stack · mobile · demo
   ============================================================ */

/* ---- Hero carousel (swipeable product screens) ---- */
.carousel { position: relative; }
.carousel-viewport {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.9);
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-slide { min-width: 100%; scroll-snap-align: center; }
.carousel-slide figure { margin: 0; background: var(--bg-1); }
.carousel-slide .bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.carousel-slide .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.carousel-slide .bar .lbl { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.carousel-slide img { width: 100%; height: auto; display: block; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 1px solid var(--line-2);
  background: rgba(20,20,20,0.8); backdrop-filter: blur(6px);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; z-index: 2; font-size: 18px; line-height: 1;
}
.carousel-arrow.prev { left: calc(var(--pad-x) - 20px); } .carousel-arrow.next { right: calc(var(--pad-x) - 20px); }
.carousel-arrow:hover { border-color: var(--pink); color: var(--pink); }
.carousel-ui { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 26px; height: 4px; border: 0; background: var(--line-2); padding: 0; cursor: pointer; }
.carousel-dot[aria-current="true"] { background: var(--pink); }
.carousel-cap { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---- The five layers (os-stack) ---- */
.os-stack { display: flex; flex-direction: column; gap: 8px; }
.os-row { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); background: var(--bg-1); transition: border-color .15s, background .15s; }
.os-row:hover { border-color: var(--line-2); background: var(--bg-2); }
.os-row .lyr { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.os-row .lyr b { display: block; color: var(--ink); font-weight: 500; margin-top: 4px; letter-spacing: 0; }
.os-row .nm { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.os-row .tg { color: var(--muted); font-size: 13.5px; margin-top: 5px; line-height: 1.5; max-width: 66ch; }
.os-trust { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border: 1px dashed var(--line-2); color: var(--ink-2); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.os-trust .r { color: var(--ink-2); letter-spacing: 0; }

/* ---- Mobile presence ---- */
.mobile-show { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.mobile-show .phone { margin: 0; }
.mobile-show .phone img { width: 100%; height: auto; display: block; }

/* ---- Nav: live Demo button ---- */
.nav-demo { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mint); border: 1px solid rgba(60,255,208,0.45); padding: 7px 12px; display: inline-flex; align-items: center; gap: 7px; transition: background .14s, border-color .14s; }
.nav-demo:hover { border-color: var(--mint); background: rgba(60,255,208,0.08); }
.nav-demo .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: pulse 2s ease-in-out infinite; }

@media (max-width: 920px) {
  .mobile-show { grid-template-columns: 1fr; gap: 32px; }
  .mobile-show .phone { max-width: 300px; margin: 0 auto; }
  .os-row { grid-template-columns: 88px 1fr; }
}
@media (max-width: 760px) {
  .carousel-arrow { width: 34px; height: 34px; }
  .nav-inner { gap: 14px; }
  .nav-right { gap: 8px; }
  .nav-right .nav-demo { padding: 6px 9px; }
  .nav-right .btn-sm { padding: 0 11px; }
  .gh-pre { display: none; }
}

/* ---- Mobile: phone trio ---- */
.phone-row { display: flex; justify-content: center; align-items: flex-end; gap: 30px; }
.phone-row .phone { margin: 0; flex: 0 1 270px; max-width: 270px; text-align: center; }
.phone-row .phone img { width: 100%; height: auto; display: block; }
.phone-row .phone figcaption { margin-top: 14px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.phone-row .phone-lift { flex-basis: 296px; max-width: 296px; transform: translateY(-26px); }
.phone-row .phone-lift figcaption { color: var(--ink-2); }
@media (max-width: 820px) {
  .phone-row { gap: 14px; }
  .phone-row .phone { flex-basis: 32%; }
  .phone-row .phone-lift { transform: none; }
  .phone-row .phone figcaption { font-size: 9px; letter-spacing: .02em; }
}
@media (max-width: 520px) {
  .phone-row .phone:nth-child(n+2) { display: none; }
  .phone-row .phone { flex-basis: 70%; max-width: 240px; }
}

/* ---- os-stack: duality colour-coding on the layer label only (pink=human · lime=machine · mint=system) ---- */
.os-row.is-lime .lyr { color: var(--lime); }
.os-row.is-pink .lyr { color: var(--pink); }
.os-row.is-mint .lyr { color: var(--mint); }
.os-foot { display: flex; justify-content: flex-start; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.os-foot .found { color: var(--ink-2); }

/* ---------- Accessibility: keyboard focus ring (was absent on this stylesheet) ---------- */
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.btn:focus-visible, .nav-demo:focus-visible, .nav-burger:focus-visible,
.persona:focus-visible, .carousel-dot:focus-visible, .carousel-arrow:focus-visible { outline-offset: 3px; }
.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; }

/* ---------- Mobile nav: burger + overlay (injected by bc.js) ---------- */
.nav-burger {
  margin-left: 4px; background: none; border: 0; cursor: pointer;
  color: var(--ink); font-size: 22px; line-height: 1; padding: 6px 8px;
  -webkit-appearance: none; appearance: none;
}
.nav-overlay { display: none; }
.nav-overlay-inner { display: flex; flex-direction: column; }
@media (max-width: 760px) {
  .nav-overlay {
    display: block; position: fixed; left: 0; right: 0; top: 60px; bottom: 0; z-index: 49;
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  body.nav-open .nav-overlay { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
  .nav-overlay-inner { padding: 14px var(--pad-x) 36px; }
  .nav-overlay-link {
    display: block; padding: 18px 2px; font-size: 19px; color: var(--ink);
    border-bottom: 1px solid var(--line); letter-spacing: -0.01em;
  }
  .nav-overlay-link:hover { color: var(--ink); }
  .nav-overlay-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
  .nav-overlay-actions > * { width: 100%; justify-content: center; text-align: center; }
  .nav-overlay-actions .btn { width: 100%; padding: 14px 20px; }
  .nav-overlay-actions .nav-ghost { display: flex; }  /* keep docs reachable (inline copy is hidden) */
  .nav-overlay-actions .gh-pre { display: inline; }   /* full "Get it on GitHub" inside the menu */
  /* language switch: hide the header pill, show a labelled full-width row in the menu */
  .nav-right .lang-switch { display: none; }
  .nav-overlay-actions .lang-switch {
    width: 100%; height: 46px; justify-content: flex-start;
    gap: 12px; padding: 0 16px; font-size: 13px;
  }
  .nav-overlay-actions .lang-switch .lang-code { display: none; }
  .nav-overlay-actions .lang-switch .lang-full { display: inline; }
}
@media (max-width: 520px) {
  .nav-demo { display: none; }                        /* inline copy hidden to save bar space */
  .nav-overlay-actions .nav-demo { display: flex; }   /* but keep it reachable in the overlay */
}
@media (prefers-reduced-motion: reduce) {
  .nav-overlay { transition: none; }
}
