/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #080808;
  --surface:  #0e0e0e;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --white:    #f0f0f0;
  --muted:    rgba(240,240,240,0.38);
  --accent:   #c8ff40;      /* neon lime — topology-style */
  --accent2:  rgba(200,255,64,0.12);
  --positive: #4ade80;
  --negative: #f87171;
  --radius:   4px;
  --mono:     'JetBrains Mono', monospace;
  --sans:     'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.mono { font-family: var(--mono); }

/* ─── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ─── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--white);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent); }
.nav-links { display: flex; gap: 36px; }
.nav-link {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }
.nav-burger { display: none; }

/* ─── Mobile menu ──────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 24px 40px;
  gap: 20px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-link { font-size: 14px; color: var(--muted); }
.mobile-link:hover { color: var(--white); }

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: auto;
  padding: 140px 40px 80px;
}
.hero-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: inline-block;
}
.hero-title {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title-accent {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  padding: 13px 28px;
  background: var(--accent);
  color: var(--black);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  padding: 12px 28px;
  border: 1px solid var(--border2);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  animation: fadeUp 2s ease-in-out infinite alternate;
}
@keyframes fadeUp {
  from { opacity: 0.3; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 0.8; transform: translateX(-50%) translateY(0); }
}

/* ─── Section base ─────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-dark { background: var(--surface); }

.container { max-width: 1280px; margin: auto; padding: 0 40px; }
.container-narrow { max-width: 720px; }

.section-header { margin-bottom: 56px; }
.section-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* ─── Articles ─────────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.article-card {
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
}
.article-card:hover { transform: translateY(-2px); }
.article-card:hover .article-image img { transform: scale(1.04); }

/* ── Featured: same size, accent top border ── */
.article-featured {
  border-top: 2px solid var(--accent);
}
.article-featured .article-title { font-size: 18px; }

.article-featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: #080808;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 500;
}

/* ── Regular cards: image top / content below ── */
.article-image.img-portrait {
  height: 280px;
  background: #0c0c0c;
}
.article-image.img-portrait img {
  object-fit: contain;
  object-position: center;
}
.article-image {
  height: 200px;
  overflow: hidden;
  background: #141414;
  position: relative;
}
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.article-image.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-image.no-img::after {
  content: '';
  display: block;
  width: 48px; height: 48px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a1a1a, #0a0a0a);
}
.article-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(14,14,14,0.7) 100%);
}

.article-content { padding: 20px 24px 24px; flex: 1; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.article-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--muted);
}
.article-date {
  font-size: 10.5px;
  color: var(--muted);
}
.article-title {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.article-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-read {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: opacity 0.2s;
}
.article-read:hover { opacity: 0.7; }

/* ─── Reports — KPIs ───────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--white); }
.tab.active { color: var(--accent); border-color: var(--accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.report-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-bottom: 24px;
}
.kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}
.kpi:hover { background: rgba(255,255,255,0.055); }
.kpi-label {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi-value {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.kpi-value.positive { color: var(--positive); }
.kpi-value.negative { color: var(--negative); }

/* ─── Charts ───────────────────────────────────────────────────── */
.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 2px;
}
.chart-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 16px 20px 14px;
}
.chart-wide { grid-column: 1 / -1; }
.chart-wide .chart-card { width: 100%; }

/* when chart-card IS the wide element */
.chart-row .chart-card.chart-wide {
  grid-column: 1 / -1;
}

.chart-wrap { position: relative; width: 100%; }

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.chart-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chart-period {
  font-size: 10px;
  color: rgba(240,240,240,0.22);
}

/* ─── Portfolio total bar ──────────────────────────────────────── */
.portfolio-total-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(200,255,64,0.03);
  border: 1px solid rgba(200,255,64,0.1);
  border-radius: 4px;
  padding: 14px 20px;
  margin-bottom: 24px;
}
.ptb-item { display: flex; flex-direction: column; gap: 4px; }
.ptb-label { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); }
.ptb-value { font-size: 18px; font-weight: 300; color: var(--white); letter-spacing: -0.02em; }
.ptb-value.positive { color: var(--positive); }
.ptb-value.negative { color: var(--negative); }
.ptb-sep { width: 1px; height: 32px; background: var(--border); }

/* ─── Period toggle ────────────────────────────────────────────── */
.chart-periods {
  display: flex;
  gap: 3px;
  align-items: center;
}
.period-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: rgba(240,240,240,0.3);
  padding: 3px 9px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.18s;
  font-family: var(--mono);
}
.period-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.period-btn.active { background: rgba(200,255,64,0.08); border-color: var(--accent); color: var(--accent); }

