/* =========================================================
   BALEN SHAH — Engineering a New Nepal
   Premium Light Theme — Warm Paper + Nepal Accent
   ========================================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Light Theme Palette */
  --bg-main:       #F7F4EE;       /* warm paper white */
  --bg-card:       #FFFFFF;
  --bg-section:    #EDE9E0;       /* warm off-white section */
  --bg-dark:       #1A1A2E;       /* deep navy — hero, intro */

  --text-primary:  #0F1117;       /* near-black */
  --text-secondary:#3D3D3D;
  --text-muted:    #6B6B7B;

  --red:           #C8102E;       /* Nepal red (slightly deeper for light bg) */
  --blue:          #003893;       /* Nepal blue */
  --gold:          #A0752A;       /* gold (deeper for light bg contrast) */
  --gold-light:    #C8A45D;       /* gold for dark areas */

  --border:        rgba(0,0,0,0.09);
  --border-strong: rgba(0,0,0,0.15);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.12);

  --glass:         rgba(255,255,255,0.7);
  --glass-dark:    rgba(11,16,32,0.85);

  --font-en:       'Inter', 'Manrope', system-ui, sans-serif;
  --font-np:       'Noto Sans Devanagari', sans-serif;
  --section-pad:   clamp(60px, 8vw, 110px);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-en);
  background: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: var(--red); color: #fff; }

/* ---- SCROLL PROGRESS ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--gold));
  z-index: 9999; transition: width 0.1s linear;
}

/* ---- CINEMATIC INTRO (stays dark for drama) ---- */
#intro-screen {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--bg-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
}
#intro-screen .intro-word {
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 800; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  color: #F7F4EE; line-height: 1;
}
#intro-screen .intro-word.accent { color: #E8344A; }
#intro-screen .intro-word.gold   { color: #C8A45D; }
#intro-screen .intro-reveal {
  text-align: center; opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease; margin-top: 24px;
}
#intro-screen .intro-reveal h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700; color: #F7F4EE; letter-spacing: -0.01em;
}
#intro-screen .intro-reveal p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #C8A45D; letter-spacing: 0.15em;
  text-transform: uppercase; margin-top: 8px;
}
#intro-screen.hidden {
  opacity: 0; pointer-events: none;
  transition: opacity 0.8s ease 0.3s;
}

/* ---- BLUEPRINT GRID ---- */
.blueprint-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.blueprint-bg::before {
  content: '';
  position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(0,56,147,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,56,147,0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: blueprint-drift 40s linear infinite;
}
@keyframes blueprint-drift {
  from { transform: translate(0,0); }
  to   { transform: translate(60px, 60px); }
}

/* ---- NAVBAR ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 clamp(16px, 4vw, 60px); height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247,244,238,0.88);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}
#navbar.scrolled {
  height: 56px;
  background: rgba(247,244,238,0.97);
  box-shadow: var(--shadow-sm);
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand .brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 10px rgba(200,16,46,0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.7; }
}
.nav-brand span {
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-primary);
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 6px 10px; border-radius: 4px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--red); background: rgba(200,16,46,0.06);
}
.nav-lang { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lang-btn {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 4px;
  border: 1px solid var(--border-strong); color: var(--text-muted);
  transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active { color: var(--blue); border-color: var(--blue); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; width: 24px; cursor: pointer;
}
.nav-hamburger span {
  display: block; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: all 0.3s ease;
}
.mobile-nav {
  display: none; position: fixed; inset: 64px 0 0; z-index: 999;
  background: rgba(247,244,238,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.2rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted); transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--red); }

/* ---- SIDE CHAPTER NAV ---- */
#chapter-nav {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%);
  z-index: 800; display: flex; flex-direction: column; gap: 10px;
}
.ch-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(0,0,0,0.18); cursor: pointer;
  transition: all 0.3s; position: relative;
}
.ch-dot::after {
  content: attr(data-label);
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap; opacity: 0; transition: opacity 0.2s;
}
.ch-dot:hover::after, .ch-dot.active::after { opacity: 1; }
.ch-dot:hover, .ch-dot.active { background: var(--red); transform: scale(1.6); }

