/* Adamantine Solutions — main stylesheet */

/* ───────────── Fonts (self-hosted, OFL) ───────────── */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800; font-stretch: 75% 100%; font-display: swap;
  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: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 400 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  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: "Inter";
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}

/* ───────────── Tokens ───────────── */
:root {
  --bg: #07090d;
  --bg-2: #0b0f16;
  --bg-3: #10161f;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e9eef5;
  --text-2: #c3ccd9;
  --muted: #8c99ad;
  --a1: #67e8f9;
  --a2: #a78bfa;
  --a3: #f0abfc;
  --accent: #67e8f9;
  --accent-ink: #04141a;
  --human: #fbbf24;
  --ok: #4ade80;
  --err: #fb7185;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --iridescent: linear-gradient(100deg, var(--a1) 0%, var(--a2) 52%, var(--a3) 100%);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6f8;
    --bg-2: #eceef2;
    --bg-3: #e3e6ec;
    --surface: rgba(10, 20, 40, 0.035);
    --surface-2: rgba(10, 20, 40, 0.06);
    --line: rgba(10, 20, 40, 0.1);
    --line-2: rgba(10, 20, 40, 0.18);
    --text: #0b1220;
    --text-2: #263247;
    --muted: #556176;
    --a1: #0891b2;
    --a2: #7c3aed;
    --a3: #c026d3;
    --accent: #0e7490;
    --accent-ink: #ffffff;
    --human: #b45309;
    --ok: #15803d;
    --err: #be123c;
    --shadow: 0 30px 70px -35px rgba(15, 25, 45, 0.35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-2: #eceef2;
  --bg-3: #e3e6ec;
  --surface: rgba(10, 20, 40, 0.035);
  --surface-2: rgba(10, 20, 40, 0.06);
  --line: rgba(10, 20, 40, 0.1);
  --line-2: rgba(10, 20, 40, 0.18);
  --text: #0b1220;
  --text-2: #263247;
  --muted: #556176;
  --a1: #0891b2;
  --a2: #7c3aed;
  --a3: #c026d3;
  --accent: #0e7490;
  --accent-ink: #ffffff;
  --human: #b45309;
  --ok: #15803d;
  --err: #be123c;
  --shadow: 0 30px 70px -35px rgba(15, 25, 45, 0.35);
  color-scheme: light;
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--a2) 40%, transparent); }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--font-mono); font-size: 0.78em; letter-spacing: 0.02em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.iridescent {
  background: var(--iridescent);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ───────────── Buttons ───────────── */
.btn {
  --pad-y: 14px; --pad-x: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--text); color: var(--bg);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--a2) 70%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px color-mix(in srgb, var(--a1) 70%, transparent); }
.btn-ghost { border-color: var(--line-2); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--a1); background: var(--surface-2); }
.btn-sm { --pad-y: 9px; --pad-x: 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; min-width: 38px; padding: 0 10px; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); cursor: pointer; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn kbd { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .i-sun { display: none; }
  :root:not([data-theme]) .i-moon { display: block; }
}

/* ───────────── Header ───────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; display: flex; flex-direction: column; line-height: 1; }
.brand-sub { font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color .2s, background-color .2s;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.mobile-menu {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu ul { padding-top: 8px; padding-bottom: 16px; }
.mobile-menu a { display: block; padding: 12px 0; text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--line); }
@media (max-width: 960px) {
  .primary-nav, .kbd-btn { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) { .header-cta { display: none; } }

/* ───────────── Hero ───────────── */
.hero {
  position: relative; min-height: min(100svh, 980px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; cursor: crosshair; }
.hero-glow {
  position: absolute; inset: auto -10% -30% -10%; height: 70%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 60% at 70% 40%, color-mix(in srgb, var(--a2) 22%, transparent), transparent 70%),
    radial-gradient(35% 50% at 30% 70%, color-mix(in srgb, var(--a1) 16%, transparent), transparent 70%);
  filter: blur(20px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 70%),
              linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.hero-inner { position: relative; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 0 var(--a1); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a1) 60%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  font-size: clamp(48px, 9vw, 120px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95;
  margin: 26px 0 26px; max-width: 12ch;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 58ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-ledger { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 52px; color: var(--muted); font-size: 14px; }
.hero-ledger li { display: flex; align-items: baseline; gap: 10px; }
.hero-ledger .mono { color: var(--a1); }
.hero-caption {
  position: absolute; right: var(--gutter); bottom: 26px; color: var(--muted); opacity: .75;
  font-size: 11px; letter-spacing: 0.06em;
}
@media (max-width: 760px) {
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 80%, transparent) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 60%, var(--bg) 100%); }
  .hero-canvas { opacity: .55; }
  .hero-caption { display: none; }
}

