/* ============================================================
   JADEN KWEK — Portfolio Website Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --navy:         #091E3A;
  --navy-mid:     #1A3A6B;
  --navy-light:   #243F6F;
  --accent:       #2563EB;
  --accent-hover: #1D4ED8;
  --gold:         #C9A84C;
  --bg:           #FFFFFF;
  --bg-secondary: #F5F7FA;
  --bg-tertiary:  #EBF0F7;
  --text-primary: #0D1B2E;
  --text-secondary:#4B5A6B;
  --text-muted:   #8A98A8;
  --border:       #DDE3EC;
  --border-dark:  #C4CEDB;
  --buy:          #059669;
  --buy-bg:       #ECFDF5;
  --sell:         #DC2626;
  --sell-bg:      #FEF2F2;
  --hold:         #D97706;
  --hold-bg:      #FFFBEB;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow-sm:    0 1px 3px rgba(9,30,58,0.07);
  --shadow:       0 2px 8px rgba(9,30,58,0.10), 0 1px 3px rgba(9,30,58,0.06);
  --shadow-md:    0 6px 16px rgba(9,30,58,0.12), 0 2px 6px rgba(9,30,58,0.06);
  --shadow-lg:    0 12px 32px rgba(9,30,58,0.14), 0 4px 8px rgba(9,30,58,0.06);
  --max-width:    1180px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── NAVIGATION ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  display: block;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.10);
}
.nav-links a.active { color: var(--gold); background: rgba(201,168,76,0.12); }

/* Hamburger (mobile) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; transition: all 0.3s; }

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 4rem 2rem 2rem;
  margin-top: 0;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 4rem;
  align-items: start;
}
.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.footer-brand span { color: var(--gold); }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; }
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  max-width: 420px;
  line-height: 1.6;
}
.footer-nav-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 0.75rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.25);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── LAYOUT UTILITIES ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5.5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── PAGE HEADER — dark navy banner ── */
.page-header {
  background: var(--navy);
  background-image:
    radial-gradient(circle at 80% 50%, rgba(37,99,235,0.15) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(201,168,76,0.08) 0%, transparent 50%);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.page-header-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-header-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--gold);
}
.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.85rem;
  max-width: 520px;
  line-height: 1.7;
}

/* ── SECTION LABELS & HEADINGS ── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
  max-width: 500px;
  line-height: 1.7;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9,30,58,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-dark);
}
.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
/* White outline variant for dark backgrounds */
.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: #b8942e;
  border-color: #b8942e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 0.95rem; }

