:root {
  --bg-deep: #050a18;
  --bg-dark: #0a1128;
  --bg-card: #0e1a3a;
  --bg-card-hover: #132048;
  --accent: #3b6cf5;
  --accent-light: #5b8aff;
  --accent-glow: rgba(59, 108, 245, 0.3);
  --accent-subtle: rgba(59, 108, 245, 0.08);
  --text-primary: #e8ecf4;
  --text-secondary: #8a9bbf;
  --text-muted: #566a94;
  --gold: #c9a84c;
  --border: rgba(59, 108, 245, 0.12);
  --border-light: rgba(255,255,255,0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg-deep); color: var(--text-primary); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* Canvas */
#quantum-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.4; }

/* Nav */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 3rem; display: flex; align-items: center; justify-content: space-between; backdrop-filter: blur(20px); background: rgba(5,10,24,0.75); border-bottom: 1px solid var(--border); transition: all 0.3s; }
nav.scrolled { background: rgba(5,10,24,0.95); }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-icon { width: 42px; height: 42px; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { font-family: 'Instrument Serif', serif; font-size: 1.6rem; color: var(--text-primary); letter-spacing: 0.02em; }
.logo-text span { color: var(--accent-light); }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; letter-spacing: 0.01em; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

/* Hero */
.hero { position: relative; z-index: 1; min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 2rem 80px; }
.hero-content { max-width: 720px; }
.hero-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 1.5rem; }
.hero h1 { font-family: 'Instrument Serif', serif; font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--accent-light); }
.hero p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; max-width: 540px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2a5ad4; transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-small { padding: 6px 14px; font-size: 0.8rem; }

/* Sections */
.section { position: relative; z-index: 1; padding: 80px 0; }
.section-dark { background: rgba(10,17,40,0.6); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container.narrow { max-width: 760px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-header h2 { font-family: 'Instrument Serif', serif; font-size: 2rem; }
.section-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 8px; }
.view-all { color: var(--accent-light); text-decoration: none; font-size: 0.85rem; font-weight: 500; }
.view-all:hover { text-decoration: underline; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card-grid.small { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text-primary); transition: all 0.3s; }
.card:hover { background: var(--bg-card-hover); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); border-color: rgba(59,108,245,0.3); }
.card-img { height: 180px; background-size: cover; background-position: center; background-color: var(--bg-dark); }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.05rem; margin: 8px 0; line-height: 1.4; }
.card-body h4 { font-size: 0.95rem; margin: 6px 0; }
.card-body p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.cat-badge { display: inline-block; font-size: 0.65rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--accent-subtle); color: var(--accent-light); text-transform: uppercase; letter-spacing: 0.5px; }
.meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 10px; display: block; }

