/* TMW — The MSP Works */
:root {
  /* TMW brand: warm cream paper + deep ink + gold accent */
  --bg: oklch(0.965 0.012 82);
  --bg-alt: oklch(0.935 0.016 82);
  --ink: oklch(0.20 0.015 60);
  --ink-soft: oklch(0.40 0.015 60);
  --ink-mute: oklch(0.58 0.012 60);
  --rule: oklch(0.84 0.014 80);
  --rule-soft: oklch(0.90 0.010 80);
  --accent: oklch(0.70 0.12 78);        /* TMW gold */
  --accent-deep: oklch(0.55 0.13 70);   /* darker gold for hover / ink */
  --accent-ink: oklch(0.22 0.05 70);
  --sky: oklch(0.78 0.09 232);          /* light blue secondary */
  --sky-soft: oklch(0.90 0.05 232);
  --sky-ink: oklch(0.40 0.10 232);
  --ember: oklch(0.72 0.16 48);         /* warm orange accent */
  --ember-soft: oklch(0.88 0.08 48);
  --ember-ink: oklch(0.40 0.13 42);
  --warn: oklch(0.68 0.16 45);
  --paper: #faf6ee;

  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;

  --container: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);

  --radius: 2px;
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.012 60);
  --bg-alt: oklch(0.21 0.015 60);
  --ink: oklch(0.96 0.008 82);
  --ink-soft: oklch(0.78 0.012 80);
  --ink-mute: oklch(0.60 0.015 78);
  --rule: oklch(0.30 0.018 60);
  --rule-soft: oklch(0.24 0.015 60);
  --paper: oklch(0.14 0.012 60);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Typographic primitives */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.display-xl { font-size: clamp(56px, 9.5vw, 148px); }
.display-l  { font-size: clamp(44px, 6vw, 88px); }
.display-m  { font-size: clamp(32px, 4vw, 56px); }
.display-s  { font-size: clamp(24px, 2.6vw, 36px); }

.serif-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.hairline { height: 1px; background: var(--rule); width: 100%; }
.hairline-soft { height: 1px; background: var(--rule-soft); width: 100%; }

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav.scrolled .nav-inner { height: 56px; }
.nav-inner, .nav-inner * { transition: height .25s ease; }

.logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
  line-height: 1;
}
.logo img.logo-mark {
  height: 34px; width: auto; display: block;
  flex-shrink: 0;
}
.nav.scrolled .logo img.logo-mark { height: 28px; transition: height .25s ease; }
.logo-word {
  display: inline-flex; align-items: baseline; gap: 6px;
  line-height: 1;
  border-left: 1px solid var(--rule);
  padding-left: 12px;
}
.logo-word .brand-main {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em;
  font-size: 13px; text-transform: uppercase;
}
.logo-word .brand-sub {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
}
@media (max-width: 560px) {
  .logo-word { display: none; }
}

/* Footer gets the full lockup */
.foot-brand .logo-full img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* Hero owl watermark */
.hero { position: relative; }
.hero-watermark {
  position: absolute; right: -60px; top: 80px;
  width: clamp(320px, 42vw, 640px);
  opacity: 0.06;
  pointer-events: none; user-select: none;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .hero-watermark { mix-blend-mode: screen; opacity: 0.10; }
@media (max-width: 900px) { .hero-watermark { display: none; } }

/* CTA owl */
.cta .cta-owl {
  position: absolute; right: -4%; top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 38vw, 560px);
  opacity: 0.14;
  pointer-events: none; user-select: none;
}
@media (max-width: 900px) { .cta .cta-owl { opacity: 0.08; right: -20%; } }

.nav-links { display: flex; gap: 28px; font-size: 13.5px; color: var(--ink-soft); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--ink); transition: right .3s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-cta {
  display: flex; align-items: center; gap: 12px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--ink); color: var(--ink);
  background: transparent;
  transition: all .2s ease;
  font-family: var(--font-text);
  letter-spacing: -0.005em;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-arrow { font-size: 16px; line-height: 1; transform: translateY(-1px); }

