/* =====================================================================
   Carolina Hedge Fund — Design System
   Plain CSS, no build step. Navy + Carolina blue, institutional, clean.
   ===================================================================== */

/* ----------  Fonts  ---------- */
/* Industrial DIN-style type. DIN Neuzeit Grotesk is a licensed Monotype font and
   can't be embedded for free, so we self-host D-DIN — an open-source DIN typeface
   (free for commercial use) that carries the same sleek, technical character. */
@font-face {
  font-family: 'D-DIN';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/D-DIN.woff') format('woff');
}
@font-face {
  font-family: 'D-DIN';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/D-DIN-Italic.woff') format('woff');
}
@font-face {
  font-family: 'D-DIN';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/D-DIN-Bold.woff') format('woff');
}

/* ----------  Tokens  ---------- */
:root {
  /* Backgrounds */
  --bg-primary:   #FAFAF9;
  --bg-surface:   #FFFFFF;
  --bg-navy:      #041D5B;
  --bg-navy-deep: #02123B;

  /* Text */
  --text-primary:   #0A0A0A;
  --text-secondary: #6B6B6B;
  --text-tertiary:  #9A9A99;
  --text-on-navy:   #EAF1FF;

  /* Borders */
  --border:      #E8E8E8;
  --border-navy: rgba(4, 29, 91, 0.18);

  /* Brand */
  --brand-navy: #041D5B;
  --brand-blue: #3996F5;
  --brand-blue-soft: rgba(57, 150, 245, 0.12);

  /* Carolina */
  --carolina:       #4B9CD3;  /* UNC Carolina blue */
  --carolina-light: #7BAFD4;
  --carolina-soft:  rgba(75, 156, 211, 0.14);
  --unc-navy:       #13294B;

  /* Semantic */
  --gain: #1E6B3A;
  --loss: #B23A3A;

  /* Type */
  --font-sans: 'D-DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'D-DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'D-DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'D-DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --reading: 720px;
  --nav-h: 96px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------  Reset / Base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand-blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand-navy); color: #fff; padding: 10px 16px; border-radius: 4px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ----------  Typography helpers  ---------- */
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-blue);
}
.label-muted { color: var(--text-tertiary); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

.display {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 92px); line-height: 0.98;
  letter-spacing: -0.035em; font-weight: 800;
}
.h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.h3 { font-family: var(--font-display); font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
.lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--text-secondary); }
.muted { color: var(--text-secondary); }
.tertiary { color: var(--text-tertiary); }

/* ----------  Layout  ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.reading { max-width: var(--reading); }
.center { text-align: center; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .label { display: block; margin-bottom: 16px; }
.section-head .h2 { margin-bottom: 16px; }

.divider { height: 1px; background: var(--border); border: 0; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  padding: 11px 20px; border-radius: 3px; border: 1px solid transparent;
  transition: background .15s var(--ease), color .15s var(--ease),
              border-color .15s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-navy); color: #fff; }
.btn-primary:hover { background: var(--bg-navy-deep); }
.btn-secondary { background: transparent; color: var(--brand-navy); border-color: var(--border-navy); }
.btn-secondary:hover { border-color: var(--brand-navy); background: rgba(4,29,91,0.03); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn-arrow::after { content: "→"; font-family: var(--font-mono); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ====================================================================
   NAVIGATION
   ==================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; transition: transform .25s var(--ease); }
.nav-brand:hover { transform: translateY(-1px); }
.nav-brand img { height: 80px; width: auto; display: block; transition: height .3s var(--ease); }
.nav.solid .nav-brand img { height: 68px; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-secondary);
  transition: color .15s var(--ease); position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--brand-navy); }
.nav-links a.active { color: var(--brand-navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand-blue); border-radius: 2px;
}
.nav-cta { margin-left: 34px; }

/* Solid state (scrolled, or non-home pages) */
.nav.solid {
  background: rgba(250,250,249,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
}

/* Transparent-over-hero (home top) */
.nav.transparent .nav-brand img { filter: brightness(0) invert(1); }
.nav.transparent .nav-links a { color: rgba(255,255,255,0.80); }
.nav.transparent .nav-links a:hover,
.nav.transparent .nav-links a.active { color: #fff; }
.nav.transparent .nav-cta.btn-primary { background: #fff; color: var(--brand-navy); }

/* Mobile menu toggle */
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--brand-navy); transition: .25s var(--ease); }
.nav.transparent .nav-toggle span { background: #fff; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
body.menu-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); background: var(--brand-navy); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); background: var(--brand-navy); }

.mobile-panel {
  position: fixed; inset: 0; z-index: 90; background: var(--bg-primary);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 32px;
  opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .3s var(--ease);
}
body.menu-open .mobile-panel { opacity: 1; pointer-events: auto; transform: none; }
.mobile-panel a { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--brand-navy); padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-panel a:last-of-type { border-bottom: 0; }
.mobile-panel .btn { margin-top: 24px; align-self: flex-start; color: #fff; font-size: 14px; font-weight: 600; border-bottom: 0; padding: 13px 28px; }

/* ====================================================================
   HERO  (home) — cross-fade NYSE color -> Carolina blue
   ==================================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: #fff; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; transform: scale(1.3); transform-origin: center; animation: kenburns 24s cubic-bezier(0.4, 0.0, 0.2, 1) forwards; }
@keyframes kenburns { from { transform: scale(1.3); } to { transform: scale(1.0); } }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg .hero-blue { z-index: 0; }
/* whole frame fades from NYSE color to Carolina blue — quick, minimal */
.hero-bg .hero-color {
  z-index: 1;
  opacity: 1;
  animation: heroFade 1.8s ease-in-out 1.1s forwards;
}
@keyframes heroFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.hero-edge { display: none; }

/* Carolina-blue dim — darker for legibility, blue cast not black */
.hero-scrim {
  position: absolute; inset: 0; z-index: 3;
  background:
    radial-gradient(115% 95% at 50% 42%, rgba(19,41,75,0.30) 0%, rgba(11,28,58,0.66) 70%, rgba(6,16,38,0.82) 100%),
    linear-gradient(180deg, rgba(11,28,58,0.55) 0%, rgba(11,28,58,0.38) 40%, rgba(6,16,38,0.78) 100%),
    linear-gradient(120deg, rgba(75,156,211,0.16), rgba(75,156,211,0) 55%);
}

.hero-inner {
  position: relative; z-index: 4; width: 100%; max-width: 1040px;
  margin: 0 auto; padding: 0 32px;
}
.hero-content { max-width: 1000px; margin: 0 auto; }
.hero .label { display: inline-block; color: var(--carolina-light); font-weight: 600; opacity: 0; transform: translateY(14px); animation: heroRise .8s var(--ease) 0.7s forwards; }
.hero .display {
  color: #fff; margin: 22px 0 0;
  font-size: clamp(52px, 11.5vw, 140px); font-weight: 700; line-height: 0.96;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 34px rgba(2,12,40,0.40);
}
.hero .display .ln { display: block; overflow: hidden; padding: 0.08em 0 0.02em; }
.hero .display .ln-2 { padding-bottom: 0.18em; }
.hero .display .ln > span { display: block; transform: translateY(118%); }
.hero .display .ln-1 > span { animation: lineUp .95s cubic-bezier(0.22,0.85,0.25,1) 0.9s forwards; }
.hero .display .ln-2 > span { animation: lineUp .95s cubic-bezier(0.22,0.85,0.25,1) 1.06s forwards; }
@keyframes lineUp { from { transform: translateY(118%); } to { transform: translateY(0); } }
.hero-sub { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; color: rgba(255,255,255,0.94); margin: 26px auto 0; max-width: 640px; opacity: 0; transform: translateY(16px); animation: heroRise .9s var(--ease) 1.55s forwards; }
.hero .btn-row { margin-top: 36px; justify-content: center; opacity: 0; transform: translateY(16px); animation: heroRise .9s var(--ease) 1.7s forwards; }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.72);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: blurRise 1s var(--ease) 2s forwards;
}
.hero-scroll .line { width: 1px; height: 36px; background: linear-gradient(var(--carolina-light), transparent); animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .4; transform: scaleY(.7); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } }

/* Sub-page header (solid navy) */
.page-header { padding: calc(var(--nav-h) + 80px) 0 72px; background: var(--bg-primary); border-bottom: 1px solid var(--border); }
.page-header .label { display: block; margin-bottom: 18px; }
.page-header .h1 { color: var(--brand-navy); max-width: 16ch; }
.page-header .lead { margin-top: 20px; max-width: 60ch; }

/* ====================================================================
   CARDS / GRIDS
   ==================================================================== */
.grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* asset class cards */
.asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.asset-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px 24px; transition: border-color .2s var(--ease), transform .2s var(--ease);
  display: flex; flex-direction: column; min-height: 200px;
}
.asset-card:hover { border-color: var(--border-navy); transform: translateY(-2px); }
.asset-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--brand-blue); letter-spacing: 0.06em; }
.asset-card .h3 { margin: 14px 0 10px; color: var(--brand-navy); }
.asset-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }
.asset-card .spark { margin-top: auto; padding-top: 18px; }

.wide-card {
  margin-top: 16px; background: var(--brand-navy); color: var(--text-on-navy);
  border-radius: 12px; padding: 28px 30px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.wide-card .label { color: #9ecbff; }
.wide-card .h3 { color: #fff; margin: 8px 0; }
.wide-card p { color: rgba(234,241,255,0.78); font-size: 14.5px; max-width: 70ch; }

/* positioning statement */
.positioning { max-width: 880px; margin: 0 auto; text-align: center; }
.positioning .quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.18; color: var(--text-primary); letter-spacing: -0.025em; }
.positioning .quote .accent { color: var(--carolina); }

/* stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { position: relative; overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 34px 24px 30px; text-align: center; transition: transform .22s var(--ease), border-color .22s var(--ease); }
.stat-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand-blue), var(--carolina)); transform: scaleX(0); transform-origin: center; transition: transform .4s var(--ease); }
.stat-card:hover { transform: translateY(-3px); border-color: var(--border-navy); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-card .stat-eyebrow { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--carolina); margin-bottom: 12px; }
.stat-card .stat-num { font-family: var(--font-mono); font-size: clamp(42px, 5.4vw, 58px); font-weight: 500; color: var(--brand-navy); letter-spacing: -0.02em; line-height: 1; }
.stat-card .stat-label { display: block; margin-top: 12px; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }

/* ====================================================================
   CTA BANNER
   ==================================================================== */
.cta-band { background: var(--brand-navy); color: #fff; border-radius: 16px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% -20%, rgba(57,150,245,0.35), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band .h2 { color: #fff; }
.cta-band p { color: rgba(234,241,255,0.8); max-width: 56ch; margin: 16px auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ====================================================================
   FOOTER
   ==================================================================== */
.footer { background: var(--bg-primary); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); max-width: 36ch; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--text-secondary); padding: 5px 0; transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--brand-navy); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 12px; color: var(--text-tertiary); max-width: 70ch; }

/* ====================================================================
   TIMELINE
   ==================================================================== */
.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand-blue), var(--border)); }
.tl-item { position: relative; padding: 0 0 60px 200px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-logo-gutter { position: absolute; left: 0; top: 0; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.tl-logo-gutter img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tl-logo-gutter.sm img { max-width: 70%; max-height: 70%; }
.tl-dot { position: absolute; left: 139px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-primary); border: 2px solid var(--brand-blue); display: grid; place-items: center; }
.tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-navy); }
.tl-item.is-current .tl-dot { border-color: var(--brand-navy); background: var(--brand-navy); }
.tl-item.is-current .tl-dot::after { background: var(--brand-blue); }
.tl-year { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--brand-blue); font-weight: 600; }
.tl-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px 28px; margin-top: 12px; }
.tl-item.is-current .tl-card { border-color: var(--border-navy); box-shadow: inset 0 0 0 1px var(--border-navy); }
.tl-card .name { font-size: 21px; font-weight: 600; color: var(--brand-navy); letter-spacing: -0.01em; }
.tl-card .role { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin: 6px 0 14px; }
.tl-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.tl-badge { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 3px; background: var(--brand-blue-soft); color: var(--brand-blue); }

/* founder */
.founder { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.founder-photo { aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #ffffff; display: grid; place-items: center; }
.founder-photo .placeholder { color: rgba(255,255,255,0.5); font-size: 13px; text-align: center; padding: 24px; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); transition: filter .5s var(--ease); }
.founder-photo:hover img { filter: grayscale(0) contrast(1); }
.founder-body .open-quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; color: var(--brand-navy); }
.founder-body p { color: var(--text-secondary); margin-top: 18px; line-height: 1.7; }
/* quote-style attribution: indented em-dash, name + role beside it */
.founder-meta { margin-top: 26px; padding-left: 34px; position: relative; }
.founder-meta::before { content: "—"; position: absolute; left: 0; top: 1px; font-size: 18px; font-weight: 600; color: var(--carolina); }
.founder-meta .name { font-size: 18px; font-weight: 600; color: var(--brand-navy); }
.founder-meta .sub { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }

/* ====================================================================
   TEAM  (grayscale -> color hover)
   ==================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.team-card { position: relative; transition: transform .25s var(--ease); }
.team-card:hover { transform: translateY(-4px); }
.team-photo {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px;
  background: #ffffff; box-shadow: inset 0 0 0 1px rgba(10,10,10,0.04);
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(1) contrast(1.04);
  transition: filter .5s var(--ease), transform .6s var(--ease);
}
.team-card:hover .team-photo img { filter: grayscale(0) contrast(1); transform: scale(1.04); }
.team-body { padding: 16px 2px 0; }
.team-body .name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; color: var(--brand-navy); }
.team-body .role { font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--carolina); margin-top: 4px; }
.team-body .meta { font-size: 12.5px; color: var(--text-tertiary); margin-top: 10px; }
.team-body .exp { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin-top: 10px; }
.team-body .exp .k { color: var(--brand-navy); font-weight: 600; }
.placeholder-tag { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 3px; border: 1px dashed var(--border-navy); color: var(--carolina); }

/* ====================================================================
   AI PAGE
   ==================================================================== */