/* ── BADGE / TAG ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-buy   { background: var(--buy-bg);  color: var(--buy);  border: 1px solid #A7F3D0; }
.badge-sell  { background: var(--sell-bg); color: var(--sell); border: 1px solid #FECACA; }
.badge-hold  { background: var(--hold-bg); color: var(--hold); border: 1px solid #FDE68A; }
.badge-sector {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: none;
  font-size: 0.75rem;
  border: 1px solid var(--border);
}

/* ── CARD ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--navy-mid));
  transition: opacity 0.22s;
  opacity: 0;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { opacity: 1; }
.card-body { padding: 1.75rem; }
.card-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

/* Research card rating stripe */
.card.rating-buy::before    { opacity: 1; background: linear-gradient(90deg, var(--buy), #34D399); }
.card.rating-sell::before   { opacity: 1; background: linear-gradient(90deg, var(--sell), #F87171); }
.card.rating-hold::before   { opacity: 1; background: linear-gradient(90deg, var(--hold), #FCD34D); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 3rem 0; }

/* ══════════════════════════════════════════════════════════
   HOME HERO — full dark navy
   ══════════════════════════════════════════════════════════ */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 70% 30%, rgba(37,99,235,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(201,168,76,0.10) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/g%3E%3C/svg%3E");
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}
.hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}
.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Stats panel — right side of hero */
.hero-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
}
.hero-panel-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-list { display: flex; flex-direction: column; gap: 0; }
.hero-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-stat-row:last-child { border-bottom: none; }
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.hero-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stat-value.positive { color: #34D399; }
.hero-stat-value.gold { color: var(--gold); }

/* ── HOME SECTION HEADERS ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.view-all:hover { gap: 0.65rem; background: var(--bg-secondary); }

/* ── RESEARCH CARDS ── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.75rem;
}
.research-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.research-ticker {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.research-company {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
  font-weight: 500;
}
.research-thesis {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0.85rem 0 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.research-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.research-meta-dot { color: var(--border-dark); }
.research-files { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.file-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-secondary); }
.file-btn.pdf { color: #DC2626; border-color: #FECACA; background: #FFF8F8; }
.file-btn.pdf:hover { background: #FEF2F2; border-color: #DC2626; }
.file-btn.excel { color: #059669; border-color: #A7F3D0; background: #F0FDF9; }
.file-btn.excel:hover { background: var(--buy-bg); border-color: #059669; }

/* ── BLOG — table-of-contents style rows ── */
.blog-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 1.75rem;
  padding: 1.6rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.blog-row:hover {
  background: var(--bg-secondary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.blog-row:hover .blog-row-title { color: var(--accent); }
.blog-date-col { text-align: center; }
.blog-date-col .month { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.blog-date-col .day { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.blog-date-col .year { font-size: 0.68rem; color: var(--text-muted); }
.blog-row-category { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
.blog-row-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.3rem; transition: color 0.2s; }
.blog-row-excerpt { font-size: 0.82rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.blog-arrow { color: var(--text-muted); transition: transform 0.2s, color 0.2s; font-size: 1.1rem; }
.blog-row:hover .blog-arrow { transform: translateX(5px); color: var(--accent); }
.blog-rows-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.blog-rows-wrapper .blog-row { border-radius: 0; border: none; border-bottom: 1px solid var(--border); }
.blog-rows-wrapper .blog-row:last-child { border-bottom: none; }
.blog-rows-wrapper .blog-row:hover { border-color: transparent; }

/* ── RESEARCH PAGE FILTERS ── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  align-items: center;
}
.filter-bar-sep { width: 1px; height: 24px; background: var(--border); margin: 0 0.25rem; }
.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-secondary); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }

/* ── BLOG GRID (blog.html) ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.75rem; }
.blog-card-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.blog-card-category { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.blog-card-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 0.65rem; line-height: 1.35; }
.blog-card-excerpt { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-read-more { font-size: 0.8rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.1rem; transition: gap 0.2s; }
.blog-card-read-more:hover { gap: 0.65rem; }

/* ── POST PAGE ── */
.post-layout { display: grid; grid-template-columns: 1fr 280px; gap: 4.5rem; align-items: start; }
.post-meta-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; font-size: 0.82rem; color: var(--text-muted); }
.post-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; color: var(--navy); line-height: 1.22; margin-bottom: 1.1rem; }
.post-excerpt { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; border-left: 4px solid var(--accent); padding-left: 1.3rem; margin: 1.5rem 0 2rem; background: var(--bg-secondary); padding: 1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; }
.post-divider { height: 1px; background: var(--border); margin: 2.5rem 0; }
.post-body { font-size: 1rem; line-height: 1.9; color: var(--text-primary); }
.post-body h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.55rem; font-weight: 700; color: var(--navy); margin: 3rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.post-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 2.25rem 0 0.75rem; }
.post-body p { margin-bottom: 1.4rem; }
.post-body ul, .post-body ol { padding-left: 1.6rem; margin-bottom: 1.4rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body blockquote { border-left: 4px solid var(--gold); padding: 1rem 1.5rem; margin: 2rem 0; background: var(--bg-secondary); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text-secondary); font-size: 1.05rem; }
.post-body strong { color: var(--text-primary); font-weight: 600; }
.post-body a { color: var(--accent); text-decoration: underline; }
.post-sidebar { position: sticky; top: 90px; }
.sidebar-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-card h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }

/* ── ABOUT PAGE ── */
.about-hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 90% 40%, rgba(37,99,235,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 5% 70%, rgba(201,168,76,0.08) 0%, transparent 45%);
  padding: 6rem 0 5rem;
  position: relative;
}
.about-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}
.about-hero-inner { display: grid; grid-template-columns: 1fr 320px; gap: 5rem; align-items: center; }
.about-name-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.about-name-label::before { content: ''; display: block; width: 20px; height: 1.5px; background: var(--gold); }
.about-name { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 0.5rem; }
.about-title { font-size: 1.05rem; color: rgba(255,255,255,0.55); margin-bottom: 2rem; font-weight: 400; }
.about-bio { font-size: 0.97rem; color: rgba(255,255,255,0.65); line-height: 1.85; max-width: 520px; }
.about-bio p { margin-bottom: 1rem; }
.about-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.profile-img-wrap {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  margin-left: auto;
}
.profile-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ── SECTIONS ON ABOUT PAGE ── */
.about-sections { background: #fff; }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 3px; top: 8px; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--navy), var(--border)); }
.timeline-item { position: relative; padding-bottom: 2.25rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--navy);
}
.timeline-period { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
.timeline-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.timeline-org { font-size: 0.875rem; color: var(--navy-mid); font-weight: 600; margin: 0.1rem 0; }
.timeline-desc { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.4rem; line-height: 1.65; }

/* Skills Tags */
.skills-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-tag {
  padding: 0.4rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.skill-tag:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all 0.22s;
  box-shadow: var(--shadow-sm);
}
.contact-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.contact-card-icon { font-size: 1.75rem; margin-bottom: 0.6rem; }
.contact-card-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }
.contact-card-value { font-size: 0.88rem; font-weight: 600; color: var(--navy); }

/* Two column grid */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

/* ── EDUCATION CARD ── */
.edu-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 80% 50%, rgba(37,99,235,0.2) 0%, transparent 60%);
  padding: 5rem 0;
}
.cta-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-strip-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.cta-strip-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: #fff; line-height: 1.3; }
.cta-strip-sub { font-size: 0.95rem; color: rgba(255,255,255,0.55); margin-top: 0.5rem; }
.cta-strip-actions { display: flex; gap: 1rem; flex-shrink: 0; flex-wrap: wrap; }

/* ── EMPTY STATES ── */
.empty-state { text-align: center; padding: 5rem 2rem; color: var(--text-muted); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.empty-state p { font-size: 0.95rem; }

/* ── LOADING ── */
#site-loader {
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  transition: opacity 0.5s;
}
.loader-logo { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.9); }
.loader-line { width: 40px; height: 2px; background: var(--gold); border-radius: 2px; animation: loader-pulse 1s ease-in-out infinite; }
@keyframes loader-pulse { 0%,100%{ opacity:.4; transform:scaleX(.6); } 50%{ opacity:1; transform:scaleX(1); } }

/* ── ABOUT BIO GRID (homepage) ── */
.about-bio-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: start;
}
.about-bio-photo {
  position: sticky;
  top: 90px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* ── Tablet: 1000px ── */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
}