/* ---------------- HERO ---------------- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-meta b { color: var(--ink); font-weight: 500; display: block; margin-top: 2px; font-family: var(--font-text); font-size: 12.5px; text-transform: none; letter-spacing: 0; }

.hero-head {
  display: flex; gap: 24px; align-items: baseline;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(56px, 9.2vw, 148px);
  margin: 0 0 40px;
  max-width: 15ch;
}
.hero-h1 .word {
  display: inline-block;
  vertical-align: baseline;
  padding: 0.05em 0.08em;
  margin: 0 -0.08em;
  clip-path: inset(-0.1em -0.1em 0 -0.1em);
}
.hero-h1 .word span {
  display: inline-block;
  animation: wordUp 1s cubic-bezier(.2,.8,.2,1) both;
  will-change: transform, opacity;
}
@keyframes wordUp {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hero-h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.hero-sub {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.hero-sub p {
  font-size: 17px; line-height: 1.5; color: var(--ink-soft); max-width: 48ch;
  margin: 0;
}
.hero-sub .actions { display: flex; gap: 12px; align-items: flex-start; justify-content: flex-end; }

/* Ticker — rolling marketplace numbers */
.ticker {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 14px 0;
  color: var(--ink-soft);
  background: var(--bg);
  margin-top: 40px;
}
.ticker-track {
  display: inline-flex; gap: 48px;
  animation: scroll 60s linear infinite;
}
.ticker-item { display: inline-flex; gap: 10px; align-items: center; }
.ticker-item .label { color: var(--ink-mute); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.12em; }
.ticker-item .val { color: var(--ink); font-variant-numeric: tabular-nums; }
.ticker-item .chg-up { color: var(--accent); }
.ticker-item .chg-down { color: var(--warn); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- SECTION ---------------- */
section { padding: 120px 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 18ch;
}
.section-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--ink-soft);
}
.section-lead {
  margin-top: 20px;
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 58ch;
  line-height: 1.55;
}

/* ---------------- STATS SLAB ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 40px 28px 36px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.stat-value .unit { color: var(--ink-mute); font-size: 0.5em; margin-left: 6px; font-weight: 400; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  max-width: 22ch;
}

/* ---------------- HOW IT WORKS (tabs) ---------------- */
.how {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.how-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.how-tabs {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.how-tab {
  text-align: left;
  padding: 20px 4px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 36px 1fr 14px;
  gap: 14px;
  align-items: center;
  color: var(--ink-mute);
  transition: color .25s ease;
  font-family: var(--font-text);
}
.how-tab:hover { color: var(--ink); }
.how-tab[aria-selected="true"] { color: var(--ink); }
.how-tab .tab-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.08em; }
.how-tab .tab-label { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.how-tab .tab-arr { font-family: var(--font-mono); opacity: 0; transition: opacity .2s, transform .2s; }
.how-tab[aria-selected="true"] .tab-arr { opacity: 1; transform: translateX(0); color: var(--accent); }

.how-panel {
  padding: 0 0 0 0;
  min-height: 480px;
}
.how-panel-head {
  display: flex; align-items: baseline; gap: 20px; margin-bottom: 28px;
  padding-bottom: 24px; border-bottom: 1px solid var(--rule);
}
.how-panel-head .num {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.how-panel-head .title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.025em; line-height: 1.05;
  margin: 0;
}
.how-panel-body {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
}
.how-panel-body p {
  font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 18px;
}
.how-panel-body ul { padding: 0; margin: 24px 0 0; list-style: none; }
.how-panel-body li {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--rule-soft);
  font-size: 14.5px; color: var(--ink-soft);
}
.how-panel-body li::before {
  content: "→"; color: var(--accent); font-family: var(--font-mono);
}

.how-visual {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 24px;
  aspect-ratio: 5/4;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.how-visual-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft);
}