.ai-hero { position: relative; padding: calc(var(--nav-h) + 96px) 0 96px; background: var(--bg-navy-deep); color: #fff; overflow: hidden; }
.ai-hero .container { position: relative; z-index: 2; }
.ai-grid-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(57,150,245,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(57,150,245,0.10) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(120% 90% at 50% 10%, #000 30%, transparent 75%); }
.ai-hero .label { color: #7fb6ff; }
.ai-hero .display { color: #fff; margin-top: 18px; max-width: 18ch; }
.ai-hero .lead { color: rgba(234,241,255,0.82); margin-top: 22px; max-width: 60ch; }
.ai-hero .pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ai-pill { font-size: 12.5px; font-weight: 500; padding: 7px 14px; border-radius: 100px; border: 1px solid rgba(127,182,255,0.35); color: #cfe3ff; background: rgba(57,150,245,0.08); }
.ai-pill .dot { color: #3996F5; }

/* agent pipeline diagram */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.pipe-node { position: relative; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px 22px; }
.pipe-node .step { font-family: var(--font-mono); font-size: 11px; color: var(--brand-blue); }
.pipe-node .h3 { color: var(--brand-navy); margin: 10px 0 8px; font-size: 17px; }
.pipe-node p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.pipe-node:not(:last-child)::after {
  content: "→"; font-family: var(--font-mono); position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  color: var(--brand-blue); z-index: 3; font-size: 15px; background: var(--bg-primary); padding: 2px;
}
.pipe-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--brand-blue-soft); color: var(--brand-navy); display: grid; place-items: center; margin-bottom: 6px; }
.pipe-icon svg { width: 20px; height: 20px; }

/* capability cards */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px 26px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.cap-card:hover { border-color: var(--border-navy); transform: translateY(-3px); }
.cap-card .cap-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-navy), #0a3aa0); color: #fff; margin-bottom: 18px; }
.cap-card .cap-ic svg { width: 22px; height: 22px; }
.cap-card .h3 { color: var(--brand-navy); margin-bottom: 10px; }
.cap-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }
.cap-card .tag-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.cap-card .tag { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: 3px; background: var(--bg-primary); border: 1px solid var(--border); color: var(--text-secondary); }

/* terminal mock */
.terminal { background: #02112e; border: 1px solid rgba(127,182,255,0.18); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,0.02); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(127,182,255,0.12); background: rgba(255,255,255,0.02); }
.terminal-bar .tdot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.terminal-bar .ttitle { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: #7fb6ff; }
.terminal-body { padding: 22px 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: #cfe3ff; }
.terminal-body .ln { display: block; white-space: pre-wrap; }
.term-user { color: #7fb6ff; }
.term-agent { color: #eaf1ff; }
.term-dim { color: #5e80b8; }
.term-ok { color: #5fd39b; }
.term-cursor { display: inline-block; width: 8px; height: 15px; background: #3996F5; vertical-align: -2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ====================================================================
   PORTFOLIO
   ==================================================================== */
.port-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.port-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column; transition: border-color .2s var(--ease), transform .2s var(--ease); min-height: 230px; }
.port-card:hover { border-color: var(--border-navy); transform: translateY(-3px); }
.port-card .label { margin-bottom: 14px; }
.port-card .h3 { color: var(--brand-navy); }
.port-card .desc { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin-top: 10px; }
.port-card .stat { font-family: var(--font-mono); font-size: 24px; font-weight: 500; margin-top: auto; padding-top: 18px; }
.port-card .stat.gain { color: var(--gain); }
.port-card .stat.loss { color: var(--loss); }
.port-card .stat.neutral { color: var(--brand-navy); }
.port-card .read { font-size: 13px; color: var(--brand-blue); font-weight: 500; margin-top: 14px; }

.placeholder-card { border: 1px dashed var(--border-navy); background: repeating-linear-gradient(135deg, transparent, transparent 12px, rgba(4,29,91,0.015) 12px, rgba(4,29,91,0.015) 24px); }
.placeholder-card .ph-icon { width: 40px; height: 40px; border-radius: 10px; border: 1px dashed var(--border-navy); display: grid; place-items: center; color: var(--brand-blue); margin-bottom: 14px; }
.placeholder-card .h3 { color: var(--text-secondary); }
.placeholder-note { font-family: var(--font-mono); font-size: 11px; color: var(--brand-blue); margin-top: auto; padding-top: 18px; letter-spacing: 0.03em; }

.replicate-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.replicate-card { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; }
.replicate-card .idx { font-family: var(--font-mono); font-size: 13px; color: var(--brand-blue); padding-top: 2px; min-width: 28px; }
.replicate-card .h3 { font-size: 17px; color: var(--brand-navy); }
.replicate-card p { font-size: 13.5px; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }

.disclaimer-band { background: var(--brand-blue-soft); border-top: 1px solid var(--border-navy); border-bottom: 1px solid var(--border-navy); }
.disclaimer-band p { font-size: 13px; color: var(--text-secondary); padding: 16px 0; max-width: 90ch; }

/* skills tags */
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tags .tag { font-size: 14px; padding: 9px 16px; border-radius: 4px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--brand-navy); font-weight: 500; }

/* ====================================================================
   SCROLL REVEAL
   ==================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg .hero-color { display: none; }
  .hero .display .ln > span { transform: none; }
  .hero .label, .hero-sub, .hero .btn-row { opacity: 1; transform: none; }
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 1024px) {
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipe-node:nth-child(2)::after { display: none; }
  .cap-grid, .port-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { padding: 0 22px; }
  .nav-inner { padding: 0 22px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { padding-bottom: 64px; }
  .stat-grid, .asset-grid, .cap-grid, .port-grid, .grid-3, .grid-2, .pipeline, .replicate-row { grid-template-columns: 1fr; }
  .pipe-node::after { display: none !important; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .split, .founder { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 48px 24px; }
  .tl-item { padding: 0 0 48px 56px; }
  .timeline::before { left: 18px; }
  .tl-dot { left: 7px; }
  .tl-logo-gutter { position: static; width: 92px; height: 92px; margin: 0 0 14px 0; padding: 0; justify-content: flex-start; }
}
@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ====================================================================
   COOL FEATURES — page transition, progress, ticker, modal, motion
   ==================================================================== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1500;
  background: linear-gradient(90deg, var(--brand-blue), var(--carolina));
  box-shadow: 0 0 12px rgba(57,150,245,0.55); transition: width .08s linear;
}

/* Page transition — logo cover, used ONLY when arriving at / leaving for home.
   Default state: parked off-screen, no animation. index.html adds .intro to play
   the arrival; JS adds .cover when a link heads back to the homepage. */
.page-transition {
  position: fixed; inset: 0; z-index: 2000; background: var(--unc-navy);
  display: grid; place-items: center; pointer-events: none; transform: translateY(-100%);
}
.page-transition.intro { transform: translateY(0); animation: ptIntro 1.05s cubic-bezier(0.76,0,0.24,1) forwards; }
.page-transition::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 45% at 50% 50%, rgba(57,150,245,0.20), transparent 70%); }
.pt-logo { position: relative; width: clamp(130px, 17vw, 210px); filter: brightness(0) invert(1); transform: scale(.8); opacity: 0; }
.page-transition.intro .pt-logo { animation: ptPop .62s cubic-bezier(0.22,0.85,0.25,1) forwards; }
@keyframes ptIntro { 0% { transform: translateY(0); } 62% { transform: translateY(0); } 100% { transform: translateY(-100%); } }
@keyframes ptPop { 0% { opacity: 0; transform: scale(.8); } 45% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
.page-transition.cover { animation: ptCover .55s cubic-bezier(0.76,0,0.24,1) forwards; }
@keyframes ptCover { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.page-transition.cover .pt-logo { animation: ptPop .55s cubic-bezier(0.22,0.85,0.25,1) forwards; }

/* Ticker tape */
.ticker { overflow: hidden; background: var(--unc-navy); border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); }
.ticker-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: tickerMove 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; color: rgba(255,255,255,0.70); padding: 15px 0; }
.ticker-track .tk-brand { font-weight: 700; color: #fff; }
.ticker-track .sep { color: var(--carolina); padding: 0 28px; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Cooler asset cards */
.asset-card { position: relative; overflow: hidden; }
.asset-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--brand-blue), var(--carolina)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.asset-card:hover::before { transform: scaleX(1); }
.asset-card .bgnum { position: absolute; right: -2px; bottom: -36px; font-family: var(--font-display); font-weight: 800; font-size: 132px; line-height: 1; color: rgba(4,29,91,0.045); pointer-events: none; transition: transform .45s var(--ease), color .3s; }
.asset-card:hover .bgnum { transform: translateY(-10px); color: var(--carolina-soft); }
.asset-card .num, .asset-card .h3, .asset-card p { position: relative; }

/* Accent underline-draw for capability + portfolio cards */
.cap-card, .port-card { position: relative; overflow: hidden; }
.cap-card::after, .port-card::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--brand-blue), var(--carolina)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.cap-card:hover::after, .port-card:hover::after { transform: scaleX(1); }

/* Animated background motion on dark sections */
.cta-band::before { animation: glowDrift 9s ease-in-out infinite alternate; }
@keyframes glowDrift { from { transform: translate(-4%, -6%) scale(1); opacity: .85; } to { transform: translate(6%, 4%) scale(1.18); opacity: 1; } }
.ai-grid-bg { animation: gridDrift 26s linear infinite; }
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 44px 44px; } }

/* Bio modal */
.bio-modal { position: fixed; inset: 0; z-index: 1800; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.bio-modal.open { opacity: 1; pointer-events: auto; }
.bio-overlay { position: absolute; inset: 0; background: rgba(6,16,38,0.62); backdrop-filter: blur(6px); }
.bio-dialog { position: relative; z-index: 1; width: min(760px, 100%); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 300px 1fr; transform: translateY(26px) scale(.95); opacity: 0; transition: transform .42s cubic-bezier(0.22,0.85,0.25,1), opacity .35s; box-shadow: 0 40px 120px rgba(4,29,91,0.30); }
.bio-modal.open .bio-dialog { transform: none; opacity: 1; }
.bio-photo { background: #fff; min-height: 320px; }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bio-content { padding: 32px 34px; }
.bio-content .b-role { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; color: var(--carolina); text-transform: uppercase; }
.bio-content .b-name { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.01em; color: var(--brand-navy); margin-top: 6px; line-height: 1.05; }
.bio-content .b-meta { font-size: 13px; color: var(--text-tertiary); margin-top: 12px; }
.bio-content .b-exp { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-top: 16px; }
.bio-content .b-exp .k { color: var(--brand-navy); font-weight: 600; }
.bio-close { position: absolute; top: 14px; right: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,0.92); font-size: 19px; color: var(--text-secondary); line-height: 1; transition: .25s var(--ease); }
.bio-close:hover { border-color: var(--brand-navy); color: var(--brand-navy); transform: rotate(90deg); }

/* Team card → clickable, hover hint, bio text hidden on card (lives in modal) */
.team-card { cursor: pointer; }
.team-photo .view-hint { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: center; padding: 30px 0 13px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(4,29,91,0.85)); opacity: 0; transform: translateY(8px); transition: .3s var(--ease); pointer-events: none; }
.team-card:hover .view-hint { opacity: 1; transform: none; }
.team-body .meta, .team-body .exp, .team-body .placeholder-tag { display: none; }

@media (max-width: 620px) {
  .bio-dialog { grid-template-columns: 1fr; max-height: 86vh; overflow: auto; }
  .bio-photo { aspect-ratio: 4/3; min-height: 0; }
}
@media (max-width: 760px) {
  .nav-brand .wm { font-size: 15px; letter-spacing: 0.1em; }
}

/* ====================================================================
   ASSET-CLASS HUB DIAGRAM
   ==================================================================== */
.hub-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hub-copy .label { display: block; margin-bottom: 16px; }
.hub-copy .h2 { margin-bottom: 16px; }
.hub-copy .hint { margin-top: 20px; font-size: 13px; color: var(--text-tertiary); display: inline-flex; align-items: center; gap: 8px; }
.hub-copy .hint::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--carolina); display: inline-block; background: radial-gradient(circle, var(--carolina) 30%, transparent 32%); }

.hub { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1; }
.hub svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub .line { stroke: var(--carolina); stroke-width: 0.5; fill: none; stroke-dasharray: 42; stroke-dashoffset: 42; opacity: 0; }
.hub.in .line { animation: hubDraw 0.9s var(--ease) forwards, hubPulse 3.4s ease-in-out 1.1s infinite; }
.hub.in .line.l2 { animation-delay: 0.1s, 1.2s; }
.hub.in .line.l3 { animation-delay: 0.2s, 1.3s; }
.hub.in .line.l4 { animation-delay: 0.3s, 1.4s; }
@keyframes hubDraw { from { stroke-dashoffset: 42; opacity: 0; } to { stroke-dashoffset: 0; opacity: 0.5; } }
@keyframes hubPulse { 0%,100% { opacity: 0.28; } 50% { opacity: 0.62; } }

.hub-core, .hub-node { position: absolute; }
.hub-core {
  width: 27%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 3;
  border-radius: 50%; background: radial-gradient(130% 130% at 30% 20%, #0a3aa0, var(--brand-navy) 60%);
  color: #fff; display: grid; place-items: center; text-align: center; padding: 8px; cursor: pointer;
  box-shadow: 0 18px 46px rgba(4,29,91,0.36); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hub-core:hover { transform: translate(-50%,-50%) scale(1.07); box-shadow: 0 22px 56px rgba(4,29,91,0.46); }
.hub-core .rs-label { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--carolina-light); }
.hub-core .rs-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(12px, 2vw, 16px); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; margin-top: 3px; }

.hub-node { width: 27%; aspect-ratio: 1; z-index: 2; }
.hub-node.n-top { left: 50%; top: 0; transform: translateX(-50%); }
.hub-node.n-right { right: 0; top: 50%; transform: translateY(-50%); }
.hub-node.n-bottom { left: 50%; bottom: 0; transform: translateX(-50%); }
.hub-node.n-left { left: 0; top: 50%; transform: translateY(-50%); }
.hub-node .nd {
  position: absolute; inset: 0; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border);
  display: grid; place-items: center; text-align: center; padding: 10px; cursor: pointer;
  opacity: 0; transform: scale(0.82); transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.hub.in .hub-node .nd { animation: nodeIn .55s var(--ease) forwards; }
.hub.in .n-top .nd { animation-delay: .35s; }
.hub.in .n-right .nd { animation-delay: .45s; }
.hub.in .n-bottom .nd { animation-delay: .55s; }
.hub.in .n-left .nd { animation-delay: .65s; }
@keyframes nodeIn { to { opacity: 1; transform: scale(1); } }
.hub-node .nd:hover { transform: scale(1.07); border-color: var(--carolina); box-shadow: 0 16px 38px rgba(4,29,91,0.16); z-index: 5; }
.hub-node .nd .nn { font-size: 9.5px; font-family: var(--font-mono); color: var(--carolina); letter-spacing: 0.04em; }
.hub-node .nd .nt { font-family: var(--font-display); font-weight: 700; font-size: clamp(12px, 2vw, 16px); color: var(--brand-navy); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.05; margin-top: 3px; }

@media (max-width: 920px) {
  .hub-wrap { grid-template-columns: 1fr; gap: 32px; }
  .hub { max-width: 420px; }
}
/* ====================================================================
   BALYASNY-STYLE ASSET-CLASS TABS (centered, equal bubbles, grow-on-switch)
   ==================================================================== */
.bal { text-align: center; }
.bal-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.bal-tab { background: none; border: 0; padding: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 2.1vw, 24px); letter-spacing: -0.015em; color: var(--text-tertiary); cursor: pointer; position: relative; transition: color .2s var(--ease); }
.bal-tab:hover { color: var(--text-secondary); }
.bal-tab.active { color: var(--brand-navy); }
.bal-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--carolina); transform: scaleX(0); transform-origin: center; transition: transform .32s var(--ease); }
.bal-tab.active::after { transform: scaleX(1); }

