/* =========================================================================
   Alpha EV — styles.css
   -------------------------------------------------------------------------
   Edit the tokens in :root to rebrand the entire site. Everything below
   derives from them. Sections are ordered to match index.html top-to-bottom.
   ========================================================================= */

:root {
  /* Surfaces */
  --ink:        #0A0C10;   /* base dark */
  --ink-2:      #11151C;   /* elevated dark panel */
  --ink-3:      #1C232E;   /* hairlines / borders on dark */
  --paper:      #F1F2F3;   /* cool light section */
  --paper-2:    #FBFCFC;   /* light card */

  /* Brand accent — "expected value" gold */
  --gold:       #E0A43C;
  --gold-2:     #F2BD63;

  /* Functional market colors (used only inside live data) */
  --up:         #4FB477;
  --down:       #D7674F;

  /* Text */
  --text:       #11161E;   /* on light */
  --muted:      #646C78;   /* muted on light */
  --on-dark:    #E8EBEF;   /* on dark */
  --muted-dark: #868F9C;   /* muted on dark */
  --line:       #E2E3E6;   /* hairline on light */

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --wrap: 1180px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 4px;
}

/* ----------------------------- Reset / base ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
sub { font-size: 0.7em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

/* Accessibility helpers */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 0.6rem 1rem;
  font-family: var(--mono); font-size: 0.8rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

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

/* Shared eyebrow label */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}
.eyebrow-dark { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); font-weight: 500; }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink-3); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Scroll-reveal (progressive enhancement; visible by default if JS off) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------- Header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-3);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { display: inline-flex; align-items: center; color: var(--on-dark); }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-logo-footer { height: 50px; }

.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--muted-dark); padding: 0.4rem 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.login {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--ink); background: var(--on-dark);
  padding: 0.55rem 1.05rem; border-radius: var(--radius);
  transition: background .2s ease;
}
.login:hover { background: var(--gold); }

.menu-btn { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--on-dark); margin: 4px 0; transition: transform .25s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; background: var(--ink-2); border-bottom: 1px solid var(--ink-3); }
.mobile-menu a {
  font-family: var(--mono); font-size: 0.9rem; color: var(--on-dark);
  padding: 1rem var(--pad); border-top: 1px solid var(--ink-3);
}
.mobile-menu .mobile-login { color: var(--gold); }

/* -------------------------------- Hero --------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 50% -10%, #131a26 0%, var(--ink) 60%);
  color: var(--on-dark);
  padding-top: clamp(4rem, 9vw, 7.5rem);
}
.hero-curve { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero-ev-fill { fill: var(--gold); opacity: 0.05; }
.hero-ev-stroke { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: 0.22; stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 2.8s ease forwards 0.3s; }
.hero-ev-mean { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0; animation: fadein 1s ease forwards 2.4s; }
.hero-ev-mark { fill: var(--gold); opacity: 0; font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; animation: fadein 1s ease forwards 2.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 0.32; } }
@media (prefers-reduced-motion: reduce) {
  .hero-ev-stroke { animation: none; stroke-dashoffset: 0; }
  .hero-ev-mean, .hero-ev-mark { animation: none; opacity: 0.3; }
}

.hero-inner { position: relative; padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.06; letter-spacing: -0.025em;
  max-width: 24ch;
}
.hero-title em { color: var(--gold); }
.hero-sub {
  margin-top: 1.6rem; max-width: 46ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted-dark); line-height: 1.6;
}
.ev-expr {
  margin-top: 2rem; font-family: var(--mono); font-size: 0.95rem;
  color: var(--gold); letter-spacing: 0.02em;
  border-left: 2px solid var(--ink-3); padding-left: 1rem; display: inline-block;
}
.ev-expr span { color: var(--on-dark); }
.hero-cta { margin-top: 2.6rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Ticker */
.ticker { border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); overflow: hidden; background: var(--ink); }
.ticker-track {
  display: flex; gap: 2.6rem; padding: 0.85rem 0; white-space: nowrap;
  font-family: var(--mono); font-size: 0.82rem;
  width: max-content; animation: scroll 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.tick { display: inline-flex; align-items: baseline; gap: 0.55rem; }
.tick .sym { color: var(--muted-dark); letter-spacing: 0.06em; }
.tick .px { color: var(--on-dark); }
.tick .chg { font-size: 0.75rem; }
.tick .chg.up { color: var(--up); }
.tick .chg.down { color: var(--down); }

/* ------------------------------- Stats --------------------------------- */
.stats { background: var(--ink-2); color: var(--on-dark); border-bottom: 1px solid var(--ink-3); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(2rem, 4vw, 3rem) 0; padding-right: 1.5rem; border-left: 1px solid var(--ink-3); padding-left: 1.5rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { display: block; font-family: var(--mono); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--gold); letter-spacing: -0.01em; }
.stat-label { display: block; margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted-dark); letter-spacing: 0.02em; }