/* flow diagram */
.flow-diagram {
  flex: 1; display: grid;
  grid-template-columns: 1fr 1fr 1fr; gap: 0;
  align-items: center; padding: 32px 0;
  position: relative;
}
.flow-node {
  border: 1px solid var(--ink); padding: 14px;
  background: var(--bg);
  font-size: 12px; line-height: 1.3;
  text-align: center;
  position: relative; z-index: 2;
}
.flow-node .role { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.flow-node .name { font-weight: 500; }
.flow-node.tmw {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
  transform: scale(1.1); z-index: 3;
}
.flow-node.tmw .role { color: var(--accent); }
.flow-arrow {
  position: absolute; height: 1px; background: var(--ink);
  top: 50%; transform: translateY(-50%);
}
.flow-arrow.left { left: 20%; right: 53%; }
.flow-arrow.right { left: 53%; right: 20%; }
.flow-arrow::after {
  content: ""; position: absolute; right: -1px; top: -3px;
  width: 7px; height: 7px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}

.flow-packets {
  position: absolute; top: 50%; left: 0; right: 0; height: 6px;
  pointer-events: none;
}
.packet {
  position: absolute; width: 6px; height: 6px; background: var(--accent);
  top: -3px;
  animation: packet 3.5s linear infinite;
}
@keyframes packet {
  0% { left: 24%; opacity: 0; }
  10% { opacity: 1; }
  45% { left: 48%; opacity: 1; }
  55% { left: 52%; opacity: 1; }
  90% { opacity: 1; left: 76%; }
  100% { left: 78%; opacity: 0; }
}
.packet:nth-child(2) { animation-delay: 1.2s; background: var(--ink); }
.packet:nth-child(3) { animation-delay: 2.4s; }

.how-visual-foot {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
  padding-top: 12px; border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute);
}
.how-visual-foot b { color: var(--ink); font-family: var(--font-text); font-size: 13px; font-weight: 500; display: block; }

/* ---------------- MARKETPLACE (the opportunity) ---------------- */
.opportunity {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px;
  align-items: center;
}
.opportunity-number {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(120px, 20vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  position: relative;
}
.opportunity-number .b { color: var(--accent); font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.opportunity-caption {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 24px;
  padding-top: 16px; border-top: 1px solid var(--rule);
}

.opportunity-copy h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em;
  margin: 0 0 20px; line-height: 1.1; max-width: 18ch;
}
.opportunity-copy p {
  font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 16px;
}

.opportunity-proof {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px;
  padding-top: 28px; border-top: 1px solid var(--rule);
}
.op-proof b { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; display: block; margin-bottom: 2px; }
.op-proof span { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------------- FOR WHO (dual) ---------------- */
.for-who {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.for-card {
  padding: 56px 48px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 20px;
  transition: background .3s ease;
  cursor: default;
}
.for-card:last-child { border-right: 0; }
.for-card:hover { background: var(--bg-alt); }
.for-card .eyebrow { color: var(--accent); }
.for-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.025em;
  margin: 0; line-height: 1.05; max-width: 16ch;
}
.for-card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; margin: 0; max-width: 42ch; }
.for-list { list-style: none; padding: 0; margin: 12px 0 0; }
.for-list li {
  padding: 12px 0; border-top: 1px solid var(--rule-soft);
  display: grid; grid-template-columns: 54px 1fr; gap: 12px;
  font-size: 14px; color: var(--ink-soft);
}
.for-list li .k { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }

/* ---------------- TEAM ---------------- */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.team-card {
  display: flex; flex-direction: column; gap: 16px;
}
.team-photo {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  position: relative; overflow: hidden;
  border: 1px solid var(--rule);
}
.team-photo::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 11px, color-mix(in oklab, var(--ink) 8%, transparent) 11px, color-mix(in oklab, var(--ink) 8%, transparent) 12px);
}
.team-photo::after {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500; letter-spacing: -0.04em;
  color: var(--ink);
  background: var(--bg-alt);
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.team-photo--real::before,
.team-photo--real::after { display: none; }
.team-photo--real img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: grayscale(0.15) contrast(1.02);
  transition: filter .4s ease, transform .8s ease;
}
.team-card:hover .team-photo--real img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.02);
}
.team-card .team-name { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -0.015em; margin: 0; }
.team-card .team-role { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; margin: -6px 0 6px; }
.team-card .team-bio { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.team-card .team-tag { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule-soft); font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.08em; }

