/*
Theme Name:  Krtrimaprajna
Theme URI:   https://krtrimaprajna.ai
Author:      Krtrimaprajna
Author URI:  https://krtrimaprajna.ai
Description: AI knowledge, told as story. A dark editorial WordPress theme for the Krtrimaprajna knowledge universe.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: krtrimaprajna
Tags:        dark, one-column, custom-menu, featured-images, full-width-template
*/

/* ── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  --navy:  #060E1F;
  --navy2: #0B1A30;
  --navy3: #0F2444;
  --gold:  #C9A84C;
  --gold2: #E2C97E;
  --gold3: #8A6A1E;
  --blue:  #1E4A8A;
  --steel: #060E1F;
  --cream: #F5EFE0;
  --white: #FFFFFF;
  --muted: rgba(255,255,255,0.45);
  --dim:   rgba(255,255,255,0.15);
}

/* Wordmark styling (uppercase, spaced letters) */
.nav-wordmark {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 10; padding: 10; }
html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ──────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* ── NAV ────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  border-bottom: 1px solid var(--dim);
  background: rgba(6,14,31,0.85);
  backdrop-filter: blur(16px);
  animation: fadeDown 0.8s ease both;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold); border-radius: 0px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'italic', serif;
  font-size: 16px; color: var(--gold);
}


.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 600;
  color: var(--gold); letter-spacing: 1px;
}

/* WordPress nav menu reset */
.main-navigation { display: flex; align-items: center; }
.main-navigation ul {
  display: flex; gap: 36px;
  list-style: none; margin: 10; padding: 10;
}
.main-navigation ul li a {
  text-decoration: none; font-size: 13px;
  color: var(--muted); letter-spacing: 0.5px;
  transition: color 0.2s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a { color: var(--white); }

.nav-cta {
  background: var(--gold); color: var(--navy);
  border: none; padding: 9px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  border-radius: 4px; cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: var(--gold2); transform: translateY(-1px); }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 14px 32px; border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  border-radius: 4px; cursor: pointer; letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--white);
  padding: 14px 32px;
  border: 1px solid var(--dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 400;
  border-radius: 4px; cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 60vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 100px 10vw 100px;
  position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-bg-radial {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(30,74,138,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,168,76,0.06) 0%, transparent 70%);
}
.hero-watermark {
  position: absolute; right: 10vw; top: 15%;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: clamp(500px, 22vw, 540px);
  color: rgba(201,168,76,0.04);
  user-select: none; pointer-events: none; z-index: 0;
  animation: fadeUp 1.2s 0.4s ease both;
}
.hero-eyebrow {
  position: relative; z-index: 1;
  font-size: 11px; letter-spacing: 4px; color: var(--gold);
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  text-transform: uppercase; margin-bottom: 52px;
  display: flex; align-items: center; gap: 12px;
  animation: fadeUp 0.9s 0.2s ease both;
}
.hero-eyebrow::before { content: ''; width: 10px; height: 1px; background: var(--gold); }
.hero-headline {
  position: relative; z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 7.5vw, 90px);
  font-weight: 300; line-height: 1.0; letter-spacing: -1px;
  max-width: 820px;
  margin-top: 50px; letter-spacing: 1px; padding: 0px;
  animation: fadeUp 1s 0.35s ease both;
}
.hero-headline em { font-style: italic; color: var(--gold); }
.hero-devanagari {
  position: relative; z-index: 1;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 28px; color: rgba(201,188,96,0.35);
  margin-top: 0px; letter-spacing: 1px; padding: -20px;
  animation: fadeUp 1s 0.45s ease both;
}
.hero-sub {
  position: relative; z-index: 1;
  font-size: 17px; line-height: 1.7;
  color: var(--muted); max-width: 480px; margin-top: 0px;
  animation: fadeUp 1s 0.55s ease both;
}
.hero-actions {
  position: relative; z-index: 1;
  display: flex; gap: 16px; margin-top: 40px;
  animation: fadeUp 1s 0.65s ease both;
}
.hero-scroll-hint {
  position: absolute; bottom: 50px; left: 10vw; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 3px; color: var(--muted);
  text-transform: uppercase;
  animation: fadeUp 1s 0.8s ease both;
}
.scroll-line {
  width: 40px; height: 1px; background: var(--gold);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleX(1); opacity: 0.5; }
  50% { transform: scaleX(1.4); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ── MARQUEE ─────────────────────────────────────────────────────────────── */
.marquee-strip {
  border-top: 1px solid var(--dim); border-bottom: 1px solid var(--dim);
  background: rgba(201,168,76,0.04);
  overflow: hidden; white-space: nowrap; padding: 14px 0;
}
.marquee-inner {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  font-size: 12px; letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; padding: 0 40px;
  display: inline-flex; align-items: center; gap: 40px;
}
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold3); flex-shrink: 0; }

/* ── SHARED SECTION ──────────────────────────────────────────────────────── */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