/* ---- HERO (dark bg stays for cinematic feel) ---- */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px clamp(20px, 6vw, 100px) clamp(60px, 8vw, 100px);
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,56,147,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(200,16,46,0.10) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px); align-items: center;
  max-width: 1300px; margin: 0 auto; width: 100%;
}
.hero-text .eyebrow {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-text .eyebrow::before {
  content: ''; display: block; width: 40px; height: 1px; background: var(--gold-light);
}
.hero-text h1 {
  font-size: clamp(2.5rem, 5.5vw, 5.5rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 16px; color: #F7F4EE;
}
.hero-text h1 .name-quote { color: var(--gold-light); }
.hero-text .subtitle {
  font-size: clamp(0.75rem, 1.2vw, 0.9rem); color: rgba(247,244,238,0.55);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; line-height: 1.8;
}
.hero-text .subtitle span { color: rgba(247,244,238,0.9); }
.hero-text .tagline {
  font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 800;
  color: #E8344A; letter-spacing: -0.01em; margin-bottom: 20px;
}
.hero-text .hero-desc {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem); color: rgba(247,244,238,0.65);
  line-height: 1.75; max-width: 480px; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 28px; border-radius: 6px; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--red); color: #fff; border: 2px solid var(--red);
  transition: all 0.3s;
}
.btn-primary:hover { background: transparent; color: var(--red); }
.btn-secondary {
  padding: 14px 28px; border-radius: 6px; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: 2px solid rgba(247,244,238,0.25); color: rgba(247,244,238,0.85);
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--gold-light); color: var(--gold-light); }
.hero-image-wrap { position: relative; }
.hero-image-wrap .portrait-frame {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 3/4; max-height: 600px;
  border: 2px solid rgba(200,164,93,0.25);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.hero-image-wrap .portrait-frame img,
.hero-image-wrap .portrait-frame .img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
}
.img-placeholder {
  background: rgba(255,255,255,0.06); display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: rgba(247,244,238,0.4);
  font-size: 0.8rem; text-align: center; padding: 20px;
}
.hero-image-wrap .portrait-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse at center, rgba(0,56,147,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  position: absolute; bottom: -16px; left: -16px;
  background: #fff; border: 1px solid rgba(200,164,93,0.4);
  border-radius: 10px; padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
}
.hero-badge .badge-icon { font-size: 1.5rem; }
.hero-badge .badge-text {
  font-size: 0.7rem; color: var(--gold); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.hero-badge .badge-sub { font-size: 0.62rem; color: var(--text-muted); }

/* ---- QUICK FACTS STRIP ---- */
#quick-facts {
  padding: 0 clamp(20px, 6vw, 100px);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.facts-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.fact-card {
  padding: 28px 20px; border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.fact-card:last-child { border-right: none; }
.fact-card:hover { background: #F7F4EE; }
.fact-label {
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.fact-value { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.fact-value .highlight { color: var(--red); }

/* ---- SECTION TITLES ---- */
.section-header { text-align: center; margin-bottom: clamp(40px, 6vw, 80px); }
.section-header .section-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 12px; font-weight: 700;
}
.section-header .section-eyebrow::before,
.section-header .section-eyebrow::after {
  content: ''; display: block; width: 30px; height: 1px;
  background: var(--gold); opacity: 0.5;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3.5rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; color: var(--text-primary);
}
.section-header p {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem); color: var(--text-muted);
  line-height: 1.75; margin-top: 16px; max-width: 600px;
  margin-left: auto; margin-right: auto;
}

/* ---- JOURNEY TIMELINE ---- */
#journey {
  padding: var(--section-pad) clamp(20px, 6vw, 100px);
  background: var(--bg-main); position: relative; overflow: hidden;
}
.timeline-wrap {
  max-width: 900px; margin: 0 auto; position: relative;
}
.timeline-wrap::before {
  content: ''; position: absolute; left: 32px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--blue) 20%, var(--red) 60%, var(--gold) 100%);
}
.timeline-item {
  display: flex; gap: 40px; margin-bottom: 70px;
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot {
  flex-shrink: 0; width: 64px; height: 64px;
  border-radius: 50%; border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; position: relative; z-index: 1;
  background: var(--bg-main); box-shadow: var(--shadow-sm);
}
.timeline-dot.voice    { color: var(--gold); }
.timeline-dot.engineer { color: var(--blue); }
.timeline-dot.city     { color: var(--red); }
.timeline-dot.nation   { color: var(--text-primary); }
.timeline-body { flex: 1; padding-top: 10px; }
.timeline-chapter {
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px; font-weight: 600;
}
.timeline-body h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 12px; color: var(--text-primary);
}
.timeline-body p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid var(--border-strong); color: var(--text-muted);
  background: var(--bg-card);
}