/* Team tier heading */
.team-tier-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px; align-items: center;
  margin-bottom: 32px;
}
.team-tier-rule {
  height: 1px; background: var(--rule);
}
.team-tier-count {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase;
}
.team-tier-lead {
  max-width: 62ch;
  color: var(--ink-soft); font-size: 14.5px; line-height: 1.6;
  margin: 0 0 32px;
}

/* Leader cards: SVG art replaces the blank square */
.team-card--leader .leader-art {
  aspect-ratio: 5 / 6;
  width: 100%;
  margin-bottom: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.team-card--leader .team-name { color: var(--ink-soft); }
.team-card--leader .team-role { color: var(--ink); }

/* ---------------- PULL QUOTE ---------------- */
.pull {
  padding: 160px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pull-q {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 40px;
}
.pull-q::before { content: "“"; color: var(--accent); }
.pull-q::after { content: "”"; color: var(--accent); }
.pull-cite {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center;
  max-width: 520px;
  padding-top: 24px; border-top: 1px solid var(--rule);
}
.pull-avatar { width: 48px; height: 48px; background: var(--bg-alt); border: 1px solid var(--rule); }
.pull-cite b { font-weight: 500; font-size: 15px; display: block; }
.pull-cite span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------------- CTA ---------------- */
.cta {
  padding: 120px 0 140px;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.cta .eyebrow { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.cta h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 7.5vw, 112px);
  letter-spacing: -0.04em; line-height: 0.95;
  margin: 24px 0 40px; max-width: 14ch;
}
.cta h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid color-mix(in oklab, var(--bg) 20%, transparent); }
.cta .btn { border-color: var(--bg); color: var(--bg); }
.cta .btn:hover { background: var(--bg); color: var(--ink); }
.cta .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cta .btn-primary:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

.cta-bg {
  position: absolute; bottom: -40%; right: -10%;
  font-family: var(--font-display); font-weight: 500;
  font-size: 60vw; letter-spacing: -0.05em;
  opacity: 0.06; line-height: 0.8;
  pointer-events: none; user-select: none;
}

/* ---------------- FOOTER ---------------- */
footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 48px; border-bottom: 1px solid var(--rule);
}
.foot-col h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 16px; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { padding: 6px 0; font-size: 13.5px; color: var(--ink-soft); }
.foot-col li:hover { color: var(--ink); cursor: pointer; }
.foot-brand p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; max-width: 36ch; margin: 16px 0 0; }
.foot-base {
  display: flex; justify-content: space-between; padding-top: 24px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ---------------- TWEAKS PANEL ---------------- */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--ink);
  font-family: var(--font-mono); font-size: 11px;
  box-shadow: 0 10px 40px color-mix(in oklab, var(--ink) 15%, transparent);
}
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--rule);
  background: var(--ink); color: var(--bg);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.tweaks-head button { color: var(--bg); }
