﻿/* =====================================================================
   THE LEDGER — Light / editorial-fintech theme
   Inspired by clean investor-education sites: white background,
   navy + gold accents, real photography, bold sans-serif.
   Change the colors in :root to re-skin the whole site.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* Render the ampersand (&) in a plain font even inside display headings,
   instead of Playfair Display's ornate calligraphic glyph. */
@font-face {
  font-family: "PlainAmp";
  src: local("DM Sans"), local("Segoe UI"), local("Arial"), local("Helvetica");
  unicode-range: U+0026;
}

:root {
  /* Surfaces */
  --bg:        #ffffff;
  --bg-2:      #f4f7fc;   /* light blue-grey panels */
  --surface:   #ffffff;
  --surface-2: #f1f5fa;
  --border:    #e6eaf1;
  --border-2:  #d4dce8;

  /* Text */
  --text:      #0e1c33;   /* deep navy ink */
  --text-soft: #4a5568;
  --text-faint:#8593a8;

  /* Brand */
  --accent:    #15407e;   /* navy primary */
  --accent-2:  #2f6fed;   /* bright blue   */
  --accent-3:  #f0a429;   /* gold/amber secondary */
  --gold:      #e0931a;
  --up:        #15a36a;
  --down:      #e5484d;
  --accent-soft: #eaf1fd;

  --grad: linear-gradient(120deg, #15407e 0%, #2f6fed 100%);
  --grad-warm: linear-gradient(120deg, #2f6fed, #f0a429);

  --maxw: 1180px;
  --display: "PlainAmp", "Playfair Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow: 0 1px 2px rgba(14,28,51,.05), 0 10px 30px -10px rgba(14,28,51,.12);
  --shadow-lg: 0 20px 50px -16px rgba(14,28,51,.22);
  --glow: 0 16px 40px -14px rgba(47,111,237,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background:
    radial-gradient(70% 50% at 50% -8%, #eef4ff 0%, rgba(238,244,255,0) 70%),
    var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Accessibility: visible keyboard focus + skip link ---- */
:where(a, button, input, textarea, select, .chip, .seg, .tv-range, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}
main:focus { outline: none; }
.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--accent); color: #fff; padding: 11px 20px;
  border-radius: 0 0 12px 12px; font-weight: 600; font-size: .9rem;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--accent-3); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; color: var(--text); margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-tight { padding: 72px 0; }

.kicker {
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2);
}
.kicker-gold { color: var(--gold); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================  MASTHEAD  ============================ */
.masthead { border-bottom: 1px solid var(--border); background: rgba(255,255,255,.9); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.2) blur(10px); }
.masthead-inner { display: flex; align-items: center; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-right: auto; }
.brand-content { display: flex; flex-direction: column; gap: 2px; }
.brand-mark { font-family: var(--display); font-weight: 700; font-size: 1.85rem; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.brand-tagline { font-family: var(--mono); font-size: .55rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.brand-logo { display: flex; align-items: center; justify-content: center; height: 42px; width: auto; margin-right: 11px; flex-shrink: 0; }
.brand-logo svg { width: 100%; height: 100%; display: block; }
.brand-logo img { height: 100%; width: auto; display: block; mix-blend-mode: multiply; }
.dot { color: var(--accent-3); }
.masthead-actions { display: flex; align-items: center; gap: 10px; margin-left: 20px; flex-shrink: 0; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--border-2); background: #fff; color: var(--text); border-radius: 11px; cursor: pointer; transition: .15s; margin-left: 10px; }
.nav-toggle:hover { border-color: var(--accent-2); color: var(--accent); }

.nav { display: flex; gap: 0; align-items: stretch; flex-shrink: 0; }
.nav > a { display: flex; align-items: center; padding: 0 18px; height: 72px; font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-soft); border-bottom: 2px solid transparent; transition: .15s; white-space: nowrap; text-decoration: none; }
.nav > a:hover { color: var(--accent); }
.nav > a.active { color: var(--accent); border-bottom-color: var(--accent-3); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .88rem;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  background: var(--accent); color: #fff; transition: .16s ease; white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(21,64,126,.6);
}
.btn:hover { background: #102f5e; transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(21,64,126,.7); }
.btn-accent { background: var(--accent-3); color: #3a2400; box-shadow: 0 8px 20px -10px rgba(240,164,41,.7); }
.btn-accent:hover { background: var(--gold); }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--border-2); box-shadow: none; }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent-2); transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: .8rem; border-radius: 9px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary-dark { background: var(--text); color: #fff; border: none; box-shadow: none; border-radius: 10px; padding: 14px 28px; font-size: 1rem; }
.btn-primary-dark:hover { background: #1a2e4a; transform: translateY(-1px); }
.btn-outline-dark { background: transparent; color: var(--text); border: 2px solid var(--text); box-shadow: none; border-radius: 10px; padding: 14px 28px; font-size: 1rem; }
.btn-outline-dark:hover { background: var(--text); color: #fff; transform: translateY(-1px); }

/* =========================  HERO  ============================== */
/* =========================  HERO  ============================== */
/* ---- Animated market hero ---- */
.home-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  padding: 76px 0 0; color: var(--text);
  background:
    radial-gradient(72% 60% at 50% -8%, #eef4ff 0%, rgba(238,244,255,0) 70%),
    #ffffff;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 1;
  background-image:
    linear-gradient(rgba(21,64,126,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,64,126,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 85% at 50% 0%, #000 26%, transparent 78%);
          mask-image: radial-gradient(120% 85% at 50% 0%, #000 26%, transparent 78%);
}
.home-hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--border-2); border-radius: 100px;
  padding: 8px 16px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #37e6a4;
  box-shadow: 0 0 0 0 rgba(55,230,164,.6); animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(55,230,164,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(55,230,164,0); }
  100% { box-shadow: 0 0 0 0 rgba(55,230,164,0); }
}

/* Headline + sub (editorial serif on white) */
.home-hero .home-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.5rem, 6.2vw, 4.7rem); letter-spacing: -.02em; line-height: 1.05;
  color: var(--text); margin: 24px 0 0;
}
.home-hero .grad-text {
  background: linear-gradient(95deg, #2f6fed 0%, #15407e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-hero .home-sub {
  font-size: clamp(1rem, 2vw, 1.16rem); color: var(--text-soft);
  margin: 18px auto 0; max-width: 48ch; line-height: 1.6;
}

/* CTA */
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .98rem; color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: 100px;
  background: linear-gradient(100deg, #2f6fed, #5b9dff);
  box-shadow: 0 12px 32px -8px rgba(47,111,237,.7), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .16s, box-shadow .16s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -8px rgba(47,111,237,.9); }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .98rem; color: var(--text); text-decoration: none;
  padding: 14px 26px; border-radius: 100px;
  background: #fff; border: 1.5px solid var(--border-2);
  transition: background .16s, border-color .16s, transform .16s;
}
.btn-hero-ghost:hover { background: var(--bg-2); border-color: var(--accent-2); transform: translateY(-2px); }

/* Self-drawing market line */
.hero-chart-band { position: relative; z-index: 1; width: 100%; height: 200px; margin-top: 38px; }
#hero-chart { display: block; width: 100%; height: 100%; }
#hero-movers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-tag {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--text);
  background: rgba(255,255,255,.94); border: 1px solid var(--border-2);
  padding: 5px 10px; border-radius: 9px;
  box-shadow: var(--shadow); white-space: nowrap;
  animation: tag-float 6s ease-in-out infinite alternate;
}
.hero-tag .pct { font-weight: 700; }
.hero-tag.up   .pct { color: var(--up); }
.hero-tag.down .pct { color: var(--down); }
@keyframes tag-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-badge-dot, .hero-tag { animation: none !important; }
}
@media (max-width: 720px) {
  .hero-chart-band { height: 150px; }
  .hero-tag { font-size: .64rem; padding: 4px 7px; }
}

.scroll-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Panels */
.ss-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.ss-panel.ss-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ss-panel.ss-leaving {
  opacity: 0;
  transform: translateY(-28px);
  transition: opacity .35s ease, transform .35s ease;
}

/* Panel 1 – Brand */
.ss-eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin: 0 0 22px;
}
.ss-brand {
  font-family: var(--display);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0 0 28px;
}
.ss-tagline {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin: 0 0 38px;
  max-width: 46ch;
}
.ss-link {
  font-size: .93rem;
  font-weight: 600;
  color: var(--accent-3);
  text-decoration: none;
  border-bottom: 1px solid rgba(240,164,41,.35);
  padding-bottom: 3px;
  transition: border-color .15s;
}
.ss-link:hover { border-color: var(--accent-3); }

/* Panel 2 – Mock card */
.ss-step-label {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin: 0 0 24px;
}
.ss-mock-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 400px;
  width: 100%;
  text-align: left;
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
}
.ss-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ss-mock-ticker {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--accent);
}
.ss-mock-dir {
  font-size: .75rem;
  font-weight: 700;
  color: var(--up);
  background: rgba(21,163,106,.1);
  padding: 3px 10px;
  border-radius: 20px;
}
.ss-mock-title {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.2;
}
.ss-mock-meta {
  font-size: .8rem;
  color: var(--text-soft);
  margin: 0 0 18px;
}
.ss-mock-chart {
  width: 100%;
  height: 56px;
  display: block;
  margin-bottom: 18px;
}
.ss-chart-line {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transition: stroke-dashoffset 1.1s cubic-bezier(.4,0,.2,1);
}
.ss-active .ss-chart-line { stroke-dashoffset: 0; }
.ss-mock-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ss-result-badge {
  font-size: .78rem;
  font-weight: 600;
  color: var(--up);
}
.ss-result-num {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--up);
}