/* ───────────── Sections ───────────── */
.section { padding: clamp(72px, 9vw, 112px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.kicker { color: var(--a1); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; margin-bottom: 18px; }
.section h2 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.035em; }
.section-lede { margin-top: 20px; color: var(--text-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 62ch; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ───────────── Capabilities ───────────── */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap-card {
  position: relative; padding: 30px 28px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
  transform-style: preserve-3d;
}
.cap-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--a2) 16%, transparent), transparent 60%);
}
.cap-card:hover { border-color: var(--line-2); }
.cap-card:hover::before { opacity: 1; }
.cap-card-feature { border-color: color-mix(in srgb, var(--a2) 45%, var(--line)); }
.cap-card-feature::after {
  content: "Core focus"; position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; color: var(--a2); border: 1px solid color-mix(in srgb, var(--a2) 50%, transparent);
}
.cap-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  color: var(--a1); background: color-mix(in srgb, var(--a1) 9%, transparent); border: 1px solid color-mix(in srgb, var(--a1) 22%, transparent);
}
.cap-icon svg { width: 30px; height: 30px; }
.cap-card h3 { font-size: 22px; margin-bottom: 12px; }
.cap-card p { color: var(--text-2); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags li { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }

/* ───────────── Process Lab ───────────── */
.section-lab { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.lab {
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  box-shadow: var(--shadow); overflow: hidden;
}
.lab-controls { display: grid; gap: 18px; padding: 26px 26px 22px; border-bottom: 1px solid var(--line); }
.lab-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.lab-field legend { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; margin-bottom: 10px; padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 14px; cursor: pointer; transition: all .2s ease;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip[aria-checked="true"] {
  color: var(--accent-ink); background: var(--accent); border-color: var(--accent);
  box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--a1) 80%, transparent);
}
.lab-stage { display: grid; grid-template-columns: 1fr 1.25fr; }
.lab-col { padding: 28px 26px; min-width: 0; }
.lab-before { border-right: 1px solid var(--line); }
.lab-col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.lab-col-head h3 { font-size: 20px; }
.lab-metric { color: var(--muted); }
.lab-after .lab-metric { color: var(--human); }
.flow { position: relative; display: grid; gap: 10px; counter-reset: step; }
.flow li {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14.5px; color: var(--text-2);
  opacity: 0; transform: translateY(8px); animation: step-in .5s cubic-bezier(.2,.7,.2,1) forwards;
}
.flow li strong { display: block; color: var(--text); font-size: 13px; font-family: var(--font-mono); font-weight: 600; letter-spacing: .02em; margin-bottom: 2px; }
@keyframes step-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .flow li { animation: none; opacity: 1; transform: none; } }
.flow-before li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 2px;
}
.flow-before li.is-wait { border-style: dashed; }
.flow-after { padding-left: 0; }
.node-badge {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
.node-agent .node-badge { color: var(--a1); background: color-mix(in srgb, var(--a1) 12%, transparent); border: 1px solid color-mix(in srgb, var(--a1) 40%, transparent); }
.node-human { border-color: color-mix(in srgb, var(--human) 55%, var(--line)) !important; background: color-mix(in srgb, var(--human) 7%, transparent) !important; }
.node-human .node-badge { color: var(--human); background: color-mix(in srgb, var(--human) 14%, transparent); border: 1px solid color-mix(in srgb, var(--human) 50%, transparent); }
.node-system .node-badge { color: var(--a2); background: color-mix(in srgb, var(--a2) 12%, transparent); border: 1px solid color-mix(in srgb, var(--a2) 40%, transparent); }
.flow-after li:not(:last-child)::after {
  content: ""; position: absolute; left: 28px; bottom: -11px; width: 2px; height: 10px;
  background: linear-gradient(var(--a1), var(--a2));
}
.flow-after li.is-active { border-color: var(--a1); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a1) 40%, transparent), 0 10px 30px -14px color-mix(in srgb, var(--a1) 80%, transparent); }
.flow-after li.node-human.is-active { border-color: var(--human) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--human) 40%, transparent), 0 10px 30px -14px color-mix(in srgb, var(--human) 80%, transparent); }
.lab-foot { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); }
.lab-panel { padding: 22px 26px; }
.lab-panel + .lab-panel { border-left: 1px solid var(--line); }
.lab-panel h4 { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; margin-bottom: 12px; font-weight: 500; }
.lab-panel ul { display: grid; gap: 8px; }
.lab-panel li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--text-2); }
.lab-panel li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--iridescent); transform: rotate(45deg); }
.lab-panel-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.lab-panel-cta p { color: var(--muted); font-size: 14px; }
.lab-panel-cta .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .lab-stage { grid-template-columns: 1fr; }
  .lab-before { border-right: 0; border-bottom: 1px solid var(--line); }
  .lab-foot { grid-template-columns: 1fr; }
  .lab-panel + .lab-panel { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .lab-controls, .lab-col, .lab-panel { padding-left: 16px; padding-right: 16px; }
  .chip { font-size: 13px; padding: 7px 11px; }
}

