/* ============================================================
   Design tokens — ported from the original Tailwind theme
   (app/frontend/src/index.css) so colors match exactly.
   ============================================================ */
:root {
  --background: 30 5% 5%;
  --foreground: 40 10% 93%;
  --card: 30 5% 8%;
  --muted-foreground: 30 8% 55%;
  --muted-foreground-2: 30 8% 60%;
  --muted-foreground-3: 30 8% 65%;
  --border: 30 5% 16%;
  --gold: 42 50% 57%;
  --gold-hover: 42 50% 62%;
  --dim-border: 30 5% 25%;
  --radius: 0.5rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background-color: hsl(var(--background));
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }
h1 { font-size: 2.25rem; font-weight: 700; line-height: 1.1; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
em { font-style: normal; }

.font-sora { font-family: 'Sora', system-ui, -apple-system, sans-serif; }
.gold-text { color: hsl(var(--gold)); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(30 5% 20%); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: hsl(30 5% 28%); }

/* ============================================================
   Layout helpers
   ============================================================ */
.section-padding {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
.section-intro { max-width: 48rem; margin-bottom: 2.5rem; }
.section-title { font-size: 1.75rem; font-weight: 700; color: hsl(var(--foreground)); line-height: 1.15; }
.section-title--center { text-align: center; }
.section-lede { margin-top: 1rem; font-size: 1rem; line-height: 1.6; color: hsl(var(--muted-foreground-3)); }
.section-lede--center { text-align: center; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--gold));
  margin-bottom: 0.75rem;
  display: block;
}

@media (min-width: 640px) {
  .section-padding { padding-left: 1.5rem; padding-right: 1.5rem; padding-top: 5rem; padding-bottom: 5rem; }
  .section-title { font-size: 2.25rem; }
}
@media (min-width: 768px) {
  .section-padding { padding-top: 7rem; padding-bottom: 7rem; }
  .section-title { font-size: 2.75rem; }
}
@media (min-width: 1024px) {
  .section-padding { padding-left: 2rem; padding-right: 2rem; padding-top: 9rem; padding-bottom: 9rem; }
  .section-title { font-size: 3rem; }
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
@media (hover: hover) {
  .card-hover:hover { transform: translateY(-4px); box-shadow: 0 8px 30px hsl(var(--gold) / 0.08); }
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 9999px;
  background: hsl(30 5% 14%);
  color: hsl(30 8% 65%);
  border: 1px solid hsl(30 5% 18%);
}
@media (min-width: 640px) { .tag-pill { font-size: 0.75rem; padding: 0.3rem 0.75rem; } }

.scroll-indicator {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 50;
  background: hsl(var(--gold));
  transform-origin: left;
  transform: scaleX(0);
}

.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.main { position: relative; z-index: 10; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: hsl(var(--gold)); color: hsl(var(--background)); }
.btn--primary:hover { background: hsl(var(--gold-hover)); }
.btn--outline { border-color: hsl(var(--dim-border)); color: hsl(var(--foreground)); }
.btn--outline:hover { border-color: hsl(var(--gold)); color: hsl(var(--gold)); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; width: 100%; justify-content: center; }
@media (min-width: 640px) { .btn--lg { width: auto; } }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
.nav--scrolled {
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 640px) { .nav__inner { padding: 0 1.5rem; } }
@media (min-width: 768px) { .nav__inner { height: 5rem; } }
@media (min-width: 1024px) { .nav__inner { padding: 0 2rem; } }

.nav__brand { font-family: 'Sora', sans-serif; font-size: 1.125rem; font-weight: 700; }
.nav__links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav__links { display: flex; } }

.nav__link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: hsl(var(--muted-foreground-3));
  transition: color 0.2s ease;
}
.nav__link:hover { color: hsl(var(--foreground)); }
.nav__link.is-active { color: hsl(var(--gold)); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: hsl(var(--gold));
}

.nav__hamburger {
  display: inline-flex;
  background: none;
  border: none;
  padding: 0.5rem;
  color: hsl(var(--muted-foreground-3));
}
.nav__hamburger:hover { color: hsl(var(--foreground)); }
@media (min-width: 768px) { .nav__hamburger { display: none; } }

.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav__overlay.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 768px) { .nav__overlay { display: none; } }