/* Panel 3 – Stats */
.ss-stats {
  display: flex;
  gap: 64px;
  margin-bottom: 52px;
}
.ss-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ss-stat-n {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.ss-stat-l {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.ss-cta {
  font-size: .98rem;
  font-weight: 600;
  color: var(--accent-3);
  text-decoration: none;
  border-bottom: 1px solid rgba(240,164,41,.35);
  padding-bottom: 3px;
  transition: border-color .15s;
}
.ss-cta:hover { border-color: var(--accent-3); }

/* Scroll hint */
.ss-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity .4s;
}
.ss-hint span {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
}
.ss-hint-line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
  position: relative;
  overflow: hidden;
  order: -1;
}
.ss-hint-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.55);
  animation: hint-drop 1.6s ease-in-out infinite;
}
@keyframes hint-drop {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* Progress dots */
.ss-dots {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ss-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  transition: background .3s, transform .3s;
}
.ss-dot.active {
  background: #fff;
  transform: scale(1.5);
}
@media (max-width: 600px) {
  .ss-stats { gap: 36px; }
  .ss-dots { display: none; }
  .ss-mock-card { padding: 22px 20px; }
}

.what-we-do-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px; }
.wwd-item { padding: 32px 0; border-top: 2px solid var(--text); }
.wwd-num { font-family: var(--display); font-size: 2.8rem; font-weight: 700; color: var(--accent-3); line-height: 1; margin-bottom: 18px; }
.wwd-item h3 { font-size: 1.1rem; margin: 0 0 12px; }
.wwd-item p { color: var(--text-soft); font-size: .93rem; line-height: 1.65; margin: 0; }