/* ---- RAGE → TRUST ---- */
#rage-trust {
  padding: var(--section-pad) clamp(20px, 6vw, 100px);
  background: var(--bg-dark); position: relative; overflow: hidden;
}
#rage-trust .section-header h2 { color: #F7F4EE; }
#rage-trust .section-header .section-eyebrow { color: var(--gold-light); }
#rage-trust .section-header .section-eyebrow::before,
#rage-trust .section-header .section-eyebrow::after { background: var(--gold-light); }
.rage-trust-inner { max-width: 1100px; margin: 0 auto; }
.word-transform {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px;
}
.rage-word, .trust-word {
  font-size: clamp(0.85rem, 1.5vw, 1rem); font-weight: 700;
  letter-spacing: 0.05em; padding: 10px 20px; border-radius: 6px;
  opacity: 0; transform: scale(0.8); transition: all 0.5s ease;
}
.rage-word {
  background: rgba(200,16,46,0.15); color: #F08090;
  border: 1px solid rgba(200,16,46,0.3);
}
.trust-word {
  background: rgba(0,56,147,0.15); color: #7AABFF;
  border: 1px solid rgba(0,56,147,0.3);
}
.rage-word.visible, .trust-word.visible { opacity: 1; transform: scale(1); }
.transform-arrow {
  width: 100%; text-align: center; margin: 20px 0;
  font-size: 2rem; color: var(--gold-light); opacity: 0;
  transition: opacity 0.5s ease 0.5s;
}
.transform-arrow.visible { opacity: 1; }
.rage-trust-copy {
  text-align: center; max-width: 700px; margin: 40px auto 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem); color: rgba(247,244,238,0.65);
  line-height: 1.8; font-style: italic;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}
.rage-trust-copy.visible { opacity: 1; transform: translateY(0); }

/* ---- ENGINEER MINDSET ---- */
#engineer {
  padding: var(--section-pad) clamp(20px, 6vw, 100px);
  background: var(--bg-section); position: relative;
}
.engineer-intro {
  max-width: 700px; margin: 0 auto 60px; text-align: center;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem); color: var(--text-secondary); line-height: 1.8;
}
.engineer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.engineer-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.3s;
  opacity: 0; transform: translateY(20px);
}
.engineer-card.visible { opacity: 1; transform: translateY(0); }
.engineer-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px);
  border-color: rgba(0,56,147,0.25);
}
.engineer-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.ec-term {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; font-weight: 700;
}
.ec-icon { font-size: 2rem; margin-bottom: 14px; }
.ec-meaning {
  font-size: 1.4rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em;
}
.ec-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; line-height: 1.6; }

/* ---- KATHMANDU CHAPTER ---- */
#kathmandu {
  padding: var(--section-pad) clamp(20px, 6vw, 100px);
  background: var(--bg-main); position: relative; overflow: hidden;
}
.ktm-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.ktm-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s, border-color 0.3s;
}
.ktm-card.visible { opacity: 1; transform: translateY(0); }
.ktm-card:hover {
  box-shadow: var(--shadow-md); border-color: rgba(200,16,46,0.2);
  transform: translateY(-3px);
}
.ktm-card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.ktm-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.ktm-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.ktm-note {
  max-width: 800px; margin: 40px auto 0;
  padding: 20px 24px; border-left: 3px solid var(--gold);
  background: rgba(160,117,42,0.06); border-radius: 0 8px 8px 0;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; font-style: italic;
}

