/* ═══════════════════════════════════════════════════════════════════════════
   BRIMKIT.COM — editorial console
   Paper, ink, one printer's registration colour. Hairlines, square corners,
   negative space. Vermilion marks selection and decisive actions only.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted, no third-party requests) ─────────────────────────── */
@font-face {
  font-family: "Roboto Condensed";
  src: url("../assets/fonts/RobotoCondensed-Black.ttf") format("truetype");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../assets/fonts/RobotoCondensed-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../assets/fonts/RobotoCondensed-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --paper: #F1EFE8;
  --surface: #FBFAF5;
  --chrome: #E8E4DA;
  --ink: #11110E;
  --ink-2: #56534D;
  --ink-3: #8D887F;
  --hair: rgba(17, 17, 14, 0.18);
  --hair-soft: rgba(17, 17, 14, 0.07);
  --grid-line: rgba(17, 17, 14, 0.045);
  --verm: #E5411D;
  --verm-deep: #C93418;
  --verm-glow: rgba(229, 65, 29, 0.35);
  --pass: #1E8E4A;
  --dot-off: rgba(17, 17, 14, 0.10);
  --plate-shadow: 0 24px 60px -24px rgba(17, 17, 14, 0.35);

  --face-display: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --face-mono: ui-monospace, "SF Mono", "Menlo", "Roboto Mono", "Consolas", monospace;
  --face-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --topbar-h: 58px;
  --pad: clamp(20px, 4.5vw, 64px);
  --measure: 62ch;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #090907;
  --surface: #11110E;
  --chrome: #0D0D0A;
  --ink: #F3F0E8;
  --ink-2: #A7A39A;
  --ink-3: #716E68;
  --hair: rgba(243, 240, 232, 0.20);
  --hair-soft: rgba(243, 240, 232, 0.08);
  --grid-line: rgba(243, 240, 232, 0.05);
  --verm: #FF603A;
  --verm-deep: #E5411D;
  --verm-glow: rgba(255, 96, 58, 0.40);
  --pass: #3FD07A;
  --dot-off: rgba(243, 240, 232, 0.12);
  --plate-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #090907;
    --surface: #11110E;
    --chrome: #0D0D0A;
    --ink: #F3F0E8;
    --ink-2: #A7A39A;
    --ink-3: #716E68;
    --hair: rgba(243, 240, 232, 0.20);
    --hair-soft: rgba(243, 240, 232, 0.08);
    --grid-line: rgba(243, 240, 232, 0.05);
    --verm: #FF603A;
    --verm-deep: #E5411D;
    --verm-glow: rgba(255, 96, 58, 0.40);
    --pass: #3FD07A;
    --dot-off: rgba(243, 240, 232, 0.12);
    --plate-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  background: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--face-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--verm); color: #FBFAF5; }
section { scroll-margin-top: calc(var(--topbar-h) + 16px); }