.noscript-note { padding: 18px 20px; margin-bottom: 18px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--text-2); }

/* ───────────── Approach ───────────── */
.phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; border-top: 1px solid var(--line); }
.phase { padding: 30px 22px 10px 0; position: relative; }
.phase + .phase { padding-left: 22px; border-left: 1px solid var(--line); }
.phase::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--bg); border: 1.5px solid var(--a1);
}
.phase + .phase::before { left: -5px; }
.phase-n { color: var(--a1); display: block; margin-bottom: 14px; }
.phase h3 { font-size: 22px; margin-bottom: 10px; }
.phase p { color: var(--text-2); font-size: 15px; }
.phase .phase-out { margin-top: 14px; color: var(--muted); font-size: 11.5px; }
@media (max-width: 980px) {
  .phases { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); margin-left: 5px; }
  .phase, .phase + .phase { padding: 0 0 30px 28px; border-left: 0; }
  .phase::before, .phase + .phase::before { top: 6px; left: -5px; }
}
.principles {
  margin-top: clamp(56px, 8vw, 90px); padding: clamp(26px, 4vw, 44px);
  border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--a2) 10%, transparent), transparent 55%),
    var(--surface);
}
.principles-title { font-size: 26px; margin-bottom: 28px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; }
.principle h4 { font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.principle h4::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--iridescent); flex: none; }
.principle p { color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .principle-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principle-grid { grid-template-columns: 1fr; } }

/* ───────────── Industries ───────────── */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.industry-grid li {
  background: var(--bg); padding: 22px 20px; font-family: var(--font-display); font-size: 18px; font-weight: 600;
  display: flex; flex-direction: column; gap: 10px; transition: background-color .25s ease;
}
.industry-grid li:hover { background: var(--bg-2); }
.industry-grid .mono { color: var(--muted); font-weight: 400; font-size: 11.5px; letter-spacing: 0.14em; }
.industry-grid li:hover .mono { color: var(--a1); }
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } .industry-grid li { font-size: 16px; padding: 18px 16px; } }

/* ───────────── Engagement ───────────── */
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.engage { padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.engage-feature { background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 9%, transparent), color-mix(in srgb, var(--a2) 9%, transparent)); border-color: color-mix(in srgb, var(--a2) 35%, var(--line)); }
.engage-tag { color: var(--a1); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; margin-bottom: 14px; }
.engage h3 { font-size: 24px; margin-bottom: 12px; }
.engage p { color: var(--text-2); font-size: 15.5px; }
@media (max-width: 900px) { .engage-grid { grid-template-columns: 1fr; } }

