/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg-body:        #fdfdfd;
  --bg-alt:         #f8f9fa;
  --card-bg:        #ffffff;
  --text-main:      #1a1a1a;
  --text-muted:     #64748b;
  --accent-navy:    #0f172a;
  --accent-blue:    #2563eb;
  --accent-green:   #16a34a;
  --border-color:   #e5e7eb;
  --border-subtle:  #f1f5f9;
  --nav-height:     68px;
  --radius-card:    10px;
  --shadow-card:    0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover:   0 8px 32px rgba(0,0,0,0.10);
  --transition:     all 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

section[id] { scroll-margin-top: var(--nav-height); }

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV 
═══════════════════════════════════════════════════════════ */
header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color); display: flex; align-items: center; padding: 0 5%; gap: 24px;
}
.logo {
  font-family: 'Inter', -apple-system, sans-serif; font-size: 1.15rem; font-weight: 800;
  color: var(--accent-navy); letter-spacing: -0.03em; flex-shrink: 0; display: flex;
  flex-direction: column; line-height: 1.2; text-transform: uppercase;
}
.logo-name { color: var(--accent-blue); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-link { font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 6px 14px; border-radius: 6px; transition: var(--transition); letter-spacing: 0.01em; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--accent-navy); background: var(--border-subtle); }
.nav-link.active { color: var(--accent-blue); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn { font-size: 12.5px; font-weight: 700; padding: 7px 15px; border-radius: 6px; transition: var(--transition); white-space: nowrap; letter-spacing: 0.01em; }
.btn-about  { color: #fff; background: var(--accent-blue); border: 1px solid var(--accent-blue); }
.btn-about:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-follow { color: #0A66C2; border: 1px solid #0A66C2; background: transparent; }
.btn-follow:hover { background: #f0f7ff; }
.btn-join   { color: #fff; background: var(--accent-green); border: 1px solid var(--accent-green); }
.btn-join:hover { background: #15803d; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; border:none; background:none; border-radius: 6px; margin-left: auto; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--accent-navy); border-radius: 2px; transition: var(--transition); }

/* --- UPDATED MOBILE NAV --- */
.mobile-nav { 
  display: none; 
  position: absolute; /* Keeps it naturally attached to header */
  top: 100%; 
  left: 0; 
  right: 0; 
  background: #fff; 
  border-bottom: 1px solid var(--border-color); 
  padding: 16px 5% 20px; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); 
}
.mobile-nav.open { display: block; }
.mobile-nav > a { display: block; font-size: 14px; font-weight: 600; color: var(--text-main); padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.mobile-nav > a:last-of-type { border-bottom: none; }
.mobile-nav-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; }
.mobile-nav-actions .btn { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; padding: 9px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-nav-actions .btn-about { color: #fff !important; background: var(--accent-blue) !important; border-color: var(--accent-blue) !important; }
.mobile-nav-actions .btn-follow { color: #0A66C2 !important; background: transparent !important; border-color: #0A66C2 !important; }
.mobile-nav-actions .btn-join { color: #fff !important; background: var(--accent-green) !important; border-color: var(--accent-green) !important; }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  margin-top: var(--nav-height);
  min-height: calc(90vh - var(--nav-height));
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; background: var(--accent-navy); position: relative;
}
.hero-left { padding: 80px 6% 180px 8%; position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #60a5fa; margin-bottom: 28px; }
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%        { opacity: 0.4; transform: scale(1.4); }
}
.hero h1 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.12; color: #ffffff; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: #93c5fd; }
.hero-sub { font-size: clamp(0.95rem, 1.8vw, 1.1rem); color: #94a3b8; max-width: 440px; margin-bottom: 40px; font-weight: 400; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 7px; font-size: 13.5px; font-weight: 700; transition: var(--transition); }
.hero-cta-primary { background: #fff; color: var(--accent-navy); }
.hero-cta-primary:hover { background: #f1f5f9; transform: translateY(-1px); }
.hero-cta-secondary { background: transparent; color: #93c5fd; border: 1px solid #334155; }
.hero-cta-secondary:hover { background: #1e293b; border-color: #475569; }
.hero-cta-accent { background: var(--accent-blue); color: #fff; }
.hero-cta-accent:hover { background: #1d4ed8; transform: translateY(-1px); }

.hero-right { position: relative; height: 100%; min-height: calc(90vh - var(--nav-height)); overflow: hidden; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.88; filter: grayscale(5%) contrast(105%) brightness(0.88); }
.hero-right::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, #0f172a 0%, rgba(15,23,42,0.97) 8%, rgba(15,23,42,0.88) 18%, rgba(15,23,42,0.72) 28%, rgba(15,23,42,0.52) 40%, rgba(15,23,42,0.30) 55%, rgba(15,23,42,0.12) 72%, rgba(15,23,42,0.04) 86%, rgba(15,23,42,0) 100%);
  z-index: 1; pointer-events: none;
}

.hero-stats { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(15,23,42,0.85); backdrop-filter: blur(10px); border-top: 1px solid #1e293b; display: flex; z-index: 10; }
.hero-stat { flex: 1; padding: 20px 24px; border-right: 1px solid #1e293b; text-align: center; }
.hero-stat:last-child { border-right: none; }
.hero-stat-val { font-family: 'Newsreader', Georgia, serif; font-size: 1.8rem; font-weight: 700; color: #ffffff; line-height: 1; display: block; }
.hero-stat-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; display: block; margin-top: 5px; }

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION CHROME
═══════════════════════════════════════════════════════════ */
.section-wrap { padding: 96px 8%; }
.section-wrap.alt { background: var(--bg-alt); }
.section-wrap.dark { background: var(--accent-navy); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 56px; flex-wrap: wrap; }
.section-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-blue); display: block; margin-bottom: 8px; }
.section-title { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--accent-navy); letter-spacing: -0.02em; line-height: 1.15; }
.section-wrap.dark .section-title { color: #fff; }
.section-wrap.dark .section-label { color: #60a5fa; }
.section-view-all { font-size: 13px; font-weight: 700; color: var(--accent-blue); border: 1px solid var(--border-color); padding: 8px 18px; border-radius: 6px; transition: var(--transition); white-space: nowrap; flex-shrink: 0; }
.section-view-all:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   TOOLS SECTION
═══════════════════════════════════════════════════════════ */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.tool-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-card); padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition); }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #c7d2fe; }
.tool-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-blue), #60a5fa); opacity: 0; transition: var(--transition); }
.tool-card:hover::before { opacity: 1; }
.tool-icon-wrap { width: 48px; height: 48px; border-radius: 10px; background: #eff6ff; display: flex; align-items: center; justify-content: center; color: var(--accent-blue); font-size: 1.3rem; }
.tool-chip { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-blue); background: #eff6ff; padding: 3px 10px; border-radius: 20px; align-self: flex-start; }
.tool-title { font-family: 'Newsreader', Georgia, serif; font-size: 1.35rem; font-weight: 700; color: var(--accent-navy); line-height: 1.25; }
.tool-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.tool-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent-blue); margin-top: 8px; transition: var(--transition); }
.tool-cta:hover { gap: 12px; }

/* ═══════════════════════════════════════════════════════════
   INSIGHTS / POSTS SECTION
═══════════════════════════════════════════════════════════ */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px; }
.post-card { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-card); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-card); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-thumb-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--border-subtle); position: relative; }
.post-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-thumb[src$=".jpeg"], .post-thumb[src$=".jpg"] { filter: brightness(0.88) contrast(1.05) saturate(0.9); }
.post-card:hover .post-thumb { transform: scale(1.04); }
.post-body { padding: 24px 24px 20px; display: flex; flex-direction: column; flex: 1; }
.post-category { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 10px; }
.post-title { font-family: 'Newsreader', Georgia, serif; font-size: 1.15rem; font-weight: 700; color: var(--accent-navy); line-height: 1.3; margin-bottom: 10px; }
.post-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 18px; }
.post-read-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--accent-navy); padding-bottom: 1px; border-bottom: 1.5px solid transparent; transition: var(--transition); }
.post-read-link:hover { border-color: var(--accent-navy); gap: 10px; }

/* ═══════════════════════════════════════════════════════════
   PRESENTATIONS TIMELINE
═══════════════════════════════════════════════════════════ */
#presentations { background: var(--bg-alt); }
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: linear-gradient(to bottom, var(--accent-blue) 0%, #c7d2fe 100%); border-radius: 2px; }
.timeline-entry { position: relative; margin-bottom: 48px; }
.timeline-entry:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -40px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-blue); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent-blue); }
.tl-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition); display: grid; grid-template-columns: 1fr 45%; align-items: stretch; }
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tl-body { padding: 32px 36px; }
.tl-event-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-blue); background: #eff6ff; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; }
.tl-pres-title { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 700; color: var(--accent-navy); line-height: 1.2; margin-bottom: 12px; }
.tl-pres-sub { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.tl-meta-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.tl-meta-item i { color: var(--accent-blue); font-size: 12px; }
.tl-view-btn { display: inline-flex; align-items: center; gap: 9px; background: var(--accent-navy); color: #fff; font-size: 13px; font-weight: 700; padding: 11px 22px; border-radius: 7px; transition: var(--transition); }
.tl-view-btn:hover { background: var(--accent-blue); transform: translateY(-1px); }
.tl-visual { position: relative; background: #f8fafc; border-left: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; cursor: pointer; }
.tl-visual img { width: 100%; height: auto; display: block; object-fit: contain; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); opacity: 0.97; transition: transform 0.4s ease, opacity 0.3s ease; }
.tl-visual:hover img { transform: scale(1.04); opacity: 1; }
.tl-placeholder { background: linear-gradient(135deg, #f8fafc, #f1f5f9); border: 2px dashed var(--border-color); border-radius: var(--radius-card); padding: 36px; text-align: center; color: var(--text-muted); }
.tl-placeholder-icon { font-size: 2rem; color: #cbd5e1; margin-bottom: 12px; }
.tl-placeholder p { font-size: 0.9rem; font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   FOOTER (Injected)
═══════════════════════════════════════════════════════════ */
footer { background: var(--accent-navy); color: #fff; padding: 48px 8% 32px; border-top: 1px solid #1e293b; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #1e293b; }
.footer-logo { font-family: 'Inter', -apple-system, sans-serif; font-size: 1.15rem; font-weight: 800; color: #fff; text-transform: uppercase; display: flex; flex-direction: column; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 15px; }
.footer-logo span { color: #60a5fa; }
.footer-tagline { font-size: 13px; color: #64748b; max-width: 360px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: #94a3b8; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: #60a5fa; }
.footer-copy { font-size: 12px; color: #475569; text-align: center; }
.section-divider { height: 1px; background: var(--border-color); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE & ANIMATIONS
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 64px 6%; padding-bottom: 200px; }
  .hero-right { position: absolute; inset: 0; min-height: 0; z-index: 0; }
  .hero { position: relative; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  header { padding: 0 5%; gap: 0; }
  .section-wrap { padding: 64px 5%; }
  .hero-left { padding: 56px 5%; padding-bottom: 180px; }
  .hero-stats { position: static; }
  .hero-stat { padding: 14px 10px; }
  .hero-stat-val { font-size: 1.3rem; }
  .hero-stat-lbl { font-size: 9px; }
  .tools-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -32px; }
  .tl-card { grid-template-columns: 1fr; }
  .tl-visual { border-left: none; border-top: 1px solid var(--border-color); padding: 14px; }
  .tl-body { padding: 24px 22px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-tagline { text-align: center; }
  .footer-links { justify-content: center; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