/* Featured */
.featured-card { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.featured-card img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.featured-text { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.featured-text h2 { font-family: 'Instrument Serif', serif; font-size: 1.8rem; margin: 12px 0; }
.featured-text h2 a { color: var(--text-primary); text-decoration: none; }
.featured-text h2 a:hover { color: var(--accent-light); }
.featured-text p { color: var(--text-secondary); line-height: 1.6; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.video-grid.large { grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); }
.video-card { text-decoration: none; color: var(--text-primary); }
.video-card h4 { margin-top: 10px; font-size: 0.95rem; }
.video-thumb { height: 180px; background-size: cover; background-position: center; background-color: var(--bg-card); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.play-btn { width: 50px; height: 50px; background: rgba(59,108,245,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; }
.video-card-full { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.video-embed { position: relative; }
.video-embed iframe { display: block; width: 100%; }
.video-info { padding: 20px; }
.video-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.video-info p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.featured-video { text-align: center; }
.featured-video iframe { border-radius: 12px; max-width: 100%; }
.featured-video h2 { font-family: 'Instrument Serif', serif; margin-top: 20px; }

/* Books */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.book-grid.large { grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); }
.book-card { text-align: center; }
.book-grid.large .book-card { display: grid; grid-template-columns: 200px 1fr; gap: 24px; text-align: left; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.book-cover { width: 160px; height: 220px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.book-placeholder { background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 3rem; color: var(--accent-light); border: 1px solid var(--border); }
.book-card h3, .book-card h4 { margin: 10px 0 4px; font-size: 1rem; }
.book-author { color: var(--text-muted); font-size: 0.85rem; }
.book-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin: 8px 0; }
.book-actions { margin-top: 12px; display: flex; gap: 10px; }
.price { font-weight: 700; color: var(--accent-light); font-size: 1.1rem; display: block; margin: 8px 0; }
.price.free { color: var(--gold); }

/* Page Header */
.page-header { position: relative; z-index: 1; padding: 140px 2rem 60px; text-align: center; }
.page-header h1 { font-family: 'Instrument Serif', serif; font-size: 2.8rem; margin-bottom: 10px; }
.page-header p { color: var(--text-secondary); font-size: 1.05rem; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-btn { padding: 6px 16px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; font-size: 0.8rem; font-weight: 500; transition: all 0.2s; }
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.page-btn { padding: 8px 14px; border-radius: 6px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; }
.page-btn.active { background: var(--accent); color: #fff; }

/* Article page */
.article-page { position: relative; z-index: 1; padding: 120px 0 60px; }
.article-header { margin-bottom: 30px; }
.article-header h1 { font-family: 'Instrument Serif', serif; font-size: 2.4rem; margin: 12px 0; }
.article-meta { display: flex; gap: 16px; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 3px 10px; border-radius: 4px; background: var(--accent-subtle); color: var(--accent-light); font-size: 0.7rem; }
.article-cover { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 30px; }
.article-content { font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); }
.article-content h2 { font-family: 'Instrument Serif', serif; font-size: 1.6rem; color: var(--text-primary); margin: 30px 0 12px; }
.article-content h3 { font-size: 1.2rem; color: var(--text-primary); margin: 24px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 20px 0; color: var(--text-primary); font-style: italic; background: var(--accent-subtle); border-radius: 0 8px 8px 0; }
.article-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.article-content a { color: var(--accent-light); }

/* Comments */
.comments-section { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
.comments-section h3 { font-family: 'Instrument Serif', serif; margin-bottom: 20px; }
.comment { background: var(--bg-card); padding: 16px; border-radius: 8px; margin-bottom: 12px; border: 1px solid var(--border); }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.comment p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.comment-form { margin-top: 20px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 0.9rem; margin-bottom: 12px; font-family: inherit; }
.comment-form textarea { resize: vertical; min-height: 100px; }
.comment-form input::placeholder, .comment-form textarea::placeholder { color: var(--text-muted); }
.related { margin-top: 50px; }
.related h3 { font-family: 'Instrument Serif', serif; margin-bottom: 20px; }

/* About */
.about-content { color: var(--text-secondary); line-height: 1.8; font-size: 1.05rem; }
.about-content h2 { font-family: 'Instrument Serif', serif; font-size: 1.6rem; color: var(--text-primary); margin: 30px 0 12px; }
.about-content p { margin-bottom: 16px; }
.about-content blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 20px 0; color: var(--text-primary); font-style: italic; background: var(--accent-subtle); border-radius: 0 8px 8px 0; }
.about-content ul { margin: 16px 0; padding-left: 20px; }
.about-content li { margin-bottom: 10px; }
.about-content strong { color: var(--text-primary); }

/* Newsletter */
.newsletter-section h2 { font-family: 'Instrument Serif', serif; font-size: 2rem; margin-bottom: 10px; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 20px auto 0; }
.newsletter-form input { flex: 1; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 0.95rem; }
.newsletter-form input::placeholder { color: var(--text-muted); }

/* Flash */
.flash { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 200; padding: 12px 24px; border-radius: 8px; font-size: 0.9rem; animation: fadeout 4s forwards; }
.flash-success { background: rgba(46,125,50,0.9); color: #fff; }
.flash-error { background: rgba(211,47,47,0.9); color: #fff; }
@keyframes fadeout { 0%,70% { opacity: 1; } 100% { opacity: 0; pointer-events: none; } }
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 60px 2rem 30px; background: rgba(5,10,24,0.95); }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-top: 12px; }
.footer-col h6 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom { max-width: 1100px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 0.75rem; color: var(--text-muted); text-align: center; }

/* Mobile */
@media (max-width: 768px) {
  nav { padding: 0.8rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .hero { min-height: 70vh; padding: 100px 1.5rem 60px; }
  .featured-card { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .book-grid.large .book-card { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .video-grid.large { grid-template-columns: 1fr; }
}

/* ═══ UPDATED STYLES ═══ */

/* Hero — split layout */
.hero { position: relative; z-index: 1; min-height: 90vh; display: flex; align-items: center; padding: 100px 2rem 60px; overflow: hidden; }
.hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; width: 100%; }
.hero-text h1 { font-family: 'Instrument Serif', serif; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; margin-bottom: 1.2rem; }
.hero-text p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; max-width: 480px; }
.btn-ghost { background: transparent; color: var(--text-primary); border: none; padding: 12px 20px; font-weight: 500; }
.btn-ghost:hover { color: var(--accent-light); }
.hero-visual { display: flex; justify-content: center; }
.globe-container { width: 100%; max-width: 400px; }
.globe-svg { width: 100%; height: auto; animation: globe-rotate 30s linear infinite; }
@keyframes globe-rotate { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }

/* Three Pillars */
.pillars-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.pillar-icon { width: 60px; height: 60px; margin: 0 auto 16px; }
.pillar-icon svg { width: 100%; height: 100%; }
.pillar h3 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; }
.pillar p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* Publications + Founder grid */
.pub-founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.pub-side h2 { font-family: 'Instrument Serif', serif; font-size: 1.8rem; margin-bottom: 24px; }
.pub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pub-card { text-decoration: none; color: var(--text-primary); text-align: center; }
.pub-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.pub-card h4 { font-size: 0.85rem; line-height: 1.4; }
.pub-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, #0e1a3a, #1a2a5a); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 2.5rem; color: var(--accent-light); margin-bottom: 10px; }
.founder-side { text-align: center; }
.founder-photo { width: 100%; max-width: 320px; margin: 0 auto 20px; }
.founder-photo img { width: 100%; border-radius: 12px; }
.founder-placeholder { width: 100%; height: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 2rem; color: var(--accent-light); }
.founder-side blockquote { font-style: italic; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin: 16px 0; padding: 0; border: none; background: none; }
.founder-side cite { font-style: normal; font-size: 0.9rem; color: var(--text-primary); }

/* About — Founder full */
.founder-full { display: grid; grid-template-columns: 350px 1fr; gap: 50px; align-items: center; }
.founder-photo-large img { width: 100%; border-radius: 16px; }
.founder-placeholder-lg { width: 100%; height: 400px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 3rem; color: var(--accent-light); }
.founder-bio .section-tag { margin-bottom: 8px; }
.founder-quote { border-left: 3px solid var(--accent); padding: 12px 20px; margin-top: 20px; color: var(--accent-light); font-style: italic; font-size: 1rem; background: var(--accent-subtle); border-radius: 0 8px 8px 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; justify-items: center; }
.team-card { text-align: center; max-width: 240px; }
.team-photo { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 2px solid var(--border); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initials { width: 100%; height: 100%; background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 2rem; color: var(--accent-light); border-radius: 50%; }
.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-role { color: var(--accent-light); font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; }
.team-desc { color: var(--text-muted); font-size: 0.8rem; }

/* What We Do */
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.what-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: all 0.3s; }
.what-card:hover { border-color: rgba(59,108,245,0.3); transform: translateY(-2px); }
.what-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--accent-light); }
.what-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

/* Video cards on homepage */
.video-card-home { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.video-embed-home iframe { display: block; }
.video-info-home { padding: 14px; }
.video-info-home h4 { font-size: 0.95rem; }

/* Utility */
.serif-heading { font-family: 'Instrument Serif', serif; font-size: 2rem; margin-bottom: 16px; }
.body-text { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }

/* Nav toggle for mobile */
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* Mobile overrides */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: rgba(5,10,24,0.98); flex-direction: column; padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-visual { display: none; }
  .pillars-grid { grid-template-columns: 1fr; gap: 30px; }
  .pub-founder-grid { grid-template-columns: 1fr; }
  .pub-cards { grid-template-columns: repeat(3, 1fr); }
  .founder-full { grid-template-columns: 1fr; text-align: center; }
  .founder-photo-large { max-width: 280px; margin: 0 auto; }
  .what-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