/* ------------------------------ Manifesto ------------------------------ */
.manifesto { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); text-align: center; padding-block: clamp(6rem, 12vw, 9.5rem); }
.manifesto-dots { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1100px, 96%); aspect-ratio: 1200 / 420; fill: var(--gold); pointer-events: none; }
@keyframes ev-breathe { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.42; } }
.manifesto-inner { position: relative; }
.manifesto-line { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5.25rem); line-height: 1.03; letter-spacing: -0.03em; }
.manifesto-line em { color: var(--gold); font-style: italic; }
.manifesto-sub { margin: 1.5rem auto 0; max-width: 40ch; color: var(--muted-dark); font-size: clamp(1.02rem, 2vw, 1.18rem); }

/* --------------------------- Section scaffold -------------------------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
.section-lede { margin-top: 1.2rem; font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.section-title.light { color: var(--on-dark); }
.section-lede.light { color: var(--muted-dark); }

/* ------------------------------ Approach ------------------------------- */
.approach { background: var(--paper); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.principle { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.principle-mark { font-family: var(--display); font-style: italic; font-size: 1.8rem; color: var(--gold); }
.principle h3 { font-family: var(--display); font-size: 1.4rem; margin: 0.9rem 0 0.7rem; }
.principle p { color: var(--muted); font-size: 0.98rem; }

/* --------------------------- Quarterly letter -------------------------- */
.letter-cta { background: var(--ink-2); border-block: 1px solid var(--ink-3); }
.letter-inner { display: flex; align-items: center; justify-content: center; gap: 1.4rem; padding: 1.5rem 0; flex-wrap: wrap; text-align: center; }
.letter-link { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 0.55rem; border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); padding-bottom: 3px; transition: color .2s ease, border-color .2s ease; }
.letter-link span { transition: transform .2s ease; }
.letter-link:hover { color: var(--gold-2); border-color: var(--gold); }
.letter-link:hover span { transform: translateX(4px); }

/* ------------------------------ Strategies ----------------------------- */
.strategies { background: var(--ink); color: var(--on-dark); }
.strat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink-3); border: 1px solid var(--ink-3); }
.strat { background: var(--ink); padding: clamp(1.8rem, 3.5vw, 2.8rem); transition: background .25s ease; }
.strat:hover { background: var(--ink-2); }
.strat-tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.strat h3 { font-family: var(--display); font-size: 1.7rem; margin-bottom: 0.7rem; }
.strat p { color: var(--muted-dark); font-size: 0.98rem; max-width: 42ch; }

/* -------------------------------- Team --------------------------------- */
.team { background: var(--paper); color: var(--text); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 3.5vw, 3rem); }
.member .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); display: block; margin-bottom: 1.4rem; filter: grayscale(1) contrast(1.03); }
.member h3 { font-family: var(--display); font-size: 1.45rem; }
.member-role { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0.4rem 0 0.9rem; }
.member-bio { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ------------------------------- Contact ------------------------------- */
.contact { background: var(--ink); color: var(--on-dark); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.contact-lead .btn { margin-top: 1.8rem; }
.contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contact-col { display: flex; flex-direction: column; gap: 0.55rem; }
.contact-h { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 0.4rem; }
.contact-col a, .contact-col p { font-size: 0.96rem; color: var(--on-dark); }
.contact-col a { transition: color .2s ease; }
.contact-col a:hover { color: var(--gold); }
.contact .contact-h { color: var(--muted-dark); }

/* ------------------------------- Footer -------------------------------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--ink-3); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--ink-3); }
.brand-footer { color: var(--on-dark); }
.footer-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-links a { font-family: var(--mono); font-size: 0.8rem; color: var(--muted-dark); transition: color .2s ease; }
.footer-links a:hover { color: var(--gold); }
.footer-disclaimer { padding-top: 1.8rem; }
.footer-disclaimer p { font-size: 0.78rem; line-height: 1.6; max-width: 80ch; color: var(--muted-dark); }
.footer-copy { margin-top: 1rem; font-family: var(--mono); font-size: 0.74rem; }

/* ----------------------------- Responsive ------------------------------ */
@media (max-width: 860px) {
  .nav-links, .login { display: none; }
  .menu-btn { display: block; }
  .mobile-menu:not([hidden]) { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .principles { grid-template-columns: 1fr; }
  .strat-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink-3); }
  .stat:first-child { border-top: 0; }
  .contact-cols { grid-template-columns: 1fr; }
}