/* circle stage */
.bal-stage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 560 / 360; margin: 40px auto 0; }
.bal-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.bal-line { stroke: var(--carolina); stroke-width: 1.25; stroke-dasharray: 2 6; stroke-linecap: round; opacity: 0; }
.bal-stage.in .bal-line { animation: balLineIn .6s var(--ease) forwards, balLineFlow 1.7s linear 0.7s infinite; }
.bal-stage.in .bal-line.l2 { animation-delay: .08s, .85s; }
.bal-stage.in .bal-line.l3 { animation-delay: .16s, 1s; }
.bal-stage.in .bal-line.l4 { animation-delay: .24s, 1.15s; }
@keyframes balLineIn { to { opacity: .34; } }
@keyframes balLineFlow { to { stroke-dashoffset: 8; } }

.bal-bub { position: absolute; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; cursor: pointer; box-sizing: border-box;
  transition: left .65s cubic-bezier(0.45,0.05,0.15,1), top .65s cubic-bezier(0.45,0.05,0.15,1), width .65s cubic-bezier(0.34,1.15,0.4,1), transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease); }
.bal-bub .lbl { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.12; padding: 0 10px; transition: font-size .55s var(--ease), color .35s var(--ease); }
/* swap animation — promoted bubble eases in with a soft overshoot, demoted one settles */
.bal-bub.growing { animation: bubPop .65s cubic-bezier(0.34,1.3,0.45,1); z-index: 3; }
@keyframes bubPop { 0% { transform: scale(.9); } 60% { transform: scale(1.035); } 100% { transform: scale(1); } }
.bal-bub.shrinking { animation: bubSettle .65s var(--ease); z-index: 2; }
@keyframes bubSettle { 0% { transform: scale(1.05); } 100% { transform: scale(1); } }
/* big slot — left, generously separated from the cluster */
.bal-bub.slot-big { left: 2%; top: 11%; width: 47%; border: 1.5px solid var(--carolina); background: radial-gradient(circle at 35% 30%, rgba(75,156,211,0.14), transparent 70%); box-shadow: 0 18px 50px rgba(4,29,91,0.08); z-index: 2; cursor: default; }
.bal-bub.slot-big .lbl { font-size: clamp(15px, 2.4vw, 20px); color: var(--brand-navy); padding: 0 24px; }
/* small slots — all equal size, arced on the right with clear gaps */
.bal-bub.slot-1, .bal-bub.slot-2, .bal-bub.slot-3, .bal-bub.slot-4 { width: 18.5%; border: 1px solid var(--border-navy); background: var(--bg-surface); z-index: 1; }
.bal-bub.slot-1 .lbl, .bal-bub.slot-2 .lbl, .bal-bub.slot-3 .lbl, .bal-bub.slot-4 .lbl { font-size: clamp(9px, 1.4vw, 10.5px); color: var(--text-tertiary); }
/* hover — gentle lift, deeper shadow, label wakes up */
.bal-bub.slot-1:hover, .bal-bub.slot-2:hover, .bal-bub.slot-3:hover, .bal-bub.slot-4:hover { border-color: var(--carolina); box-shadow: 0 12px 28px rgba(4,29,91,0.13); transform: translateY(-4px) scale(1.05); }
.bal-bub.slot-1:hover .lbl, .bal-bub.slot-2:hover .lbl, .bal-bub.slot-3:hover .lbl, .bal-bub.slot-4:hover .lbl { color: var(--brand-navy); }
/* the four centers sit on a circular arc with EQUAL center-to-center spacing (~140px
   at the 560×360 reference size) — if you move one slot, re-space all of them */