/* ---- QUIET DISRUPTION ---- */
#disruption {
  padding: var(--section-pad) clamp(20px, 6vw, 100px);
  background: var(--bg-dark); position: relative; overflow: hidden;
}
#disruption .section-header h2 { color: #F7F4EE; }
#disruption .section-header .section-eyebrow { color: var(--gold-light); }
#disruption .section-header .section-eyebrow::before,
#disruption .section-header .section-eyebrow::after { background: var(--gold-light); }
.disruption-inner { max-width: 800px; margin: 0 auto; }
.disruption-block {
  margin-bottom: 28px; font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(247,244,238,0.65); line-height: 1.85;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.disruption-block.visible { opacity: 1; transform: translateY(0); }
.disruption-final {
  font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; color: #F7F4EE;
  border-left: 3px solid var(--red); padding-left: 24px; margin-top: 40px; line-height: 1.5;
}

/* ---- WAVEFORM ---- */
.waveform { display: flex; align-items: center; gap: 3px; height: 40px; }
.waveform span {
  display: block; width: 3px; border-radius: 3px; background: var(--gold);
  animation: wave 1.2s ease-in-out infinite;
}
.waveform span:nth-child(1)  { animation-delay: 0s;    height: 20px; }
.waveform span:nth-child(2)  { animation-delay: 0.1s;  height: 35px; }
.waveform span:nth-child(3)  { animation-delay: 0.2s;  height: 25px; }
.waveform span:nth-child(4)  { animation-delay: 0.3s;  height: 40px; }
.waveform span:nth-child(5)  { animation-delay: 0.4s;  height: 30px; }
.waveform span:nth-child(6)  { animation-delay: 0.5s;  height: 20px; }
.waveform span:nth-child(7)  { animation-delay: 0.4s;  height: 35px; }
.waveform span:nth-child(8)  { animation-delay: 0.3s;  height: 28px; }
.waveform span:nth-child(9)  { animation-delay: 0.2s;  height: 15px; }
.waveform span:nth-child(10) { animation-delay: 0.1s;  height: 32px; }
.waveform span:nth-child(11) { animation-delay: 0s;    height: 22px; }
.waveform span:nth-child(12) { animation-delay: 0.1s;  height: 38px; }
@keyframes wave {
  0%,100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.3); }
}

/* ---- NATIONAL CHAPTER ---- */
#national {
  padding: var(--section-pad) clamp(20px, 6vw, 100px);
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-main) 100%);
}
.national-intro {
  max-width: 700px; margin: 0 auto 60px; text-align: center;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem); color: var(--text-secondary); line-height: 1.8;
}
.national-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.national-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 22px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: var(--shadow-sm); transition: all 0.3s;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s, border-color 0.3s;
}
.national-card.visible { opacity: 1; transform: translateY(0); }
.national-card:hover { box-shadow: var(--shadow-md); border-color: rgba(0,56,147,0.2); }
.nc-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.nc-label { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.nc-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ---- BURDEN OF EXPECTATION ---- */
#burden {
  padding: var(--section-pad) clamp(20px, 6vw, 100px);
  background: var(--bg-card); text-align: center;
}
.burden-sub {
  font-size: clamp(1rem, 1.8vw, 1.3rem); color: var(--text-muted);
  font-style: italic; margin-bottom: 48px;
}
.burden-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.burden-card {
  background: var(--bg-main); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 28px; text-align: left;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}
.burden-card.visible { opacity: 1; transform: translateY(0); }
.burden-card:hover { box-shadow: var(--shadow-md); }
.burden-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}
.burden-card::after {
  content: '?'; position: absolute; right: 16px; bottom: 8px;
  font-size: 5rem; font-weight: 900; color: rgba(0,0,0,0.03); line-height: 1;
}
.burden-card p {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--text-primary); line-height: 1.6; font-weight: 600;
}