.section-label {
  font-size: 10px; letter-spacing: 4px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 50px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 250; line-height: 1.1; letter-spacing: -0.5px;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ── STORY INTRO ─────────────────────────────────────────────────────────── */
.story-intro { padding: 50px 0; border-bottom: 1px solid var(--dim); }
.story-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.story-text p { font-size: 17px; line-height: 1.8; color: var(--muted); margin-bottom: 20px; }
.story-text p strong { color: var(--white); font-weight: 500; }
.story-quote-block {
  border-left: 4px solid var(--gold);
  padding: 1px 1px;
  background: rgba(201,168,76,0.08);
  border-radius: 0 2px 2px 0;
}
.story-quote-block blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-style: italic;
  line-height: 1.5; color: var(--cream); margin-bottom: 5px;
  margin-top: 0px; letter-spacing: 1px; padding: 0px;
}
.story-quote-block cite { font-size: 12px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }

/* ── CHAPTERS ────────────────────────────────────────────────────────────── */
.chapters-section { padding: 30px 0; }
.chapters-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; }
.chapters-header p { font-size: 15px; color: var(--muted); max-width: 460px; line-height: 1.7; }

.chapters-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; border: 1px solid var(--dim);
  border-radius: 12px; overflow: hidden;
}
.chapters-grid-2 {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 2px; margin-top: 2px;
  border: 1px solid var(--dim); border-top: none;
  border-radius: 0 0 12px 12px; overflow: hidden;
}

.chapter-card {
  background: rgba(255,255,255,0.02);
  padding: 30px 32px 36px;
  border-right: 1px solid var(--dim);
  transition: background 0.3s;
  cursor: pointer; position: relative; overflow: hidden;
}
.chapter-card:last-child { border-right: none; }
.chapter-card:hover { background: rgba(201,168,76,0.06); }
.chapter-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform 0.35s ease;
}
.chapter-card:hover::after { transform: scaleX(1); }
.chapter-card.locked { opacity: 0.4; cursor: default; }
.chapter-card.locked:hover { background: rgba(255,255,255,0.02); }
.chapter-card.locked::after { display: none; }

.ch-number { font-size: 10px; letter-spacing: 3px; color: var(--gold3); text-transform: uppercase; margin-bottom: 20px; }
.ch-icon {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--dim);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 22px; color: var(--gold); margin-bottom: 24px;
  transition: border-color 0.3s, background 0.3s;
}
.chapter-card:hover .ch-icon { border-color: var(--gold); background: rgba(201,168,76,0.1); }
.ch-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; color: var(--white); }
.ch-desc { font-size: 13px; line-height: 1.7; color: var(--muted); }
.ch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.ch-tag { font-size: 10px; padding: 3px 10px; border: 1px solid var(--dim); border-radius: 20px; color: var(--muted); letter-spacing: 0.5px; }
.ch-tag.active { border-color: rgba(201,168,76,0.4); color: var(--gold); }
.ch-arrow {
  position: absolute; bottom: 28px; right: 28px;
  width: 28px; height: 28px; border: 1px solid var(--dim); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s, border-color 0.3s;
}
.chapter-card:hover .ch-arrow { opacity: 1; border-color: var(--gold); }
.ch-arrow svg { stroke: var(--gold); }

/* ── STATS BAR ───────────────────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--dim); border-bottom: 1px solid var(--dim);
  padding: 64px 0; background: rgba(201,168,76,0.03);
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; }
.stat-item { padding: 16px; border-right: 1px solid var(--dim); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 56px; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }

/* ── CHARACTERS ──────────────────────────────────────────────────────────── */
.characters-section { padding: 120px 0; border-top: 1px solid var(--dim); background: rgba(30,74,138,0.04); }
.characters-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; }
.char-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--dim); border-radius: 12px; padding: 40px 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.char-card:hover { border-color: rgba(201,168,76,0.35); transform: translateY(-4px); }
.char-avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Noto Serif Devanagari', serif; font-size: 28px; margin-bottom: 24px; }
.char-name { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; margin-bottom: 4px; }
.char-role { font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 16px; }
.char-bio { font-size: 14px; line-height: 1.75; color: var(--muted); }