/* ── Type utilities ───────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--face-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow .tick { color: var(--verm); }
.micro {
  font-family: var(--face-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.display {
  font-family: var(--face-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.prose { max-width: var(--measure); color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.period { color: var(--verm); }

/* ── Chips & rules ────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hair);
  background: var(--surface);
  padding: 5px 10px;
  font-family: var(--face-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-radius: 2px;
  white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--verm); box-shadow: 0 0 6px var(--verm-glow); }
.rule { border: 0; border-top: 1px solid var(--hair); }
.rule-tick { position: relative; }
.rule-tick::before { content: ""; position: absolute; top: -1px; left: 0; width: 42px; height: 3px; background: var(--verm); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--face-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  padding: 14px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn .arrow { display: inline-block; transition: transform 0.18s ease; font-family: var(--face-body); }
.btn:hover .arrow { transform: translateX(6px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--verm);
  color: #FBFAF5;
  box-shadow: 0 0 0 0 var(--verm-glow), 0 10px 28px -10px var(--verm-glow);
}
.btn-primary:hover { box-shadow: 0 0 22px 0 var(--verm-glow), 0 14px 32px -8px var(--verm-glow); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ── Top bar ──────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--face-display); font-weight: 900; font-size: 19px;
  position: relative;
  line-height: 1;
}
.brand-mark::after {
  content: ""; position: absolute; top: 5px; right: 5px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--verm);
}
.brand-type { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--face-display); font-weight: 900; font-size: 17px; letter-spacing: 0.02em; color: var(--ink); }
.brand-sub { font-family: var(--face-mono); font-size: 8.5px; letter-spacing: 0.18em; color: var(--ink-3); text-transform: uppercase; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  font-family: var(--face-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  padding: 8px 12px; border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}
.topnav a:hover { color: var(--ink); background: var(--hair-soft); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--hair); border-radius: 2px;
  background: var(--surface); color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  font-size: 14px;
}
.theme-btn:hover { border-color: var(--ink); }
.topbar .btn { padding: 9px 16px; font-size: 13px; }
@media (max-width: 860px) {
  .topnav { display: none; }
  .brand-sub { display: none; }
}

/* ── Vertical wordmark (desktop only) ─────────────────────────────────────── */
.wordmark {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 84px;
  z-index: 5;
  pointer-events: none;
  display: none;
  overflow: hidden;
  border-right: 1px solid var(--hair-soft);
}
@media (min-width: 1360px) { .wordmark { display: block; } }
.wordmark span {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--face-display);
  font-weight: 900;
  font-size: 92px;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0.92;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
}
.wordmark b { font-weight: 900; transition: color 1.1s ease; }
.wordmark b.lit { color: var(--verm); transition: color 0.25s ease; }
@media (min-width: 1360px) {
  .shell { padding-left: 84px; }
}

