:root {
  /* Neutrals (portal-compatible) */
  --c-bg: #f9fafb;
  --c-surface: #ffffff;
  --c-border: #e5e7eb;
  --c-border-strong: #d1d5db;
  --c-text: #111827;
  --c-text-soft: #374151;
  --c-text-muted: #6b7280;
  --c-link: #2563eb;

  /* Semantic status colors (portal-compatible) */
  --ok-bg: #ecfdf5;
  --ok-border: #bbf7d0;
  --ok-text: #047857;
  --warn-bg: #fff7ed;
  --warn-border: #fed7aa;
  --warn-text: #9a3412;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
  --info-text: #1d4ed8;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #b91c1c;

  /* External accents */
  --brand-1: #2563eb;
  --brand-2: #7c3aed;
  --brand-3: #06b6d4;

  --g-hero: radial-gradient(1200px 600px at 20% 10%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(900px 520px at 80% 0%, rgba(124, 58, 237, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(249, 250, 251, 1));
  --g-divider: linear-gradient(90deg, transparent, rgba(17, 24, 39, 0.12), transparent);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.10);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(229, 231, 235, 0.75);

  --r-8: 8px;
  --r-12: 12px;
  --r-16: 16px;

  --s-2: 2px;
  --s-4: 4px;
  --s-6: 6px;
  --s-8: 8px;
  --s-10: 10px;
  --s-12: 12px;
  --s-14: 14px;
  --s-16: 16px;
  --s-18: 18px;
  --s-24: 24px;
  --s-32: 32px;
  --s-44: 44px;
  --s-64: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.cookie {
  position: fixed;
  left: var(--s-16);
  right: var(--s-16);
  bottom: var(--s-16);
  z-index: 60;
  display: none;
}

.cookie.is-open {
  display: block;
}

.cookie__inner {
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: var(--r-16);
  box-shadow: var(--shadow-2);
  padding: var(--s-12);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-12);
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookie__k {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cookie__d {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-soft);
}

.cookie__links {
  margin-left: var(--s-10);
  white-space: nowrap;
}

.cookie__links a {
  color: var(--c-link);
}

.legal h3 {
  margin: var(--s-16) 0 var(--s-10) 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.legal__p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-soft);
}

.legal__p + .legal__p {
  margin-top: var(--s-10);
}

a {
  color: var(--c-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

pre,
code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.mono {
  font-size: 12px;
  color: var(--c-text-soft);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-32);
}

.mt-12 { margin-top: var(--s-12); }
.mt-16 { margin-top: var(--s-16); }
.mt-24 { margin-top: var(--s-24); }

.skip {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-12);
  padding: var(--s-10) var(--s-12);
  z-index: 100;
}

.skip:focus {
  left: var(--s-16);
  top: var(--s-16);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  padding: var(--s-12) 0;
  flex-wrap: wrap;
}

.topbar__divider {
  height: 1px;
  background: var(--g-divider);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-10);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 1), rgba(124, 58, 237, 1));
  box-shadow: var(--shadow-1);
}

.brand__logo {
  height: 56px;
  width: auto;
  max-width: 40vw;
  display: inline-block;
  filter: none;
}

.brand__word {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--c-text);
}

.nav {
  display: flex;
  gap: var(--s-12);
  align-items: center;
  font-size: 13px;
  color: var(--c-text-soft);
  flex-wrap: wrap;
  max-width: 100%;
}

.nav__link,
.nav__menu-item {
  color: inherit;
  padding: var(--s-6) var(--s-8);
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  text-decoration: none;
}

.nav__link.is-active {
  background: rgba(17, 24, 39, 0.06);
  border: 1px solid var(--c-border);
}

.nav__link:hover,
.nav__menu-item:hover {
  background: rgba(17, 24, 39, 0.04);
  text-decoration: none;
}

.nav__link {
  cursor: pointer;
  user-select: none;
}