.bal-bub.slot-1 { left: 59%; top: 2%; }
.bal-bub.slot-2 { left: 80.5%; top: 21.5%; }
.bal-bub.slot-3 { left: 80.5%; top: 60.5%; }
.bal-bub.slot-4 { left: 59%; top: 80%; }

.bal-copy { max-width: 640px; margin: 60px auto 0; }
.bal-copy .bal-head { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.18; letter-spacing: -0.02em; color: var(--brand-navy); transition: opacity .3s var(--ease); }
.bal-copy .bal-desc { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6; color: var(--text-secondary); margin: 16px auto 0; max-width: 52ch; transition: opacity .3s var(--ease); }

@media (max-width: 560px) {
  .hub { position: static; aspect-ratio: auto; max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
  .hub svg { display: none; }
  .hub-core { position: static; transform: none; width: 100%; aspect-ratio: auto; border-radius: 14px; padding: 22px 24px; place-items: start; text-align: left; }
  .hub-core:hover { transform: none; }
  .hub-node { position: static; transform: none; width: 100%; aspect-ratio: auto; }
  .hub-node .nd { position: static; inset: auto; border-radius: 14px; aspect-ratio: auto; opacity: 1; transform: none; padding: 18px 20px; place-items: start; text-align: left; animation: none !important; }
  .hub-node .nd:hover { transform: none; }
  .hub-node .nd .nt { font-size: 16px; }
}

/* Sector / info modal (reuses bio-modal shell, single column) */
.info-modal { position: fixed; inset: 0; z-index: 1800; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.info-modal.open { opacity: 1; pointer-events: auto; }
.info-overlay { position: absolute; inset: 0; background: rgba(6,16,38,0.62); backdrop-filter: blur(6px); }
.info-dialog { position: relative; z-index: 1; width: min(560px, 100%); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 18px; padding: 34px 36px 36px; transform: translateY(26px) scale(.95); opacity: 0; transition: transform .42s cubic-bezier(0.22,0.85,0.25,1), opacity .35s; box-shadow: 0 40px 120px rgba(4,29,91,0.30); }
.info-modal.open .info-dialog { transform: none; opacity: 1; }
.info-dialog .i-tag { font-family: var(--font-mono); font-size: 12px; color: var(--carolina); letter-spacing: 0.04em; }
.info-dialog .i-name { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--brand-navy); text-transform: uppercase; letter-spacing: 0.01em; margin: 6px 0 16px; }
.info-dialog .i-body p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.info-dialog .i-body .k { color: var(--brand-navy); font-weight: 600; }
.info-close { position: absolute; top: 16px; right: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,0.92); font-size: 18px; color: var(--text-secondary); line-height: 1; transition: .25s var(--ease); }
.info-close:hover { border-color: var(--brand-navy); color: var(--brand-navy); transform: rotate(90deg); }

/* ====================================================================
   TIMELINE — extra power
   ==================================================================== */