/* ─── Holdings table ───────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.holdings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.holdings-table thead tr {
  border-bottom: 1px solid var(--border2);
}
.holdings-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  font-weight: 400;
}
.holdings-table td {
  padding: 16px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.holdings-table tbody tr { transition: background 0.15s; }
.holdings-table tbody tr:hover { background: rgba(255,255,255,0.035); }

.asset-name {
  display: block;
  font-weight: 400;
  margin-bottom: 2px;
}
.asset-ticker {
  font-size: 11px;
  color: var(--muted);
}
.sector-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--muted);
}
.positive { color: var(--positive); }
.negative { color: var(--negative); }

/* ─── Top performers ───────────────────────────────────────────── */
.performers-table { padding: 4px 0; }
.performers-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.performers-col-title { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.performer-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.performer-row:last-child { border-bottom: none; }
.performer-name { flex: 1; font-size: 13px; }
.performer-ticker { font-size: 10px; color: var(--muted); min-width: 44px; }
.performer-pct { font-size: 13px; min-width: 60px; text-align: right; }

/* ─── Key ratios ───────────────────────────────────────────────── */
.key-ratios-table { padding: 8px 0; }
.key-ratio-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.key-ratio-row:last-child { border-bottom: none; }
.kr-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.kr-value { font-size: 20px; font-weight: 300; letter-spacing: -0.02em; }

/* ─── Reporting tab ────────────────────────────────────────────── */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; padding: 4px 0; }
.report-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.2s;
}
.report-card:hover { border-color: rgba(255,255,255,0.12); }
.report-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.report-period { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.report-perf { font-size: 13px; font-weight: 500; }
.report-title { font-size: 16px; font-weight: 400; margin-bottom: 10px; line-height: 1.4; }
.report-summary { font-size: 11px; color: var(--muted); margin-bottom: 12px; letter-spacing: 0.02em; }
.report-commentary { font-size: 14px; color: rgba(240,240,240,0.7); line-height: 1.65; margin-bottom: 14px; }
.report-highlights { padding-left: 16px; margin: 0; }
.report-highlights li { font-size: 12px; color: var(--muted); margin-bottom: 6px; line-height: 1.5; }
.report-highlights li::marker { color: var(--accent); }
.report-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 14px;
  border: 1px solid rgba(200,255,64,0.4);
  border-radius: 4px;
  color: var(--accent);
  font-size: 11.5px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.report-download:hover { background: rgba(200,255,64,0.08); border-color: var(--accent); }

/* ─── Contact ──────────────────────────────────────────────────── */
.contact-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-email {
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.7; }

/* ─── Footer ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.footer-copy {
  font-size: 11px;
  color: rgba(240,240,240,0.2);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-admin { color: var(--accent) !important; font-size: 11px !important; }

/* ─── À propos ─────────────────────────────────────────────────── */
.about-section {
  padding: 0;
  overflow: hidden;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 660px;
  align-items: center;
}
.about-photo-wrap {
  position: relative;
  height: 660px;
  overflow: hidden;
}
.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 55%, var(--bg) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%);
  pointer-events: none;
}
.about-photo-empty {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
}
.about-content {
  padding: 80px clamp(32px, 6vw, 100px) 80px 48px;
}
.about-tag {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 28px;
}
.about-name {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.about-role {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 36px;
}
.about-divider {
  width: 28px;
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}
.about-text {
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(240,240,240,0.6);
  max-width: 500px;
}

.about-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  border: 1px solid var(--border2);
  padding: 8px 16px;
  border-radius: 2px;
}
.about-linkedin:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

/* Landscape mode overrides */
.about-layout--landscape {
  grid-template-columns: 1fr;
}
.about-layout--landscape .about-photo-wrap {
  height: clamp(300px, 45vw, 500px);
}
.about-layout--landscape .about-photo-wrap::after {
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 12%, transparent 72%, var(--bg) 100%);
}
.about-layout--landscape .about-content {
  padding: 56px clamp(32px, 8vw, 120px) 100px;
  max-width: none;
}
.about-layout--landscape .about-text { max-width: 680px; }

/* ─── Reveal animation ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .report-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .chart-row { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; min-height: auto; }
  .about-photo-wrap { height: 420px; }
  .about-photo-wrap::after { background: linear-gradient(to bottom, transparent 70%, var(--bg) 100%); }
  .about-content { padding: 48px 32px 80px; }
  .about-text { max-width: 100%; }
}
@media (max-width: 680px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--muted);
  }
  .hero-inner { padding: 120px 20px 60px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-featured { grid-column: 1; }
  .report-kpis { grid-template-columns: repeat(2, 1fr); }
  .mobile-menu { padding: 24px 20px; }
  .performers-cols { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
}