/* ───────────── Readiness quiz ───────────── */
.section-readiness { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.readiness-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.readiness-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 30px); }
.quiz { border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--bg); box-shadow: var(--shadow); overflow: hidden; }
.quiz-progress { height: 3px; background: var(--line); }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--iridescent); transition: width .4s ease; }
.quiz-body { padding: clamp(22px, 4vw, 36px); min-height: 420px; }
.quiz-step { color: var(--muted); margin-bottom: 12px; }
.quiz-q { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.quiz-dim { color: var(--a1); margin-bottom: 22px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt {
  text-align: left; padding: 15px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: var(--text-2);
  transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}
.quiz-opt:hover { border-color: var(--a1); color: var(--text); transform: translateX(3px); }
.quiz-opt .mono { color: var(--muted); width: 18px; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 22px; }
.quiz-result h3 { font-size: clamp(26px, 3vw, 34px); margin: 4px 0 10px; }
.quiz-score { display: flex; align-items: baseline; gap: 10px; color: var(--muted); }
.quiz-score strong { font-family: var(--font-display); font-size: 54px; line-height: 1; color: var(--text); letter-spacing: -0.04em; }
.quiz-summary { color: var(--text-2); margin-bottom: 22px; }
.bars { display: grid; gap: 10px; margin: 18px 0 24px; }
.bar { display: grid; grid-template-columns: 130px 1fr 34px; gap: 12px; align-items: center; font-size: 14px; color: var(--text-2); }
.bar-track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--iridescent); width: 0; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.bar .mono { color: var(--muted); text-align: right; }
.quiz-steps h4 { font-size: 16px; margin-bottom: 10px; }
.quiz-steps ol { display: grid; gap: 8px; counter-reset: qs; margin-bottom: 26px; }
.quiz-steps li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 15px; }
.quiz-steps li::before { counter-increment: qs; content: counter(qs); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--a1); border: 1px solid color-mix(in srgb, var(--a1) 40%, transparent); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .readiness-wrap { grid-template-columns: 1fr; }
  .readiness-wrap .section-head { position: static; }
  .bar { grid-template-columns: 104px 1fr 30px; }
}

/* ───────────── Leadership band ───────────── */
.section-lead { padding-top: 0; }
.lead-band {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px 36px; align-items: center;
  padding: clamp(22px, 4vw, 36px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line);
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--a1) 10%, transparent), transparent 55%), var(--surface);
}
.lead-band .kicker { margin-bottom: 8px; }
.lead-title { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; margin-bottom: 8px; }
.section .lead-title { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; }
.lead-text p:not(.kicker) { color: var(--text-2); font-size: 15.5px; max-width: 70ch; }
.lead-people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-person {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px;
  border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, transparent);
  text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.lead-person:hover { border-color: var(--a1); transform: translateY(-2px); }
.lead-person strong { display: block; font-family: var(--font-display); font-size: 17px; }
.lead-role { display: block; color: var(--a1); margin: 3px 0 8px; font-size: 11.5px; }
.lead-desc { display: block; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.lead-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 960px) { .lead-band { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .lead-people { grid-template-columns: 1fr; } }

/* Person marks and leadership cards (home band and about page) */
.person-mark.person-mark-sm { width: 48px; height: 48px; border-radius: 13px; font-size: 17px; }
.person-mark.person-mark-alt { background: linear-gradient(135deg, var(--a3), var(--a2) 55%, var(--a1)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ───────────── FAQ ───────────── */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: rotate(225deg); margin-top: -2px; border-color: var(--a1); }
.faq-list details p { padding: 0 0 24px; color: var(--text-2); max-width: 66ch; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ───────────── Contact ───────────── */
.section-contact { padding-bottom: clamp(90px, 12vw, 150px); }
.section-contact::before {
  content: ""; position: absolute; inset: 10% 0 0; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 60% at 80% 60%, color-mix(in srgb, var(--a2) 12%, transparent), transparent 70%);
}
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.shield-note {
  margin-top: 34px; display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text-2); font-size: 14.5px;
}
.shield-note svg { width: 26px; height: 26px; color: var(--ok); }
.shield-note strong { color: var(--text); }
.contact-form {
  padding: clamp(22px, 4vw, 36px); border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.field label span { color: var(--a1); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1) 22%, transparent); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: 13px; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); }