/* ---- MEDIA SECTION ---- */
#media {
  padding: var(--section-pad) clamp(20px, 6vw, 100px);
  background: var(--bg-section);
}
.media-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.media-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: all 0.3s;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}
.media-card.visible { opacity: 1; transform: translateY(0); }
.media-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.media-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; font-weight: 700;
  margin-bottom: 16px; align-self: flex-start;
}
.media-badge.intl     { background: rgba(0,56,147,0.08);  color: var(--blue);  border: 1px solid rgba(0,56,147,0.2); }
.media-badge.official { background: rgba(160,117,42,0.1); color: var(--gold);  border: 1px solid rgba(160,117,42,0.25); }
.media-badge.analysis { background: rgba(200,16,46,0.07); color: var(--red);   border: 1px solid rgba(200,16,46,0.2); }
.media-publisher {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-primary); margin-bottom: 10px;
}
.media-title {
  font-size: 0.92rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.5; flex: 1; margin-bottom: 14px;
}
.media-date { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 16px; }
.media-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; color: var(--text-muted); transition: color 0.2s; margin-top: auto;
}
.media-link:hover { color: var(--red); }
.media-link svg { width: 12px; height: 12px; }

/* ---- SOCIAL SECTION ---- */
#social { padding: var(--section-pad) clamp(20px, 6vw, 100px); background: var(--bg-main); }
.social-grid {
  max-width: 800px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.social-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; text-align: center;
  box-shadow: var(--shadow-sm); transition: all 0.3s;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(200,16,46,0.2); }
.social-icon { font-size: 2rem; }
.social-name {
  font-size: 0.78rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.social-handle { font-size: 0.72rem; color: var(--text-muted); }
.social-link-btn {
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; color: var(--text-muted);
  padding: 6px 14px; border: 1px solid var(--border-strong);
  border-radius: 4px; transition: all 0.2s; display: inline-block;
}
.social-link-btn:hover { color: var(--red); border-color: var(--red); }
.social-disclaimer {
  text-align: center; margin-top: 24px; max-width: 600px; margin: 24px auto 0;
  font-size: 0.75rem; color: var(--text-muted); font-style: italic;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-card);
}

/* ---- PUBLIC CONTACT ---- */
#contact { padding: var(--section-pad) clamp(20px, 6vw, 100px); background: var(--bg-section); }
.contact-inner { max-width: 900px; margin: 0 auto; }
.contact-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(160,117,42,0.35);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 40px; font-weight: 700;
  background: rgba(160,117,42,0.06);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.contact-card:hover { box-shadow: var(--shadow-md); border-color: rgba(0,56,147,0.2); }
.contact-card h4 {
  font-size: 0.85rem; font-weight: 800; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.contact-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.contact-row .c-icon { font-size: 1rem; flex-shrink: 0; }
.contact-row a, .contact-row span { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.4; }
.contact-row a:hover { color: var(--red); }
.contact-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); padding: 10px 18px;
  border: 2px solid rgba(0,56,147,0.3); border-radius: 6px; transition: all 0.2s;
}
.contact-btn:hover { border-color: var(--blue); background: rgba(0,56,147,0.05); }

/* ---- GALLERY ---- */
#gallery { padding: var(--section-pad) clamp(20px, 6vw, 100px); background: var(--bg-main); }
.gallery-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.gallery-item {
  border-radius: 10px; overflow: hidden;
  background: var(--bg-section); border: 1px solid var(--border);
  aspect-ratio: 1; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .img-placeholder {
  height: 100%; min-height: 180px;
  background: var(--bg-section);
  color: var(--text-muted);
}
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 0.72rem; color: #fff; opacity: 0; transition: opacity 0.3s;
}
.gallery-item { position: relative; }
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ---- AI BUILD ---- */
#ai-build {
  padding: var(--section-pad) clamp(20px, 6vw, 100px);
  background: var(--bg-dark); position: relative; overflow: hidden;
}
#ai-build .section-header h2 { color: #F7F4EE; }
#ai-build .section-header .section-eyebrow { color: var(--gold-light); }
#ai-build .section-header .section-eyebrow::before,
#ai-build .section-header .section-eyebrow::after { background: var(--gold-light); }
#ai-build .section-header p { color: rgba(247,244,238,0.6); }
.ai-build-inner { max-width: 1000px; margin: 0 auto; }
.ai-pipeline { display: flex; flex-wrap: wrap; gap: 0; margin: 40px 0; }
.pipeline-step {
  flex: 1; min-width: 120px; padding: 20px 16px; text-align: center;
  position: relative; opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.pipeline-step:last-child { border-right: none; }
.pipeline-step.visible { opacity: 1; transform: translateY(0); }
.pipeline-step::after {
  display: none; /* removed arrow, using border */
}
.ps-icon { font-size: 1.5rem; margin-bottom: 8px; }
.ps-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: #F7F4EE;
}
.ps-sub { font-size: 0.65rem; color: rgba(247,244,238,0.45); margin-top: 4px; }
.ai-note {
  text-align: center; padding: 24px;
  border: 1px solid rgba(200,164,93,0.2); border-radius: 10px;
  background: rgba(200,164,93,0.04);
  font-size: 0.88rem; color: rgba(247,244,238,0.6); line-height: 1.7;
}
.ai-note strong { color: var(--gold-light); }