/* ── TOOLS ───────────────────────────────────────────────────────────────── */
.tools-section { padding: 120px 0; border-top: 1px solid var(--dim); background: rgba(30,74,138,0.04); }
.tools-header { display: flex; justify-content: space-between; align-items: flex-end; }
.tools-scroll { display: flex; gap: 16px; margin-top: 56px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.tools-scroll::-webkit-scrollbar { display: none; }
.tool-pill {
  flex-shrink: 0; background: rgba(255,255,255,0.03);
  border: 1px solid var(--dim); border-radius: 40px;
  padding: 14px 24px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: border-color 0.25s, background 0.25s;
}
.tool-pill:hover { border-color: rgba(201,168,76,0.45); background: rgba(201,168,76,0.06); }
.tool-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.tool-name { font-size: 14px; white-space: nowrap; color: var(--white); }
.tool-chapter { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ── ARTICLES ────────────────────────────────────────────────────────────── */
.articles-section { padding: 120px 0; border-top: 1px solid var(--dim); }
.articles-header { display: flex; justify-content: space-between; align-items: flex-end; }
.articles-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-top: 56px; }
.article-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--dim); border-radius: 12px;
  overflow: hidden; cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
  text-decoration: none; display: block; color: inherit;
}
.article-card:hover { border-color: rgba(201,168,76,0.35); transform: translateY(-4px); }
.article-img {
  width: 100%; height: 220px; background: var(--navy3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 60px; color: rgba(201,168,76,0.12); overflow: hidden;
}
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card.small .article-img { height: 140px; font-size: 40px; }
.article-body { padding: 24px; }
.article-category { font-size: 10px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.article-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.article-card.small .article-title { font-size: 17px; }
.article-excerpt { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ── MISSION ─────────────────────────────────────────────────────────────── */
.mission-section { padding: 140px 0; overflow: hidden; position: relative; }
.mission-bg-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(120px, 16vw, 220px); font-weight: 700;
  color: rgba(201,168,76,0.03); white-space: nowrap;
  user-select: none; pointer-events: none; letter-spacing: -4px;
}
.mission-content { text-align: center; position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 48px; }
.mission-content .section-label { justify-content: center; }
.mission-content .section-label::before { display: none; }
.mission-content .section-label::after { content: ''; width: 24px; height: 1px; background: var(--gold); }
.mission-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 5vw, 72px); font-weight: 300; line-height: 1.15; margin-bottom: 32px; }
.mission-title em { font-style: italic; color: var(--gold); }
.mission-body { font-size: 18px; line-height: 1.8; color: var(--muted); margin-bottom: 48px; }

/* ── CTA SECTION ─────────────────────────────────────────────────────────── */
.cta-section {
  padding: 160px 0; border-top: 1px solid var(--dim);
  text-align: center; overflow: hidden; position: relative;
}
.cta-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(30,74,138,0.15) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-eyebrow { font-size: 11px; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; margin-bottom: 24px; }
.cta-headline { font-family: 'Cormorant Garamond', serif; font-size: clamp(44px, 6vw, 84px); font-weight: 300; line-height: 1.05; margin-bottom: 24px; }
.cta-headline em { font-style: italic; color: var(--gold); }
.cta-sub { font-size: 16px; color: var(--muted); max-width: 440px; margin: 0 auto 48px; line-height: 1.7; }
.cta-actions { display: flex; gap: 16px; justify-content: center; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--dim); padding: 56px 0 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 260px; line-height: 1.6; margin-top: 12px; }
.footer-brand .footer-devanagari { margin-top: 8px; font-size: 12px; color: rgba(201,168,76,0.6); }
.footer-links-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; }
.footer-col h4 { font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--dim); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: var(--muted); }
.footer-socials { display: flex; gap: 16px; }
.social-link {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--dim);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 12px; color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* ── WORDPRESS DEFAULTS ──────────────────────────────────────────────────── */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
p { margin-bottom: 1em; }

/* ── SCROLL REVEAL ───────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-header { padding: 0 24px; }
  .main-navigation ul { gap: 20px; }
  .story-split { grid-template-columns: 1fr; gap: 40px; }
  .chapters-grid { grid-template-columns: 1fr 1fr; }
  .chapters-grid-2 { grid-template-columns: 1fr 1fr; }
  .characters-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header { padding: 0 16px; }
/*   .main-navigation { display: none; } */
  .hero { padding: 120px 6vw 80px; }
  .section-inner { padding: 0 20px; }
  .chapters-grid { grid-template-columns: 1fr; }
  .chapters-grid-2 { grid-template-columns: 1fr; }
  .characters-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .cta-actions, .hero-actions { flex-direction: column; align-items: flex-start; }
}


/* ── ANCHOR OFFSET (compensate for fixed 72px header) ──────────────────── */
/* Every section with an id="" gets this so it doesn't hide under the nav  */
section[id],
div[id].stats-bar {
  scroll-margin-top: 80px;
}

/* ── ACTIVE NAV LINK (JS adds .nav-active class) ───────────────────────── */
.main-navigation ul li a.nav-active {
  color: var(--white);
  position: relative;
}
.main-navigation ul li a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}

/* ── MOBILE HAMBURGER ───────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: transparent; border: none; cursor: pointer;
  padding: 4px; width: 36px; height: 36px;
}
.nav-hamburger span {
  display: block; height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}
/* X state when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-cta       { display: none; }

  .main-navigation {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(6,14,31,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dim);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    z-index: 99;
  }
  .main-navigation.open {
    max-height: 400px;
    padding: 16px 0 24px;
  }
  .main-navigation ul {
    flex-direction: column; gap: 0;
    padding: 0 24px;
  }
  .main-navigation ul li a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--dim);
    color: var(--muted);
  }
  .main-navigation ul li:last-child a { border-bottom: none; }
}