.form-note a { color: var(--text-2); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pow-status { color: var(--muted); }
.pow-status.is-ok { color: var(--ok); }
.form-result { padding: 16px 18px; border-radius: 12px; font-size: 15px; }
.form-result.is-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); }
.form-result.is-err { background: color-mix(in srgb, var(--err) 10%, transparent); border: 1px solid color-mix(in srgb, var(--err) 45%, transparent); }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ───────────── Footer ───────────── */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-2); font-size: 14.5px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--muted); max-width: 38ch; }
.footer-col h2 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { text-decoration: none; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-founder { margin-bottom: 10px; }
.footer-col address { font-style: normal; color: var(--text-2); line-height: 1.75; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-base a { color: var(--muted); }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }

/* ───────────── Command palette ───────────── */
.palette { padding: 0; border: 0; background: transparent; width: min(620px, calc(100vw - 32px)); max-width: none; margin: 12vh auto auto; color: var(--text); }
.palette::backdrop { background: rgba(3, 6, 10, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.palette-box { border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); overflow: hidden; }
.palette-search { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.palette-search input { flex: 1; border: 0; background: transparent; font-size: 17px; outline: none; min-width: 0; }
.palette-search kbd { font-family: var(--font-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: 10px; cursor: pointer; color: var(--text-2); font-size: 15px;
}
.palette-list li .mono { color: var(--muted); }
.palette-list li[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.palette-list li[aria-selected="true"] .mono { color: var(--a1); }
.palette-empty { padding: 18px 12px; color: var(--muted); }

/* ───────────── Legal / content pages ───────────── */
.page { padding: calc(var(--header-h) + 64px) 0 100px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(38px, 6vw, 60px); letter-spacing: -0.035em; margin-bottom: 14px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 10px; display: grid; gap: 6px; }
.prose a { color: var(--a1); }
.prose .updated { color: var(--muted); }
.about-head { max-width: 860px; }
.about-title { font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.04em; }
.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 44px 0; border-top: 1px solid var(--line); }
.about-label { color: var(--a1); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 500; padding-top: 6px; }
.about-body { max-width: 760px; }
.about-body p { color: var(--text-2); }
.about-body a { color: var(--a1); }
.about-h3 { font-size: 22px; margin-bottom: 16px; }
.about-h3:not(:first-child) { margin-top: 36px; }
.person-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 26px; align-items: start; max-width: 820px;
  padding: clamp(22px, 4vw, 34px); border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--a2) 12%, transparent), transparent 55%), var(--surface);
}
.person-mark {
  width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; color: var(--bg);
  background: var(--iridescent);
}
.person-name { font-size: 30px; }
.person-role { color: var(--a1); margin: 8px 0 16px; font-size: 12.5px; }
.person-statement { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.person-card p:not(.person-role):not(.person-statement) { color: var(--text-2); }
.leaders { display: grid; gap: 22px; max-width: 900px; }
.leaders-intro { font-size: 18px; color: var(--text-2); max-width: 70ch; }
.person-card { max-width: none; }
.person-tags { margin-top: 18px; }
.proof { margin-top: 22px; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--line-2); }
.proof-title { color: var(--ok); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; margin-bottom: 10px; font-weight: 500; }
.proof-list { display: grid; gap: 6px; }
.proof-list li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 14.5px; }
.proof-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 22px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stats div { background: var(--bg); padding: 14px 14px 12px; }
.stats dt { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.03em; background: var(--iridescent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 4px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.4; }
.person-links { margin-top: 16px; font-size: 14.5px; }
.person-links a { color: var(--a1); }
.pairing { padding: clamp(20px, 3vw, 28px); border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); background: var(--surface); }
.pairing-title { font-size: 20px; margin-bottom: 16px; }
.pairing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pairing-who { color: var(--a1); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; margin-bottom: 6px; }
.pairing-grid p:not(.pairing-who) { color: var(--text-2); font-size: 14.5px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .pairing-grid { grid-template-columns: 1fr; } }
.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text-2); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.check-list strong { color: var(--text); }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; color: var(--text-2); }
.facts a { color: var(--a1); }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .person-card { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.error-page h1 { font-size: clamp(80px, 18vw, 180px); letter-spacing: -0.06em; line-height: 1; }
.error-page p { color: var(--text-2); margin: 16px 0 30px; }