/* ---- SOURCES ---- */
#sources { padding: var(--section-pad) clamp(20px, 6vw, 100px); background: var(--bg-section); }
.sources-inner { max-width: 900px; margin: 0 auto; }
#sources-list { display: flex; flex-direction: column; gap: 12px; }
.source-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, border-color 0.2s;
}
.source-item:hover { box-shadow: var(--shadow-md); border-color: rgba(0,56,147,0.15); }
.source-num {
  font-size: 0.7rem; font-weight: 800; color: var(--text-muted);
  flex-shrink: 0; padding-top: 2px; min-width: 24px;
}
.source-body { flex: 1; }
.source-publisher {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
}
.source-title { font-size: 0.88rem; color: var(--text-primary); line-height: 1.4; margin-bottom: 6px; }
.source-date { font-size: 0.72rem; color: var(--text-muted); }
.source-link {
  flex-shrink: 0; font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 700; color: var(--text-muted);
  padding: 6px 12px; border: 1px solid var(--border-strong);
  border-radius: 4px; transition: all 0.2s; align-self: center;
}
.source-link:hover { color: var(--red); border-color: var(--red); }

/* ---- FOOTER ---- */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px clamp(20px, 6vw, 100px);
}
.footer-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
.footer-brand .name { font-size: 1rem; font-weight: 800; color: #F7F4EE; letter-spacing: -0.01em; }
.footer-brand .tagline { font-size: 0.75rem; color: rgba(247,244,238,0.45); margin-top: 4px; }
.footer-disclaimer {
  font-size: 0.7rem; color: rgba(247,244,238,0.4); line-height: 1.6;
  max-width: 500px; text-align: right;
  padding: 12px 16px; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px; font-style: italic;
}
.footer-bar {
  max-width: 1300px; margin: 24px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-bar p { font-size: 0.72rem; color: rgba(247,244,238,0.35); }
.footer-bar .built-with {
  font-size: 0.68rem; color: rgba(247,244,238,0.35);
  display: flex; align-items: center; gap: 6px;
}
.footer-bar .built-with span { color: var(--gold-light); }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- LIGHTBOX ---- */
#lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.9); display: none;
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
#lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 2rem; color: rgba(255,255,255,0.5); cursor: pointer; transition: color 0.2s;
}
#lightbox-close:hover { color: #fff; }

/* ---- PARALLAX RINGS ---- */
.parallax-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,56,147,0.12); pointer-events: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .fact-card:nth-child(3) { border-right: none; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .engineer-grid { grid-template-columns: repeat(2, 1fr); }
  .ktm-grid { grid-template-columns: repeat(2, 1fr); }
  .national-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-image-wrap { order: -1; max-width: 380px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-disclaimer { text-align: left; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; }
  #chapter-nav { display: none; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-card:nth-child(2) { border-right: none; }
  .engineer-grid, .ktm-grid, .national-grid, .burden-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-pipeline { gap: 12px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .blueprint-bg::before { animation: none !important; }
  #intro-screen { display: none !important; }
}