.nav__link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.nav__link--primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 1), rgba(124, 58, 237, 1));
  color: #fff;
  border-color: transparent;
}

.nav__link--primary:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(124, 58, 237, 0.92));
}

.nav__link--primary.is-active {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, rgba(37, 99, 235, 1), rgba(124, 58, 237, 1));
}

.nav__dd {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__dd > summary {
  list-style: none;
}

.nav__dd > summary::-webkit-details-marker {
  display: none;
}

.nav__menu {
  display: none;
  position: absolute;
  top: calc(100% + var(--s-8));
  left: 0;
  min-width: 220px;
  max-width: min(320px, 92vw);
  padding: var(--s-8);
  border-radius: var(--r-16);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: var(--shadow-2);
  z-index: 60;
}

.nav__dd:hover > .nav__menu,
.nav__dd[open] > .nav__menu {
  display: grid;
  gap: var(--s-4);
}

.nav__menu-item {
  border-radius: var(--r-12);
  padding: var(--s-8) var(--s-10);
  justify-content: flex-start;
}

.nav__menu-item.is-active {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.topbar__cta {
  margin-left: auto;
  display: flex;
  gap: var(--s-10);
  flex-wrap: wrap;
  align-items: center;
}

/* Backwards-compat alias (older pages used topbar__logo). */
.topbar__logo {
  height: 28px;
  width: auto;
  max-width: 40vw;
  display: inline-block;
  filter: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  padding: var(--s-8) var(--s-12);
  border-radius: 999px;
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-1);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--c-text);
  border-color: var(--c-text);
  color: #fff;
}

.btn--secondary {
  background: var(--c-surface);
  border-color: var(--c-border-strong);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero {
  background: var(--g-hero);
  padding: var(--s-64) 0 var(--s-44) 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-32);
  align-items: start;
}

.hero__copy h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: var(--s-12) 0;
}

.eyebrow {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text-soft);
  margin: var(--s-16) 0 var(--s-18) 0;
  max-width: 60ch;
}

.hero__actions {
  display: flex;
  gap: var(--s-12);
  flex-wrap: wrap;
  align-items: center;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
  margin-top: var(--s-18);
}

.panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-16);
  padding: var(--s-14);
  box-shadow: var(--shadow-2);
}

.panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
}

.panel__k {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel__v {
  font-weight: 800;
  font-size: 15px;
  margin-top: var(--s-4);
}

.panel__m {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-top: var(--s-2);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.panel__eq {
  margin-top: var(--s-10);
  margin-bottom: var(--s-12);
  padding: var(--s-10);
  border-radius: var(--r-12);
  border: 1px solid rgba(229, 231, 235, 0.85);
  background: rgba(255, 255, 255, 0.55);
}

.panel__eqk {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel__eqv {
  margin-top: var(--s-6);
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-soft);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-10);
}

.kpi__card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-12);
  padding: var(--s-10);
  min-width: 0;
  position: relative;
  overflow: hidden;
  --kpi-accent: var(--brand-1);
  --kpi-accent2: var(--brand-2);
}

.kpi__card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--kpi-accent), var(--kpi-accent2));
  opacity: 0.85;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.kpi__card--a { --kpi-accent: var(--brand-1); --kpi-accent2: var(--brand-2); }
.kpi__card--b { --kpi-accent: var(--brand-2); --kpi-accent2: var(--brand-3); }
.kpi__card--c { --kpi-accent: var(--brand-3); --kpi-accent2: var(--brand-1); }
.kpi__card--danger { --kpi-accent: var(--danger-text); --kpi-accent2: var(--warn-text); }

.kpi__k {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.kpi__v {
  font-weight: 900;
  font-size: 22px;
  margin-top: var(--s-4);
}

.kpi__m {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-top: var(--s-2);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--s-2) var(--s-8);
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pill--ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok-text);
}

.pill--warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

.pill--info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
}