.nav__mobile {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 50;
  width: 18rem;
  max-width: 85vw;
  background: hsl(30 5% 8%);
  border-left: 1px solid hsl(var(--border));
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.nav__mobile.is-open { transform: translateX(0); }
@media (min-width: 768px) { .nav__mobile { display: none; } }

.nav__mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}
.nav__close-btn { background: none; border: none; color: hsl(var(--muted-foreground-3)); padding: 0.5rem; }
.nav__close-btn:hover { color: hsl(var(--foreground)); }
.nav__mobile-links { display: flex; flex-direction: column; padding: 1rem; gap: 0.25rem; }
.nav__mobile-link {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground-3));
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav__mobile-link:hover { color: hsl(var(--foreground)); background: hsl(30 5% 12%); }
.nav__mobile-link.is-active { color: hsl(var(--gold)); background: hsl(30 5% 14%); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
}
@media (min-width: 768px) { .hero { padding-top: 10rem; } }

.hero__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 7fr 5fr; gap: 3rem; } }

.hero__content { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .hero__content { gap: 2rem; } }

.hero-tagline--full { display: none; }
.hero-tagline--short { display: inline; }
@media (min-width: 640px) {
  .hero-tagline--full { display: inline; }
  .hero-tagline--short { display: none; }
}

.hero__title { display: flex; flex-direction: column; }
.hero__name { font-size: 3rem; font-weight: 700; line-height: 1; color: hsl(var(--foreground)); }
.hero__name--gold { color: hsl(var(--gold)); margin-top: 0.25rem; }
@media (min-width: 640px) { .hero__name { font-size: 3.75rem; } }
@media (min-width: 768px) { .hero__name { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero__name { font-size: 6rem; } }

.hero__subtitle { max-width: 36rem; font-size: 1rem; line-height: 1.6; color: hsl(var(--muted-foreground-3)); }
@media (min-width: 640px) { .hero__subtitle { font-size: 1.125rem; } }
@media (min-width: 768px) { .hero__subtitle { font-size: 1.25rem; } }

.hero__stats { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-top: 0.5rem; }
@media (min-width: 640px) { .hero__stats { gap: 2rem; } }
@media (min-width: 768px) { .hero__stats { gap: 3rem; } }
.stat__value { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 640px) { .stat__value { font-size: 1.875rem; } }
@media (min-width: 768px) { .stat__value { font-size: 2.25rem; } }
.stat__label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
@media (min-width: 640px) { .stat__label { font-size: 0.875rem; } }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.5rem; }
@media (min-width: 640px) { .hero__cta { gap: 1rem; } }

.hero__location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  padding-top: 0.5rem;
}
@media (min-width: 640px) { .hero__location { font-size: 0.875rem; gap: 0.75rem; } }
.hero__location-dot { color: hsl(var(--dim-border)); }

.hero__badge { display: none; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .hero__badge { display: flex; } }
.hero__badge-rings { position: relative; width: 18rem; height: 18rem; }
.hero__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid hsl(var(--gold) / 0.15); }
.hero__ring--2 { inset: 1rem; border-color: hsl(var(--gold) / 0.1); }
.hero__ring--3 { inset: 2rem; border-color: hsl(var(--gold) / 0.07); }
.hero__badge-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.hero__badge-initials { font-size: 3.75rem; font-weight: 700; }
.hero__badge-label { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-top: 0.5rem; }

.hero__scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: hsl(30 8% 45%);
}
.hero__scroll-cue span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.bounce { animation: bounce 1.4s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   Cards shared by About / Timeline / Leadership
   ============================================================ */
.pillar-card, .principle-card, .timeline-card, .article-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 1.25rem;
}
@media (min-width: 640px) { .pillar-card, .timeline-card { padding: 1.5rem; } }
@media (min-width: 768px) { .pillar-card { padding: 2rem; } }