.tweaks-body { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.tweak-row { display: flex; flex-direction: column; gap: 6px; }
.tweak-row > span { color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.tweak-swatches { display: flex; gap: 6px; }
.tweak-sw {
  width: 28px; height: 28px; border: 1px solid var(--rule); cursor: pointer;
  position: relative;
}
.tweak-sw.active { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.tweak-seg {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  border: 1px solid var(--rule);
}
.tweak-seg button {
  padding: 6px 8px; font-family: var(--font-mono); font-size: 10.5px;
  border-right: 1px solid var(--rule);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
}
.tweak-seg button:last-child { border-right: 0; }
.tweak-seg button.active { background: var(--ink); color: var(--bg); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-sub { grid-template-columns: 1fr; gap: 24px; }
  .hero-sub .actions { justify-content: flex-start; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--rule); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .how-layout { grid-template-columns: 1fr; gap: 32px; }
  .how-panel-body { grid-template-columns: 1fr; gap: 32px; }
  .opportunity { grid-template-columns: 1fr; gap: 32px; }
  .for-who { grid-template-columns: 1fr; }
  .for-card { border-right: 0; border-bottom: 1px solid var(--rule); }
  .for-card:last-child { border-bottom: 0; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .tweaks { width: calc(100% - 40px); }
  section { padding: 80px 0; }
  .hero { padding-top: 120px; padding-bottom: 40px; }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .opportunity-proof { grid-template-columns: 1fr; }
}

/* ---------------- REVEAL ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------- SKY (light-blue) ACCENTS ---------------- */
::selection { background: var(--sky-soft); color: var(--sky-ink); }

/* Underline inline links within prose (subtle sky wash) */
.hero-sub p a,
.section-lead a,
.opportunity-copy a,
.for-card p a { color: inherit; text-decoration: none; }

/* Animated sky underline under nav links */
.nav-links a::after { background: var(--sky); height: 1.5px; }

/* Sky-tinted underline on hero italic phrase */
.hero-h1 em {
  background-image: linear-gradient(to top, var(--sky) 0, var(--sky) 2px, transparent 2px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-bottom: 2px;
}

/* Section title italics pick up a thin sky underline */
.section-title em {
  background-image: linear-gradient(to top, var(--sky) 0, var(--sky) 2px, transparent 2px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-bottom: 2px;
}

/* Ticker positive change tone → sky (tech signal, not bull-market green) */
.ticker-item .chg-up { color: var(--sky-ink); }

/* Stat numerics: small sky underline beneath the unit */
.stat-value { position: relative; }
.stat-value::after {
  content: ""; position: absolute; left: 0; bottom: -8px;
  width: 28px; height: 2px; background: var(--sky);
}

/* How-it-works: active tab gets a sky rail */
.how-tab[aria-selected="true"] { position: relative; }
.how-tab[aria-selected="true"]::before {
  content: ""; position: absolute; left: -16px; top: 50%;
  width: 8px; height: 2px; background: var(--sky); transform: translateY(-50%);
}

/* Flow diagram packets: add a sky variant */
.flow-packets .packet:nth-child(3) { background: var(--sky); }

/* Opportunity number: small sky marker */
.opportunity-number { position: relative; }
.opportunity-number::after {
  content: ""; position: absolute; left: 0; bottom: -14px;
  width: 64px; height: 2px; background: var(--sky);
}

/* For-who cards: sky key tags */
.for-list li .k { color: var(--sky-ink); }

/* Pull-quote: sky rule above citation */
.pull-cite { border-top-color: var(--sky); }

/* Team tag rail */
.team-card .team-tag { color: var(--sky-ink); }

/* Eyebrows within normal (non-CTA) sections get a tiny sky lead bar */
.eyebrow { position: relative; padding-left: 18px; }
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 10px; height: 1.5px; background: var(--sky); transform: translateY(-50%);
}
.cta .eyebrow { padding-left: 0; }
.cta .eyebrow::before { display: none; }

/* Hero live-dot → swap to sky (calmer, more "signal" feel alongside gold) */
.hero-head .dot { background: var(--sky); }

/* Section-num get a faint sky slash */
.section-num::after { content: " /"; color: var(--sky-ink); }

/* ---------------- EMBER (orange) ACCENTS ---------------- */
/* Sparingly, to pair with the sky cool-tone */

/* Hero pulse dot gets two orbits: sky + ember */
.hero-head { position: relative; }
.hero-head .dot {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ember) 35%, transparent);
}

/* Ticker: a down marker stays ember-warm */
.ticker-item .chg-down { color: var(--ember-ink); }

/* Ticker "new vendor / new opportunity" style cue via ember dot */
.ticker-track .ticker-item:nth-child(6n)::before {
  content: "●"; color: var(--ember); font-size: 8px; margin-right: 6px;
}

/* Flow packets: middle packet now ember (the "handoff") */
.flow-packets .packet:nth-child(2) { background: var(--ember); }

/* "Step 0X" num in the how-it-works panel gets an ember prefix rule */
.how-panel-head .num { position: relative; padding-left: 18px; }
.how-panel-head .num::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 10px; height: 1.5px; background: var(--ember); transform: translateY(-50%);
}

/* Opportunity: small ember kicker over the number */
.opportunity-number::before {
  content: ""; display: none;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ember-ink); letter-spacing: 0.12em; text-transform: uppercase;
}

/* Pull quote: ember corner tick */
.pull { position: relative; }
.pull::before {
  content: ""; position: absolute; left: var(--pad-x); top: 80px;
  width: 32px; height: 2px; background: var(--ember);
}

/* Team role underline (tiny ember rule under role) */
.team-card .team-role { position: relative; padding-bottom: 8px; }
.team-card .team-role::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 18px; height: 1.5px; background: var(--ember);
}