.timeline::before { transform: scaleY(0); transform-origin: top; transition: transform 1.1s cubic-bezier(0.65,0,0.35,1); }
.timeline.in::before { transform: scaleY(1); }
.tl-year { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); letter-spacing: 0.01em; color: var(--brand-navy); -webkit-text-stroke: 0; line-height: 1; display: block; margin-bottom: 4px; }
.tl-item.is-current .tl-year { color: var(--carolina); }
.tl-dot { box-shadow: 0 0 0 0 rgba(75,156,211,0.5); }
.tl-item.is-current .tl-dot { animation: dotGlow 2.4s ease-in-out infinite; }
@keyframes dotGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(75,156,211,0.55); } 50% { box-shadow: 0 0 0 10px rgba(75,156,211,0); } }
.tl-card { transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.tl-card:hover { transform: translateX(4px); border-color: var(--border-navy); box-shadow: 0 14px 40px rgba(4,29,91,0.08); }
.tl-logo-gutter.ph { border: 1px dashed var(--border-navy); border-radius: 10px; }
.tl-logo-gutter.ph::after { content: attr(data-ph); font-family: var(--font-mono); font-size: 10px; color: var(--carolina); text-align: center; line-height: 1.35; padding: 6px; }

/* ====================================================================
   AFFILIATION MARQUEE
   ==================================================================== */
.affil { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-surface); overflow: hidden; }
.affil .affil-label { text-align: center; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 22px; }
.affil-mask { position: relative; 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); }
.affil-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: affilMove 34s linear infinite; }
/* deliberately no hover/touch pause — the logo marquee never stops */
.affil-track span { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.01em; color: var(--text-secondary); padding: 0 26px; }
.affil-track .sep { color: var(--carolina); padding: 0 4px; }
@keyframes affilMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* logo variant — real firm marks, grayscale until hovered */
.affil-track.logos { animation-duration: 29s; }
.affil-track.logos img {
  height: 34px; width: auto; max-width: 132px; object-fit: contain;
  margin: 0 34px; flex: 0 0 auto;
  filter: grayscale(1); opacity: 0.62;
  transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.affil-track.logos img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.07); }
/* Citi's mark is squarish — run it taller so the arc reads at marquee size */
.affil-track.logos img[alt="Citi"] { height: 46px; }
/* Citadel has no usable logo file — set its wordmark in type so it rides with the logos */
.affil-track.logos .txt {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: 0.14em; color: #7d7d7d; margin: 0 34px; flex: 0 0 auto;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.affil-track.logos .txt:hover { color: var(--brand-navy); transform: scale(1.07); }
@media (max-width: 560px) {
  .affil-track.logos img { height: 27px; max-width: 104px; margin: 0 22px; }
  .affil-track.logos img[alt="Citi"] { height: 36px; }
  .affil-track.logos .txt { font-size: 16px; margin: 0 22px; }
}

/* ====================================================================
   RECRUITMENT PAGE
   ==================================================================== */
.rec-steps { position: relative; max-width: 880px; margin: 0 auto; }
.rec-steps::before { content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--carolina), var(--border)); }
.rec-step { position: relative; padding: 0 0 34px 64px; }
.rec-step:last-child { padding-bottom: 0; }
.rec-step .rs-dot { position: absolute; left: 10px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-primary); border: 2px solid var(--carolina); display: grid; place-items: center; }
.rec-step .rs-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-navy); }
.rec-step .rs-date { font-family: var(--font-mono); font-size: 13px; color: var(--carolina); font-weight: 600; letter-spacing: 0.03em; }
.rec-step .rs-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--brand-navy); margin: 4px 0 6px; }
.rec-step p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; max-width: 60ch; }

.sector-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.sector-pick .sp { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px 18px; text-align: center; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.sector-pick .sp:hover { transform: translateY(-3px); border-color: var(--carolina); }
.sector-pick .sp .spn { font-family: var(--font-mono); font-size: 11px; color: var(--carolina); }
.sector-pick .sp .spt { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand-navy); text-transform: uppercase; letter-spacing: 0.01em; margin-top: 8px; line-height: 1.1; }

.prep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prep-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px; position: relative; overflow: hidden; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.prep-card:hover { transform: translateY(-3px); border-color: var(--border-navy); }
.prep-card .pn { font-family: var(--font-mono); font-size: 12px; color: var(--carolina); }
.prep-card .h3 { color: var(--brand-navy); margin: 10px 0 8px; }
.prep-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

@media (max-width: 920px) { .sector-pick { grid-template-columns: repeat(3, 1fr); } .prep-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sector-pick { grid-template-columns: 1fr 1fr; } .prep-grid { grid-template-columns: 1fr; } .affil-track span { font-size: 15px; } .bal-stage { max-width: 86%; }
  .bal-bub.slot-1 .lbl, .bal-bub.slot-2 .lbl, .bal-bub.slot-3 .lbl, .bal-bub.slot-4 .lbl { font-size: 8px; letter-spacing: 0; padding: 0 3px; line-height: 1.1; }
}

/* Mobile: tabs wrap onto multiple rows, so the active underline must hug its own
   tab's text instead of hanging 16px below into the next row. */
@media (max-width: 760px) {
  .bal-tabs { border-bottom: 0; gap: 4px 22px; padding-bottom: 6px; }
  .bal-tab { padding-bottom: 5px; }
  .bal-tab::after { bottom: 0; }
}

/* ====================================================================
   AI PAGE — DARK THEME ("reverse the colors", go all out)
   ==================================================================== */