/* ── Tablet: 900px ── */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .about-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .profile-img-wrap { max-width: 200px; aspect-ratio: 1/1; margin: 0; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .cta-strip { padding: 3.5rem 0; }
  .cta-strip-inner { flex-direction: column; text-align: center; }
  .cta-strip-actions { justify-content: center; }
  .about-bio-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-bio-photo { position: static; order: -1; }
  .about-bio-photo .profile-img-wrap { max-width: 160px; aspect-ratio: 1/1; }
}

/* ── Mobile: 768px ── */
@media (max-width: 768px) {

  /* Nav */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links a { display: block; padding: 0.9rem 2rem; border-radius: 0; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 3rem; margin-bottom: 1rem; }
  .hero-label { margin-bottom: 1rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.75rem; }
  .hero-actions { gap: 0.75rem; }

  /* Page headers */
  .page-header { padding: 3rem 0 2.5rem; }
  .page-header h1 { font-size: 2rem; }

  /* Sections */
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.65rem; }
  .section-header { margin-bottom: 1.75rem; }

  /* Research */
  .research-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .card-body { padding: 1.35rem; }
  .card-footer { padding: 0.85rem 1.35rem; }

  /* Blog rows */
  .blog-row { grid-template-columns: 1fr; padding: 1.1rem 1rem; gap: 0.25rem; }
  .blog-date-col { display: none; }
  .blog-arrow { display: none; }
  .blog-row-title { font-size: 0.95rem; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Footer */
  .footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Philosophy quote */
  .philosophy-quote { font-size: 1.1rem !important; }
}