/* ── Layout scaffold ──────────────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.marginalia {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--hair);
  position: relative;
}
.marginalia::before { content: ""; position: absolute; top: -1px; left: 0; width: 42px; height: 3px; background: var(--verm); }
.marginalia .note { font-family: var(--face-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); line-height: 1.7; padding-top: 4px; }
@media (max-width: 760px) {
  .marginalia { grid-template-columns: 1fr; gap: 10px; }
}

/* ── Crop-marked plate ────────────────────────────────────────────────────── */
.plate { position: relative; padding: 18px; }
.plate > .plate-body {
  border: 1px solid var(--hair);
  background: var(--surface);
  box-shadow: var(--plate-shadow);
  overflow: hidden;
  border-radius: 3px;
}
.plate .cm { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.plate .cm::before, .plate .cm::after { content: ""; position: absolute; background: var(--ink-3); }
.plate .cm::before { width: 14px; height: 1px; }
.plate .cm::after { width: 1px; height: 14px; }
.plate .cm.tl { top: 0; left: 0; }
.plate .cm.tr { top: 0; right: 0; transform: scaleX(-1); }
.plate .cm.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.plate .cm.br { bottom: 0; right: 0; transform: scale(-1); }
.plate .cm.tl::before, .plate .cm.tl::after { top: 0; left: 0; }
.plate .cm.tr::before, .plate .cm.tr::after { top: 0; left: 0; }
.plate .cm.bl::before, .plate .cm.bl::after { top: 0; left: 0; }
.plate .cm.br::before, .plate .cm.br::after { top: 0; left: 0; }
.plate-caption {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 2px 0;
  font-family: var(--face-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}

/* ── Dot-matrix readout ───────────────────────────────────────────────────── */
.dm { display: inline-flex; gap: 0.42em; line-height: 0; }
.dm-char { display: inline-grid; grid-template-columns: repeat(5, 1fr); gap: 0.09em; width: 1.05em; }
.dm i {
  width: 0.135em; height: 0.135em; border-radius: 50%;
  background: var(--dot-off);
}
.dm i.on { background: var(--verm); box-shadow: 0 0 0.18em var(--verm-glow); }
.dm.ink i.on { background: var(--ink); box-shadow: none; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding-top: calc(var(--topbar-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(56px, 8vw, 110px); position: relative; }
.hero-eyebrow-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 44px); }
.hero-rule { flex: 0 0 40px; height: 3px; background: var(--verm); }
.hero h1 {
  font-size: clamp(3.4rem, 12.5vw, 11.5rem);
  margin: 0 0 clamp(26px, 3.5vw, 44px);
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.standfirst {
  border-left: 3px solid var(--verm);
  padding-left: 18px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
  max-width: 44ch;
}
.standfirst strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-reqs { font-family: var(--face-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.hero-stats { display: flex; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--hair); }
.stat { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.stat .dm { font-size: clamp(20px, 2.6vw, 30px); }
.stat .label { font-family: var(--face-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.hero-plate img { width: 100%; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
}

/* ── Ticker ───────────────────────────────────────────────────────────────── */
.ticker {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--surface);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-track {
  display: inline-flex;
  padding: 12px 0;
  animation: ticker 46s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--face-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 0 26px;
  border-right: 1px solid var(--hair-soft);
}
.ticker-track span em { font-style: normal; color: var(--verm); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ── Statement ────────────────────────────────────────────────────────────── */
.statement { font-size: clamp(1.9rem, 4.6vw, 3.9rem); line-height: 1.02; max-width: 22ch; }
.statement .period { color: var(--verm); }
.statement-sub { max-width: 58ch; color: var(--ink-2); margin-top: 26px; font-size: clamp(1rem, 1.3vw, 1.12rem); }

/* ── Pipeline ─────────────────────────────────────────────────────────────── */
.pipeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.stage-rail {
  position: sticky;
  top: calc(var(--topbar-h) + 28px);
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 3px;
  padding: 6px;
}
.stage-rail-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--hair-soft);
}
.stage-rail-head .dm { font-size: 15px; }
.rail-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 12px;
  text-decoration: none;
  position: relative;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.rail-item + .rail-item { border-top: 1px solid var(--hair-soft); }
.rail-item .n { font-family: var(--face-mono); font-size: 11px; color: var(--ink-3); padding-top: 2px; }
.rail-item .t { font-family: var(--face-display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); line-height: 1.15; }
.rail-item .s { font-family: var(--face-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rail-item::after {
  content: ""; position: absolute; right: 0; top: 18%; bottom: 18%;
  width: 3px; background: transparent; border-radius: 2px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.rail-item.active { background: var(--hair-soft); }
.rail-item.active .n, .rail-item.active .t { color: var(--verm); }
.rail-item.active::after { background: var(--verm); box-shadow: 0 0 10px var(--verm-glow); }
.rail-progress { padding: 12px; border-top: 1px solid var(--hair-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rail-progress .bar { flex: 1; height: 2px; background: var(--hair-soft); position: relative; }
.rail-progress .bar i { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--verm); transition: width 0.4s ease; }
@media (max-width: 980px) {
  .pipeline-grid { grid-template-columns: 1fr; }
  .stage-rail { display: none; }
}

.stage {
  display: grid;
  grid-template-columns: minmax(96px, 168px) 1fr;
  gap: 28px;
  padding: clamp(36px, 5vw, 60px) 0;
  border-top: 1px solid var(--hair);
  position: relative;
}
.stage::before { content: ""; position: absolute; top: -1px; left: 0; width: 42px; height: 3px; background: var(--verm); }
.stage-no {
  font-family: var(--face-mono);
  font-size: 12px; letter-spacing: 0.12em; color: var(--ink-3);
  display: flex; flex-direction: column; gap: 12px;
}
.stage-no .big {
  font-family: var(--face-display); font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.2rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--hair);
  line-height: 0.9;
}
.stage.active-stage .stage-no .big { color: var(--verm); -webkit-text-stroke: 0; transition: color 0.3s ease; }
.stage-body h3 { font-family: var(--face-display); font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.7rem); text-transform: uppercase; line-height: 0.95; margin-bottom: 6px; }
.stage-body .sub { font-family: var(--face-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--verm); margin-bottom: 18px; }
.stage-body p { max-width: 58ch; color: var(--ink-2); }
.stage-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
@media (max-width: 680px) {
  .stage { grid-template-columns: 1fr; gap: 12px; }
  .stage-no { flex-direction: row; align-items: baseline; }
}

/* ── Proof / QC cells ─────────────────────────────────────────────────────── */
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cell {
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 3px;
  padding: 20px;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cell:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.cell::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 22px; height: 3px; background: var(--verm);
}
.cell-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cell-head .name { font-family: var(--face-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.cell-head .status { font-family: var(--face-mono); font-size: 9px; letter-spacing: 0.12em; color: var(--pass); }
.cell .value { font-family: var(--face-display); font-weight: 900; font-size: clamp(1.9rem, 3vw, 2.6rem); text-transform: uppercase; line-height: 0.95; }
.cell .value .dm { font-size: clamp(22px, 2.4vw, 30px); }
.cell p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* ── Casting pair ─────────────────────────────────────────────────────────── */
.pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  max-width: 720px;
}
.pair-grid figure { position: relative; border: 1px solid var(--hair); background: var(--surface); border-radius: 3px; overflow: hidden; }
.pair-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pair-grid figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--ink); color: var(--paper);
  font-family: var(--face-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 2px;
}
.pair-grid figcaption em { font-style: normal; color: var(--verm); }
.proof-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(44px, 6vw, 72px); }
@media (max-width: 900px) { .proof-split { grid-template-columns: 1fr; } }

/* ── App section ──────────────────────────────────────────────────────────── */
.app-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 980px) { .app-split { grid-template-columns: 1fr; } }
.engine-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.engine {
  border: 1px solid var(--hair); background: var(--surface); border-radius: 3px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.engine .name { font-family: var(--face-display); font-weight: 700; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; }
.engine .res { font-family: var(--face-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 560px) { .engine-row { grid-template-columns: 1fr; } }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; } }
.price-cell {
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 3px;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.price-cell.approved { border-color: var(--verm); box-shadow: 0 0 0 1px var(--verm), 0 18px 44px -20px var(--verm-glow); }
.price-cell .flag {
  position: absolute; top: -1px; right: -1px;
  background: var(--verm); color: #FBFAF5;
  font-family: var(--face-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 0 3px 0 2px;
}
.price-cell .plan { font-family: var(--face-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.price-cell .amount { font-family: var(--face-display); font-weight: 900; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 0.9; text-transform: uppercase; }
.price-cell .amount small { font-family: var(--face-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; color: var(--ink-3); margin-left: 6px; }
.price-cell ul { list-style: none; display: flex; flex-direction: column; gap: 9px; padding: 14px 0; border-top: 1px solid var(--hair-soft); flex: 1; }
.price-cell li { font-size: 13.5px; color: var(--ink-2); padding-left: 18px; position: relative; }
.price-cell li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 2px; background: var(--verm); }
.price-foot { margin-top: 22px; font-family: var(--face-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); max-width: none; line-height: 1.8; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--hair); max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 20px 2px;
  font-family: var(--face-display); font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: 0.03em; text-transform: uppercase;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ind { font-family: var(--face-mono); font-size: 13px; color: var(--verm); flex: 0 0 auto; transition: transform 0.2s ease; }
.faq-list details[open] summary .ind { transform: rotate(45deg); }
.faq-list details p { padding: 0 2px 22px; color: var(--ink-2); max-width: 64ch; }

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.cta-band {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band .display { color: var(--paper); font-size: clamp(2.6rem, 8vw, 7rem); }
.cta-band .display .period { color: var(--verm); }
.cta-band .wrap { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; position: relative; z-index: 1; }
.cta-band .micro { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.cta-band::after {
  content: "BRIMKIT";
  position: absolute; right: -0.6vw; bottom: -6vw;
  font-family: var(--face-display); font-weight: 900;
  font-size: 22vw; line-height: 1; letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--paper) 14%, transparent);
  pointer-events: none;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer.site {
  padding: clamp(48px, 7vw, 90px) 0 34px;
  position: relative;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .display { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.foot-col h4 { font-family: var(--face-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot-col a:hover { color: var(--verm); }
.foot-colophon {
  border-top: 1px solid var(--hair);
  padding-top: 18px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--face-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.regcross { position: absolute; width: 15px; height: 15px; opacity: 0.5; }
.regcross::before, .regcross::after { content: ""; position: absolute; background: var(--ink-3); }
.regcross::before { left: 0; right: 0; top: 7px; height: 1px; }
.regcross::after { top: 0; bottom: 0; left: 7px; width: 1px; }
.regcross.br { right: var(--pad); bottom: 16px; }

/* ── Reveal on scroll ─────────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-26px); }
[data-reveal="left"].in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Dialog ───────────────────────────────────────────────────────────────── */
dialog.console {
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  max-width: 430px;
  width: calc(100% - 40px);
  box-shadow: var(--plate-shadow);
}
dialog.console::backdrop { background: rgba(9, 9, 7, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--hair);
  font-family: var(--face-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.dialog-head button { background: none; border: 0; color: var(--ink-2); cursor: pointer; font-size: 16px; line-height: 1; }
.dialog-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.dialog-body p { font-size: 14px; color: var(--ink-2); }

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.legal { padding-top: calc(var(--topbar-h) + 56px); padding-bottom: 90px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 10px; }
.legal h2 { font-family: var(--face-display); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.04em; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); max-width: 70ch; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal .updated { font-family: var(--face-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 34px; }

/* ── Success page ─────────────────────────────────────────────────────────── */
.success-hero { min-height: 72vh; display: grid; align-items: center; padding-top: var(--topbar-h); }
.success-steps { counter-reset: step; border-top: 1px solid var(--hair); margin-top: 40px; max-width: 720px; }
.success-steps li {
  list-style: none; counter-increment: step;
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--hair-soft);
}
.success-steps li::before {
  content: "0" counter(step);
  font-family: var(--face-mono); font-size: 13px; color: var(--verm);
  padding-top: 3px;
}
.success-steps h3 { font-family: var(--face-display); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.04em; margin-bottom: 4px; }
.success-steps p { color: var(--ink-2); font-size: 14.5px; }

/* ── Filmstrip of real frames ─────────────────────────────────────────────── */
.filmstrip {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--surface);
  overflow: hidden;
}
.filmstrip-track {
  display: inline-flex;
  align-items: stretch;
  padding: 18px 0 14px;
  animation: ticker 58s linear infinite;
  will-change: transform;
  white-space: nowrap;
}
.filmstrip:hover .filmstrip-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .filmstrip-track { animation: none; } }
.filmstrip figure {
  position: relative;
  flex: 0 0 auto;
  margin-right: 14px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  overflow: hidden;
  background: #FFFFFF;
}
.filmstrip img { height: clamp(240px, 30vw, 360px); width: auto; }
.filmstrip figcaption {
  position: absolute; left: 8px; bottom: 8px;
  background: var(--ink); color: var(--paper);
  font-family: var(--face-mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px;
}
.filmstrip figcaption em { font-style: normal; color: var(--verm); }
.filmstrip-note {
  border-top: 1px solid var(--hair-soft);
  padding: 9px var(--pad);
  text-align: center;
}

/* ── The set ──────────────────────────────────────────────────────────────── */
.set-row { margin-top: clamp(30px, 4vw, 48px); }
.set-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.set-meta .tickmark { color: var(--verm); font-style: normal; }
.set-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.set-grid-4 { grid-template-columns: repeat(4, 1fr); }
.set-grid figure {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: 3px;
  overflow: hidden;
  background: #FFFFFF;
}
.set-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.set-grid figure:hover img { transform: scale(1.025); }
.set-grid figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--ink); color: var(--paper);
  font-family: var(--face-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 2px;
}
.set-grid figcaption em { font-style: normal; color: var(--verm); }
@media (max-width: 760px) {
  .set-grid, .set-grid-4 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad);
  }
  .set-grid::-webkit-scrollbar { display: none; }
  .set-grid figure { flex: 0 0 74%; scroll-snap-align: start; }
}

/* ── Trial banner + scale row ─────────────────────────────────────────────── */
.trial-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid var(--verm);
  box-shadow: 0 0 0 1px var(--verm), 0 18px 44px -22px var(--verm-glow);
  background: var(--paper);
  border-radius: 3px;
  padding: 20px 24px;
  margin-bottom: 26px;
  position: relative;
}
.trial-banner::before { content: ""; position: absolute; top: -1px; left: -1px; width: 22px; height: 3px; background: var(--verm); }
.trial-banner .plan { font-family: var(--face-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--verm); display: block; margin-bottom: 4px; }
.trial-banner .trial-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.trial-banner .amount { font-family: var(--face-display); font-weight: 900; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 0.9; text-transform: uppercase; }
.trial-banner .trial-desc { font-family: var(--face-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.trial-banner .btn { flex: 0 0 auto; }
@media (max-width: 700px) {
  .trial-banner { flex-direction: column; align-items: stretch; text-align: left; }
}
.scale-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--hair);
  background: var(--paper);
  border-radius: 3px;
  padding: 16px 24px;
  margin-top: 14px;
}
.scale-row .plan { font-family: var(--face-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.scale-row .scale-spec { font-family: var(--face-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-right: auto; }
.scale-row .scale-price { font-family: var(--face-display); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; }
.scale-row .scale-price small { font-family: var(--face-mono); font-size: 10px; color: var(--ink-3); }
.scale-row .btn { padding: 10px 18px; font-size: 13px; }

/* ── True brand lockup (BrimLogo geometry, stroked monoline) ─────────────── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* RootView recipe at 1.25x: 26pt sharp ink tile, mark 15pt, 4pt dot at (+7,-7)
   from centre, wordmark 13pt, 7.5pt bold mono sub. */
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 0;
  padding: 0;
  display: grid; place-items: center;
  position: relative;
  background: var(--ink);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--verm);
  left: 50%; top: 50%;
  transform: translate(calc(-50% + 8.75px), calc(-50% - 8.75px));
}
.brand-mark svg { height: 18.5px; width: auto; display: block; color: var(--paper); }
.brand-name { position: relative; display: block; }
.brand-name svg.bw { height: 16px; width: auto; display: block; color: var(--ink); }
.brand-sub { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.45; margin-top: 4px; }
.foot-word { position: relative; }
.foot-word svg.bw { height: clamp(30px, 4.5vw, 44px); width: auto; color: var(--ink); }

/* ── Page progress hairline ──────────────────────────────────────────────── */
.pageline { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.pageline i { display: block; height: 100%; width: 100%; background: var(--verm); box-shadow: 0 0 8px var(--verm-glow); transform-origin: 0 50%; transform: scaleX(0); }

/* ── Hero line rise ──────────────────────────────────────────────────────── */
.hero h1 .line { overflow: hidden; }
[data-rise] { display: inline-block; transform: translateY(112%); transition: transform 0.95s cubic-bezier(0.16, 0.84, 0.24, 1); }
[data-rise].in { transform: none; }
@media (prefers-reduced-motion: reduce) { [data-rise] { transform: none; transition: none; } }

/* ── Motion polish ───────────────────────────────────────────────────────── */
.stage::before { width: 0; transition: width 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) 0.15s; }
.stage.in::before { width: 42px; }
.cell::before { transition: width 0.35s ease; }
.cell:hover::before { width: 46px; }
.trial-banner::before { transition: width 0.35s ease; }
.trial-banner:hover::before { width: 46px; }
.filmstrip { position: relative; }
.filmstrip { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); }
dialog.console[open] { animation: dlg 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes dlg { from { opacity: 0; transform: translateY(14px); } }
.topbar { transition: box-shadow 0.25s ease; }
.topbar.scrolled { box-shadow: 0 10px 30px -18px rgba(17, 17, 14, 0.35); }
:root[data-theme="dark"] .topbar.scrolled { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8); }
