/* ==========================================================================
   Perenexa — site styles
   Tokens first; everything below is built from them. No framework.
   ========================================================================== */

/* Fonts are self-hosted (assets/fonts, SIL Open Font License), so no visitor data
   goes to a third party. Each family has a Latin and a Latin Extended file; the
   browser downloads only the ones a page uses. Geist and Geist Mono are variable. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/geist-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/geist-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/geist-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/geist-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-serif-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-serif-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-serif-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #08070d;
  --bg-2: #0c0a14;
  --surface: #110f1b;
  --surface-2: #17142a;
  --surface-3: #1f1a36;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-violet: rgba(167, 139, 250, 0.34);
  --line-input: rgba(255, 255, 255, 0.36); /* form control edges need 3:1 (WCAG 1.4.11) */

  /* Text */
  --text: #f2f0f9;
  --text-2: #cdc9de;
  --muted: #a7a3bb;
  --dim: #85819d;

  /* Brand */
  --violet-200: #ddd2ff;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --indigo-500: #5b5bf0;
  /* Start stop darkened from #a052ff so white button text stays ≥ 4.5:1 end to end */
  --grad: linear-gradient(135deg, #9147ff 0%, #6a42f2 52%, #3f4ae6 100%);
  --grad-soft: linear-gradient(135deg, rgba(160, 82, 255, 0.2), rgba(63, 74, 230, 0.12));
  --grad-text: linear-gradient(100deg, #e0d4ff 0%, #b69bff 38%, #8f8cff 100%);

  /* Semantic */
  --ok: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;

  /* Light band */
  --paper: #f6f4fb;
  --paper-2: #ebe7f6;
  --ink: #0e0c16;
  --ink-2: #4a4660;

  /* Type */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-serif: 'Instrument Serif', ui-serif, Georgia, 'Times New Roman', serif;
  --fs-display: clamp(2.6rem, 1.35rem + 4.6vw, 4.75rem);
  --fs-1: clamp(2.1rem, 1.35rem + 2.9vw, 3.4rem);
  --fs-2: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  --fs-3: 1.25rem;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 1px rgba(167, 139, 250, 0.22), 0 30px 80px -30px rgba(124, 58, 237, 0.6);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 84px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.032em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-400); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: #fff; color: var(--ink); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- layout */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { position: relative; padding-block: clamp(4.5rem, 2.8rem + 6vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 2rem + 3.5vw, 5rem); }
.section--alt { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); color: var(--ink); }
.stack > * + * { margin-top: var(--stack, 1rem); }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 959px) { .split { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 120px; }
@media (max-width: 959px) { .sticky { position: static; } }

/* ------------------------------------------------------------ typography */
.h-display { font-size: var(--fs-display); letter-spacing: -0.045em; line-height: 1.02; }
.h-1 { font-size: var(--fs-1); letter-spacing: -0.04em; line-height: 1.05; }
.h-2 { font-size: var(--fs-2); letter-spacing: -0.035em; line-height: 1.1; }
.h-3 { font-size: var(--fs-3); letter-spacing: -0.015em; line-height: 1.3; }
.serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.08em; letter-spacing: -0.012em; line-height: 0.95;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  /* Italic glyphs overhang their box; pad every line fragment so the gradient clip doesn't crop them */
  padding: 0 0.12em 0 0.02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.section--paper .serif { background: linear-gradient(100deg, #6d28d9, #4f46e5); -webkit-background-clip: text; background-clip: text; }
.lede { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); line-height: 1.65; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Eyebrow: a node dot, optional bracketed index, mono caps */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font: 500 0.74rem/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet-300);
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--violet-400); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.16);
}
.eyebrow__n { color: var(--dim); }
.eyebrow__n::before { content: '[ '; }
.eyebrow__n::after { content: ' ]'; }
.section--paper .eyebrow { color: var(--violet-700); }
.section--paper .eyebrow::before { background: var(--violet-600); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14); }
.section--paper .eyebrow__n { color: #6b6684; }

.section-head { display: grid; gap: 1.1rem; max-width: 780px; margin-bottom: clamp(2.5rem, 1.8rem + 2.4vw, 4rem); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: end; gap: 2rem; }
.section-head--split > :last-child { justify-self: end; text-align: right; }
.section-head.center { margin-inline: auto; justify-items: center; }
@media (max-width: 899px) {
  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split > :last-child { justify-self: start; text-align: left; }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font: 500 0.95rem/1 var(--font-sans); letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 30px -12px rgba(124, 58, 237, 0.75);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 40px -12px rgba(124, 58, 237, 0.95); }
.btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--violet-400); background: rgba(167, 139, 250, 0.08); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--violet-200); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #241f38; }
.btn--sm { min-height: 40px; padding: 0 0.95rem; font-size: 0.875rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: 500 0.78rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet-300);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: #fff; }
.link-arrow:hover svg { transform: translateX(3px); }
.section--paper .link-arrow { color: var(--violet-700); }