/* ── Contributors section ── */
.contrib-expand { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.4,0,.2,1); }
.contrib-expand.open { max-height: 900px; }
.contrib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding-top: 8px; }
.contrib-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; text-decoration: none; transition: border-color .18s, box-shadow .18s; }
.contrib-card:hover { border-color: var(--text); box-shadow: 0 4px 18px -6px rgba(14,28,51,.1); }
.contrib-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; color: #fff; flex-shrink: 0; }
.contrib-name { font-weight: 600; color: var(--text); font-size: .92rem; line-height: 1.3; }
.contrib-meta { font-size: .78rem; color: var(--text-soft); margin-top: 2px; }
.contrib-recent { font-size: .78rem; color: var(--text-soft); font-style: italic; margin-top: 4px; line-height: 1.4; }

/* ── Article ticker strip ── */
.ticker-strip {
  overflow: hidden;
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 15px 0;
  cursor: default;
  user-select: none;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(255,255,255,.78);
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  padding: 0 40px;
  transition: color .15s;
}
.ticker-item:hover { color: var(--accent-3); }
.ticker-sym {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent-3);
  background: rgba(240,164,41,.12);
  padding: 2px 7px;
  border-radius: 3px;
}
.ticker-dot {
  color: rgba(255,255,255,.2);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Contact form ── */
.contact-label {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
}

.contact-box {
  border: 1.5px solid var(--text);
  border-radius: 4px;
  background: #fff;
  padding: 28px 32px;
  max-width: 560px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 3px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus { border-color: var(--text); }
.contact-form .btn-primary-dark {
  align-self: flex-start;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .contact-box { padding: 32px 24px; }
  .contact-row { grid-template-columns: 1fr; }
}

.hero-editorial {
  background: #fff;
  border-bottom: 2px solid var(--text);
  padding: 80px 0 90px;
}
.hero-editorial-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.hero-editorial-text h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--text);
  margin: 0 0 22px;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 50ch;
  line-height: 1.7;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ticker cards in hero */
.hero-editorial-art { display: flex; flex-direction: column; }
.hero-ticker-card {
  background: var(--text);
  color: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  transition: .2s;
}
.htc-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.htc-ticker { font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; }
.htc-direction { font-size: .9rem; font-weight: 600; margin-top: 8px; }
.htc-up { color: #5ddc9a; }
.htc-down { color: #f87171; }
.htc-meta { font-family: var(--mono); font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 10px; }

@media (max-width: 860px) {
  .hero-editorial-inner { grid-template-columns: 1fr; }
  .hero-editorial-art { flex-direction: row; gap: 14px; }
  .hero-editorial-art .hero-ticker-card:nth-child(2) { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 540px) {
  .hero-editorial-art { display: none; }
}

/* ---- pills / badges ---- */
.hero-badge, .pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft);
  background: var(--surface-2); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px;
}
.hero-badge .live { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(21,163,106,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(21,163,106,.5);} 70%{box-shadow:0 0 0 9px rgba(21,163,106,0);} 100%{box-shadow:0 0 0 0 rgba(21,163,106,0);} }

/* =========================  PHOTO HERO  ========================= */
.hero-photo { position: relative; background-size: cover; background-position: center; min-height: 480px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(8,18,40,.9) 0%, rgba(8,18,40,.66) 52%, rgba(8,18,40,.34) 100%); }
.hero-photo-inner { position: relative; color: #fff; padding: 78px 0; max-width: 680px; }
.hero-photo-inner h1 { color: #fff; }
.hero-photo-inner .dek { color: rgba(255,255,255,.92); font-size: 1.18rem; max-width: 52ch; margin: 0 0 26px; }
.hero-photo .hero-badge { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.hero-photo .hero-meta { color: rgba(255,255,255,.8); }
.hero-photo .grad-text { color: var(--accent-3); }

/* plain hero (interior pages) */
.hero { padding: 64px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-lead .kicker { margin-bottom: 16px; display: inline-block; }
.hero-lead h1 { margin: 14px 0 18px; }
.hero-lead p.dek { font-size: 1.16rem; color: var(--text-soft); max-width: 50ch; margin: 0 0 26px; }
.hero-meta { display: flex; gap: 18px; align-items: center; color: var(--text-faint); font-size: .85rem; font-family: var(--mono); flex-wrap: wrap; }
.hero-art { border-radius: 16px; overflow: hidden; min-height: 300px; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* =========================  COVER ART (photos) ================= */
.cover { position: relative; width: 100%; height: 100%; min-height: 170px; overflow: hidden; background: var(--bg-2); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover svg { width: 100%; height: 100%; display: block; }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,18,40,.5), rgba(8,18,40,.05) 55%); }
.cover-badge { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.94); color: var(--accent); font-family: var(--mono); font-weight: 600; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
.cover-ticker { position: absolute; right: 16px; bottom: 12px; font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.7rem; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0,0,0,.5); }

/* =========================  SECTION HEADS  ==================== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; padding-bottom: 16px; border-bottom: 2px solid var(--text); }
.section-head h2 { margin: 0; }
.section-head .more { font-family: var(--mono); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); }

.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* =========================  CARDS  =========================== */
.card { background: #fff; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .18s, box-shadow .18s, transform .18s; text-decoration: none; color: inherit; }
.card:hover { border-color: var(--text); box-shadow: 0 6px 24px -8px rgba(14,28,51,.12); transform: translateY(-2px); }
.card-empty { background: var(--bg); border-style: dashed; border-color: var(--border); opacity: .55; pointer-events: none; }
.card .cover { height: 190px; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .cat { font-family: var(--mono); font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-3); }
.card h3 { font-size: 1.22rem; margin: 0; color: var(--text); line-height: 1.3; }
.card p.excerpt { color: var(--text-soft); font-size: .93rem; margin: 0; }
.card .byline { margin-top: auto; padding-top: 10px; font-size: .8rem; color: var(--text-faint); display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--border); }

.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; font-family: var(--display); }

.article-row { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: stretch; padding: 22px 0; border-bottom: 1px solid var(--border); transition: .15s; }
.article-row:hover { background: linear-gradient(90deg, var(--surface-2), transparent); }
.article-row .cover { border-radius: 12px; height: 120px; }
.article-row h3 { font-size: 1.4rem; margin: 4px 0 6px; }
.article-row p { margin: 0; color: var(--text-soft); }
.article-row .byline { margin-top: 10px; font-size: .82rem; color: var(--text-faint); font-family: var(--mono); }

/* Featured (lead) article — big editorial card */
.article-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 36px; background: #fff; transition: .18s; }
.article-featured:hover { transform: translateY(-3px); box-shadow: 0 28px 56px -18px rgba(14,28,51,.22); }
.article-featured .cover { height: 100%; min-height: 280px; border-radius: 0; }
.article-featured .card-body { padding: 36px 34px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.article-featured h3 { font-size: 1.7rem; line-height: 1.2; }
.article-featured .cat { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-3); }
.article-featured p.excerpt { font-size: 1rem; color: var(--text-soft); margin: 0; }
.article-featured .byline { margin-top: auto; font-size: .82rem; color: var(--text-faint); display: flex; gap: 8px; align-items: center; }
.article-featured .featured-tag { display: inline-block; background: var(--accent); color: #fff; font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; margin-bottom: 6px; }
@media (max-width: 680px) { .article-featured { grid-template-columns: 1fr; } .article-featured .cover { min-height: 200px; } }

/* =========================  KPI BOXES  ======================= */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.kpi { background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 14px; padding: 30px 26px; transition: .18s; }
.kpi:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.kpi .kpi-ico { font-size: 1.4rem; margin-bottom: 14px; }
.kpi .kpi-num { font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; letter-spacing: -.03em; color: var(--text); }
.kpi .kpi-label { color: var(--text-soft); font-weight: 600; font-size: .9rem; margin-top: 10px; }
.kpi .kpi-sub { color: var(--text-faint); font-size: .76rem; margin-top: 4px; }

.ai-summary { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; }
.ai-summary .ai-dot { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .95rem; }
.ai-summary .ai-text { color: var(--text-soft); font-size: .96rem; line-height: 1.55; }
.ai-summary .ai-text b { color: var(--text); }
.ai-tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }

/* =========================  ARTICLE DETAIL  ================== */
.article-head { max-width: 760px; margin: 0 auto; padding: 54px 0 8px; text-align: center; }
.article-head .cat { font-family: var(--mono); color: var(--accent-2); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; }
.article-head h1 { margin: 16px 0 16px; }
.article-head .dek { font-size: 1.2rem; color: var(--text-soft); }
.article-byline { display: flex; gap: 14px; justify-content: center; align-items: center; color: var(--text-faint); font-size: .9rem; margin-top: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--border); font-family: var(--mono); }
.prose { max-width: 720px; margin: 0 auto; font-size: 1.12rem; line-height: 1.85; color: var(--text-soft); }
.prose p { margin: 0 0 1.25em; }
.prose strong { color: var(--text); }
.prose h2, .prose h3 { color: var(--text); }
.prose blockquote { margin: 1.5em 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--accent-3); font-family: var(--display); font-size: 1.3rem; color: var(--text); }
.tradingview-frame { max-width: 880px; margin: 36px auto; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.sources { max-width: 720px; margin: 40px auto 0; padding: 22px 26px; background: var(--bg-2); border-radius: 14px; border: 1px solid var(--border); }
.sources h4 { margin: 0 0 10px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--text-faint); }
.sources ul { margin: 0; padding-left: 18px; } .sources li { margin: 4px 0; color: var(--text-soft); }
.sources a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* =========================  CHIPS  =========================== */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 7px 14px; border-radius: 6px; border: 1.5px solid var(--border-2); background: #fff; color: var(--text-soft); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }

/* =========================  LEARN  ========================== */
.learn-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.learn-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px; position: relative; transition: .16s; box-shadow: var(--shadow); }
.learn-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.learn-card .num { font-family: var(--mono); font-weight: 700; font-size: 2.2rem; color: var(--accent-soft); position: absolute; top: 16px; right: 24px; }
.learn-card h3 { font-size: 1.32rem; margin: 0 0 8px; }
.learn-card p { margin: 0; color: var(--text-soft); font-size: .98rem; }
.learn-card .term { color: var(--accent-2); font-weight: 600; }

/* ── Glossary (Learn page) ── */
.glossary-section { max-width: 760px; margin: 0 auto; padding: 36px 0; border-top: 1px solid var(--border); }
.glossary-section:first-child { border-top: none; padding-top: 8px; }
.glossary-heading { font-family: var(--display); font-size: 1.5rem; margin: 0 0 20px; letter-spacing: -.01em; }
.glossary-list { margin: 0; }
.glossary-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--border); }
.glossary-row:first-child { border-top: none; }
.glossary-term { font-weight: 700; color: var(--text); margin: 0; }
.glossary-def { color: var(--text-soft); margin: 0; line-height: 1.6; }
@media (max-width: 600px) {
  .glossary-row { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================  STOCK SEARCH  =================== */
.search-hero { text-align: center; padding: 60px 0 30px; }

.seg-toggle { display: inline-flex; background: var(--surface-2); border: 1.5px solid var(--border-2); border-radius: 8px; padding: 4px; gap: 3px; margin: 22px auto 0; }
.seg { border: none; background: transparent; color: var(--text-soft); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-family: var(--sans); display: inline-flex; align-items: center; gap: 7px; transition: .15s; }
.seg:hover { color: var(--text); }
.seg.active { background: var(--text); color: #fff; box-shadow: var(--shadow); }

/* full-width chart blocks on the stock page */
.tv-block { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #fff; margin: 0 0 22px; }

/* preset time-range buttons above a chart */
.tv-ranges { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.tv-range { border: 1px solid var(--border-2); background: #fff; color: var(--text-soft); font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .02em; padding: 6px 13px; border-radius: 8px; cursor: pointer; transition: .14s; }
.tv-range:hover { border-color: var(--accent-2); color: var(--accent); }
.tv-range.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* news / research link tiles */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.link-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow); transition: .15s; }
.link-tile:hover { border-color: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.link-tile .lt-ico { width: 38px; height: 38px; border-radius: 9px; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; font-size: 1rem; }
.link-tile .lt-name { font-weight: 600; color: var(--text); font-size: .94rem; }
.link-tile .lt-sub { font-size: .76rem; color: var(--text-faint); }
.link-tile .lt-arrow { margin-left: auto; color: var(--text-faint); }
@media (max-width: 820px) { .link-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .link-grid { grid-template-columns: 1fr; } }

/* Live news headlines in stock search */
#news-headlines { border-top: 1px solid var(--border); }
.news-headline { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background .12s; }
.news-headline:hover .nh-title { color: var(--accent); }
.nh-title { font-size: .93rem; font-weight: 500; line-height: 1.45; color: var(--text); }
.nh-meta { font-size: .75rem; color: var(--text-faint); }

.search-box { display: flex; gap: 10px; max-width: 560px; margin: 26px auto 0; }
.search-box input { flex: 1; padding: 15px 20px; font-size: 1rem; border-radius: 12px; border: 1px solid var(--border-2); background: #fff; color: var(--text); font-family: var(--mono); }
.search-box input::placeholder { color: var(--text-faint); }
.search-box input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(47,111,237,.12); }
.ticker-suggest { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }

/* =========================  FORMS  ========================== */
.form-card { max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 36px 38px; box-shadow: var(--shadow); }
.form-card.wide { max-width: 760px; }

/* Contributor access / sign-in gate */
.access-card {
  max-width: 440px; margin: 24px auto; padding: 48px 46px 44px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.access-icon {
  width: 58px; height: 58px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border-radius: 50%; color: var(--accent-2);
}
.access-icon svg { width: 26px; height: 26px; }
.access-card .kicker { display: block; margin-bottom: 10px; }
.access-card h2 { font-family: var(--display); font-size: 1.85rem; margin: 0 0 26px; letter-spacing: -.01em; }
.access-form { display: flex; flex-direction: column; gap: 12px; }
.access-form #code-input {
  width: 100%; padding: 15px 18px; font-family: var(--sans); font-size: 1.02rem;
  text-align: center; letter-spacing: .02em;
  border: 1px solid var(--border-2); border-radius: 14px;
  background: var(--bg-2); color: var(--text);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.access-form #code-input:focus {
  outline: none; border-color: var(--accent-2); background: #fff;
  box-shadow: 0 0 0 4px rgba(47,111,237,.12);
}
.access-form #code-input::placeholder { color: var(--text-faint); }
.access-form .btn { width: 100%; padding: 14px; font-size: 1rem; }
.access-actions { display: flex; flex-direction: column; gap: 12px; }
.access-actions .btn { width: 100%; padding: 14px; font-size: 1rem; }
.access-card .notice { margin: 0 0 16px; text-align: left; }
@media (max-width: 480px) {
  .access-card { padding: 38px 28px; }
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--text); }
.field .hint { font-weight: 400; color: var(--text-faint); font-size: .8rem; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 15px; font-size: 1rem; font-family: var(--sans); border: 1px solid var(--border-2); border-radius: 11px; background: #fff; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field textarea { min-height: 220px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(47,111,237,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notice { padding: 12px 16px; border-radius: 11px; font-size: .9rem; margin-bottom: 18px; border: 1px solid; line-height: 1.5; }
.notice code { font-family: var(--mono); font-size: .85em; background: rgba(14,28,51,.07); padding: 1px 6px; border-radius: 5px; }
.notice-info  { background: var(--accent-soft); border-color: #bcd4fb; color: #1b4079; }
.notice-warn  { background: #fff6e6; border-color: #f4d79a; color: #8a5a12; }
.notice-error { background: #fdecec; border-color: #f5bcbc; color: #a3262b; }
.notice-ok    { background: #e8f7ef; border-color: #b6e3c9; color: #176c40; }

/* =========================  TABLES  ========================= */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); padding: 10px 12px; border-bottom: 2px solid var(--border-2); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-soft); }
.table strong { color: var(--text); }
.badge { display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.badge-pending   { background: #fff1d9; color: #8a5a12; }
.badge-published { background: #e3f5ec; color: #15814f; }
.badge-role      { background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); }

/* =========================  PEOPLE  ========================= */
.people { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.person { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; text-align: center; box-shadow: var(--shadow); transition: .16s; }
.person:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.person .avatar { width: 64px; height: 64px; font-size: 1.4rem; margin: 0 auto 14px; }
.person h4 { font-family: var(--display); font-size: 1.18rem; margin: 0 0 2px; color: var(--text); }
.person .role { color: var(--accent-2); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.person .bio { color: var(--text-soft); font-size: .9rem; margin-top: 10px; }

/* =========================  MARKET BRIEF  ================== */
.brief-list { max-width: 760px; margin: 0 auto; }
.brief-card { display: block; padding: 26px 4px; text-decoration: none; color: inherit; border-top: 1px solid var(--border); transition: padding-left .18s ease; }
.brief-list a.brief-card:first-child { border-top: none; }
.brief-card:hover { padding-left: 10px; }
.brief-card-date { display: block; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.brief-card-title { font-family: var(--display); font-size: 1.6rem; line-height: 1.25; margin: 0; letter-spacing: -.01em; color: var(--text); transition: color .18s ease; }
.brief-card:hover .brief-card-title { color: var(--accent-2); }

.brief-detail { max-width: 720px; margin: 0 auto; padding: 4px 0 20px; }
.brief-back { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); text-decoration: none; margin-bottom: 22px; }
.brief-back:hover { opacity: .72; }
.brief-detail-meta { font-family: var(--mono); display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; flex-wrap: wrap; }
.brief-detail-title { font-family: var(--display); font-size: 2.7rem; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 30px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.brief-prose { max-width: none; font-size: 1.1rem; line-height: 1.85; color: var(--text); }
.brief-prose p { margin: 0 0 22px; }
.brief-prose strong { font-weight: 700; }
.brief-detail-foot { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
@media (max-width: 600px) {
  .brief-detail-title { font-size: 2rem; }
  .brief-card-title { font-size: 1.3rem; }
}

/* =========================  MISSION / ABOUT  =============== */
/* Eyebrow label */
.about-eyebrow { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); display: block; margin-bottom: 14px; }

/* Story + mission two-column intro */
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-cols .about-lead { font-size: 1.08rem; color: var(--text-soft); line-height: 1.85; margin: 0; }

/* How-it-works process flow */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 34px 30px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.step:hover { border-color: var(--accent-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.step-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-2); border-radius: 13px; margin-bottom: 20px; }
.step-icon svg { width: 26px; height: 26px; }
.step-num { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.step h3 { font-family: var(--display); font-size: 1.35rem; margin: 6px 0 12px; letter-spacing: -.01em; }
.step p { color: var(--text-soft); font-size: .96rem; line-height: 1.7; margin: 0; }
@media (max-width: 820px) {
  .about-cols { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
}

.about-block { max-width: 720px; padding: 48px 0; border-bottom: 1px solid var(--border); }
.about-block h2 { font-family: var(--display); font-size: 1.7rem; margin: 0 0 16px; letter-spacing: -.01em; }
.about-block p { font-size: 1.05rem; color: var(--text-soft); line-height: 1.8; margin: 0; }
.mission { text-align: center; padding: 64px 0; }
.mission::before { content: ''; display: block; width: 40px; height: 3px; background: var(--accent-2); border-radius: 2px; margin: 0 auto 28px; }
.mission h2 { font-family: var(--display); font-size: 2rem; max-width: 22ch; margin: 0 auto 18px; letter-spacing: -.01em; }
.mission p { font-size: 1.1rem; max-width: 58ch; margin: 0 auto; color: var(--text-soft); line-height: 1.75; }
.timeline { border-left: 2px solid var(--border-2); margin-left: 8px; padding-left: 26px; }
.timeline .t-item { position: relative; padding-bottom: 28px; }
.timeline .t-item::before { content:""; position:absolute; left:-33px; top:4px; width:12px; height:12px; border-radius:50%; background: var(--accent-3); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border-2); }
.timeline .t-year { font-family: var(--mono); font-size: 1rem; color: var(--accent-2); letter-spacing: .04em; }

/* =========================  DISCLAIMER  ==================== */
.disclaimer { background: var(--bg-2); border: 1px dashed var(--border-2); border-radius: 12px; padding: 12px 16px; font-size: .82rem; color: var(--text-soft); margin: 18px 0; }
.disclaimer strong { color: var(--text); }

/* =========================  FOOTER (dark navy)  ============ */
.footer { border-top: 3px solid var(--accent-3); background: #0c1830; color: #c7d2e3; margin-top: 70px; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; padding: 44px 0 28px; gap: 32px; flex-wrap: wrap; }
.footer-left { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: #fff; }
.footer-edu { color: #8a99b3; font-size: .9rem; margin: 0; }
.footer-email { color: #c7d2e3; font-size: .88rem; }
.footer-email:hover { color: var(--accent-3); }
.footer-nav-title { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: #7e8eaa; margin: 0 0 12px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.footer-nav a { display: block; color: #c7d2e3; font-size: .88rem; padding: 0; }
.footer-nav a:hover { color: var(--accent-3); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .82rem; color: #8a99b3; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); }
.footer-bottom a { display: inline; color: #c7d2e3; }

/* =========================  UTIL  ========================== */
.center { text-align: center; }
.muted { color: var(--text-faint); }
.stack > * + * { margin-top: 14px; }
.hidden { display: none !important; }
.spinner { width: 24px; height: 24px; border: 3px solid var(--border-2); border-top-color: var(--accent-2); border-radius: 50%; animation: spin .7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 50px 20px; color: var(--text-faint); }
.empty a { color: var(--accent-2); }

/* =========================  ANIMATIONS  =================== */
@media (prefers-reduced-motion: no-preference) {
  /* scroll reveal (class added by JS, so content is visible if JS is off) */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.22,.7,.2,1), transform .6s cubic-bezier(.22,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  /* staggered children (e.g. a grid revealing card-by-card) */
  .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .55s cubic-bezier(.22,.7,.2,1), transform .55s cubic-bezier(.22,.7,.2,1); }
  .reveal-stagger.in > * { opacity: 1; transform: none; }
  .reveal-stagger.in > *:nth-child(1){transition-delay:.04s} .reveal-stagger.in > *:nth-child(2){transition-delay:.10s}
  .reveal-stagger.in > *:nth-child(3){transition-delay:.16s} .reveal-stagger.in > *:nth-child(4){transition-delay:.22s}
  .reveal-stagger.in > *:nth-child(5){transition-delay:.28s} .reveal-stagger.in > *:nth-child(6){transition-delay:.34s}

  /* hero entrance */
  .hero-photo-inner > * { animation: heroIn .75s both cubic-bezier(.22,.7,.2,1); }
  .hero-photo-inner > *:nth-child(1){animation-delay:.05s} .hero-photo-inner > *:nth-child(2){animation-delay:.15s}
  .hero-photo-inner > *:nth-child(3){animation-delay:.27s} .hero-photo-inner > *:nth-child(4){animation-delay:.39s}
  .hero-photo-inner > *:nth-child(5){animation-delay:.5s}
  @keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}

/* photo zoom on card hover */
.cover img { transition: transform .55s cubic-bezier(.22,.7,.2,1); }
.card:hover .cover img, .article-row:hover .cover img { transform: scale(1.07); }

/* masthead gains a shadow once you scroll */
.masthead { transition: box-shadow .25s ease, background .25s ease; }
.masthead.scrolled { box-shadow: 0 6px 24px -12px rgba(14,28,51,.28); background: rgba(255,255,255,.94); }

/* gentle press feedback on buttons & chips */
.btn:active, .chip:active, .seg:active, .tv-range:active { transform: translatey(1px) scale(.985); }

/* =========================  NAV DROPDOWN  =================== */
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-item > a { display: flex; align-items: center; gap: 4px; padding: 0 18px; height: 72px; font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-soft); border-bottom: 2px solid transparent; transition: .15s; text-decoration: none; white-space: nowrap; }
.nav-item > a:hover { color: var(--accent); }
.nav-item > a.active { color: var(--accent); border-bottom-color: var(--accent-3); }
.nav-dd-trigger { display: flex; align-items: center; gap: 4px; padding: 0 18px; height: 72px; font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-soft); border: none; border-bottom: 2px solid transparent; background: transparent; cursor: default; font-family: var(--sans); transition: .15s; white-space: nowrap; }
.nav-item.has-dropdown:hover .nav-dd-trigger { color: var(--text); }
.nav-dd-trigger.active { color: var(--accent); border-bottom-color: var(--accent-3); }
.nav-caret { font-size: .55rem; opacity: .55; transition: transform .15s; }
.nav-item.has-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: 100%; left: -12px; padding-top: 8px; min-width: 0; width: max-content; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .15s, transform .15s; z-index: 200; }
.nav-item.has-dropdown:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dropdown-card { background: #1e2d3d; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.3); padding: 6px; }
.nav-dropdown-item { display: block; padding: 9px 16px; border-radius: 8px; text-decoration: none; color: #fff; transition: background .12s; }
.nav-dropdown-item + .nav-dropdown-item { margin-top: 2px; }
.nav-dropdown-item:hover { background: rgba(255,255,255,.12); }
.nav-dropdown-item strong { display: block; font-size: .92rem; font-weight: 600; color: #fff; letter-spacing: 0; text-transform: none; line-height: 1.35; }
.nav-dropdown-item em { display: block; font-size: .78rem; color: rgba(255,255,255,.5); font-style: normal; margin-top: 2px; line-height: 1.35; }

/* =========================  RESPONSIVE  =================== */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .masthead-actions { display: none; }
  .hide-sm { display: none !important; }
  .masthead-inner { flex-wrap: wrap; height: auto; padding: 0; }
  .brand { height: 58px; }
  .brand-logo { height: 32px; margin-right: 9px; }
  .brand-mark { font-size: 1.3rem; }
  .nav-toggle { margin-left: auto; }
  .nav { display: none; flex-direction: column; width: 100%; border-top: 1px solid var(--border); padding-bottom: 6px; order: 10; }
  .nav.open { display: flex; animation: navDrop .2s ease both; }
  .nav a { width: 100%; height: auto; padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .nav a.active { color: var(--accent); border-bottom-color: var(--border); }
  .nav-item { flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--border); }
  .nav-item > a { width: 100%; height: auto; padding: 14px 8px; border-bottom: none; }
  /* dropdown parent = tappable accordion row */
  .nav-dd-trigger { width: 100%; height: auto; padding: 14px 8px; cursor: pointer; justify-content: space-between; }
  .nav-caret { font-size: .7rem; opacity: .6; }
  .nav-item.open .nav-caret { transform: rotate(180deg); }
  /* collapsed by default; expands only when its row is tapped */
  .nav-item .nav-dropdown { display: none; }
  .nav-item.open .nav-dropdown { display: block; position: static; opacity: 1; pointer-events: all; transform: none; padding: 0; margin: 0 0 6px; }
  /* light, flat styling to match the white menu (no dark card) */
  .nav-dropdown-card { background: transparent; border-radius: 0; padding: 0; box-shadow: none; }
  .nav-dropdown-item { padding: 11px 8px 11px 22px; border-radius: 8px; }
  .nav-dropdown-item + .nav-dropdown-item { margin-top: 0; }
  .nav-dropdown-item:hover, .nav-dropdown-item:active { background: var(--surface-2); }
  .nav-dropdown-item strong { font-size: .9rem; color: var(--text); }
  .nav-dropdown-item em { font-size: .74rem; color: var(--text-faint); }
  @keyframes navDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 220px; }
  .grid-4, .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .people { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .learn-grid, .people, .kpi-grid, .grid-4 { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; }
  .article-row .cover { height: 160px; }
  .form-row { grid-template-columns: 1fr; }
  .mission { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-photo-inner { padding: 56px 0; }
  .kpi .kpi-num { font-size: 2.2rem; }
}

/* =========================  AUTH (log in / sign up)  ======= */
.auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 20px; background: var(--bg-2);
}
.auth-card {
  width: 100%; max-width: 400px; background: #fff;
  border: 1px solid var(--border); border-radius: 14px;
  padding: 30px 28px; box-shadow: var(--shadow);
}
.auth-brand { margin: 0 0 4px; font-size: 1.4rem; line-height: 1.2; }
.auth-brand a { color: var(--accent); text-decoration: none; }
.auth-brand a:hover { opacity: .78; }
.auth-sub { font-size: .85rem; color: var(--text-faint); margin: 0 0 22px; }

.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: .82rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.auth-field label .hint { font-weight: 500; color: var(--text-faint); }

.auth-card input {
  width: 100%; border: 1px solid var(--border-2); border-radius: 8px;
  padding: 10px 12px; font-family: var(--sans); font-size: .92rem;
  color: var(--text); background: #fff; transition: border-color .15s ease;
}
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-card input::placeholder { color: var(--text-faint); }

.auth-input-wrap { position: relative; }
.auth-input-wrap input { padding-right: 62px; }
.auth-show {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px 6px;
  font-family: var(--sans); font-size: .74rem; font-weight: 700; color: var(--accent);
}

.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-forgot { text-align: right; margin: -4px 0 16px; }
.auth-forgot button {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: .76rem; color: var(--accent); text-decoration: underline;
}

.auth-submit {
  width: 100%; background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 11px; cursor: pointer;
  font-family: var(--sans); font-size: .92rem; font-weight: 700;
  transition: background .15s ease;
}
.auth-submit:hover:not(:disabled) { background: #0f2f5e; }
.auth-submit:disabled { opacity: .6; cursor: default; }

.auth-alt { text-align: center; font-size: .78rem; color: var(--text-faint); margin: 16px 0 0; }
.auth-alt button {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  color: var(--accent); text-decoration: underline;
}

.auth-card .notice { margin: 0 0 16px; font-size: .84rem; }

@media (max-width: 420px) {
  .auth-card { padding: 26px 22px; }
  .auth-row { grid-template-columns: 1fr; gap: 0; }
}