.mini-note {
  margin-top: var(--s-12);
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.note {
  margin-top: var(--s-12);
  padding: var(--s-10) var(--s-12);
  border-radius: var(--r-12);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  font-size: 13px;
  color: var(--c-text-soft);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.note--danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.note--warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--s-44) 0;
  background: var(--g-hero);
  flex: 1 0 auto;
}

.auth__card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-16);
  padding: var(--s-16);
  box-shadow: var(--shadow-2);
}

.auth__brand {
  display: inline-flex;
  margin-bottom: var(--s-12);
}

.auth__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.auth__sub {
  margin: var(--s-8) 0 0 0;
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.55;
}

.strip {
  padding: var(--s-24) 0;
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-12);
}

.strip__item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-12);
  padding: var(--s-12);
  box-shadow: var(--shadow-1);
}

.strip__k {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.strip__v {
  margin-top: var(--s-6);
  font-weight: 700;
  font-size: 13px;
  color: var(--c-text);
}

.section {
  padding: var(--s-64) 0;
  scroll-margin-top: 96px;
  position: relative;
  --accent: var(--brand-1);
  --accent2: var(--brand-2);
  --tone-a: rgba(37, 99, 235, 0.12);
  --tone-b: rgba(124, 58, 237, 0.08);
}

.section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(229, 231, 235, 0.85);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.section[class*="section--tone-"] {
  background:
    radial-gradient(1100px 420px at 10% 0%, var(--tone-a), transparent 60%),
    radial-gradient(900px 360px at 92% 18%, var(--tone-b), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(249, 250, 251, 1));
  border-top: 1px solid rgba(229, 231, 235, 0.85);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.section--tone-product { --accent: #2563eb; --accent2: #7c3aed; --tone-a: rgba(37, 99, 235, 0.16); --tone-b: rgba(124, 58, 237, 0.10); }
.section--tone-health { --accent: #06b6d4; --accent2: #10b981; --tone-a: rgba(6, 182, 212, 0.16); --tone-b: rgba(16, 185, 129, 0.10); }
.section--tone-data { --accent: #2563eb; --accent2: #06b6d4; --tone-a: rgba(37, 99, 235, 0.14); --tone-b: rgba(6, 182, 212, 0.10); }
.section--tone-audit { --accent: #7c3aed; --accent2: #2563eb; --tone-a: rgba(124, 58, 237, 0.14); --tone-b: rgba(37, 99, 235, 0.10); }
.section--tone-quantaudit { --accent: #a855f7; --accent2: #7c3aed; --tone-a: rgba(168, 85, 247, 0.14); --tone-b: rgba(124, 58, 237, 0.10); }
.section--tone-tasks { --accent: #f59e0b; --accent2: #ef4444; --tone-a: rgba(245, 158, 11, 0.14); --tone-b: rgba(239, 68, 68, 0.08); }
.section--tone-fixreports { --accent: #ef4444; --accent2: #f59e0b; --tone-a: rgba(239, 68, 68, 0.12); --tone-b: rgba(245, 158, 11, 0.08); }
.section--tone-hypotheses { --accent: #10b981; --accent2: #06b6d4; --tone-a: rgba(16, 185, 129, 0.14); --tone-b: rgba(6, 182, 212, 0.08); }
.section--tone-meta { --accent: #2563eb; --accent2: #7c3aed; --tone-a: rgba(37, 99, 235, 0.14); --tone-b: rgba(124, 58, 237, 0.10); }
.section--tone-governance { --accent: #7c3aed; --accent2: #06b6d4; --tone-a: rgba(124, 58, 237, 0.12); --tone-b: rgba(6, 182, 212, 0.08); }
.section--tone-narrative { --accent: #2563eb; --accent2: #7c3aed; --tone-a: rgba(17, 24, 39, 0.08); --tone-b: rgba(124, 58, 237, 0.08); }

.section__hdr {
  position: relative;
  padding-left: var(--s-16);
}

.section__hdr::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}

.section__hdr h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--c-text);
}

@supports (-webkit-background-clip: text) {
  .section[class*="section--tone-"] .section__hdr h2 {
    background: linear-gradient(90deg, var(--c-text), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.section__sub {
  margin-top: var(--s-10);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-soft);
  max-width: 70ch;
}

.explore__t {
  margin: var(--s-8) 0 0 0;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.explore__d {
  margin: var(--s-10) 0 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-soft);
  max-width: 85ch;
}

.jump {
  margin-top: var(--s-16);
  padding: var(--s-12);
  border-radius: var(--r-16);
  border: 1px solid rgba(229, 231, 235, 0.85);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-1);
}

.jump__k {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.jump__links {
  margin-top: var(--s-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
}

.jump__link {
  display: inline-flex;
  align-items: center;
  padding: var(--s-4) var(--s-10);
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: rgba(17, 24, 39, 0.04);
  color: var(--c-text-soft);
  font-size: 12px;
  text-decoration: none;
}

.jump__link:hover {
  background: rgba(17, 24, 39, 0.07);
  text-decoration: none;
}

.numbers-strip {
  margin-top: var(--s-16);
  padding: var(--s-12) var(--s-12) var(--s-12) calc(var(--s-12) + var(--s-12));
  border-radius: var(--r-16);
  border: 1px solid rgba(229, 231, 235, 0.90);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-1);
  position: relative;
}

.numbers-strip::before {
  content: "";
  position: absolute;
  left: var(--s-12);
  top: var(--s-12);
  bottom: var(--s-12);
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: 0.95;
}

.numbers-strip__k {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.numbers-strip__row {
  margin-top: var(--s-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-10);
  align-items: baseline;
}

.numbers-strip__v {
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.numbers-strip__d {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-soft);
  max-width: 90ch;
}

.numbers-strip__p {
  margin-top: var(--s-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-10);
  align-items: center;
}

.numbers-strip__p a {
  font-size: 12px;
  color: var(--c-link);
}

.tabs {
  margin-top: var(--s-18);
}

.tabs__list {
  display: flex;
  gap: var(--s-8);
  flex-wrap: wrap;
  align-items: center;
}

.tabs__tab {
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: 999px;
  padding: var(--s-6) var(--s-12);
  font-size: 12px;
  cursor: pointer;
  color: var(--c-text);
}

.tabs__tab[aria-selected="true"] {
  background: var(--c-text);
  border-color: var(--c-text);
  color: #fff;
}

.tabs__tab:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.tabs__panels {
  margin-top: var(--s-12);
}

.tab-panel {
  display: block;
}

/* Hide inactive panels only when JS is enabled (otherwise show all panels). */
html.js .tab-panel:not(.is-active) {
  display: none;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: stretch;
}

.shots {
  display: grid;
  gap: var(--s-16);
}

.shots--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shots--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-12);
}

.profile {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-16);
  padding: var(--s-14);
  box-shadow: var(--shadow-1);
  min-width: 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-12);
  overflow: hidden;
}

.profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(37, 99, 235, 0.10), transparent 55%),
    radial-gradient(420px 220px at 100% 0%, rgba(124, 58, 237, 0.08), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.profile__n {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: var(--shadow-1);
}

.profile__main {
  position: relative;
  min-width: 0;
}

.profile__role {
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.profile__tag {
  margin-top: var(--s-6);
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.45;
}

.profile__body {
  margin-top: var(--s-10);
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.55;
}

.profile__body p {
  margin: 0;
}

.profile__body p + p {
  margin-top: var(--s-10);
}

.profile__pills {
  margin-top: var(--s-12);
  display: flex;
  gap: var(--s-10);
  flex-wrap: wrap;
  align-items: center;
}

.profile--founder { --accent: #2563eb; --accent2: #7c3aed; }
.profile--innovation { --accent: #7c3aed; --accent2: #06b6d4; }
.profile--quant { --accent: #059669; --accent2: #2563eb; }
.profile--security { --accent: #b91c1c; --accent2: #7c3aed; }
.profile--ops { --accent: #0f766e; --accent2: #2563eb; }
.profile--advisor { --accent: #111827; --accent2: #2563eb; }

.profile[class*="profile--"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: 0.95;
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-16);
  padding: var(--s-14);
  box-shadow: var(--shadow-1);
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card__eyebrow {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card__title {
  font-size: 18px;
  font-weight: 800;
  margin-top: var(--s-8);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card__copy {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-soft);
  margin-top: var(--s-10);
  overflow-wrap: anywhere;
  word-break: break-word;
  flex: 1 1 auto;
}

.card__copy p {
  margin: 0;
}

.card__copy p + p {
  margin-top: var(--s-10);
}

.bullets {
  margin: var(--s-10) 0 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-soft);
}

.bullets li {
  margin: var(--s-6) 0;
}

.card__proof {
  margin-top: var(--s-12);
  display: flex;
  gap: var(--s-10);
  flex-wrap: wrap;
  align-items: center;
}

.shot {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-16);
  padding: var(--s-12);
  box-shadow: var(--shadow-1);
  min-width: 0;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.shot__cap {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.shot__zoom {
  display: flex;
  margin-top: var(--s-10);
  border-radius: var(--r-12);
  cursor: zoom-in;
  flex: 1 1 auto;
}

.shot__zoom:hover {
  text-decoration: none;
}

.shot__zoom:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.shot__box {
  margin-top: var(--s-10);
  height: 260px;
  border-radius: var(--r-12);
  border: 1px dashed rgba(17, 24, 39, 0.18);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06));
}

.shot__box--grid {
  background-image: linear-gradient(0deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.06)),
    linear-gradient(90deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.05));
  background-size: 22px 22px;
}

.shot__box--lines {
  background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.06), transparent),
    repeating-linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.08) 2px, transparent 2px, transparent 14px);
}

.steps {
  margin-top: var(--s-18);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-12);
}

.steps.steps--milestones {
  grid-template-columns: 1fr;
}

.step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-16);
  padding: var(--s-12);
  box-shadow: var(--shadow-1);
  display: flex;
  gap: var(--s-12);
  min-width: 0;
}

.step__n {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  border: 1px solid var(--c-border);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.step__t {
  font-weight: 800;
  font-size: 14px;
}

.step__d {
  margin-top: var(--s-4);
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metrics {
  margin-top: var(--s-18);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-12);
}

.outcomes {
  margin-top: var(--s-18);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-12);
}

.outcome {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-16);
  padding: var(--s-14) var(--s-14) var(--s-14) calc(var(--s-14) + var(--s-12));
  box-shadow: var(--shadow-1);
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.outcome::before {
  content: "";
  position: absolute;
  left: var(--s-12);
  top: var(--s-12);
  bottom: var(--s-12);
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: 0.95;
}

.outcome__k {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.outcome__v {
  margin-top: var(--s-6);
  font-weight: 950;
  font-size: 30px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.outcome__d {
  margin-top: var(--s-8);
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-soft);
}

.outcome__p {
  margin-top: auto;
  padding-top: var(--s-12);
  display: flex;
  gap: var(--s-10);
  flex-wrap: wrap;
  align-items: center;
}

.outcome:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.metric {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-16);
  padding: var(--s-14) var(--s-14) var(--s-14) calc(var(--s-14) + var(--s-12));
  box-shadow: var(--shadow-1);
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.metric::before {
  content: "";
  position: absolute;
  left: var(--s-12);
  top: var(--s-12);
  bottom: var(--s-12);
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: 0.95;
}

.metric__k {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric__v {
  margin-top: var(--s-6);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric__d {
  margin-top: var(--s-8);
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-soft);
}

.metric__s {
  margin-top: auto;
  padding-top: var(--s-10);
  font-size: 12px;
  color: var(--c-text-muted);
}

.metric__s a {
  color: var(--c-link);
}

.diagram {
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(17, 24, 39, 0.22);
  border-radius: var(--r-16);
  padding: var(--s-14);
  box-shadow: var(--shadow-1);
  min-width: 0;
}

.diagram__k {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.diagram__t {
  margin-top: var(--s-6);
  font-weight: 900;
  font-size: 16px;
}

.diagram__row {
  margin-top: var(--s-12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
  align-items: center;
}

.diagram__row--sub {
  margin-top: var(--s-10);
  gap: var(--s-6);
}

.diagram__node {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: var(--s-6) var(--s-10);
  font-size: 12px;
  color: var(--c-text);
  box-shadow: var(--shadow-1);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.diagram__node--soft {
  background: rgba(17, 24, 39, 0.03);
  border-color: rgba(17, 24, 39, 0.10);
  box-shadow: none;
  font-size: 11px;
  color: var(--c-text-soft);
}

.diagram__arrow {
  font-size: 14px;
  color: var(--c-text-muted);
  padding: 0 var(--s-2);
}

.diagram__cap {
  margin-top: var(--s-12);
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text-soft);
}

.chart {
  margin-top: var(--s-18);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: var(--r-16);
  padding: var(--s-14);
  box-shadow: var(--shadow-1);
  min-width: 0;
}

.chart.chart--grid {
  margin-top: 0;
}

.chart__k {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.chart__t {
  margin-top: var(--s-6);
  font-weight: 900;
  font-size: 16px;
}

.chart__s {
  margin-top: var(--s-8);
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-soft);
  max-width: 80ch;
}

.chart__rows {
  margin-top: var(--s-12);
  display: flex;
  flex-direction: column;
  gap: var(--s-10);
}

.chart__viz {
  margin-top: var(--s-12);
}

.chart__viz svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart__legend {
  margin-top: var(--s-12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
  align-items: center;
}

.legend__item {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  font-size: 12px;
  line-height: 1.2;
  color: var(--c-text-soft);
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(229, 231, 235, 0.85);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.legend__item:hover {
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}

.legend__item[aria-pressed="false"] {
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.25);
}

.legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.legend__swatch svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart__seg.is-off {
  opacity: 0.10;
}

.barrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, 1fr);
  gap: var(--s-10);
  align-items: center;
}

.barrow__k {
  font-size: 13px;
  color: var(--c-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.barrow__v {
  font-size: 12px;
  color: var(--c-text-muted);
  white-space: nowrap;
}

.barrow__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.10);
  overflow: hidden;
  position: relative;
}

.barrow__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.barrow__fill--p0 { width: 0%; }
.barrow__fill--p5 { width: 5%; }
.barrow__fill--p10 { width: 10%; }
.barrow__fill--p15 { width: 15%; }
.barrow__fill--p20 { width: 20%; }
.barrow__fill--p25 { width: 25%; }
.barrow__fill--p30 { width: 30%; }
.barrow__fill--p35 { width: 35%; }
.barrow__fill--p40 { width: 40%; }
.barrow__fill--p45 { width: 45%; }
.barrow__fill--p50 { width: 50%; }
.barrow__fill--p55 { width: 55%; }
.barrow__fill--p60 { width: 60%; }
.barrow__fill--p65 { width: 65%; }
.barrow__fill--p70 { width: 70%; }
.barrow__fill--p75 { width: 75%; }
.barrow__fill--p80 { width: 80%; }
.barrow__fill--p85 { width: 85%; }
.barrow__fill--p90 { width: 90%; }
.barrow__fill--p95 { width: 95%; }
.barrow__fill--p100 { width: 100%; }

.chart__cap {
  margin-top: var(--s-12);
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chart__cap a {
  color: var(--c-link);
}

.bento {
  margin-top: var(--s-18);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-12);
}

.bento__card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-16);
  padding: var(--s-14);
  box-shadow: var(--shadow-1);
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bento__k {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.bento__t {
  font-weight: 900;
  margin-top: var(--s-8);
  font-size: 16px;
}

.bento__d {
  margin-top: var(--s-8);
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.bento__p {
  margin-top: auto;
  padding-top: var(--s-12);
  display: flex;
  gap: var(--s-10);
  flex-wrap: wrap;
  align-items: center;
}

.section--cta {
  padding-bottom: var(--s-44);
}

.cta {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-16);
  padding: var(--s-16);
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: start;
}

.cta__meta {
  margin-top: var(--s-10);
  display: flex;
  gap: var(--s-10);
  flex-wrap: wrap;
  align-items: center;
}

.cta__box {
  border: 1px solid var(--c-border);
  background: rgba(249, 250, 251, 0.7);
  border-radius: var(--r-16);
  padding: var(--s-12);
}

.form {
  display: grid;
  gap: var(--s-10);
}

.form label {
  font-size: 12px;
  color: var(--c-text-soft);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.form input,
.form textarea {
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-12);
  padding: var(--s-10) var(--s-12);
  font-size: 14px;
  background: var(--c-surface);
  color: var(--c-text);
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.form__actions {
  display: flex;
  gap: var(--s-10);
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  margin-top: var(--s-8);
}

.form__actions--start {
  justify-content: flex-start;
}

.footer {
  padding: var(--s-24) 0;
  border-top: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.6);
}

.shot__img {
  margin-top: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--r-12);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-1);
  display: block;
  object-fit: contain;
  background: rgba(249, 250, 251, 1);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: var(--s-16);
}

.lightbox.is-open {
  display: grid;
  place-items: center;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.82);
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--c-surface);
  border: 1px solid rgba(229, 231, 235, 0.75);
  border-radius: var(--r-16);
  box-shadow: var(--shadow-2);
  padding: var(--s-12);
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-12);
  margin-bottom: var(--s-10);
}

.lightbox__cap {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lightbox__close {
  border: 1px solid var(--c-border-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--c-text);
  border-radius: 999px;
  padding: var(--s-6) var(--s-10);
  font-size: 12px;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 1);
}

.lightbox__close:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.lightbox__img {
  width: 100%;
  height: auto;
  border-radius: var(--r-12);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-1);
  display: block;
}

body.is-modal-open {
  overflow: hidden;
}

.bento__card.link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.bento__card.link:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.footer__inner {
  display: flex;
  gap: var(--s-12);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer__k {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.footer__links {
  display: flex;
  gap: var(--s-12);
  font-size: 13px;
}

.footer__m {
  font-size: 12px;
  color: var(--c-text-muted);
}

@media (prefers-reduced-motion: no-preference) {
  /* Reveal is additive (never hides content without JS). */
  .reveal.is-visible {
    animation: ta-reveal 220ms ease both;
  }
  .btn {
    transition: transform 160ms ease, box-shadow 160ms ease;
  }
}

@keyframes ta-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .cookie {
    left: var(--s-12);
    right: var(--s-12);
    bottom: var(--s-12);
  }

  .cookie__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cookie__links {
    display: inline;
    margin-left: 0;
  }

  .brand__logo {
    height: 56px;
  }

  .container {
    padding: 0 var(--s-14);
  }

  .topbar__cta {
    margin-left: 0;
    width: 100%;
  }

  .hero {
    padding: var(--s-44) 0 var(--s-24) 0;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-18);
  }

  .lead {
    font-size: 14px;
  }

  .strip__inner {
    grid-template-columns: 1fr;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .shots--2,
  .shots--3 {
    grid-template-columns: 1fr;
  }

  .profiles {
    grid-template-columns: 1fr;
  }

  .profile {
    grid-template-columns: 56px 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .tabs__list {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs__tab {
    width: 100%;
    text-align: left;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .outcomes {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .chart__legend {
    flex-direction: column;
    align-items: stretch;
  }

  .legend__item {
    width: 100%;
    justify-content: flex-start;
  }

  .barrow {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .barrow__v {
    justify-self: start;
  }

  .cta {
    grid-template-columns: 1fr;
  }
}