body.theme-dark { background: #050a18; color: #dbe6ff; }
body.theme-dark .section { position: relative; }
body.theme-dark .nav.solid { background: rgba(5,10,24,0.74); border-bottom-color: rgba(124,175,212,0.14); }
body.theme-dark .nav .nav-brand img { filter: brightness(0) invert(1); }
body.theme-dark .nav-links a { color: rgba(219,230,255,0.66); }
body.theme-dark .nav-links a:hover, body.theme-dark .nav-links a.active { color: #fff; }
body.theme-dark .nav-toggle span { background: #fff; }
body.theme-dark .mobile-panel { background: #050a18; }
body.theme-dark .mobile-panel a { color: #fff; border-bottom-color: rgba(124,175,212,0.14); }
body.theme-dark .section-head .h2, body.theme-dark .h2 { color: #fff; }
body.theme-dark .lead, body.theme-dark .muted { color: rgba(219,230,255,0.66); }
body.theme-dark .label { color: #7fb6ff; }

body.theme-dark .footer { background: #050a18; border-top-color: rgba(124,175,212,0.14); }
body.theme-dark .footer-brand img { filter: brightness(0) invert(1); }
body.theme-dark .footer-brand p, body.theme-dark .footer-col a, body.theme-dark .footer-col span { color: rgba(219,230,255,0.58); }
body.theme-dark .footer-col a:hover { color: #fff; }
body.theme-dark .footer-col h4 { color: rgba(219,230,255,0.40); }
body.theme-dark .footer-bottom { border-top-color: rgba(124,175,212,0.14); }
body.theme-dark .footer-bottom p { color: rgba(219,230,255,0.40); }

/* gradient/animated headline */
.ai-grad { background: linear-gradient(100deg, #7bafd4, #4b9cd3 30%, #8f6fff 55%, #5cc8ff 80%, #7bafd4); background-size: 280% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 9s linear infinite; }
@keyframes gradShift { to { background-position: 280% 0; } }

/* hero layout + orb */
.ai-hero { background: #050a18; }
.ai-hero .ai-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.ai-hero .display { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.0; letter-spacing: -0.03em; }
.ai-hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; z-index: 0; pointer-events: none; }
.ai-hero .blob.b1 { width: 380px; height: 380px; background: rgba(75,156,211,0.55); top: -120px; right: -60px; animation: blobFloat 12s ease-in-out infinite; }
.ai-hero .blob.b2 { width: 300px; height: 300px; background: rgba(143,111,255,0.40); bottom: -120px; left: 10%; animation: blobFloat 16s ease-in-out infinite reverse; }
@keyframes blobFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-24px); } }

.ai-orb { position: relative; width: clamp(240px, 32vw, 400px); aspect-ratio: 1; margin: 0 auto; z-index: 2; }
.ai-orb .core { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d7f0ff, #5cc8ff 40%, #0a3aa0 82%); box-shadow: 0 0 60px 10px rgba(92,200,255,0.55), inset 0 0 40px rgba(255,255,255,0.35); animation: orbPulse 3.6s ease-in-out infinite; }
@keyframes orbPulse { 0%,100% { transform: scale(1); box-shadow: 0 0 56px 8px rgba(75,156,211,0.5), inset 0 0 40px rgba(255,255,255,0.3); } 50% { transform: scale(1.07); box-shadow: 0 0 100px 22px rgba(92,200,255,0.72), inset 0 0 44px rgba(255,255,255,0.4); } }
.ai-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(124,175,212,0.34); }
.ai-orb .ring.r1 { animation: spin 16s linear infinite; }
.ai-orb .ring.r2 { inset: 9%; border-color: rgba(143,111,255,0.30); animation: spin 22s linear infinite reverse; }
.ai-orb .ring.r3 { inset: 18%; border-color: rgba(92,200,255,0.26); animation: spin 30s linear infinite; }
.ai-orb .ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: #5cc8ff; box-shadow: 0 0 14px 2px #5cc8ff; transform: translateX(-50%); }
.ai-orb .ring.r2::before { background: #b39bff; box-shadow: 0 0 14px 2px #b39bff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* power stat band */
.ai-power { background: #070e22; border-top: 1px solid rgba(124,175,212,0.12); border-bottom: 1px solid rgba(124,175,212,0.12); }
.ai-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(124,175,212,0.12); border: 1px solid rgba(124,175,212,0.12); border-radius: 14px; overflow: hidden; }
.ai-stat { background: #070e22; padding: 38px 26px; text-align: center; }
.ai-stat .n { font-family: var(--font-mono); font-size: clamp(34px, 4.6vw, 52px); font-weight: 600; color: #fff; line-height: 1; text-shadow: 0 0 26px rgba(92,200,255,0.55); }
.ai-stat .l { font-size: 12.5px; color: rgba(219,230,255,0.6); margin-top: 12px; letter-spacing: 0.02em; }

/* pipeline + capabilities dark */
body.theme-dark .pipe-node { background: rgba(255,255,255,0.03); border-color: rgba(124,175,212,0.16); }
body.theme-dark .pipe-node .h3 { color: #fff; }
body.theme-dark .pipe-node p { color: rgba(219,230,255,0.62); }
body.theme-dark .pipe-node .step { color: #5cc8ff; }
body.theme-dark .pipe-icon { background: rgba(92,200,255,0.12); color: #aee0ff; }
body.theme-dark .pipe-node:not(:last-child)::after { color: #5cc8ff; background: #050a18; }
body.theme-dark .cap-card { background: rgba(255,255,255,0.03); border-color: rgba(124,175,212,0.16); }
body.theme-dark .cap-card:hover { border-color: rgba(92,200,255,0.5); box-shadow: 0 18px 50px rgba(8,30,70,0.6); }
body.theme-dark .cap-card .h3 { color: #fff; }
body.theme-dark .cap-card p { color: rgba(219,230,255,0.64); }
body.theme-dark .cap-card .cap-ic { background: linear-gradient(135deg, #0a3aa0, #5cc8ff); }
body.theme-dark .cap-card .tag { background: rgba(255,255,255,0.04); border-color: rgba(124,175,212,0.18); color: rgba(219,230,255,0.6); }
body.theme-dark .cap-card::after, body.theme-dark .pipe-node::before { background: linear-gradient(90deg, #5cc8ff, #8f6fff); }

/* predictions */
.ai-pred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pred-card { position: relative; background: linear-gradient(160deg, rgba(92,200,255,0.07), rgba(143,111,255,0.05)); border: 1px solid rgba(124,175,212,0.18); border-radius: 16px; padding: 28px 24px; overflow: hidden; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.pred-card:hover { transform: translateY(-5px); border-color: rgba(92,200,255,0.55); }
.pred-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #5cc8ff, #8f6fff); }
.pred-card .yr { font-family: var(--font-mono); font-size: 13px; color: #5cc8ff; letter-spacing: 0.06em; }
.pred-card .h3 { color: #fff; font-size: 18px; margin: 12px 0 0; }
.pred-card p { color: rgba(219,230,255,0.64); font-size: 13.5px; line-height: 1.55; margin-top: 10px; }

/* preparing members */
.aiprep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aiprep-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(124,175,212,0.16); border-radius: 16px; padding: 30px 28px; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.aiprep-card:hover { transform: translateY(-4px); border-color: rgba(143,111,255,0.5); }
.aiprep-card .pic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #8f6fff, #5cc8ff); color: #fff; margin-bottom: 18px; }
.aiprep-card .pic svg { width: 22px; height: 22px; }
.aiprep-card .h3 { color: #fff; margin-bottom: 10px; }
.aiprep-card p { color: rgba(219,230,255,0.64); font-size: 14.5px; line-height: 1.6; }

/* terminal glow on dark */
body.theme-dark .terminal { box-shadow: 0 24px 70px rgba(8,30,70,0.55), 0 0 0 1px rgba(92,200,255,0.10); }
body.theme-dark .split .muted { color: rgba(219,230,255,0.66); }

@media (max-width: 920px) {
  .ai-hero .ai-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ai-orb { order: -1; }
  .ai-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-pred-grid { grid-template-columns: repeat(2, 1fr); }
  .aiprep-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ai-stat-grid, .ai-pred-grid { grid-template-columns: 1fr; }
}

/* build-status tags (honest: live / building / next) */
.build-status { display: flex; flex-wrap: wrap; gap: 12px; }
.bs { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 100px; border: 1px solid rgba(124,175,212,0.22); color: rgba(219,230,255,0.82); background: rgba(255,255,255,0.03); }
.bs .d { width: 8px; height: 8px; border-radius: 50%; }
.bs .tag-k { color: rgba(219,230,255,0.5); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 2px; }
.bs.live .d { background: #46e6a0; box-shadow: 0 0 10px #46e6a0; animation: pulseDot 1.8s ease-in-out infinite; }
.bs.build .d { background: #5cc8ff; box-shadow: 0 0 10px #5cc8ff; animation: pulseDot 2.4s ease-in-out infinite; }
.bs.next .d { background: #b39bff; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* agent <-> human loop diagram */
.loop-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.loop { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto; }
.loop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop .ringpath { fill: none; stroke: rgba(124,175,212,0.32); stroke-width: 0.8; stroke-dasharray: 3 4; }
.loop .pulse { position: absolute; inset: 12%; border-radius: 50%; animation: spin 7s linear infinite; }
.loop .pulse::before { content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; border-radius: 50%; background: #5cc8ff; box-shadow: 0 0 18px 4px #5cc8ff; }
.loop .center { position: absolute; inset: 33%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6fb2e0, var(--brand-navy) 72%); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; box-shadow: 0 0 40px rgba(92,200,255,0.30); }
.loop .lnode { position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid rgba(124,175,212,0.22); display: grid; place-items: center; text-align: center; color: #fff; padding: 8px; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.loop .lnode:hover { border-color: rgba(92,200,255,0.6); transform: scale(1.05); }
.loop .lnode .ln-n { font-family: var(--font-mono); font-size: 10px; color: #5cc8ff; }
.loop .lnode .ln-t { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.02em; margin-top: 3px; line-height: 1.05; }
.loop .n-top { left: 50%; top: 0; transform: translateX(-50%); }
.loop .n-right { right: 0; top: 50%; transform: translateY(-50%); }
.loop .n-bottom { left: 50%; bottom: 0; transform: translateX(-50%); }
.loop .n-left { left: 0; top: 50%; transform: translateY(-50%); }

/* expanding-horizon CTA */
.horizon-cta { position: relative; overflow: hidden; }
.horizon-cta .arcs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.horizon-cta .arc { position: absolute; left: 50%; bottom: -60px; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(123,175,212,0.45); opacity: 0; animation: arcRise 5s ease-out infinite; }
.horizon-cta .arc:nth-child(2) { animation-delay: 1.6s; border-color: rgba(143,111,255,0.4); }
.horizon-cta .arc:nth-child(3) { animation-delay: 3.3s; }
@keyframes arcRise { 0% { width: 120px; height: 120px; opacity: 0.55; } 100% { width: 1000px; height: 1000px; opacity: 0; } }
.horizon-cta > .container, .horizon-cta > * { position: relative; z-index: 1; }

@media (max-width: 920px) {
  .loop-wrap { grid-template-columns: 1fr; gap: 36px; }
  .loop { max-width: 360px; }
}

/* AI principle band + featured capability */
.ai-principle { text-align: center; max-width: 900px; margin: 0 auto; }
.ai-principle .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.02em; color: #fff; }
.ai-principle .big .a { color: #5cc8ff; }
.ai-principle .big .b { color: #b39bff; }
.ai-principle .sub { color: rgba(219,230,255,0.68); margin-top: 20px; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6; }
.cap-card .pin { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #050a18; background: linear-gradient(90deg, #5cc8ff, #8f6fff); padding: 3px 9px; border-radius: 4px; margin-bottom: 14px; font-weight: 600; }
body.theme-dark .cap-card.featured { border-color: rgba(92,200,255,0.5); background: linear-gradient(160deg, rgba(92,200,255,0.09), rgba(143,111,255,0.05)); }

/* ====================================================================
   PORTFOLIO CONTENT (reuses existing tokens — no scheme/font changes)
   ==================================================================== */
.port-card .port-asof { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-tertiary); letter-spacing: 0.01em; line-height: 1.4; }
.port-card .substat { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; margin-top: 14px; }
.port-card .substat .k { color: var(--brand-navy); font-weight: 600; }
.port-card .stat.neutral.small { font-size: 20px; }
.tag-open { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--carolina); border: 1px solid var(--border-navy); border-radius: 3px; padding: 2px 7px; margin-left: 8px; vertical-align: middle; }
.dl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dl { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; color: var(--brand-navy); border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; transition: border-color .15s var(--ease), color .15s var(--ease); }
.dl:hover { border-color: var(--carolina); color: var(--carolina); }
.dl .ext { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }

/* closed positions table */
.pos-table-wrap { border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.pos-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.pos-table th { text-align: left; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 700; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.pos-table td { padding: 16px 18px; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border); vertical-align: top; }
.pos-table tr:last-child td { border-bottom: 0; }
.pos-table .pos-name { font-weight: 600; color: var(--brand-navy); }
.pos-table .m { font-family: var(--font-mono); }
.pos-table .ret-gain { color: var(--gain); font-weight: 600; font-family: var(--font-mono); }
.pos-table .ret-loss { color: var(--loss); font-weight: 600; font-family: var(--font-mono); }
.pos-table .ret-neutral { color: var(--brand-navy); font-weight: 600; font-family: var(--font-mono); }

/* R&S memo slot */
.memo-card { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 30px 32px; }
.memo-card .memo-body { flex: 1; min-width: 300px; }
.memo-card .memo-body .h3 { color: var(--brand-navy); }
.memo-card .memo-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-top: 10px; max-width: 72ch; }
.port-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .port-grid.two { grid-template-columns: 1fr; } }

/* portfolio fund-fact sparkline (draws in on reveal) */
.stat-card .spark { display: block; width: 120px; height: 32px; margin: 14px auto 0; overflow: visible; }
.stat-card .spark polyline { fill: none; stroke: var(--gain); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.stat-card.in .spark polyline { animation: sparkDraw 1.5s var(--ease) .4s forwards; }
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
.memo-card .memo-by { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--carolina); border: 1px solid var(--border-navy); border-radius: 100px; padding: 4px 12px; margin-bottom: 14px; }

/* fund-facts cards — center content vertically, even spacing (sparkline reserved in all) */
.ff .stat-card { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.ff .stat-card .stat-label { margin-bottom: 0; }

/* ====================================================================
   GOLDMAN / POINT72 TYPE: one refined institutional sans (Helvetica Neue)
   everywhere — headlines, nav, body, labels. Gravitas from weight + tracking.
   ==================================================================== */
.display, .h1, .h2, .h3,
.positioning .quote, .founder-body .open-quote,
.team-body .name, .bio-content .b-name,
.bal-copy .bal-head, .info-dialog .i-name,
.tl-year, .rec-step .rs-title, .ai-principle .big {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Keep numerals aligned now that figures render in the sans (no mono). */
.stat-card .stat-num, .port-card .stat, .ai-stat .n, .asset-card .num,
.pos-table .m, .pos-table .ret-gain, .pos-table .ret-loss,
.pos-table .ret-neutral, .mono {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Holdings logo strip (portfolio) */
.holdings-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(30px, 6vw, 76px); padding: 12px 0;
}
.holdings-strip img {
  height: 40px; width: auto; max-width: 168px; object-fit: contain;
  filter: grayscale(1); opacity: 0.68;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.holdings-strip img:hover { filter: grayscale(0); opacity: 1; }

/* Analyst roster (team) — placeholder name slots */
.roster-grid {
  column-width: 230px; column-gap: 56px;
  margin-top: 6px; border-top: 1px solid var(--border);
}
.roster-name {
  display: block; padding: 12px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--brand-navy); font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  break-inside: avoid; transition: color .15s var(--ease);
}
.roster-name:hover { color: var(--carolina); }

/* Resources row folded into the How-to-prepare section */
.prep-resources { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--border); text-align: center; }
.prep-resources .label { display: block; margin-bottom: 16px; }
.res-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; }

/* Holding-company logo on a featured pitch card */
.port-card .port-logo {
  height: 30px; width: auto; max-width: 132px; object-fit: contain;
  object-position: left center; display: block; margin-bottom: 18px;
}
/* Apple's compact mark needs to run larger to match Marvell's wordmark */
.port-card .port-logo[alt="Apple"] { height: 42px; }
/* Workday: render black-and-white only, sized so the wordmark matches Marvell */
.port-card .port-logo[alt="Workday"] { height: 40px; filter: brightness(0); }