.pillar-card__icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.pillar-card__title { font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.pillar-card__desc { color: hsl(30 8% 60%); line-height: 1.6; font-size: 0.875rem; margin-bottom: 1.25rem; }

/* ============================================================
   Timeline
   ============================================================ */
.timeline-track { position: relative; }
.timeline-line {
  position: absolute;
  left: 15px; top: 0; bottom: 0;
  width: 1px;
  background: hsl(var(--border));
}
@media (min-width: 768px) { .timeline-line { left: 31px; } }
.timeline-line__fill {
  position: absolute; inset: 0;
  background: hsl(var(--gold) / 0.4);
  transform-origin: top;
}
.timeline-list { display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 768px) { .timeline-list { gap: 3.5rem; } }

.timeline-milestone { position: relative; padding-left: 2.5rem; }
@media (min-width: 768px) { .timeline-milestone { padding-left: 4rem; } }

.timeline-dot {
  position: absolute;
  left: 7px; top: 0.5rem;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: hsl(var(--gold));
  border: 2px solid hsl(var(--background));
  z-index: 1;
}
@media (min-width: 768px) { .timeline-dot { left: 23px; } }

.timeline-milestone__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.timeline-era {
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  background: hsl(var(--gold) / 0.15);
  color: hsl(var(--gold));
}
.timeline-location { font-size: 0.8rem; color: hsl(30 8% 50%); }
.timeline-card__title { font-size: 1rem; font-weight: 600; color: hsl(var(--foreground)); }
@media (min-width: 768px) { .timeline-card__title { font-size: 1.25rem; } }
.timeline-card__org { font-size: 0.8rem; margin-top: 0.25rem; margin-bottom: 0.75rem; }
.timeline-card__desc { color: hsl(30 8% 60%); line-height: 1.6; font-size: 0.85rem; margin-bottom: 1rem; }

/* ============================================================
   Leadership
   ============================================================ */
.leadership-story {
  max-width: 48rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: hsl(30 8% 60%);
  line-height: 1.65;
  font-size: 0.95rem;
}
.leadership-story__title { font-size: 1.25rem; font-weight: 600; color: hsl(var(--foreground)); }
@media (min-width: 768px) { .leadership-story__title { font-size: 1.5rem; } }
.leadership-story__closing { color: hsl(30 8% 55%); }

.principle-card__icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.principle-card__title { font-size: 1rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.4rem; }
@media (min-width: 640px) { .principle-card__title { font-size: 1.125rem; } }
.principle-card__desc { font-size: 0.85rem; color: hsl(30 8% 60%); line-height: 1.6; }

/* ============================================================
   Blog / Articles
   ============================================================ */
.article-count-badge {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: hsl(30 5% 14%);
  border: 1px solid hsl(30 5% 18%);
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground-3));
}

.article-card { display: flex; flex-direction: column; padding: 1.25rem; }
.article-card__meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.article-card__emoji { font-size: 1.125rem; }
.article-card__category { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: hsl(30 8% 50%); }
.article-card__title { font-size: 0.95rem; font-weight: 600; color: hsl(var(--foreground)); line-height: 1.4; margin-bottom: 0.5rem; }
.article-card:hover .article-card__title { color: hsl(var(--gold)); }
.article-card__excerpt { font-size: 0.85rem; color: hsl(30 8% 60%); line-height: 1.6; flex: 1; margin-bottom: 0.75rem; }
.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid hsl(30 5% 14%);
}
.article-card__readtime { font-size: 0.7rem; color: hsl(30 8% 45%); }
.article-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
}
.article-read-btn:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Contact / Footer
   ============================================================ */
.contact-content { max-width: 42rem; margin: 0 auto; text-align: center; }
.contact-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 640px) { .contact-actions { flex-direction: row; gap: 1rem; } }
.contact-blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: hsl(30 8% 55%);
  transition: color 0.2s ease;
}
.contact-blog-link:hover { color: hsl(var(--gold)); }

.site-footer { border-top: 1px solid hsl(30 5% 12%); padding: 1.5rem 0 2rem; position: relative; z-index: 10; }
.site-footer__inner {
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
@media (min-width: 768px) { .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; } }
@media (min-width: 640px) { .site-footer__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .site-footer__inner { padding: 0 2rem; } }
.site-footer__brand { font-size: 1.05rem; font-weight: 700; }
.site-footer__tagline { font-size: 0.8rem; color: hsl(30 8% 45%); }
.site-footer__copy { font-size: 0.7rem; color: hsl(30 8% 35%); }

/* ============================================================
   Article modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: hsl(30 5% 3% / 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal {
  position: relative;
  width: 100%;
  max-width: 42rem;
  max-height: 85vh;
  overflow-y: auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: hsl(var(--foreground));
}
@media (min-width: 640px) { .modal { padding: 2rem; } }

.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: hsl(30 8% 55%);
  padding: 0.25rem;
}
.modal__close:hover { color: hsl(var(--foreground)); }

.modal__header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; padding-right: 2rem; }
.modal__emoji { font-size: 1.125rem; }
.modal__category { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: hsl(30 8% 50%); }
.modal__readtime { font-size: 0.7rem; color: hsl(30 8% 45%); margin-left: auto; }
.modal__title { font-size: 1.35rem; font-weight: 700; line-height: 1.35; }
@media (min-width: 640px) { .modal__title { font-size: 1.6rem; } }

.article-content { margin-top: 1rem; font-size: 0.95rem; color: hsl(30 8% 65%); line-height: 1.7; }
.article-content p { margin-bottom: 0.85rem; white-space: pre-line; }
.article-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.1rem; color: hsl(var(--foreground)); }
.article-content strong { color: hsl(var(--foreground)); font-weight: 600; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