/* Hero actions: add ember ring on primary hover, sky ring on secondary */
.btn-primary:hover {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ember) 22%, transparent);
}

/* CTA heading italic: ember underline (reads under the gold) */
.cta h2 em {
  background-image: linear-gradient(to top, var(--ember) 0, var(--ember) 3px, transparent 3px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-bottom: 3px;
}

/* Footer link hover: sky; base brand year: ember dot */
.foot-col li { transition: color .18s ease; position: relative; }
.foot-col li:hover { color: var(--sky-ink); }
.foot-base { gap: 16px; align-items: center; }
.foot-base span:first-child::before {
  content: "●"; color: var(--ember); margin-right: 8px; font-size: 7px;
  vertical-align: middle;
}

/* Section titles: add a tiny ember + sky marker pair before the title */
.section-head > div:last-child .section-title { position: relative; }
.section-head > div:last-child .section-title::before {
  content: "";
  display: inline-block;
  width: 24px; height: 2px;
  background: linear-gradient(to right, var(--ember) 0 50%, var(--sky) 50% 100%);
  vertical-align: middle;
  margin-right: 14px;
  margin-bottom: 0.35em;
}

/* Stat-value unit recolored toward ember for a touch of warmth */
.stat-value .unit { color: var(--ember-ink); }

/* Eyebrow lead bar — split it: first half ember, second half sky */
.eyebrow::before {
  background: linear-gradient(to right, var(--ember) 0 50%, var(--sky) 50% 100%);
}

/* ---------- Principle cards (qualitative stats slab) ---------- */
.principle-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-ink);
  margin-bottom: 18px;
}
.principle-hd {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 14ch;
  position: relative;
  text-wrap: balance;
}
.principle-hd::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--sky);
  margin-top: 16px;
}
/* No stray sky underline from legacy .stat-value rules */
.stat .principle-hd,
.stat .principle-kicker,
.stat .stat-label { position: static; }

/* ---------- Opportunity headline (replaces $500B) ---------- */
.opportunity-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-ink);
  margin-bottom: 20px;
}
.opportunity-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 120px);
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--ink);
  margin: 0;
  max-width: 12ch;
}
.opportunity-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  background-image: linear-gradient(to top, var(--sky) 0, var(--sky) 3px, transparent 3px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-bottom: 3px;
}