/* ------------------------------------------------------------ tags/chips */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 28px; padding: 0.2rem 0.75rem;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02);
  font: 500 0.7rem/1.2 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-2);
}
.tag--violet { border-color: var(--line-violet); background: rgba(139, 92, 246, 0.12); color: var(--violet-200); }
.tag--ok { border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); color: #bbf7d0; }
.tag--ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.section--paper .tag { border-color: rgba(14, 12, 22, 0.14); color: var(--ink-2); background: #fff; }

/* ----------------------------------------------------------------- cards */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s, transform 0.35s var(--ease), background-color 0.3s;
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.16), transparent 50%);
}
.card::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 1px; opacity: 0; transition: opacity 0.35s;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, 0.7), transparent);
}
.card:hover { border-color: var(--line-violet); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card--flat:hover { border-color: var(--line); }
.card--flat:hover::before, .card--flat:hover::after { opacity: 0; }
.card--glow { border-color: var(--line-violet); background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(63, 74, 230, 0.05)); }
.card__k { font: 500 0.7rem/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.card__title { margin-top: 0.6rem; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }
.card__body { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.card .tag-row { margin-top: 1.25rem; }
a.card { display: block; }
a.card .link-arrow { margin-top: 1.25rem; }
.section--paper .card { background: #fff; border-color: rgba(14, 12, 22, 0.09); box-shadow: 0 1px 2px rgba(14, 12, 22, 0.04); }
.section--paper .card__body { color: var(--ink-2); }
.section--paper .card__k { color: #6b6684; }

.icon-tile {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--grad-soft); border: 1px solid var(--line-violet); color: var(--violet-200);
}
.icon-tile svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; inset: 12px 0 auto; z-index: 60; pointer-events: none; }
.nav-shell {
  pointer-events: auto; position: relative;
  width: min(100% - 24px, 1260px); margin-inline: auto; height: 60px; padding: 0 0.5rem 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid transparent; border-radius: 14px;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.is-scrolled .nav-shell, .nav-open .nav-shell {
  background: rgba(13, 11, 21, 0.78); border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 16px 50px -24px rgba(0, 0, 0, 0.9);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.14rem; letter-spacing: -0.035em; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.3rem; height: 40px; padding: 0 0.8rem; border-radius: 9px;
  border: 0; background: none; cursor: pointer; font-size: 0.9rem; color: var(--text-2); transition: color 0.2s, background-color 0.2s;
}
.nav__link:hover, .nav__link[aria-expanded='true'] { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav__link[aria-current='page'] { color: #fff; }
.nav__link svg { width: 12px; height: 12px; opacity: 0.7; transition: transform 0.25s var(--ease); }
.nav__link[aria-expanded='true'] svg { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Dropdowns: one column, a title and a short line each */
.menu {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 320px;
  padding: 0.4rem; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(17, 15, 27, 0.97); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: grid; gap: 0.1rem;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0.22s;
}
.nav__item.is-open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu__link { display: block; padding: 0.7rem 0.85rem; border-radius: 10px; transition: background-color 0.2s; }
.menu__link:hover, .menu__link:focus-visible { background: rgba(255, 255, 255, 0.06); }
.menu__link[aria-current='page'] .menu__title { color: var(--violet-200); }
.menu__title { display: block; font-size: 0.92rem; font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.menu__desc { display: block; margin-top: 0.15rem; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03); cursor: pointer;
  /* A tight column keeps the two lines 5px apart, so they meet in the middle as an X when open */
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; flex: none; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 55; overflow-y: auto; display: none;
  padding: 96px var(--gutter) 2rem; background: var(--bg);
}
.nav-open .mobile-nav { display: block; }
.nav-open { overflow: hidden; }
.mobile-nav__group + .mobile-nav__group { margin-top: 1.75rem; }
.mobile-nav__label { font: 500 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.5rem; }
.mobile-nav a:not(.btn) { display: flex; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.mobile-nav a[aria-current='page'] { color: var(--violet-300); }
.mobile-nav .btn { margin-top: 2rem; width: 100%; }

@media (max-width: 1099px) {
  .nav, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: clamp(8rem, 6rem + 6vw, 10.5rem) 0 clamp(3.5rem, 2.5rem + 4vw, 5.5rem); }
.hero--page { padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.backdrop::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 82% 6%, rgba(124, 58, 237, 0.36), transparent 62%),
    radial-gradient(40% 45% at 8% 92%, rgba(63, 74, 230, 0.22), transparent 62%),
    radial-gradient(30% 30% at 50% 40%, rgba(192, 75, 255, 0.07), transparent 70%);
}
.backdrop::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 0%, #000 25%, transparent 75%);
}
.backdrop .nexus { position: absolute; right: -4%; top: 6%; width: min(760px, 70vw); opacity: 0.55; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero__grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1023px) { .hero__grid, .hero__grid--even { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 1.4rem; }
.hero .lede { margin-top: 1.5rem; }
.hero .btn-row { margin-top: 2.2rem; }
.models-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-top: 2.4rem;
  font: 500 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.models-line i { width: 18px; height: 1px; background: var(--line-2); display: inline-block; }

/* Hero diagram: three models feed one partner, which delivers three outcomes */
.hub {
  position: relative; margin: 0; overflow: hidden;
  padding: 1.6rem clamp(1rem, 0.6rem + 1.5vw, 1.75rem) 1.3rem;
  border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-glow);
  background:
    linear-gradient(180deg, transparent 50%, rgba(124, 58, 237, 0.24)),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, rgba(25, 21, 45, 0.94), rgba(12, 10, 20, 0.96));
}
.hub__title { text-align: center; font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; color: var(--text-2); }
/* Columns are 32% wide, so wire ends sit at 16% / 50% / 84% (x = 96, 300, 504 in the 600-wide SVGs) */
.hub__row { list-style: none; display: grid; grid-template-columns: repeat(3, 32%); justify-content: space-between; margin-top: 1.25rem; }
.hub__node {
  display: grid; justify-items: center; align-content: start; gap: 0.2rem; padding: 0.95rem 0.5rem; text-align: center;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(17, 15, 27, 0.92);
  transition: border-color 0.2s, background-color 0.2s;
}
.hub__node:hover { border-color: var(--violet-400); background: rgba(31, 26, 54, 0.95); }
.hub__icon { margin-bottom: 0.35rem; color: var(--violet-300); }
.hub__icon svg { width: 20px; height: 20px; }
.hub__node b { font-size: 0.92rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.hub__node > span:last-child { font-size: 0.76rem; line-height: 1.35; color: var(--muted); }
.hub__wires { display: block; width: 100%; height: clamp(44px, 2.5rem + 2vw, 72px); overflow: visible; }
.hub__wires path { fill: none; stroke: rgba(167, 139, 250, 0.75); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hub__core {
  width: 100px; height: 100px; margin: 0 auto; padding: 14px; border-radius: 22px; border: 1px solid var(--line-2);
  background: radial-gradient(circle, rgba(196, 181, 253, 0.28) 1px, transparent 1.5px) 0 0 / 7px 7px, rgba(17, 15, 27, 0.94);
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.07), 0 24px 60px -20px rgba(124, 58, 237, 0.9);
}
.hub__core span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 14px; border: 1px solid var(--line-violet); background: var(--bg-2); }
.hub__core img { width: 40px; height: 40px; }
.hub__outcomes { margin-top: 0; }
.hub__outcomes li {
  justify-self: center; padding: 0.55rem 0.8rem; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.07); font-size: 0.84rem; font-weight: 500; line-height: 1.3; text-align: center;
}
.hub__note { margin-top: 1.4rem; text-align: right; font: 500 0.66rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-200); }
@media (max-width: 520px) {
  .hub__node { padding: 0.75rem 0.35rem; }
  .hub__node b { font-size: 0.8rem; }
  .hub__node > span:last-child { font-size: 0.68rem; }
  .hub__outcomes li { padding: 0.45rem 0.5rem; font-size: 0.74rem; }
}
/* Entrance: models, then the core, then the outcomes */
.js .hub > * { opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .hub.is-visible > * { opacity: 1; transform: none; }
.js .hub > :nth-child(2) { transition-delay: 0.15s; }
.js .hub > :nth-child(3) { transition-delay: 0.3s; }
.js .hub > :nth-child(4) { transition-delay: 0.4s; }
.js .hub > :nth-child(5) { transition-delay: 0.5s; }
.js .hub > :nth-child(6) { transition-delay: 0.6s; }
.js .hub > :nth-child(7) { transition-delay: 0.7s; }

/* ----------------------------------------------------------------- stats */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: rgba(17, 15, 27, 0.7);
}
.stat { position: relative; padding: clamp(1.4rem, 1rem + 1.2vw, 2rem); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15em 0.35em; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.05; }
.to { display: inline-flex; align-self: center; color: var(--violet-400); }
.to svg { width: 0.62em; height: 0.62em; stroke-width: 2.2; }
.stat__l { margin-top: 0.85rem; font: 500 0.7rem/1.55 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); max-width: 28ch; }
.stat--hi { background: linear-gradient(160deg, rgba(160, 82, 255, 0.24), rgba(63, 74, 230, 0.1) 70%); }
.stat--hi::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }
.stat--hi .stat__v { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 959px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 479px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
.coverage { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1rem; }
.coverage__label { width: 100%; text-align: center; font: 500 0.7rem var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.25rem; }

/* ------------------------------------------------------- model switcher */
.models { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 1rem; align-items: stretch; }
.models__tabs { display: grid; gap: 0.6rem; align-content: start; }
.model-tab {
  position: relative; text-align: left; cursor: pointer; padding: 1.2rem 1.25rem 1.2rem 1.4rem;
  border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s, background-color 0.25s;
}
.model-tab::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; border-radius: 2px; background: var(--grad); transform: scaleY(0); transition: transform 0.35s var(--ease); }
.model-tab:hover { border-color: var(--line-2); }
.model-tab[aria-selected='true'] { border-color: var(--line-violet); background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.02)); }
.model-tab[aria-selected='true']::before { transform: scaleY(1); }
.model-tab__k { display: block; font: 500 0.68rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.model-tab__t { display: block; margin-top: 0.4rem; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.025em; color: #fff; }
.model-tab__s { display: block; margin-top: 0.3rem; font-size: 0.88rem; color: var(--muted); }
.models__panel { border-radius: var(--radius-lg); }
.models__panel[hidden] { display: none; }
.models__panel .card { height: 100%; display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); }
.models__panel .card .link-arrow { margin-top: auto; }
@media (max-width: 899px) {
  .models { grid-template-columns: 1fr; }
  .models__tabs { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: 0.25rem; scroll-snap-type: x mandatory; }
  .model-tab { scroll-snap-align: start; }
}

/* crew diagram */
.crew { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 1.1rem; border-radius: var(--radius); border: 1px dashed var(--line-2); background: rgba(0, 0, 0, 0.18); }
.crew__node { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.7rem; border-radius: 999px; font: 500 0.72rem var(--font-mono); letter-spacing: 0.04em; border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255, 255, 255, 0.03); }
.crew__node::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0.85; }
.crew__node--agent { border-color: var(--line-violet); color: var(--violet-200); background: rgba(139, 92, 246, 0.12); border-radius: 8px; }
.crew__node--agent::before { border-radius: 2px; background: var(--violet-400); transform: rotate(45deg); }
.crew__eq { width: 100%; margin-top: 0.4rem; font: 500 0.75rem var(--font-mono); color: var(--muted); letter-spacing: 0.04em; }
.crew__eq b { color: #fff; font-weight: 500; }

/* bar compare */
.bars { display: grid; gap: 0.9rem; padding: 1.1rem; border-radius: var(--radius); border: 1px dashed var(--line-2); background: rgba(0, 0, 0, 0.18); }
.bars__row { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 0.8rem; font: 500 0.72rem var(--font-mono); letter-spacing: 0.04em; color: var(--muted); }
.bars__track { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.bars__fill { height: 100%; border-radius: 99px; background: rgba(255, 255, 255, 0.35); }
.bars__fill--hi { background: var(--grad); }
.bars__row b { color: #fff; font-weight: 500; text-align: right; }

/* two-column ledger */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.duo > div { padding: 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.duo h3, .duo h4 { font: 500 0.7rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-300); margin-bottom: 0.6rem; }
.duo ul { list-style: none; display: grid; gap: 0.4rem; font-size: 0.88rem; color: var(--text-2); }
.duo li::before { content: '—'; color: var(--dim); margin-right: 0.45rem; }
@media (max-width: 520px) { .duo { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ problems / rows */
.rows { border-top: 1px solid var(--line); }
.row-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.row-item__n { font: 500 0.78rem var(--font-mono); color: var(--violet-400); padding-top: 0.25rem; }
.row-item h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.row-item p { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.statement { margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line-violet); background: var(--grad-soft); }
.statement strong { display: block; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.statement p { margin-top: 0.5rem; color: var(--text-2); }

/* -------------------------------------------------------------- timeline */
.case { position: relative; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line); padding: clamp(1.5rem, 1rem + 3vw, 3.25rem); background: radial-gradient(70% 90% at 100% 0%, rgba(124, 58, 237, 0.2), transparent 60%), var(--surface); }
.case__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.case__head .lede { max-width: 54ch; }
@media (max-width: 1023px) { .case__head { grid-template-columns: 1fr; } }
.case__big { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2em 0.45em; font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.case__big .to svg { width: 0.56em; height: 0.56em; stroke-width: 2; }
.case__big .end { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.timeline::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: linear-gradient(90deg, var(--violet-500), rgba(91, 91, 240, 0.4), var(--violet-400)); }
.tl { position: relative; padding-top: 2rem; }
.tl::before { content: ''; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--violet-400); box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.14); }
.tl:last-child::before { background: var(--violet-400); }
.tl__when { font: 500 0.7rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-300); }
.tl__what { margin-top: 0.5rem; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.015em; }
.tl ul { margin-top: 0.6rem; list-style: none; display: grid; gap: 0.35rem; font-size: 0.88rem; color: var(--muted); }
.tl li::before { content: '+ '; color: var(--violet-400); font-family: var(--font-mono); }
@media (max-width: 899px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, var(--violet-500), var(--violet-400)); }
  .tl { padding: 0 0 1.75rem 2.2rem; }
}

/* ----------------------------------------------------- before / after */
.ba__switch { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.ba__switch button { border: 0; background: none; cursor: pointer; padding: 0.55rem 1.1rem; border-radius: 9px; font: 500 0.8rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: background-color 0.25s, color 0.25s; }
.ba__switch button[aria-pressed='true'] { background: var(--grad); color: #fff; }
.ba__stage { margin-top: 1.25rem; position: relative; min-height: 360px; }
.ba__view { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.ba[data-state='before'] .ba__view--after, .ba[data-state='after'] .ba__view--before { display: none; }
.steps { list-style: none; display: grid; gap: 0.5rem; }
.step { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 0.75rem; padding: 0.8rem 0.95rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); font-size: 0.92rem; }
.step__icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; font-size: 0.75rem; }
.step__icon--x { color: #fecaca; background: rgba(248, 113, 113, 0.14); }
.step__icon--ok { color: #bbf7d0; background: rgba(74, 222, 128, 0.12); }
.step__icon--ai { color: var(--violet-200); background: rgba(139, 92, 246, 0.2); }
.step__icon--h { color: #fff; background: rgba(255, 255, 255, 0.12); }
.step__h { font: 500 0.75rem var(--font-mono); color: var(--muted); }
.step--hi { border-color: var(--line-violet); background: rgba(139, 92, 246, 0.08); }
.ba__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.9rem; padding: 0.9rem 0.95rem; border-radius: 10px; border: 1px dashed var(--line-2); font: 500 0.78rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ba__total b { font: 500 1.6rem var(--font-sans); letter-spacing: -0.04em; color: #fff; text-transform: none; }

/* ---------------------------------------------------------- loop lanes */
/* The markup runs stage by stage (stage, agents, crew). Desktop flows those cells down
   3 rows and across 7 columns; below 1000px each stage becomes its own card. */
.lanes { display: grid; grid-template-columns: 110px repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.lanes > div { padding: 1rem 0.9rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.86rem; line-height: 1.45; }
.lanes > div:nth-last-child(-n + 3) { border-right: 0; }
.lanes > div:nth-child(3n) { border-bottom: 0; }
.lanes__h { font: 500 0.7rem var(--font-mono) !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text) !important; background: rgba(255, 255, 255, 0.025); }
.lanes__h span { display: block; color: var(--dim); margin-bottom: 0.3rem; }
.lanes__lane { font: 500 0.7rem var(--font-mono) !important; letter-spacing: 0.12em; text-transform: uppercase; display: flex; align-items: center; }
.lanes__lane--agent { color: var(--violet-200); background: rgba(139, 92, 246, 0.1); }
.lanes__lane--crew { color: #fff; }
.lanes__agent { color: var(--violet-200); background: rgba(139, 92, 246, 0.06); }
.lanes__crew { color: var(--text-2); }
.lanes__corner { background: rgba(255, 255, 255, 0.025); }
@media (max-width: 999px) {
  .lanes { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; border: 0; border-radius: 0; overflow: visible; background: none; }
  .lanes__corner, .lanes__lane { display: none !important; }
  .lanes > div:nth-child(n) { border: 1px solid var(--line); border-top: 0; padding: 0.9rem 1.1rem; font-size: 0.92rem; background: var(--surface); }
  /* stage name: top of the card */
  .lanes > div.lanes__h { display: flex; align-items: baseline; gap: 0.7rem; margin-top: 0.75rem; border-top: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)) var(--surface); }
  .lanes > div.lanes__h:nth-child(4) { margin-top: 0; }
  .lanes__h span { display: inline; margin: 0; }
  /* "Agents" and "Crew" rows: label column + text */
  .lanes > div.lanes__agent, .lanes > div.lanes__crew { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.8rem; align-items: baseline; }
  .lanes > div.lanes__agent { background: linear-gradient(rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.08)) var(--surface); }
  .lanes > div.lanes__crew { border-radius: 0 0 var(--radius) var(--radius); }
  .lanes__agent::before, .lanes__crew::before { font: 500 0.66rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
  .lanes__agent::before { content: 'Agents'; color: var(--violet-300); }
  .lanes__crew::before { content: 'Crew'; color: #fff; }
}
/* tablets: two columns of stage cards (01–03 left, 04–06 right) */
@media (min-width: 640px) and (max-width: 999px) {
  .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(9, auto); grid-auto-flow: column; column-gap: 0.75rem; }
  .lanes > div.lanes__h:nth-child(13) { margin-top: 0; }
}

/* ---------------------------------------------------------------- ladder */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.ladder .card { display: flex; flex-direction: column; }
.ladder .card:nth-child(1) { min-height: 250px; }
.ladder .card:nth-child(2) { min-height: 290px; }
.ladder .card:nth-child(3) { min-height: 330px; }
.ladder .card:nth-child(4) { min-height: 370px; }
.ladder__n { font: 500 0.72rem var(--font-mono); color: var(--violet-300); letter-spacing: 0.1em; }
.ladder__meta { margin-top: auto; padding-top: 1.25rem; font: 500 0.7rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); border-top: 1px solid var(--line); }
.badge { display: inline-block; margin-left: 0.5rem; padding: 0.15rem 0.45rem; border-radius: 6px; vertical-align: middle; font: 500 0.6rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--grad); }
@media (max-width: 1023px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ladder .card { min-height: 0 !important; } }
@media (max-width: 599px) { .ladder { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ comparison */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid rgba(14, 12, 22, 0.1); background: #fff; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.92rem; }
.compare th, .compare td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(14, 12, 22, 0.08); }
.compare thead th { font: 500 0.7rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: #6b6684; background: var(--paper); }
.compare tbody th { font-weight: 500; color: var(--ink); width: 19%; }
.compare td { color: var(--ink-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .us { background: rgba(124, 58, 237, 0.07); color: var(--ink); font-weight: 500; }
.compare thead .us { color: var(--violet-700); background: rgba(124, 58, 237, 0.12); }
.compare .us::before { content: '✓ '; color: var(--violet-600); }
.compare thead .us::before { content: ''; }

/* ------------------------------------------------------------- time zones */
.tz { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.1rem, 0.8rem + 1.5vw, 1.75rem); background: var(--surface); }
.tz__rows { position: relative; display: grid; gap: 0.85rem; }
.tz__row { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; }
.tz__label { font-size: 0.86rem; color: var(--text-2); }
.tz__label small { display: block; font: 500 0.66rem var(--font-mono); letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.tz__bar { position: relative; height: 26px; border-radius: 7px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 calc(100% / 24 - 1px), transparent calc(100% / 24 - 1px) calc(100% / 24)); }
.tz__win { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.18); }
.tz__win--us { background: var(--grad); border-color: transparent; }
.tz__overlap { position: absolute; top: -8px; bottom: -8px; border-radius: 8px; border: 1px dashed rgba(196, 181, 253, 0.6); background: rgba(139, 92, 246, 0.08); pointer-events: none; }
.tz__axis { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; margin-top: 0.75rem; }
.tz__ticks { display: flex; justify-content: space-between; font: 500 0.64rem var(--font-mono); color: var(--dim); }
.tz__legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; margin-top: 1.25rem; font: 500 0.68rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tz__legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.tz__legend i { width: 18px; height: 8px; border-radius: 3px; background: var(--grad); }
.tz__legend i.alt { background: rgba(255, 255, 255, 0.2); }
.tz__legend i.ov { background: rgba(139, 92, 246, 0.15); border: 1px dashed rgba(196, 181, 253, 0.7); }
@media (max-width: 640px) { .tz__row, .tz__axis { grid-template-columns: 1fr; gap: 0.35rem; } .tz__axis > span, .tz__overlap { display: none; } }

/* ledger mock */
.ledger { border-radius: var(--radius); border: 1px solid var(--line-2); background: #fbfaff; color: var(--ink); padding: 1.25rem; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); font-size: 0.85rem; }
.ledger__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(14, 12, 22, 0.1); }
.ledger__top b { font-weight: 600; letter-spacing: -0.01em; }
.ledger__top span { font: 500 0.66rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: #6b6684; }
.ledger dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.ledger dt, .ledger dd { margin: 0; padding: 0.6rem 0; border-bottom: 1px solid rgba(14, 12, 22, 0.07); }
.ledger dt { font: 500 0.68rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #6b6684; padding-right: 1rem; }
.ledger dd { color: var(--ink); text-align: right; }
.ledger .up { color: #15803d; }

/* -------------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; font-size: 1.08rem; font-weight: 500; letter-spacing: -0.015em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); font: 400 1.1rem var(--font-mono); color: var(--violet-300); transition: transform 0.3s var(--ease), background-color 0.3s; }
.faq__item[open] summary::after { transform: rotate(45deg); background: rgba(139, 92, 246, 0.12); }
.faq__a { padding: 0 3rem 1.4rem 0; color: var(--muted); max-width: 75ch; }
.faq__a p + p { margin-top: 0.75rem; }

/* -------------------------------------------------------------- CTA band */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; align-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 4.25rem); border-radius: var(--radius-xl); border: 1px solid var(--line-violet);
  background: radial-gradient(90% 130% at 0% 0%, rgba(160, 82, 255, 0.5), transparent 55%), radial-gradient(80% 120% at 100% 100%, rgba(63, 74, 230, 0.45), transparent 60%), var(--surface-2);
}
.cta .nexus { position: absolute; right: -60px; top: -40px; width: 520px; opacity: 0.35; z-index: -1; }
.cta h2 { font-size: var(--fs-1); letter-spacing: -0.04em; }
.cta p { margin-top: 1rem; color: var(--text-2); max-width: 52ch; }
.cta .btn-row { margin-top: 1.8rem; }
.cta__next { list-style: none; display: grid; gap: 0.6rem; padding: 1.25rem; border-radius: var(--radius); background: rgba(8, 7, 13, 0.55); border: 1px solid var(--line); }
.cta__next li { display: grid; grid-template-columns: 28px 1fr; gap: 0.6rem; font-size: 0.92rem; color: var(--text-2); }
.cta__next b { display: block; color: #fff; font-weight: 500; }
.cta__next span.n { font: 500 0.72rem var(--font-mono); color: var(--violet-300); padding-top: 0.15rem; }
@media (max-width: 899px) { .cta { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 2rem; }
.footer-brand p { margin-top: 1rem; color: var(--muted); font-size: 0.92rem; max-width: 36ch; }
.footer-brand .link-arrow { margin-top: 1.25rem; }
.footer-region { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; padding: 0.4rem 0.75rem; border-radius: 999px; border: 1px solid var(--line-2); font: 500 0.66rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.footer-region::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.footer-col h2 { font: 500 0.7rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-2); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--dim); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: #fff; }
.socials { display: flex; gap: 0.5rem; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); color: var(--text-2); transition: border-color 0.2s, color 0.2s; }
.socials a:hover { border-color: var(--violet-400); color: #fff; }
.socials svg { width: 16px; height: 16px; }
.wordmark {
  margin-top: 0.5rem; margin-bottom: -0.18em; text-align: center; user-select: none; pointer-events: none;
  font-size: clamp(4.5rem, 19vw, 17rem); font-weight: 600; letter-spacing: -0.07em; line-height: 0.85;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.22), rgba(167, 139, 250, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 959px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; border: 1px solid var(--line-violet); background: rgba(17, 15, 27, 0.85); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ forms */
.form-card { border-radius: var(--radius-lg); border: 1px solid var(--line-2); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); background: linear-gradient(180deg, rgba(31, 26, 54, 0.75), rgba(17, 15, 27, 0.85)); box-shadow: var(--shadow-1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label, .field legend { font-size: 0.86rem; font-weight: 500; color: var(--text-2); padding: 0; }
.field .opt { display: inline; color: var(--dim); font-weight: 400; } /* .opt is also the scorecard option class */
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; border-radius: 10px;
  border: 1px solid var(--line-input); background: rgba(8, 7, 13, 0.55); color: var(--text);
  font: 400 0.95rem/1.4 var(--font-sans); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a7a3bb' stroke-width='1.6' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.select option { background: var(--surface); color: var(--text); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet-400); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.28); }
.input[aria-invalid='true'], .textarea[aria-invalid='true'], .select[aria-invalid='true'] { border-color: var(--bad); }
.field__err { font-size: 0.8rem; color: #fca5a5; }
.field__err:empty { display: none; }
.field__hint { font-size: 0.8rem; color: var(--dim); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.86rem; color: var(--text-2); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; user-select: none; }
.choice span:hover { border-color: rgba(255, 255, 255, 0.28); }
.choice input:checked + span { border-color: var(--violet-400); background: rgba(139, 92, 246, 0.18); color: #fff; }
.choice input:checked + span::before { content: '✓'; margin-right: 0.4rem; color: var(--violet-200); }
.choice input:focus-visible + span { outline: 2px solid var(--violet-400); outline-offset: 2px; }
/* File drop zone: the real file input covers the zone, so click, keyboard and drop all work natively */
.drop {
  position: relative; display: flex; align-items: center; gap: 0.9rem; min-height: 76px; padding: 0.9rem 1rem;
  border-radius: 12px; border: 1px dashed var(--line-input); background: rgba(8, 7, 13, 0.55);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(139, 92, 246, 0.14); border: 1px solid var(--line-violet); color: var(--violet-200); }
.drop__icon svg { width: 18px; height: 18px; }
.drop__text { display: grid; min-width: 0; font-size: 0.9rem; }
.drop__text b { font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__text span { font-size: 0.82rem; color: var(--muted); }
.drop:hover, .drop.is-over { border-color: var(--violet-400); background: rgba(139, 92, 246, 0.08); }
.drop:focus-within { border-color: var(--violet-400); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.28); }
.drop.has-file { border-style: solid; border-color: var(--line-violet); }
.drop.is-invalid { border-color: var(--bad); }
.field .consent { display: grid; grid-template-columns: 20px 1fr; gap: 0.7rem; align-items: start; font-weight: 400; line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 0.12rem 0 0; accent-color: var(--violet-500); cursor: pointer; }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-foot p { font-size: 0.8rem; color: var(--dim); max-width: 42ch; }
.form-foot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 10px; font-size: 0.9rem; }
.form-status:empty { display: none; }
.form-status--error { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; }
.form-success { text-align: left; }
.form-success__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.35); color: #bbf7d0; }
.form-success h3 { margin-top: 1.25rem; font-size: 1.5rem; }
.form-success p { margin-top: 0.6rem; color: var(--muted); }
.btn.is-loading { pointer-events: none; opacity: 0.8; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- next steps */
.next { list-style: none; display: grid; gap: 1.1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.next li { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; }
.next__n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-violet); background: rgba(139, 92, 246, 0.1); font: 500 0.8rem var(--font-mono); color: var(--violet-200); }
.next b { display: block; font-weight: 500; }
.next p { margin-top: 0.2rem; font-size: 0.9rem; color: var(--muted); }

/* ------------------------------------------------------------------ prose */
.prose { font-size: 1.075rem; line-height: 1.78; color: var(--text-2); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.75rem; font-size: 1.65rem; letter-spacing: -0.03em; color: #fff; line-height: 1.2; }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; letter-spacing: -0.02em; color: #fff; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.45rem; }
.prose li::marker { color: var(--violet-400); }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--violet-300); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #fff; }
.prose blockquote { margin: 2.5rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 2px solid var(--violet-500); font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; line-height: 1.35; color: #fff; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose .callout { padding: 1.25rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line-violet); background: var(--grad-soft); font-size: 1rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
.prose th { font: 500 0.72rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.75rem; font: 500 0.74rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.article-meta span + span::before { content: '·'; margin-right: 1.25rem; color: var(--line-2); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font: 500 0.72rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-hidden] { color: var(--line-2); }

/* post cards */
.post-card { display: flex; flex-direction: column; min-height: 100%; }
.post-card__art { aspect-ratio: 16 / 9; margin: calc(-1 * clamp(1.25rem, 1rem + 1vw, 1.75rem)); margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; background: radial-gradient(80% 120% at 100% 0%, rgba(124, 58, 237, 0.4), transparent 60%), radial-gradient(70% 100% at 0% 100%, rgba(63, 74, 230, 0.3), transparent 60%), var(--surface-2); }
.post-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card__art span { position: absolute; left: 1.1rem; bottom: 1rem; font: 500 0.66rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-200); padding: 0.3rem 0.55rem; border-radius: 6px; background: rgba(8, 7, 13, 0.6); border: 1px solid var(--line-violet); }
.post-card .card__title { font-size: 1.25rem; }
.post-card .article-meta { margin-top: auto; padding-top: 1.25rem; }

/* blog index: one row per post, image and text swapping sides row by row */
.post-set { display: grid; gap: clamp(3rem, 2rem + 4vw, 5.5rem); }
.post-set[hidden] { display: none; }
.post-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.75rem, 1rem + 3.5vw, 4.5rem); align-items: center; }
.post-row:nth-child(even) .post-row__media { order: 2; }
.post-row__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-glow); }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-row:hover .post-row__media img { transform: scale(1.03); }
.post-row__k { display: inline-block; padding: 0.3rem 0.55rem; border-radius: 6px; border: 1px solid var(--line-violet); background: rgba(139, 92, 246, 0.1); font: 500 0.68rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-200); }
.post-row__title { margin-top: 1.1rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.15; }
.post-row__title a { transition: color 0.2s; }
.post-row__title a:hover { color: var(--violet-200); }
.post-row__desc { margin-top: 0.9rem; max-width: 52ch; font-size: 1.02rem; line-height: 1.65; color: var(--muted); }
.post-row .article-meta { margin-top: 1.25rem; }
.post-row .link-arrow { margin-top: 1.5rem; }
@media (max-width: 859px) { .post-row { grid-template-columns: 1fr; } .post-row:nth-child(even) .post-row__media { order: 0; } }
/* post pages: title, byline, then straight into the text */
.post { padding: calc(var(--header-h) + clamp(2rem, 1.5rem + 2vw, 3rem)) 0 clamp(4rem, 3rem + 4vw, 6rem); }
.post__head { margin-bottom: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); padding-bottom: clamp(1.5rem, 1.25rem + 1vw, 2rem); border-bottom: 1px solid var(--line); }
.post__title { margin-top: 1rem; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.12; }
.post__head .article-meta { margin-top: 1rem; }

/* --------------------------------------------------------------- events */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button { cursor: pointer; min-height: 38px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); font: 500 0.75rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.filters button:hover { border-color: rgba(255, 255, 255, 0.28); }
.filters button[aria-pressed='true'] { border-color: var(--violet-400); background: rgba(139, 92, 246, 0.18); color: #fff; }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.filter-count { font: 500 0.72rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 859px) { .event-list { grid-template-columns: 1fr; } }
.event { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.event__media {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(70% 90% at 70% 10%, var(--ev-glow, rgba(124, 58, 237, 0.5)), transparent 70%),
    var(--surface-2);
}
.event[data-region='canada'] .event__media { --ev-glow: rgba(63, 74, 230, 0.55); }
.event[data-region='europe'] .event__media { --ev-glow: rgba(192, 75, 255, 0.42); }
.event__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.event:hover .event__photo { transform: scale(1.03); }
.event__when, .event__caption {
  position: absolute; z-index: 1; padding: 0.4rem 0.65rem; border-radius: 8px; border: 1px solid var(--line-2);
  background: rgba(8, 7, 13, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 0.68rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
}
.event__when { left: 0.9rem; top: 0.9rem; }
.event__caption { left: 0.9rem; bottom: 0.9rem; color: var(--text-2); letter-spacing: 0.06em; text-transform: none; font-family: var(--font-sans); font-size: 0.78rem; }
/* Stand-in until there's a photo: our conference badge on its lanyard */
.ev-badge {
  position: relative; width: min(54%, 230px); margin-top: 14%; padding: 1.4rem 1.1rem 0.95rem; border-radius: 14px;
  background: #f6f4fb; color: var(--ink); box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.85);
  transform: rotate(-4deg); transition: transform 0.5s var(--ease);
}
.event:hover .ev-badge { transform: rotate(-1.5deg) translateY(-4px); }
.ev-badge::before, .ev-badge::after { content: ''; position: absolute; bottom: calc(100% - 4px); width: 13px; height: 240px; background: var(--grad); transform-origin: bottom center; }
.ev-badge::before { left: calc(50% - 17px); transform: rotate(-14deg); }
.ev-badge::after { left: calc(50% + 4px); transform: rotate(14deg); }
.ev-badge__clip { position: absolute; top: -9px; left: 50%; z-index: 1; width: 38px; height: 16px; margin-left: -19px; border-radius: 5px; border: 2px solid #b8afd6; background: #d9d3ec; }
.ev-badge__k { display: block; font: 600 0.58rem var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: #6d28d9; }
.ev-badge__name { display: block; margin-top: 0.35rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.ev-badge__city { display: block; margin-top: 0.2rem; font-size: 0.74rem; color: var(--ink-2); }
.ev-badge__org { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; padding-top: 0.6rem; border-top: 1px dashed #d6d0ea; font-size: 0.78rem; font-weight: 600; }
.ev-badge__org img { width: 16px; height: 16px; }
@media (max-width: 520px) {
  .ev-badge { width: 58%; margin-top: 6%; padding: 1.05rem 0.85rem 0.7rem; }
  .ev-badge__name { font-size: 0.98rem; }
  .ev-badge__org { margin-top: 0.55rem; padding-top: 0.45rem; font-size: 0.72rem; }
}
.event__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem); }
.event__top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
.event__countdown { font: 500 0.7rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet-200); }
.event__name { font-size: 1.3rem; letter-spacing: -0.02em; }
.event__where { margin-top: 0.3rem; font-size: 0.9rem; color: var(--muted); }
.event__why { margin-top: 0.55rem; font-size: 0.92rem; color: var(--text-2); }
.event .tag-row { margin-top: 0.8rem; }
.event__foot { margin-top: auto; padding-top: 1.25rem; }
/* "From the road": photos from editions we attended */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0.8rem; bottom: 0.8rem; padding: 0.35rem 0.6rem; border-radius: 8px; background: rgba(8, 7, 13, 0.72); font-size: 0.78rem; color: var(--text-2); }
@media (max-width: 759px) { .gallery { grid-template-columns: 1fr 1fr; } }
[data-filter-item][hidden] { display: none !important; }
.models-line a { transition: color 0.2s; }
.models-line a:hover { color: #fff; }
.empty { padding: 2.5rem; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty[hidden] { display: none; }

.status-pill { font: 500 0.64rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.55rem; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.status-pill--on { border-color: rgba(74, 222, 128, 0.4); color: #bbf7d0; background: rgba(74, 222, 128, 0.08); }

/* ------------------------------------------------------------ scorecard */
.score { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 959px) { .score { grid-template-columns: 1fr; } }
.q { border: 0; margin: 0; padding: 0; }
.q + .q { margin-top: 1rem; }
.q__box { padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.q legend { float: left; width: 100%; padding: 0; font-size: 1.08rem; font-weight: 500; letter-spacing: -0.015em; }
.q legend span { display: block; font: 500 0.68rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-300); margin-bottom: 0.45rem; }
.q__opts { clear: both; display: grid; gap: 0.45rem; padding-top: 1rem; }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid var(--line); font-size: 0.93rem; color: var(--text-2); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.opt span::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-input); transition: border-color 0.2s, box-shadow 0.2s; }
.opt span:hover { border-color: var(--line-2); }
.opt input:checked + span { border-color: var(--violet-400); background: rgba(139, 92, 246, 0.12); color: #fff; }
.opt input:checked + span::before { border-color: var(--violet-400); box-shadow: inset 0 0 0 4px var(--violet-400); }
.opt input:focus-visible + span { outline: 2px solid var(--violet-400); outline-offset: 2px; }
.score__side { position: sticky; top: 110px; }
@media (max-width: 959px) { .score__side { position: static; } }
.progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.4s var(--ease); }
.gauge { position: relative; width: 168px; height: 168px; margin: 0.5rem auto 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 10; }
.gauge .track { stroke: rgba(255, 255, 255, 0.07); }
.gauge .val { stroke: url(#gauge-grad); stroke-linecap: round; transition: stroke-dashoffset 0.8s var(--ease); }
.gauge__txt { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.gauge__txt b { font-size: 2.6rem; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.gauge__txt span { font: 500 0.66rem var(--font-mono); letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; margin-top: 0.3rem; }
.stage-list { list-style: none; display: grid; gap: 0.35rem; margin-top: 1rem; }
.stage-list li { display: flex; justify-content: space-between; padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.85rem; color: var(--muted); border: 1px solid transparent; }
.stage-list li span { font: 500 0.7rem var(--font-mono); color: var(--dim); }
.stage-list li.is-on { border-color: var(--line-violet); background: rgba(139, 92, 246, 0.12); color: #fff; }
.result[hidden] { display: none; }
.wins { list-style: none; display: grid; gap: 0.6rem; margin-top: 1rem; }
.wins li { display: grid; grid-template-columns: 26px 1fr; gap: 0.6rem; font-size: 0.93rem; color: var(--text-2); }
.wins li::before { content: '→'; color: var(--violet-400); font-family: var(--font-mono); }

/* ------------------------------------------------------------ stack marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 0.75rem; }
.marquee__track { display: flex; gap: 0.75rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 0.375rem)); } }
.chip { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.15rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); font: 500 0.85rem var(--font-mono); color: var(--text-2); white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: var(--violet-400); }

/* pipeline diagram (capability heroes) */
.flow { display: grid; gap: 0.55rem; }
.flow__node { display: grid; grid-template-columns: 34px 1fr auto; gap: 0.8rem; align-items: center; padding: 0.85rem 0.95rem; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.flow__node b { display: block; font-size: 0.92rem; font-weight: 500; }
.flow__node small { display: block; font-size: 0.78rem; color: var(--muted); }
.flow__node .n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font: 500 0.72rem var(--font-mono); color: var(--violet-200); background: rgba(139, 92, 246, 0.14); border: 1px solid var(--line-violet); }
.flow__node--hi { border-color: var(--line-violet); background: linear-gradient(90deg, rgba(139, 92, 246, 0.16), rgba(63, 74, 230, 0.06)); }
.flow__arrow { height: 14px; width: 1px; margin-left: 33px; background: linear-gradient(180deg, var(--violet-400), transparent); }
.flow__check { font: 500 0.7rem var(--font-mono); color: #bbf7d0; }
.panel { border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(25, 21, 45, 0.9), rgba(12, 10, 20, 0.92)); box-shadow: var(--shadow-glow); overflow: hidden; }
.panel__bar { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); font: 500 0.68rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.panel__bar b { color: var(--violet-300); font-weight: 500; }
.panel__body { padding: 1.1rem; }

/* photos (office) */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(167, 139, 250, 0.08); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
/* A violet wash at the top and a dark fade at the bottom tie the photo to the palette and carry the caption */
.photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(91, 33, 182, 0.16), transparent 32%, transparent 62%, rgba(8, 7, 13, 0.8)); }
.photo figcaption { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; z-index: 1; display: grid; gap: 0.2rem; }
.photo figcaption span { font: 500 0.68rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-200); }
.photo figcaption b { font-size: 1.05rem; font-weight: 500; color: #fff; }
.photo--hero { width: 100%; max-width: 470px; aspect-ratio: 4 / 5; justify-self: end; }
@media (max-width: 1023px) { .photo--hero { max-width: none; aspect-ratio: 16 / 11; } .photo--hero img { object-position: 50% 35%; } }

/* people (leadership) */
.person { text-align: left; }
.person__img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.person b { display: block; margin-top: 0.9rem; font-weight: 500; }
.person span { display: block; font-size: 0.85rem; color: var(--muted); }


/* role rows */
.roles { display: grid; gap: 0.6rem; }
.role { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1.25rem; align-items: center; }
.role h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.role p { margin-top: 0.3rem; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 699px) { .role { grid-template-columns: 1fr; gap: 0.75rem; } }

/* ------------------------------------------------------------ reveal */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hub > * { opacity: 1; transform: none; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .marquee__track [aria-hidden='true'] { display: none; }
}

/* paper overrides for text */
.section--paper .lede, .section--paper .muted { color: var(--ink-2); }

/* utilities */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; } .mt-8 { margin-top: 4rem; }
.gap-lg { gap: 1.25rem; }
.max-60 { max-width: 60ch; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
