/* PenCrimson — components. Every colour and font here is a token from
 * tokens.css; if you find yourself typing a hex value in this file, it belongs
 * in tokens.css instead. Component vocabulary matches tensorone.cloud so the
 * two sites feel like one family: .btn, .wrap, .sec-head, .stats, .band,
 * .tm-card, .spec. */

/* ---- base -------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 2px; font-family: var(--font-mono); font-size: 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }


/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.04em;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff; font-weight: 600;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-2) 80%, var(--accent)), var(--brand-2));
  border-color: color-mix(in srgb, var(--accent) 75%, transparent);
  box-shadow: 0 14px 32px -14px color-mix(in srgb, var(--accent) 85%, transparent);
}
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 15px; font-size: 12px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---- nav --------------------------------------------------------------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.brand { display: flex; align-items: center; }
.wm { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.025em; font-size: 19px; color: var(--ink); line-height: 1; }
.wm .mark { height: 1.35em; width: auto; flex: none; }
.wm .g {
  background: linear-gradient(180deg, #FF8A90 0%, var(--accent) 45%, #A3121C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.foot .wm { font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: 0.03em; transition: color .18s; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 34px; padding: 0;
  background: transparent; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  header.nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; left: 0; right: 0; top: 66px;
    padding: 12px var(--gutter) 18px;
    background: var(--ground); border-bottom: 1px solid var(--line);
  }
  header.nav.open .nav-links a { font-size: 15px; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  header.nav.open .nav-links a[aria-current="page"] { border-bottom-color: var(--accent); }
}
@media (max-width: 560px) { .nav-cta .btn-ghost { display: none; } }

/* ---- hero -------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before, .page-head::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 380px at 78% 4%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(520px 260px at 12% 100%, color-mix(in srgb, var(--brand) 40%, transparent), transparent 70%),
    linear-gradient(transparent 0, transparent calc(100% - 1px), var(--line) 100%);
}
.grid-tex {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); max-width: 16ch; margin-top: 22px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { margin-top: 26px; max-width: 58ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Subpage header: the hero, shorter. */
.page-head { position: relative; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(36px, 5vw, 60px); overflow: hidden; }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); max-width: 18ch; margin-top: 18px; }
.page-head .lede { margin-top: 22px; max-width: 62ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }

/* ---- structure diagram (holding -> companies) ---------------------------- */
.org { position: relative; }
.org-parent {
  display: block; text-align: center; padding: 20px 20px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--ground-2));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent), 0 24px 60px -30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.org-parent .mark { width: 44px; height: 44px; display: block; margin: 0 auto 10px; }
.org-k { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.org-n { display: block; font-weight: 700; letter-spacing: -0.01em; margin-top: 6px; font-size: 1.05rem; line-height: 1.2; }
.org-s { display: block; margin-top: 4px; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.org-stem { width: 1px; height: 26px; background: var(--line-2); margin: 0 auto; }
.org-children { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 22px; }
.org-children::before { content: ""; position: absolute; top: 0; left: calc(100% / 6); right: calc(100% / 6); height: 1px; background: var(--line-2); }
.org-child {
  position: relative; display: block; padding: 14px 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .2s, background .2s, transform .2s;
}
.org-child::before { content: ""; position: absolute; top: -22px; left: 50%; width: 1px; height: 22px; background: var(--line-2); }
.org-child:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--surface-2); }
.org-child .org-n { font-size: .98rem; margin-top: 10px; }
.org-child .org-s { font-size: .78rem; }
@media (max-width: 560px) {
  .org-children { grid-template-columns: 1fr; padding-top: 12px; }
  .org-children::before, .org-child::before { display: none; }
}

/* ---- chips ------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px; border: 1px solid var(--line-2); color: var(--muted); line-height: 1.4;
  white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip.live { color: var(--live); border-color: color-mix(in srgb, var(--live) 40%, var(--line)); }

.chip.dev { color: var(--dev); border-color: color-mix(in srgb, var(--dev) 40%, var(--line)); }
/* Availability, not build status: how you get in, not how finished it is. */
.chip.avail { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }


/* ---- stats band ---------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(40px, 6vw, 64px); background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--ground-2); padding: 24px; }
.stat .n { font-family: var(--font-mono); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.stat .n .u { color: var(--accent); }
.stat .k { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
@media (max-width: 680px) { .stats { grid-template-columns: 1fr; } }

/* ---- sections ------------------------------------------------------------ */
section { position: relative; padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
section.alt { background: var(--ground-2); }
.hero, .page-head { border-top: none; }
.sec-head { max-width: 62ch; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-top: 18px; }
.sec-head h2 .accent { color: var(--accent); }
.sec-head .lede { margin-top: 20px; color: var(--muted); font-size: 1.08rem; }
.sec-head .body { margin-top: 18px; color: var(--muted); }
.sec-head .body p + p { margin-top: 14px; }
.sec-head .body b { color: var(--ink); font-weight: 600; }
.chiprow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.chiprow.legend { margin-top: 18px; }

/* ---- company cards (home) ------------------------------------------------ */
.co-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .co-grid { grid-template-columns: 1fr; max-width: 520px; } }
.co-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 30px 26px 26px;
  transition: border-color .2s, transform .2s, background .2s;
}
.co-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.co-card.feature {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 24px 60px -30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.badge-top {
  position: absolute; top: -11px; left: 26px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.co-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; }
.co-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.co-card p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.co-more { margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink); }
.co-card:hover .co-more { color: var(--accent); }

