/* ============================================================
   CONNALL HARPER PHILOSOPHY — "Library at Dusk" Design System
   Ink Navy #1A2B4C | Smoke Gray #5C6470 | Parchment #EAE4D5 | Antique Gold #C9A227
   ============================================================ */

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

:root {
  --navy: #1A2B4C;
  --navy-deep: #0F1A2E;
  --navy-light: #243A5E;
  --gray: #5C6470;
  --gray-light: #8A8F99;
  --parchment: #EAE4D5;
  --parchment-light: #F5F2EB;
  --gold: #C9A227;
  --gold-light: #E0C356;
  --gold-dim: #A68520;
  --white: #FAFAF8;
  --shadow: rgba(26, 43, 76, 0.18);
  --shadow-heavy: rgba(26, 43, 76, 0.35);
}

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

body {
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  background: var(--parchment);
  color: var(--navy);
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--gold-light); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-gray { color: var(--gray); }
.text-parchment { color: var(--parchment); }
.bg-navy { background: var(--navy); }
.bg-parchment { background: var(--parchment); }
.bg-gold { background: var(--gold); }

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  animation: pulse-gold 1.5s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* --- Navigation --- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  padding: 1.2rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.main-nav.scrolled {
  background: rgba(15, 26, 46, 0.97);
  padding: 0.7rem 0;
  box-shadow: 0 2px 20px var(--shadow-heavy);
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 700;
  white-space: nowrap;
}
.nav-brand span {
  color: var(--parchment);
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--parchment);
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-links a.active {
  color: var(--gold);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 9999;
  background: none;
  border: none;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--parchment);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Sections (Parallax) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.1);
  transition: transform 8s ease;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 46, 0.75) 0%,
    rgba(26, 43, 76, 0.85) 50%,
    rgba(15, 26, 46, 0.95) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 2rem;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--parchment);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.hero-content h1 .gold-accent {
  color: var(--gold);
  display: block;
  font-style: italic;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--gray-light);
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  line-height: 1.8;
}
.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 1.5rem auto;
}
.hero-cta {
  display: inline-block;
  padding: 1rem 2.8rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  transition: all 0.4s ease;
  margin-top: 1rem;
}
.hero-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}
.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}

/* --- Section Styles --- */
.section {
  padding: 6rem 0;
  position: relative;
}
.section-dark {
  background: var(--navy);
  color: var(--parchment);
}
.section-mid {
  background: var(--navy-light);
  color: var(--parchment);
}
.section-light {
  background: var(--parchment-light);
}
.section-parchment {
  background: var(--parchment);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
}
.section-header .subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 650px;
  margin: 0 auto;
}
.section-dark .section-header .subtitle {
  color: var(--gray-light);
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* --- Parallax Dividers --- */
.parallax-divider {
  height: 45vh;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 46, 0.7);
}
.parallax-quote {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: center;
  padding: 2rem;
}
.parallax-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--parchment);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.parallax-quote cite {
  color: var(--gold);
  font-size: 0.95rem;
  font-style: normal;
  letter-spacing: 0.05em;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-heavy);
}
.card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(26, 43, 76, 0.3));
}
.card-body {
  padding: 2rem;
}
.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--navy);
}
.card-body p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}
.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* --- Dark Cards --- */
.card-dark {
  background: var(--navy-light);
  border: 1px solid rgba(201, 162, 39, 0.15);
}
.card-dark .card-body h3 { color: var(--parchment); }
.card-dark .card-body p { color: var(--gray-light); }

/* --- Quote Block --- */
.quote-block {
  background: var(--navy);
  border-left: 4px solid var(--gold);
  padding: 2.5rem 3rem;
  margin: 3rem 0;
  border-radius: 0 8px 8px 0;
  position: relative;
}
.quote-block::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
}
.quote-block p {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--parchment);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.quote-block cite {
  color: var(--gold);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
}
.quote-block.light {
  background: var(--parchment-light);
  border-left-color: var(--gold);
}
.quote-block.light p { color: var(--navy); }
.quote-block.light::before { color: var(--gold); opacity: 0.15; }