/* ── Mobile: 480px ── */
@media (max-width: 480px) {
  .container { padding: 0 1.1rem; }
  .nav-container { padding: 0 1.1rem; }

  /* Hero */
  .hero { padding: 2.75rem 0 2.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Page headers */
  .page-header { padding: 2.25rem 0 2rem; }
  .page-header h1 { font-size: 1.75rem; }
  .page-header p { font-size: 0.9rem; }

  /* Section */
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.5rem; }

  /* CTA strip */
  .cta-strip { padding: 2.75rem 0; }
  .cta-strip-title { font-size: 1.4rem; }
  .cta-strip-actions { flex-direction: column; width: 100%; }
  .cta-strip-actions .btn { width: 100%; justify-content: center; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 1.25rem 1rem; }

  /* About actions */
  .about-actions { flex-direction: column; }

  /* Cards */
  .card-body { padding: 1.2rem; }
  .research-ticker { font-size: 1.2rem; }
  .filter-btn { font-size: 0.75rem; padding: 0.4rem 0.85rem; }

  /* Timeline */
  .timeline { padding-left: 1.5rem; }
  .timeline-dot { left: -1.5rem; }

  /* Buttons */
  .btn-lg { padding: 0.75rem 1.4rem; font-size: 0.875rem; }

  /* Skills */
  .skills-grid { gap: 0.4rem; }
  .skill-tag { font-size: 0.75rem; padding: 0.3rem 0.75rem; }
}

/* ── BLOG POST IMAGES ────────────────────────────────── */
.post-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin: 1.75rem 0;
  display: block;
}

/* ── LIVE PRICE BADGES ───────────────────────────────── */
.live-price-wrap { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }
.live-price-badge { font-style: normal; font-weight: 600; font-size: 0.8rem; }
.live-price-up   { color: var(--buy); }
.live-price-down { color: var(--sell); }
.live-price-chg  { font-weight: 400; font-size: 0.75rem; }
.live-dot {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--buy); vertical-align: middle;
}
.modal-upside { font-size: 0.85rem; font-weight: 500; color: var(--buy); margin-left: 0.25rem; }

/* ── RESEARCH CARD MODAL ─────────────────────────────── */
.research-card-clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.research-card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 30, 58, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.2s ease;
}
.modal-overlay.open {
  display: flex;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  animation: modalSlideUp 0.22s ease;
  position: relative;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 1.75rem 0;
}
.modal-header-left { display: flex; flex-direction: column; gap: 0.3rem; }
.modal-ticker {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.modal-company {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.modal-close {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.modal-close:hover { background: var(--bg-tertiary); color: var(--navy); }

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem 0;
}
.modal-meta-item {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.modal-meta-dot { color: var(--border-dark); font-size: 0.9rem; }

.modal-prices {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 1.75rem 0;
}
.modal-price-block { display: flex; flex-direction: column; gap: 0.2rem; }
.modal-price-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.modal-price-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.modal-price-value.target { color: var(--buy); }

.modal-divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 1.75rem 0;
}

.modal-body { padding: 1.25rem 1.75rem 0; }
.modal-thesis-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.modal-thesis {
  font-size: 0.925rem;
  color: var(--text-primary);
  line-height: 1.75;
}

.modal-footer {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .modal-header { padding: 1.25rem 1.25rem 0; }
  .modal-meta   { padding: 0.75rem 1.25rem 0; }
  .modal-prices { padding: 0.75rem 1.25rem 0; }
  .modal-divider { margin: 1rem 1.25rem 0; }
  .modal-body   { padding: 1rem 1.25rem 0; }
  .modal-footer { padding: 1.25rem; }
  .modal-ticker { font-size: 1.4rem; }
}