/* ---- company detail (portfolio page) ------------------------------------- */
.co-detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .co-detail { grid-template-columns: 1fr; } }
.co-detail .hero-cta { margin-top: 28px; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px 26px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding-top: 3px; white-space: nowrap; }
.facts dd { margin: 0; font-size: .95rem; color: var(--ink); }
.facts dd a { color: var(--accent); }
.facts dd a:hover { color: var(--accent-2); }
.checks { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; }
.checks li { display: flex; gap: 11px; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.checks li svg { flex: none; margin-top: 3px; color: var(--accent); width: 15px; height: 15px; }

/* ---- numbered list + side panel ------------------------------------------ */
.split { margin-top: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.num-list { display: flex; flex-direction: column; gap: 18px; }
/* Standalone num-list (not inside .split): breathes more, holds its own measure. */
.num-list.lead { margin-top: 40px; gap: 26px; max-width: 70ch; }
.num-item { display: flex; gap: 16px; align-items: flex-start; }
.num-item .mk { font-family: var(--font-mono); color: var(--accent); font-size: 13px; margin-top: 3px; }
.num-item h3 { font-size: 1.06rem; }
.num-item p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; }
.panel .h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.panel p { margin-top: 14px; font-size: .95rem; color: var(--muted); line-height: 1.55; }
.panel p b { color: var(--ink); font-weight: 600; }
.panel .btn { margin-top: 20px; }
.panel a.big { display: block; margin-top: 10px; font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.panel a.big:hover { color: var(--accent); }
.panel + .panel { margin-top: 18px; }

/* ---- band ---------------------------------------------------------------- */
.band {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 20px 26px; border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 22%, var(--ground));
}
.band .t { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.band .t b { color: var(--accent); font-weight: 600; }

/* ---- steps --------------------------------------------------------------- */
.st-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .st-grid { grid-template-columns: 1fr; } }
.st-card { border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius); background: var(--surface); padding: 26px 24px; }
.st-card .who { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.st-card h3 { font-size: 1.12rem; margin-top: 12px; }
.st-card p { margin-top: 11px; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* ---- routing table ------------------------------------------------------- */
.route { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.route-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 22px; background: var(--surface); border-top: 1px solid var(--line); }
.route-row:first-child { border-top: none; }
.route-row .q { font-size: .98rem; }
.route-row .q small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.route-row .a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); white-space: nowrap; }
@media (max-width: 560px) { .route-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---- team ---------------------------------------------------------------- */
.tm-grid { margin-top: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .tm-grid { grid-template-columns: 1fr; } }
.tm-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(100deg, var(--surface), var(--ground-2)); padding: 26px; }
.tm-head { display: flex; align-items: center; gap: 16px; }
.tm-photo { width: 72px; height: 72px; flex: none; border-radius: 3px; border: 1px solid var(--line-2); background: var(--ground); overflow: hidden; }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-grid.lg .tm-photo { width: 128px; height: 128px; }
@media (max-width: 480px) { .tm-grid.lg .tm-head { flex-direction: column; align-items: flex-start; } }
.tm-name { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.tm-grid.lg .tm-name { font-size: 1.35rem; }
.tm-role { margin-top: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tm-bio { margin-top: 16px; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.tm-bio p + p { margin-top: 10px; }
.more { margin-top: 26px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em; }
.more a { color: var(--accent); }
.more a:hover { color: var(--accent-2); }

/* ---- final cta ------------------------------------------------------------- */
#final { text-align: center; }
#final .wrap { max-width: 780px; }
#final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 18px; }
#final p { margin-top: 20px; color: var(--muted); font-size: 1.12rem; }
#final .hero-cta { justify-content: center; margin-top: 32px; }

/* ---- contact form ---------------------------------------------------------- */
.contact-grid { margin-top: 8px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { position: relative; display: flex; flex-direction: column; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form label .opt { color: var(--faint); letter-spacing: .06em; text-transform: none; margin-left: 6px; }
.form input, .form textarea, .form select {
  width: 100%; margin: 0;
  background: var(--ground); border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.4;
  padding: 12px 14px; outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.form textarea { resize: vertical; min-height: 150px; }
.form select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A9A1A7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.msg { display: none; margin-top: 6px; padding: 12px 14px; border-radius: var(--radius); font-size: .92rem; border: 1px solid var(--line-2); line-height: 1.5; }
.msg.show { display: block; }
.msg.ok { border-color: color-mix(in srgb, var(--live) 45%, var(--line)); color: var(--live); background: color-mix(in srgb, var(--live) 8%, transparent); }
.msg.err { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.msg a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- prose (privacy notice) --------------------------------------------------- */
.prose { max-width: 74ch; }
.prose .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.prose h2 { font-size: 1.3rem; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.prose h3 { font-size: 1.05rem; margin-top: 26px; }
.prose p { margin-top: 14px; color: var(--muted); }
.prose p.short { color: var(--ink); border-left: 2px solid var(--accent); padding-left: 14px; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 22px; color: var(--muted); }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--faint); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-2); }
.prose .toc { margin-top: 26px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose .toc .h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.prose .toc ol { margin-top: 10px; font-size: .92rem; columns: 2; column-gap: 28px; }
@media (max-width: 600px) { .prose .toc ol { columns: 1; } }
.prose .toc a { color: var(--muted); text-decoration: none; }
.prose .toc a:hover { color: var(--accent); }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.prose th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-top: none; }
.prose td:first-child { color: var(--ink); }
.prose td:last-child { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }

/* ---- footer ------------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding-block: 46px; background: var(--ground-2); }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot .brand { margin-bottom: 14px; }
.foot .tag { color: var(--faint); font-size: 0.85rem; max-width: 34ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; font-weight: 600; }
.foot-col a, .foot-col span { display: block; color: var(--muted); font-size: 0.9rem; padding: 4px 0; transition: color .15s; }
.foot-col span { color: var(--faint); }
.foot-col span small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; }
.foot-col a:hover { color: var(--accent); }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-bottom {
  max-width: var(--maxw); margin: 34px auto 0; padding-inline: var(--gutter); padding-top: 22px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--faint);
}

/* ---- spec table ---------------------------------------------------------
 * Replaces the icon-card grid. Key on the left in mono, value on the right.
 * Used wherever a page needs to state what something is rather than sell it. */
.spec { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 200px 1fr; gap: 22px; padding: 15px 22px; background: var(--surface); border-top: 1px solid var(--line); }
.spec-row:first-child { border-top: none; }
.spec-row .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.spec-row .v { font-size: .95rem; color: var(--ink); line-height: 1.55; }
.spec-row .v small { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; line-height: 1.5; }
.spec-row .v code { font-family: var(--font-mono); font-size: .86rem; color: var(--accent); }
@media (max-width: 640px) { .spec-row { grid-template-columns: 1fr; gap: 5px; } .spec-row .k { padding-top: 0; } }

/* ---- curriculum (Crimson Academy) ---------------------------------------- */
.track { margin-top: clamp(36px, 5vw, 56px); }
.track-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.track-head h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.track-head .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.track-head .meta b { color: var(--accent); font-weight: 600; }
.track > p.intro { margin-top: 14px; color: var(--muted); font-size: .95rem; max-width: 70ch; }

.course-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 760px) { .course-grid { grid-template-columns: 1fr; } }
.course { background: var(--ground); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; transition: background .2s; }
.course:hover { background: var(--surface); }
.course .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.course h4 { font-size: 1rem; letter-spacing: -0.01em; }
.course p { font-size: .89rem; color: var(--muted); line-height: 1.5; }
.course .prep { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.course .prep b { color: var(--accent); font-weight: 600; }
.lvl {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 2px; border: 1px solid var(--line-2); color: var(--faint); white-space: nowrap; flex: none;
}
.lvl.one { color: var(--live); border-color: color-mix(in srgb, var(--live) 35%, var(--line)); }
.lvl.two { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.lvl.three { color: var(--dev); border-color: color-mix(in srgb, var(--dev) 35%, var(--line)); }

/* ---- tiers (Cerebro membership) ------------------------------------------ */
.tiers { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.tier:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tier.core { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--ground-2)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tier .tn { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.tier h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
.tier .who { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.tier .checks { margin-top: 6px; }

/* ---- 404 ------------------------------------------------------------------------ */
.notfound { min-height: 62vh; display: flex; align-items: center; }
.notfound .code {
  font-family: var(--font-mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; letter-spacing: -0.05em; line-height: .9; margin-bottom: 18px;
  color: var(--accent);
}