/* --- Stats Row --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 3rem 0;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-light);
  margin-top: 0.5rem;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.two-col-text p {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}
.section-dark .two-col-text p {
  color: var(--gray-light);
}
.two-col-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
  position: relative;
}
.two-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 350px;
}
.img-placeholder {
  width: 100%;
  min-height: 350px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  text-align: center;
  padding: 2rem;
  border: 2px dashed rgba(201, 162, 39, 0.3);
}

/* --- Pillar Icon Circles --- */
.pillar-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}

/* --- Tips List --- */
.tips-list {
  list-style: none;
  padding: 0;
}
.tips-list li {
  padding: 1rem 0 1rem 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(92, 100, 112, 0.15);
  font-size: 1rem;
  line-height: 1.7;
}
.tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.tips-list li:last-child { border-bottom: none; }
.tips-list li strong { color: var(--gold-dim); }

/* --- Data Visualization Containers --- */
.chart-container {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px var(--shadow);
  margin: 2rem 0;
}
.chart-container h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

/* Bar Chart */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bar-label {
  min-width: 140px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}
.bar-track {
  flex: 1;
  height: 28px;
  background: var(--parchment);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transition: width 1.5s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--parchment);
}

/* Donut Chart (CSS) */
.donut-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}
.donut-center {
  position: absolute;
  inset: 30%;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  margin-bottom: 3rem;
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--navy);
  z-index: 2;
}
.timeline-content {
  background: var(--navy-light);
  padding: 1.8rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.15);
  max-width: 420px;
}
.timeline-content h4 {
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.timeline-content p {
  color: var(--gray-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  color: var(--gray-light);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 350px;
}
.footer-links h4 {
  color: var(--parchment);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--gray-light);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
}
.footer-bottom a { color: var(--gold); }

/* --- Quiz Specific --- */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}
.quiz-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.quiz-progress-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(201, 162, 39, 0.2);
  transition: background 0.4s ease;
}
.quiz-progress-dot.done {
  background: var(--gold);
}
.quiz-question {
  display: none;
  animation: fadeIn 0.5s ease;
}
.quiz-question.active {
  display: block;
}
.quiz-question h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.quiz-question p.q-context {
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.quiz-option {
  padding: 1.2rem 1.5rem;
  border: 2px solid rgba(26, 43, 76, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  background: var(--white);
}
.quiz-option:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.05);
}
.quiz-option.selected {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  font-weight: 600;
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
.quiz-btn {
  padding: 0.8rem 2rem;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: 'Source Sans 3', sans-serif;
}
.quiz-btn:hover {
  background: var(--gold);
  color: var(--navy);
}
.quiz-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.quiz-btn.primary {
  background: var(--gold);
  color: var(--navy);
}
.quiz-btn.primary:hover {
  background: var(--gold-light);
}

/* Results */
.quiz-results {
  display: none;
  text-align: center;
}
.quiz-results.active {
  display: block;
  animation: fadeIn 0.6s ease;
}
.score-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 6px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  background: var(--navy);
}
.score-circle .score-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.score-circle .score-label {
  font-size: 0.8rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}
.pillar-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.pillar-score-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px var(--shadow);
}
.pillar-score-item h4 {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.pillar-score-bar {
  height: 6px;
  background: var(--parchment);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.pillar-score-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transition: width 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 2rem; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 4rem;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-dot { left: 2rem; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -4px 0 24px var(--shadow-heavy);
    gap: 0;
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    font-size: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    width: 100%;
  }
  .nav-links a::after { display: none; }
  .stats-row { gap: 2rem; }
  .stat-number { font-size: 2.5rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .section { padding: 4rem 0; }
  .quote-block { padding: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .section-header h2 { font-size: 1.8rem; }
  .pillar-scores { grid-template-columns: 1fr 1fr; }
}

/* --- Print --- */
@media print {
  .main-nav, .scroll-indicator, .preloader, .hamburger { display: none; }
  .hero { min-height: auto; padding: 2rem 0; }
  .parallax-divider { height: auto; background-attachment: scroll; }
  .section { padding: 2rem 0; }
  body { color: #000; background: #fff; }
}
